/* Gallery grid 3x3 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}
.gallery-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: all 0.3s ease;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
/* Gallery modal styles */
.gallery-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1;
}
.gallery-modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 10px;
  padding: 1em;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.gallery-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2em;
  color: #333;
  cursor: pointer;
  z-index: 3;
}
.gallery-swiper {
  width: 70vw;
  max-width: 700px;
  height: 60vh;
  max-height: 500px;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    /* Remove opacity hiding - let content show by default */
}

/* ===== LOADING SCREEN STYLES ===== */
.loading-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
    opacity: 1 !important;
    visibility: visible !important;
}

.loading-screen.hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

.loading-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Reduced from 20px to 15px */
}

.loading-logo {
    width: 120px;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Improved animation timing for longer distance */
    animation: slideInFromLeft 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loading-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(31, 59, 77, 0.3));
}

.loading-text {
    color: rgb(31, 59, 77);
    font-weight: 600;
}

.loading-text p {
    margin: 0 0 5px 0; /* Reduced from 10px to 5px */
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: rgb(31, 59, 77);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0;
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100vw); /* Starts from far left edge of viewport */
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile loading screen */
@media (max-width: 768px) {
    .loading-logo {
        width: 100px;
        height: 100px;
        /* Improved animation timing for mobile */
        animation: slideInFromLeft 3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .loading-logo-img {
        width: 70px;
        height: 70px;
    }
    
    .loading-text p {
        font-size: 1.1rem;
    }
    
    .loading-container {
        gap: 10px; /* Further reduced for mobile */
    }
    
    /* Mobile uses same animation - starts from left edge of viewport */
    @keyframes slideInFromLeft {
        0% {
            transform: translateX(-100vw); /* Same as desktop - full viewport width */
            opacity: 0;
        }
        50% {
            opacity: 1;
        }
        100% {
            transform: translateX(0);
            opacity: 1;
        }
    }
}

/* ===== END LOADING SCREEN STYLES ===== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure navbar stays above all content */
    transition: all 0.3s ease;
    overflow: visible;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    overflow: visible;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: rgb(31, 59, 77);
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px; /* Reduced from 30px to 25px to accommodate 5 nav items */
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgb(31, 59, 77);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: rgb(31, 59, 77);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Active navigation link */
.nav-link.active {
    color: rgb(31, 59, 77);
}

.nav-link.active::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    z-index: 1002;
}

.language-dropdown {
    position: relative;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-family: 'Arial', sans-serif;
    color: #333;
    min-height: 40px;
}

.dropdown-trigger:hover {
    background: rgba(31, 59, 77, 0.05);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: none;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 120px;
    margin-top: 5px;
    z-index: 1001;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 2px;
    font-family: 'Arial', sans-serif;
    min-height: 40px;
}

.dropdown-item:hover {
    background: rgba(31, 59, 77, 0.05);
    color: rgb(31, 59, 77);
}

.dropdown-item.active {
    background: rgba(31, 59, 77, 0.1);
    color: rgb(31, 59, 77);
    font-weight: 500;
}

.flag-icon {
    height: calc(100% - 4px);
    width: auto;
    max-width: 28px;
    object-fit: contain;
    border-radius: 2px;
    flex-shrink: 0;
    display: block;
}

.lang-text {
    font-size: 14px;
    font-weight: 500;
    font-family: 'Arial', sans-serif;
    line-height: 1.2;
}

.dropdown-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.3s ease;
}

.dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}
/* Section Styles */
.section {
    padding: 30px 0; /* Reduced from 55px to 30px for compact design */
    min-height: auto; /* Remove min-height for more compact layout */
    display: flex;
    align-items: center;
}

/* Fix navbar overlay issue - add top margin to first section */
.section:first-of-type {
    margin-top: 80px; /* Account for navbar height */
    padding-top: 40px; /* Reduced from 75px to 40px */
}

.hero-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    text-align: center;
}

.hero-content h1 {
    font-size: 1.8rem; /* Reduced from 3rem to 1.8rem (navbar logo size + 0.3rem) */
    color: rgb(31, 59, 77);
    margin-bottom: 15px; /* Reduced margin */
}

.hero-content h2 {
    font-size: 1.1rem; /* Reduced from 1.5rem to 1.1rem (navbar size + 0.1rem) */
    color: #666;
    margin-bottom: 20px; /* Reduced margin */
}

.hero-text {
    font-size: 1rem; /* Reduced from 1.2rem to 1rem (navbar size) */
    max-width: 800px;
    margin: 0 auto 30px; /* Reduced margin */
    line-height: 1.6; /* Tighter line height */
}

.features {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.features h3 {
    color: rgb(31, 59, 77);
    margin-bottom: 15px; /* Reduced margin */
    font-size: 1.1rem; /* Reduced from 1.3rem to 1.1rem (navbar size + 0.1rem) */
}

.features ul {
    list-style: none;
}

.features li {
    padding: 10px 0; /* Standardized vertical padding */
    padding-left: 25px; /* Keep left padding for bullet alignment */
    position: relative;
}

.features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgb(31, 59, 77);
    font-weight: bold;
}
/* Purchase Section */
.purchase-section {
    background: #fff;
    text-align: center;
}

.purchase-section h2 {
    font-size: 1.6rem; /* Reduced from 2.5rem to 1.6rem (navbar logo size + 0.1rem) */
    color: rgb(31, 59, 77);
    margin-bottom: 15px; /* Reduced margin */
}

.purchase-section h3 {
    font-size: 1.1rem; /* Reduced from 1.3rem to 1.1rem (navbar size + 0.1rem) */
    color: #666;
    margin-bottom: 20px; /* Reduced margin */
}

.purchase-section p {
    font-size: 1rem; /* Reduced from 1.1rem to 1rem (navbar size) */
    max-width: 800px !important;
    margin: 0 auto 40px; /* Reduced margin */
}

.purchase-grid {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Reduced gap for compact design */
    margin-top: 15px; /* Reduced from 25px to 15px for compact design */
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.purchase-card {
    background: #f9f9f9;
    padding: 15px; /* Reduced from 20px to 15px for compact design */
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.purchase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.purchase-card h4 {
    color: rgb(31, 59, 77);
    margin-bottom: 15px; /* Reduced margin */
    font-size: 1rem; /* Reduced from 1.2rem to 1rem (navbar size) */
}

.btn-primary {
    background: rgb(31, 59, 77);
    color: white;
    border: none;
    padding: 10px 20px; /* Reduced padding for compact design */
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem; /* Reduced from 1rem to 0.9rem for compact design */
    transition: all 0.3s ease;
    font-family: 'Arial', sans-serif;
}

.btn-primary:hover {
    background: rgb(45, 75, 95);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(31, 59, 77, 0.3);
}

/* Expandable Specifications */
.specs-content {
    margin-top: 15px; /* Reduced margin */
    padding: 12px; /* Reduced from 15px to 12px for compact design */
    background: rgba(31, 59, 77, 0.05);
    border-radius: 8px;
    border-left: 4px solid rgb(31, 59, 77);
    animation: slideDown 0.3s ease-out;
}

.specs-list ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.specs-list li {
    padding: 10px 0; /* Standardized vertical padding */
    padding-left: 25px; /* Keep left padding for bullet alignment */
    position: relative;
    color: #555;
    line-height: 1.5;
}

.specs-list li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: rgb(31, 59, 77);
    font-weight: bold;
}

.pdf-links h5 {
    color: rgb(31, 59, 77);
    margin-bottom: 12px; /* Reduced margin */
    font-size: 1rem; /* Reduced from 1.1rem to 1rem (navbar size) */
}

.pdf-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border: 2px solid rgba(31, 59, 77, 0.1);
    border-radius: 6px;
    text-decoration: none;
    color: rgb(31, 59, 77);
    transition: all 0.3s ease;
    font-weight: 500;
}

.pdf-link:hover {
    border-color: rgb(31, 59, 77);
    background: rgba(31, 59, 77, 0.05);
    transform: translateX(5px);
}

.pdf-icon {
    font-size: 1.2rem;
}

.pdf-text {
    font-size: 0.9rem; /* Reduced from 0.95rem to 0.9rem for compact design */
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 300px;
        transform: translateY(0);
    }
}
/* Gallery Section */
.gallery-section {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    text-align: center;
}

.gallery-section h2 {
    font-size: 1.6rem; /* Reduced from 2.5rem to 1.6rem (navbar logo size + 0.1rem) */
    color: rgb(31, 59, 77);
    margin-bottom: 15px; /* Reduced margin */
}

.gallery-section h3 {
    font-size: 1.1rem; /* Reduced from 1.3rem to 1.1rem (navbar size + 0.1rem) */
    color: #666;
    margin-bottom: 30px; /* Reduced margin */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em;
    width: 100%;
}

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Contacts Section */
.contacts-section {
    background: #fff;
    text-align: center;
}

.contacts-section h2 {
    font-size: 1.6rem; /* Reduced from 2.5rem to 1.6rem (navbar logo size + 0.1rem) */
    color: rgb(31, 59, 77);
    margin-bottom: 15px; /* Reduced margin */
}

.contacts-section h3 {
    font-size: 1.1rem; /* Reduced from 1.3rem to 1.1rem (navbar size + 0.1rem) */
    color: #666;
    margin-bottom: 30px; /* Reduced margin */
}

/* NEW: Dedicated contacts grid - replaces purchase-grid usage */
.contacts-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px; /* Reduced from 25px to 15px for compact design */
}

.contact-info {
    background: #f9f9f9;
    padding: 15px; /* Reduced from 20px to 15px for compact design */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 800px !important; /* Same as purchase-grid - responsive */
    margin-left: auto !important; /* Same as purchase-grid - centered */
    margin-right: auto !important; /* Same as purchase-grid - centered */
    width: 100%; /* Responsive width like other sections */
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-item {
    margin-bottom: 20px; /* Reduced from 35px to 20px */
    text-align: left;
    padding: 12px; /* Reduced from 15px to 12px for compact design */
    background: rgba(255, 255, 255, 0.7); /* Subtle background for definition */
    border-radius: 8px;
    border-left: 4px solid rgb(31, 59, 77); /* Add accent border */
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item strong {
    display: block;
    color: rgb(31, 59, 77);
    font-size: 1rem; /* Reduced from 1.1rem to 1rem (navbar size) */
    margin-bottom: 6px; /* Reduced margin */
    font-weight: 600;
}

.contact-item a {
    color: rgb(31, 59, 77);
    text-decoration: none;
    font-size: 0.95rem; /* Reduced from 1.05rem to 0.95rem (slightly smaller than navbar) */
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: rgb(45, 75, 95);
    text-decoration: underline;
}

.contact-item p {
    color: #555;
    font-size: 0.95rem; /* Reduced from 1.05rem to 0.95rem (slightly smaller than navbar) */
    line-height: 1.5; /* Tighter line height */
    margin: 0;
}

/* High specificity overrides to ensure proper width */
.contacts-section .contacts-grid .contact-info {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important; /* Responsive like other sections */
}

.findus-section .map-grid .map-section {
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important; /* Responsive like other sections */
}

/* ===== FIND US SECTION STYLES ===== */
.findus-section {
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    text-align: center;
}

.findus-section h2 {
    font-size: 1.6rem; /* Reduced from 2.5rem to 1.6rem (navbar logo size + 0.1rem) */
    color: rgb(31, 59, 77);
    margin-bottom: 15px; /* Reduced margin */
}

.findus-section h3 {
    font-size: 1.1rem; /* Reduced from 1.3rem to 1.1rem (navbar size + 0.1rem) */
    color: #666;
    margin-bottom: 30px; /* Reduced margin */
}

/* NEW: Dedicated map grid - replaces purchase-grid usage */
.map-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 15px; /* Reduced from 25px to 15px for compact design */
}

.map-section {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

.map-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.yandex-map {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background: rgb(31, 59, 77); /* Same color as logo */
    color: white;
    text-align: center;
    padding: 0; /* Remove padding to control height precisely */
    margin-top: 0;
    height: 80px; /* Same height as navbar */
    display: flex;
    align-items: center; /* Center content vertically */
    justify-content: center; /* Center content horizontally */
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Footer responsive design */
@media (max-width: 768px) {
    .footer {
        height: 60px; /* Reduce height proportionally on tablet */
    }
    
    .footer p {
        font-size: 0.9rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .footer {
        height: 50px; /* Reduce height proportionally on mobile */
    }
    
    .footer p {
        font-size: 0.85rem;
    }
}

/* Desktop: Ensure 800px width standard - removed fixed constraints for responsiveness */

/* ===== MOBILE OVERRIDE STYLES - Simplified since sections are now naturally responsive ===== */
@media (max-width: 768px) {
    /* Ensure containers don't overflow */
    .contacts-section .container,
    .findus-section .container {
        padding: 0 15px;
        overflow-x: hidden;
    }
    
    /* Special handling for find us section to allow full-width map */
    .findus-section .container {
        padding: 0 !important; /* Remove padding for full-width map */
    }
    
    /* Make map grid take full width on mobile */
    .map-grid {
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Responsive contact items */
    .contact-item {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Responsive map container */
    .map-container {
        width: 100%;
        overflow: hidden;
    }
}

/* ===== END MOBILE OVERRIDE STYLES ===== */

/* ===== RESPONSIVE DESIGN FOR BOTH SECTIONS ===== */
@media (max-width: 768px) {
    .contacts-grid, 
    .map-grid {
        padding: 0 15px; /* Consistent with other sections */
        margin: 0;
    }
    
    /* Make map section take full width on mobile */
    .map-section {
        max-width: none !important; /* Remove 800px constraint on mobile */
        width: 100% !important;
        margin: 0 !important; /* Remove auto margins */
        padding: 10px; /* Reduce padding for more map space */
    }
    
    .map-container {
        width: 100%;
        margin: 0;
    }
    
    .yandex-map {
        width: 100%;
        height: 300px; /* Better height for mobile viewing */
    }
    
    .contact-item {
        padding: 12px; /* Better mobile spacing */
        margin-bottom: 15px; /* Tighter mobile spacing */
    }
    
    .contacts-section h2,
    .findus-section h2 {
        font-size: 1.4rem; /* Reduced for mobile */
        margin-bottom: 10px;
    }
    
    .contacts-section h3,
    .findus-section h3 {
        font-size: 1rem; /* Reduced for mobile */
        padding: 0 15px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .contacts-grid,
    .map-grid {
        padding: 0 !important; /* Remove all padding for maximum map width */
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Special handling for find us section on small mobile */
    .findus-section .container {
        padding: 0 !important; /* Remove all padding for edge-to-edge map */
    }
    
    /* Ensure map takes full width on small mobile too */
    .map-section {
        max-width: none !important; /* Remove 800px constraint on small mobile */
        width: 100% !important;
        margin: 0 !important; /* Remove auto margins */
        padding: 5px; /* Minimal padding for maximum map space */
    }
    
    .map-container {
        width: 100%;
        margin: 0;
    }
    
    .yandex-map {
        width: 100%;
        height: 250px; /* Compact height for small mobile */
    }
    
    .contact-item {
        padding: 10px; /* Compact for small mobile */
        margin-bottom: 12px;
    }
    
    .contact-item strong {
        font-size: 0.95rem; /* Slightly smaller for small mobile */
    }
    
    .contact-item a,
    .contact-item p {
        font-size: 0.9rem; /* Compact text for small mobile */
    }
    
    .contacts-section h2,
    .findus-section h2 {
        font-size: 1.3rem; /* Compact for small mobile */
        margin-bottom: 8px;
    }
    
    .contacts-section h3,
    .findus-section h3 {
        font-size: 0.95rem; /* Compact for small mobile */
        padding: 0 10px;
        margin-bottom: 15px;
    }
}





.map-container {
    width: 100%;
    box-sizing: border-box;
}

.yandex-map {
    width: 100%;
    height: 400px;
    border-radius: 6px;
}

/* ===== CORRECTED MOBILE NAVBAR STYLES ===== */
/* Fix missing selectors and add proper mobile functionality */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    overflow: visible;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
}

.language-switcher {
    position: relative;
    z-index: 1002;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-container {
        height: 70px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    /* Hamburger on left */
    .hamburger {
        display: flex;
        order: 1;
        z-index: 1003;
    }
    
    /* Logo in center */
    .nav-logo {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .nav-logo span {
        font-size: 1.3rem;
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    /* Language switcher on right */
    .language-switcher {
        order: 3;
        margin-left: auto;
    }
    
    /* Hide nav menu by default on mobile */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 1001;
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-menu li a {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
    }

    /* Hamburger animation */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}





