/* Premium Medical Design Variables */
:root {
    /* Premium medical blue palette - more vibrant and professional */
    --primary-color: #1a4b84;
    --primary-light: #2563eb;
    --primary-dark: #111827;
    
    /* Gold accents - more saturated for better visibility */
    --accent-color: #b8860b;
    --accent-light: #daa520;
    --accent-dark: #8b6914;
    
    /* Text colors - higher contrast */
    --text-dark: #1a1a1a;
    --text-light: #4a5568;
    --text-muted: #718096;
    
    /* Backgrounds - clearer separation */
    --bg-light: #f5f3ef;
    --bg-cream: #faf8f5;
    --bg-white: #ffffff;
    --bg-dark: #111827;
    
    /* Shadows and effects - more defined */
    --shadow: 0 4px 20px rgba(26, 75, 132, 0.1);
    --shadow-hover: 0 8px 30px rgba(26, 75, 132, 0.15);
    --shadow-gold: 0 4px 15px rgba(184, 134, 11, 0.25);
    
    /* Borders and radius */
    --border-radius: 8px;
    --border-radius-lg: 16px;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    scroll-behavior: smooth;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Premium Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--primary-color);
}

h1 { font-size: 2.8rem; line-height: 1.2; }
h2 { font-size: 2.2rem; line-height: 1.3; }
h3 { font-size: 1.5rem; line-height: 1.4; }
h4 { font-size: 1.2rem; line-height: 1.4; }

img {
    max-width: 100%;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px; /* Reduce container padding */
}

/* Premium Header */
.header {
    background: var(--bg-white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(201, 169, 98, 0.15);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; /* Prevent wrapping to new line */
    gap: 15px; /* Reduced gap */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none !important;
    flex-shrink: 0; /* Don't squash logo */
}

/* Premium Logo */
.logo-icon {
    font-size: 24px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.logo-text .name {
    display: block;
    font-family: 'Georgia', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: 0.01em;
}

.logo-text .sub {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    gap: 15px; /* Reduced from 30px */
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 12px; /* Reduced from 20px */
    align-items: center;
}

.lang-switch {
    display: flex;
    gap: 5px;
    font-size: 0.95rem;
    font-weight: 600;
    flex-shrink: 0; /* Don't squash language switch */
}

.lang-switch a {
    text-decoration: none !important;
    color: var(--text-light);
    padding: 6px 15px; /* Reduced from 20px */
    border-radius: 8px;
    border: 2px solid #e2e8f0 !important;
    transition: all 0.3s ease;
    background: var(--white);
    min-width: 50px; /* Reduced from 65px */
    text-align: center;
    display: inline-block;
    vertical-align: middle;
}

.lang-switch a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f7ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 75, 132, 0.1);
}

.lang-switch a.active {
    background: #e7f1ff;
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 700;
}

.nav ul a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
    border-bottom: none;
    font-size: 1.05rem; /* Slightly smaller to fit */
}

.nav ul a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav ul a:hover, .nav ul a.active {
    color: var(--primary-color);
}

.nav ul a:hover::after, .nav ul a.active::after {
    width: 100%;
}

/* Exclude underline effect for menu button */
.nav ul a.btn-small::after {
    display: none;
}

/* Specific selector for navigation button */
.nav a.btn-small {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--primary-color));
    background-size: 200% auto;
    color: var(--white) !important;
    padding: 12px 24px !important;
    border-radius: 8px;
    border-bottom: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.4s ease;
    margin-left: 10px;
    box-shadow: var(--shadow);
    font-weight: 600;
}

.nav a.btn-small:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    border-bottom: none !important;
}

/* Premium Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
    justify-content: center;
}

.team-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(201, 169, 98, 0.08);
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.team-image {
    height: 400px;
    background: linear-gradient(135deg, #e8e4dc 0%, #d8d2c6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(10, 22, 40, 0.1), transparent);
    pointer-events: none;
}

.team-info {
    padding: 24px;
}

.team-info h3 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
    font-size: 1.3rem;
}

.team-info .role {
    display: block;
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-info p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Premium Page Header */
.page-title-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 169, 98, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.page-title-section h1 {
    font-size: 2.8rem;
    font-family: 'Georgia', serif;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: var(--white) !important;
}

.page-title-section p {
    font-size: 1.15rem;
    opacity: 1;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Premium Hero Section */
.hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #f0ebe0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(184, 134, 11, 0.05) 100%);
    pointer-events: none;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 24px;
    line-height: 1.15;
    color: var(--primary-color);
    font-family: 'Georgia', serif;
    max-width: 800px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin: 0 auto 36px;
    line-height: 1.7;
    max-width: 650px;
}

.hero-actions, .cta-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Premium Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light), var(--primary-color));
    background-size: 200% auto;
    color: var(--white);
    padding: 16px 36px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    background-position: right center;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px 34px;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-gold);
}

/* Premium Image Placeholder */
.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e8e4dc 0%, #d8d2c6 100%);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
    position: relative;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Premium Info Cards */
.info-cards {
    position: relative;
    z-index: 10;
    margin-top: -40px;
    padding-bottom: 40px;
}

.card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    border: 1px solid rgba(201, 169, 98, 0.1);
    transition: var(--transition);
    height: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    padding-bottom: 14px;
    border-bottom: 2px solid rgba(201, 169, 98, 0.2);
    position: relative;
}

.hours-list {
    list-style: none;
    font-size: 1.1rem;
}

.card h3::after {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

/* Card Link Hover Effects - excluding buttons */
.card a:not(.btn-primary):not(.btn-secondary) {
    transition: all 0.3s ease;
    display: inline-block;
}

.card a:not(.btn-primary):not(.btn-secondary):hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

/* Specific fix for phone/address links to not move as much if they are long */
.card .card-contact a:hover {
    transform: translateY(-1px);
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f4f8;
    gap: 40px;
}

.hours-list li span {
    font-weight: 600;
    white-space: nowrap;
}

.weekend {
    color: #e53e3e;
}

.note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 15px;
    font-style: italic;
}

/* Premium Services Section */
.services {
    padding: 100px 0;
    background: var(--bg-cream);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.4rem;
    font-family: 'Georgia', serif;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Premium Service Cards */
.service-item {
    background: var(--white);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    border-top: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--accent-dark);
}

.service-item h4 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    font-family: 'Georgia', serif;
    color: var(--primary-color);
    line-height: 1.4;
}

.service-item p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Premium About Section */
.about {
    background: var(--white);
    padding: 64px;
    border-radius: var(--border-radius-lg);
    margin-bottom: 80px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(201, 169, 98, 0.08);
}

.about h2 {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 16px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.features {
    list-style: none;
    margin-top: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.features li {
    font-weight: 600;
    color: var(--primary-color);
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.features li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.map-container {
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-hover);
    line-height: 0;
    border: 1px solid rgba(201, 169, 98, 0.1);
}

.map-container iframe {
    width: 100%;
    display: block;
}
/* Premium Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    padding: 60px 0 50px 0;
    text-align: center;
    margin-top: auto;
    position: relative;
    border-top: 1px solid rgba(201, 169, 98, 0.1);
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 0.9rem;
    opacity: 1;
    line-height: 1.6;
}

.footer-nav {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    padding: 4px 8px;
    opacity: 0.8;
}

.footer-nav a:hover {
    color: var(--white);
    opacity: 1;
}

/* Universal margin for all major content blocks */
section, .about, .team-section, .services {
    margin-bottom: 60px;
}

/* Premium decorative elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apply animations to main sections */
.hero .container,
.page-title-section .container {
    animation: fadeInUp 0.8s ease-out;
}

.info-cards .card:nth-child(1),
.info-cards-wrapper .card:nth-child(1),
.team-grid .team-card:nth-child(odd),
.services-grid .service-item:nth-child(odd) {
    animation: slideInLeft 0.6s ease-out 0.2s both;
}

.info-cards .card:nth-child(2),
.info-cards-wrapper .card:nth-child(2),
.team-grid .team-card:nth-child(even),
.services-grid .service-item:nth-child(even) {
    animation: slideInRight 0.6s ease-out 0.3s both;
}

/* Specific animation for single elements or maps */
.map-container, .about {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Premium decorative elements */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
}

/* Premium divider between sections */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.2), transparent);
    margin: 40px 0;
}

/* Premium hover effects for links */
a {
    position: relative;
    transition: var(--transition);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Premium selection color */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--white);
}

/* Premium scrollbar - Hidden but scrollable */
::-webkit-scrollbar {
    display: none;
}

html {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Language Switching Logic - CLEAN & ROBUST */

/* Hide everything with data-lang attribute by default */
[data-lang] {
    display: none !important;
}

/* Show only necessary elements for Russian language */
body.lang-ru [data-lang="ru"] {
    display: block !important;
}
body.lang-ru span[data-lang="ru"] {
    display: inline !important;
}
body.lang-ru .hero-content[data-lang="ru"] {
    display: block !important;
}
body.lang-ru .info-cards-wrapper[data-lang="ru"],
body.lang-ru .services-grid[data-lang="ru"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
/* Desktop only for 3 columns */
@media (min-width: 769px) {
    body.lang-ru .contact-grid[data-lang="ru"],
    body.lang-de .contact-grid[data-lang="de"],
    body.lang-en .contact-grid[data-lang="en"] {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

.contact-card a {
    word-break: break-all; /* Prevent long emails/links from breaking layout on small screens */
}

/* Tablet Optimization */
/* Show only necessary elements for German language */
body.lang-de [data-lang="de"] {
    display: block !important;
}
body.lang-de span[data-lang="de"] {
    display: inline !important;
}
body.lang-de .hero-content[data-lang="de"] {
    display: block !important;
}
body.lang-de .info-cards-wrapper[data-lang="de"],
body.lang-de .services-grid[data-lang="de"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Show only necessary elements for English language */
body.lang-en [data-lang="en"] {
    display: block !important;
}
body.lang-en span[data-lang="en"] {
    display: inline !important;
}
body.lang-en .hero-content[data-lang="en"] {
    display: block !important;
}
body.lang-en .info-cards-wrapper[data-lang="en"],
body.lang-en .services-grid[data-lang="en"] {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Special rule for services grid (3 columns) */
body.lang-ru .services-grid[data-lang="ru"],
body.lang-de .services-grid[data-lang="de"],
body.lang-en .services-grid[data-lang="en"] {
    grid-template-columns: repeat(3, 1fr);
}

/* Tablet Optimization */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    body.lang-ru .services-grid[data-lang="ru"],
    body.lang-de .services-grid[data-lang="de"],
    body.lang-en .services-grid[data-lang="en"],
    body.lang-ru .info-cards-wrapper[data-lang="ru"],
    body.lang-de .info-cards-wrapper[data-lang="de"],
    body.lang-en .info-cards-wrapper[data-lang="en"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero .container {
        gap: 30px;
    }

    .nav ul {
        gap: 15px;
    }

    .nav ul a {
        font-size: 0.95rem;
    }
}

/* Mobile adaptation for toggleable containers */
@media (max-width: 768px) {
    /* Only force flex for the active language containers */
    body.lang-ru .info-cards-wrapper[data-lang="ru"],
    body.lang-de .info-cards-wrapper[data-lang="de"],
    body.lang-en .info-cards-wrapper[data-lang="en"],
    body.lang-ru .services-grid[data-lang="ru"],
    body.lang-de .services-grid[data-lang="de"],
    body.lang-en .services-grid[data-lang="en"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }

    /* For containers without specific data-lang (like team grid or general services grid) */
    .team-grid,
    .services-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 24px;
    }
}
.menu-toggle {
    display: none;
}

.burger-icon {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.burger-icon span {
    display: block;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Responsiveness Update */
@media (max-width: 768px) {
    .header .container {
        flex-direction: row;
        justify-content: space-between; /* Space out to edges again, but limit text width */
        align-items: center;
        flex-wrap: nowrap; /* Prevent wrapping to new line */
        padding: 10px 15px;
    }

    .logo {
        max-width: 80%; /* Limit logo width */
    }

    .logo-text .name {
        font-size: 1rem; /* Reduce name font size */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; /* If it doesn't fit at all - truncate */
    }

    .logo-text .sub {
        font-size: 0.65rem;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .logo-img {
        height: 36px;
    }

    .burger-icon {
        display: flex;
        flex-shrink: 0; /* Prevent burger from shrinking */
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        z-index: 999;
        gap: 0;
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f4f8;
    }

    .nav ul li a {
        display: block;
        padding: 20px;
        width: 100%;
    }

    .nav a.btn-small {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .lang-switch {
        padding: 15px;
        justify-content: center;
        width: 100%;
        background: #f8fafc;
        box-sizing: border-box;
    }

    .lang-switch a {
        min-width: 50px;
        padding: 6px 12px;
    }

    /* Expand menu on burger click */
    .menu-toggle:checked ~ .nav {
        max-height: 500px; /* Enough for all items */
    }

    /* Animate burger icon to cross */
    .menu-toggle:checked + .burger-icon span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle:checked + .burger-icon span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked + .burger-icon span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Fix card display on mobile */
    .hero {
        padding: 40px 0;
        text-align: center;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        padding: 0 20px;
    }

    .image-placeholder {
        display: none;
    }

    .footer {
        margin-top: 40px;
    }
}


/* Centering single cards in info-cards-wrapper while respecting language switching */
body.lang-ru .info-cards-wrapper.single-card[data-lang="ru"],
body.lang-de .info-cards-wrapper.single-card[data-lang="de"],
body.lang-en .info-cards-wrapper.single-card[data-lang="en"] {
    display: flex !important;
    justify-content: center;
    width: 100%;
}

.info-cards-wrapper.single-card .card {
    max-width: 600px;
    width: 100%;
}

/* Contact Grid for modern look */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-card p, .contact-card a {
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
}

@media (max-width: 768px) {
    body.lang-ru .contact-grid[data-lang="ru"],
    body.lang-de .contact-grid[data-lang="de"],
    body.lang-en .contact-grid[data-lang="en"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px;
    }

    .contact-card {
        padding: 20px; /* Reduced from 30px */
    }
}
