
:root {
  --primary: #0f172a;      /* Deep Navy */
  --primary-light: #1e293b;
  --secondary: #475569;    /* Slate */
  --accent: #2563eb;       /* Professional Blue */
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --header-height: 120px;
  --navbar-height: 60px;
  color-scheme: only light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility: Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Layout Containers */
.wrapper {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}

header .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
    display: block;
    line-height: 0;
}

.brand-identity {
    height: 90px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.logo a:hover .brand-identity {
    transform: scale(1.02);
}

.header-right-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.header-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    margin-bottom: 8px;
}

/* Lang switcher old rules removed to prevent conflicts with the new ones */

.header-phone {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
}

.header-phone a {
    color: inherit;
    text-decoration: none;
    position: relative;
    padding: 6px 14px;
    margin: -7px -15px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.header-phone a:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0.05) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(37, 99, 235, 0.3);
    color: var(--accent);
    box-shadow: 0 8px 32px 0 rgba(37, 99, 235, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.header-hours {
    font-size: 12px;
    color: var(--text-muted);
}

.header-socials {
  display: flex;
  gap: 12px;
}

.social-btn {
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--secondary);
  background-color: transparent;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
}

.social-btn.facebook:hover { background-color: #1877f2; border-color: #1877f2; color: #fff; box-shadow: 0 4px 10px rgba(24, 119, 242, 0.25); transform: translateY(-2px); }
.social-btn.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: transparent; color: #fff; box-shadow: 0 4px 10px rgba(220, 39, 67, 0.25); transform: translateY(-2px); }
.social-btn.viber:hover { background-color: #7360f2; border-color: #7360f2; color: #fff; box-shadow: 0 4px 10px rgba(115, 96, 242, 0.25); transform: translateY(-2px); }


/* Navbar */
nav {
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  height: var(--navbar-height);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-item > a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-item > a::after {
  content: '▼';
  font-size: 10px;
  opacity: 0.7;
}

/* Hide arrow for non-dropdown items */
.nav-item.no-dropdown > a::after {
  content: none !important;
  display: none !important;
}

.nav-item:hover > a {
  opacity: 0.8;
}

/* Dropdown Content */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  min-width: 240px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  padding: 10px 0;
  border-radius: 0 0 8px 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 1000;
}

.dropdown-menu a {
  color: #fff;
  padding: 12px 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: background 0.2s ease;
  text-transform: none;
  letter-spacing: normal;
}

.dropdown-menu a:hover {
  background-color: var(--primary-light);
  color: #fff;
}

/* Desktop-only Hover Logic */
@media (min-width: 769px) {
  .nav-item:hover .dropdown-menu {
    display: flex;
  }
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #ffffff !important;
    border-radius: 2px;
    transition: all 0.3s ease;
    filter: none !important;
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.format-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.format-icons img {
  height: 24px;
  width: auto;
  opacity: 1;
  transition: opacity 0.2s ease;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.format-icons img:hover {
  opacity: 1;
}

/* Language Switcher (Segmented Control) */
.lang-switcher {
  display: inline-flex;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switcher a {
  color: #cbd5e1;
  text-decoration: none;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.lang-switcher a:hover {
  color: #fff;
}

.lang-switcher a.active {
  background-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Hero Section / Main Title */
.hero {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  margin-bottom: 40px;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  margin-bottom: 10px;
}

.hero p {
  color: var(--border);
  font-size: 18px;
}

/* Content Grid (Service Cards) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.12);
  border-color: rgba(37, 99, 235, 0.3);
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f1f5f9;
}

.service-card.wide {
  grid-column: span 2;
}

.service-card.wide .card-image {
  height: 300px;
}

.feature-hero {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 60px;
}

.hero-visual {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 24px;
}

.card-content h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--primary);
}

.card-content p {
  font-size: 14px;
  color: var(--text-muted);
}

/* Contacts Layout */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Footer */
footer {
  background-color: var(--primary);
  color: #cbd5e1;
  padding: 60px 0 20px;
}

footer .footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  text-align: left;
}

@media (max-width: 768px) {
  footer .footer-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

footer h3 {
  color: #fff;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 1px;
}

footer p, footer li {
  font-size: 14px;
  margin-bottom: 10px;
  color: #cbd5e1;
}

footer a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #94a3b8;
}

.footer-bottom .socials {
  display: flex;
  gap: 15px;
}

footer .social-btn {
  color: #cad5e2;
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

footer .social-btn.facebook:hover,
footer .social-btn.instagram:hover,
footer .social-btn.viber:hover {
  color: #fff;
}

/* Pricing Cards System */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.price-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.price-card-header {
    background: var(--primary-light);
    color: white;
    padding: 15px 20px;
}

.price-card-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.price-card-body {
    padding: 10px 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    color: var(--secondary);
}

.price-item:last-child {
    border-bottom: none;
}

.price-item:nth-child(even) {
    background-color: #f8fafc;
}

.price-label {
    flex: 1;
    padding-right: 15px;
}

.price-item-value {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.priority-notice {
    width: 100%;
    margin-top: 40px;
    padding: 20px;
    background-color: #fff1f2;
    border: 1px solid #fda4af;
    border-radius: 12px;
    text-align: center;
    color: #9f1239;
    font-size: 16px;
    box-shadow: var(--shadow);
}

/* Service Subpages Two-Column Layout */
.service-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    margin-bottom: 80px;
}

.service-main {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.service-main img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    flex-shrink: 0;
}

.service-description {
    flex: 1;
    font-size: 18px;
    line-height: 1.8;
    color: var(--secondary);
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--accent);
}

.sidebar-widget h3 {
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.mini-price-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mini-price-item {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
    box-sizing: border-box;
}

.mini-price-item:last-child {
    border-bottom: none;
}

.mini-price-val {
    font-weight: 700;
    color: var(--accent);
    margin-left: auto;
    padding-left: 15px;
    text-align: right;
}

.mini-price-item.urgent-item {
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px dashed #fda4af !important;
    border-bottom: none !important;
    color: #be123c !important;
    font-weight: 700 !important;
}

.mini-price-item.urgent-item .mini-price-val {
    color: #be123c !important;
}

.mini-price-item.urgent-item span {
    margin: 0;
    padding: 2px 0;
}

.sidebar-nav-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-nav-links a:hover {
    color: var(--accent);
}

.sidebar-nav-links a::before {
    content: '→';
    color: var(--accent);
    font-weight: bold;
}

@media (max-width: 992px) {
    .service-layout {
        grid-template-columns: 1fr;
    }
    .service-main {
        flex-direction: column;
        gap: 20px;
    }
    .service-main img {
        max-width: 100%;
        order: -1;
    }
    .sidebar {
        order: 2;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    .service-card.wide {
        grid-column: span 1;
    }
    .service-card.wide .card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
  header .wrapper { flex-direction: column; gap: 20px; padding: 20px; }
  .hero h1 { font-size: 32px; }
  
  .menu-toggle { display: flex; }

  .menu-toggle.active {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1200;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #0f172a !important;
    color-scheme: only light !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 70px 20px 30px;
    gap: 0;
    overflow-y: auto;
    z-index: 1100;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
    height: auto !important;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-item > a {
    width: 100%;
    font-size: 15px;
    padding: 14px 0;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .dropdown-menu {
    position: static !important;
    background-color: var(--primary-light);
    width: 100%;
    box-shadow: none;
    padding: 5px 0;
    margin: 0;
    border-radius: 4px;
    display: none;
    border-top: none !important;
  }

  .dropdown-menu a {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .nav-item:hover .dropdown-menu {
    display: none !important;
  }
  
  .nav-item.active .dropdown-menu {
    display: flex !important;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}
