:root {
    --bg-primary: #0B0F1F;
    --bg-secondary: #0F1535;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-bg-hover: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-border-hover: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.5);
    --gradient-primary: linear-gradient(135deg, #667EEA, #764BA2);
    --gradient-accent: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    --gradient-hero: linear-gradient(135deg, #667EEA, #8B5CF6);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent: #8B5CF6;
    --purple: #8B5CF6;
    --blue: #3B82F6;
    --radius-md: 24px;
    --radius-lg: 28px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 80px;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== GLASS EFFECT ===== */
.glass {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.01) 50%,
            rgba(0, 0, 0, 0.2) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.02) 40%,
            transparent 100%);
    pointer-events: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.glass::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.03) 50%,
            transparent 70%);
    pointer-events: none;
}

.glass:hover {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.06) 0%,
            rgba(255, 255, 255, 0.02) 50%,
            rgba(0, 0, 0, 0.25) 100%);
    border-color: rgba(255, 255, 255, 0.15);
    border-top-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
}

.glass-white {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 3px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-white:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xxl) 0;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 15, 31, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-sm) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.nav {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav a {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav a:hover {
    color: var(--text-primary);
}

.btn {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 107, 107, 0.5);
}

/* ===== HERO ===== */
.hero {
    padding: calc(var(--space-xxl) + 80px) 0 var(--space-xxl);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(102, 126, 234, 0.15);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: var(--text-secondary);
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0.4
    }
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.hero-title span {
    background: linear-gradient(135deg, #667EEA, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #667EEA, #8B5CF6);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.stat-card {
    padding: var(--space-md);
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667EEA, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ===== SECTION TITLE ===== */
.section-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* ===== DEPARTMENTS ===== */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.department-card {
    padding: var(--space-lg);
    text-align: center;
}

.department-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 1.8rem;
}

.department-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--bg-primary);
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.service-card {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.service-card .service-price {
    margin-top: auto;
}

.service-badge {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    background: linear-gradient(135deg, #667EEA, #764BA2);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.service-price {
    font-weight: 700;
    font-size: 1.2rem;
}

.service-price .old {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 0.95rem;
    margin-left: 8px;
}

/* ===== ACTUAL OFFERS ===== */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.offer-card {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.offer-card .offer-price {
    margin-top: auto;
}

.offer-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.offer-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
}

.offer-price {
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== SPECIAL OFFERS ===== */
.special-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.special-offer-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    color: var(--bg-primary);
    border: 3px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
}

.special-offer-card:hover {
    background: white;
    transform: translateY(-20px);
}

.offer-percent {
    font-size: 3rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: var(--space-sm);
}

.special-offer-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.special-offer-card p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
    flex-grow: 1;
}

.offer-btn {
    background: var(--blue);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    margin-top: auto;
    height: 48px; /* Фиксированная высота */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none; /* Убираем дефолтный border у button */
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

/* Ссылка-кнопка в карточке "Отзыв" */
a.offer-btn {
    text-decoration: none;
    transition: var(--transition);
}

a.offer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    opacity: 0.95;
}

button.offer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    opacity: 0.95;
}

/* ===== DOCTOR ===== */
.doctor-card {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.doctor-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.doctor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667EEA, #764BA2);
    display: grid;
    place-items: center;
    font-size: 3rem;
    font-weight: 700;
    flex-shrink: 0;
}

.doctor-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.doctor-info .position {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.doctor-stats {
    margin: var(--space-md) 0;
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.doctor-stats .stat {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667EEA, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.doctor-stats .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.doctor-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.doctor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.doctor-tag {
    background: rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.doctor-card .btn {
    align-self: center;
    width: auto;
}

/* ===== SPECIALISTS ===== */
.specialists-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    align-items: stretch;
}

.specialists-grid>* {
    display: flex;
}

.specialist-card {
    padding: var(--space-lg);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    height: 100%;
}

.specialist-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.specialist-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(139, 92, 246, 0.3));
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.specialist-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.specialist-spec {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.specialist-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
}

/* ===== LOCATIONS ===== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    align-items: stretch;
}

.location-card {
    padding: var(--space-lg);
}

.location-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.location-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.location-card a {
    color: #8B9FFF;
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}

.rating-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    margin-top: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: .3s;
}

.rating-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, .25);
}

.rating-score {
    color: #ffd54f;
    font-weight: 700;
    font-size: 18px;
}

.rating-text {
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(251, 191, 36, 0.2);
    color: #FBBF24;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-top: var(--space-sm);
}

.hours {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: var(--text-muted);
}

.hours strong {
    color: #4ADE80;
    font-weight: 700;
}

.map-container {
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== FAQ ===== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.faq-item {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.faq-question {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-primary);
}

.faq-toggle {
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: var(--text-muted);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    color: #FF6B6B;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s;
    padding: 0 var(--space-lg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 var(--space-lg) var(--space-md);
}

.faq-answer p {
    color: var(--text-secondary);
}

/* ===== CTA ===== */
.cta {
    text-align: center;
}

.cta-card {
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-xxl) var(--space-xl);
}

.cta-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.cta h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: var(--space-lg);
}

/* ===== GALLERY ===== */
.gallery-carousel {
    position: relative;
    margin: var(--space-xl) 0;
}

.gallery-carousel img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--bg-primary);
    transition: var(--transition);
}

.gallery-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

/* ===== ARTICLES ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.article-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--bg-primary);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.article-content {
    padding: var(--space-md);
}

.article-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.article-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    line-height: 1.4;
}

.article-tag {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: var(--purple);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-top: var(--space-sm);
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--bg-primary);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-content {
    padding: var(--space-lg);
}

.project-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.project-card p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.project-link {
    color: var(--purple);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(15, 21, 53, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-xxl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: var(--space-md);
    font-weight: 800;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.social-icon {
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.social-icon:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: var(--space-sm);
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-phone {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--space-sm);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9999;
    padding: 16px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    width: 100%;
    max-width: 500px;
    padding: 32px;
    position: relative;
}

.modal-title {
    text-align: center;
    margin-bottom: 24px;
    font-size: 28px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 16px;
}

.modal-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;
    color: white;
    cursor: pointer;
    line-height: 1;
}

.form-status {
    text-align: center;
    margin-top: 8px;
    font-size: 0.9rem;
    min-height: 20px;
}

.form-status.success {
    color: #4ADE80;
}

.form-status.error {
    color: #FF6B6B;
}

/* ===== БУРГЕР-МЕНЮ (базовые стили — скрыт на десктопе) ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.burger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
}

.burger.active .burger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.burger.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.active .burger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ===== ТЕЛЕФОНЫ В ШАПКЕ ===== */
.header-phones {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-right: var(--space-md);
}

.header-phones ul {
    list-style-type: none;
}

.header-phone-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.header-phone-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-phone-link {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.header-phone-link:hover,
.header-phone-label:hover {
    color: #FF8E8E;
}

/* ===== КОНТАКТЫ В ПОДВАЛЕ ===== */
.footer-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    list-style: none;
    padding: 0;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 0;
}

.footer-contact-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.footer-email {
    font-size: 1rem;
    font-weight: 600;
    color: #8B9FFF;
    text-decoration: none;
    transition: var(--transition);
    word-break: break-word;
}

.footer-email:hover {
    color: #FFD700;
}

/* ===== MOBILE ADAPTATION ===== */
@media (max-width: 1024px) {

    .hero-content,
    .departments-grid,
    .services-grid,
    .offers-grid,
    .special-offers-grid,
    .specialists-grid,
    .locations-grid,
    .articles-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr;
    }

    .hero-image img {
        height: 350px;
    }

    .header-phones {
        margin-right: var(--space-sm);
    }

    .header-phone-link {
        font-size: 14px;
    }
}

/* Мобильные устройства (до 768px) */
@media (max-width: 768px) {
    :root {
        --space-xxl: 60px;
        --space-xl: 32px;
        --space-lg: 24px;
        --space-md: 20px;
        --space-sm: 12px;
    }

    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }

    /* Шапка на мобильных */
    .header {
        padding: 12px 0;
    }

    .header-content {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 8px 12px;
        align-items: center;
        padding: 0 16px;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        font-size: 1.3rem;
    }

    /* Бургер — справа сверху */
    .burger {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    /* Телефоны — слева снизу */
    .header-phones {
        grid-column: 1;
        grid-row: 2;
        flex-direction: column;
        gap: 2px;
        margin: 0;
        align-items: flex-start;
    }

    .header-phone-item {
        flex-direction: row;
        gap: 6px;
        align-items: center;
    }

    .header-phone-label {
        font-size: 9px;
    }

    .header-phone-link {
        font-size: 12px;
    }

    /* Кнопка Записаться — справа снизу */
    .btn-primary {
        grid-column: 2;
        grid-row: 2;
        width: auto;
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    /* НАВИГАЦИЯ — ПОЛНОЭКРАННОЕ МЕНЮ-ОКНО СПРАВА */
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(11, 15, 31, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        padding: 80px 20px 40px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }

    .nav.active {
        transform: translateX(0);
    }

    .nav a {
        font-size: 1.3rem;
        color: var(--text-primary);
        font-weight: 600;
        padding: 12px 24px;
        border-radius: 12px;
        transition: var(--transition);
    }

    .nav a:hover {
        background: rgba(255, 255, 255, 0.08);
        color: var(--text-primary);
    }

    body.menu-open {
        overflow: hidden;
    }

    /* Hero */
    .hero {
        padding-top: 200px;
        min-height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .hero-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: auto;
        flex: 0 1 auto;
        padding: 14px 24px;
        white-space: nowrap;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .hero-image {
        order: -1;
    }

    .hero-image img {
        height: 250px;
    }

    /* Section Title */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: var(--space-lg);
    }

    /* Departments */
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .department-card {
        padding: 20px 16px;
    }

    .department-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .department-card h3 {
        font-size: 0.9rem;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .service-card {
        padding: var(--space-md);
    }

    .service-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    /* Offers */
    .offers-grid {
        grid-template-columns: 1fr;
    }

    .offer-card {
        padding: var(--space-md);
    }

    /* Special Offers */
    .special-offers-grid {
        grid-template-columns: 1fr;
    }

    .special-offer-card {
        padding: var(--space-lg);
    }

    .offer-percent {
        font-size: 2.5rem;
    }

    /* Doctor */
    .doctor-card {
        padding: var(--space-lg);
    }

    .doctor-header {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }

    .doctor-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .doctor-info h3 {
        font-size: 1.3rem;
    }

    .doctor-stats .stat {
        font-size: 1.8rem;
    }

    .doctor-description {
        font-size: 0.9rem;
    }

    .doctor-tags {
        justify-content: center;
    }

    .doctor-card .btn {
        width: 100%;
    }

    /* Specialists */
    .specialists-grid {
        grid-template-columns: 1fr;
        max-width: 1100px;
        margin: 0 auto;
        align-items: stretch;
    }

    .specialist-card {
        padding: var(--space-md);
    }

    .specialist-header {
        flex-direction: column;
        text-align: center;
    }

    .specialist-avatar {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        margin: 0 auto;
    }

    .specialist-name {
        font-size: 1rem;
    }

    /* Locations */
    .locations-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .location-card {
        padding: var(--space-md);
    }

    .location-card h3 {
        font-size: 1.2rem;
    }

    .map-container {
        height: 250px;
    }

    /* FAQ */
    .faq-container {
        padding: 0 8px;
    }

    .faq-question {
        padding: var(--space-md);
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 var(--space-md);
    }

    .faq-item.active .faq-answer {
        padding: 0 var(--space-md) var(--space-md);
    }

    /* CTA */
    .cta-card {
        padding: var(--space-xl) var(--space-md);
    }

    .cta-icon {
        font-size: 2rem;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .cta p {
        font-size: 1rem;
    }

    /* Gallery */
    .gallery-carousel img {
        height: 220px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    /* Articles */
    .articles-grid {
        grid-template-columns: 1fr;
    }

    .article-card img {
        height: 180px;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card img {
        height: 200px;
    }

    /* Footer */
    .footer {
        padding: var(--space-xl) 0 var(--space-lg);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-col:nth-child(4) {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-brand h2 {
        font-size: 1.5rem;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-col ul {
        padding: 0;
    }

    .footer-contacts-list {
        align-items: center;
    }

    .footer-contact-item {
        text-align: center;
        align-items: center;
    }

    /* Modal */
    .modal {
        padding: 24px 20px;
    }

    .modal-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .modal-form input {
        padding: 12px 14px;
        font-size: 16px;
    }

    .modal-close {
        font-size: 28px;
        top: 10px;
        right: 12px;
    }
}

/* Маленькие мобильные (до 480px) */
@media (max-width: 480px) {
    :root {
        --radius-md: 16px;
        --radius-lg: 20px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .nav a {
        font-size: 1.15rem;
    }

    .hero {
        padding-top: 180px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .department-card {
        padding: 16px 12px;
    }

    .department-icon {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .doctor-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .specialist-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.3rem;
    }

    .gallery-carousel img {
        height: 180px;
    }

    .map-container {
        height: 200px;
    }

    .header-phone-link {
        font-size: 11px;
    }

    .btn-primary {
        padding: 7px 12px;
        font-size: 0.75rem;
    }

    .header-phones {
        flex-direction: column;
        gap: 4px;
    }

    .header-phone-item {
        flex-direction: row;
        gap: 8px;
        align-items: center;
    }

    .header-phone-label {
        font-size: 11px;
    }
}

/* Утилиты для мобильных */
@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }

    .text-center-mobile {
        text-align: center;
    }

    .full-width-mobile {
        width: 100%;
    }
}

/* Временно скрываем секцию "Статьи" — пока нет контента */
#articles {
    display: none;
}

/* Идеальное отображение SVG внутри кнопок соцсетей */
.social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor; /* Наследует белый цвет текста */
  display: block;
}