/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --primary-red: #e53e3e;
    --primary-red-dark: #c53030;
    --primary-red-light: #fef5f5;
    --primary-blue: #2563eb;
    --primary-blue-dark: #1e40af;
    --primary-blue-light: #eef1f7;
    --text-dark: #1e293b;
    --text-body: #334155;
    --text-muted: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gray: #f1f5f9;
    --border-color: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* ===== БАЗА ===== */
html {
    scroll-behavior: smooth;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #2d3748;
    line-height: 1.6;
    background-color: #e8edf3;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== КАСТОМНЫЙ СКРОЛЛБАР ===== */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #e8edf3;
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e53e3e, #2b6cb0);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c53030;
}

/* ===== HEADER ===== */
.header {
    background: transparent;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 24px;
}
.header-container .nav {
    background: rgba(241, 240, 255, 0.808);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(241, 240, 255, 0.808);
    border-radius: 24px 24px 0 0;
    padding: 20px 30px 18px 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}

/*ДОБАВЛЕНО*/
.logo-img {
    height: 78px;
    width: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon {
    position: relative;
    width: 48px;
    height: 48px;
    background: #e53e3e;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon .fa-heart {
    color: white;
    font-size: 24px;
}

.logo-icon .fa-plus {
    position: absolute;
    bottom: 4px;
    right: 4px;
    color: white;
    font-size: 14px;
    background: #c53030;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 25px;
    font-weight: 700;
    color: #e53e3e;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 14px;
    color: var(--primary-blue-dark);
    font-weight: 500;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #e53e3e;
    transition: width 0.3s ease;
    margin-top: 2px;
}
.nav-menu a:hover::after {
    width: 100%;
}
.nav-menu a:hover {
    color: #e53e3e;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 24px;
}

.phone-number {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    transition: color 0.3s ease;
}

.phone-number:hover {
    color: #e53e3e;
}

.phone-number i {
    color: #e53e3e;
    font-size: 14px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 22px;
    color: #2d3748;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 4px;
}
.theme-toggle:hover {
    transform: rotate(20deg);
}

/* ===== БЕГУЩАЯ СТРОКА ===== */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: #e53e3e;
    color: #fff;
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.ticker {
    display: flex;
    gap: 60px;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.btn-header {
    background: #e53e3e;
    color: white;
}
.btn-header:hover {
    background: #c53030;
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: white;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
}

.btn-outline {
    background: white;
    color: #2b6cb0;
    border: 2px solid #2b6cb0;
}
.btn-outline:hover {
    background: #2b6cb0;
    color: white;
    border-color: #2b6cb0;
}

.btn-large {
    padding: 20px 40px;
    font-size: 20px;
}

/* ===== HERO ===== */
.hero {
    padding: 0 0 80px;
    background: linear-gradient(135deg, #fff5f5 0%, #e8edf3 100%);
}

.hero-container {
    --hero-padding: 80px;
    background: white;
    border-radius: 0 0 50px 50px;
    padding: var(--hero-padding);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-image: url('../img/2.png');
    background-size: cover;
    background-position: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(229, 62, 62, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container > * {
    position: relative;
    z-index: 1;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-badge i {
    font-size: 15px;
}

.hero-title {
    font-size: 66px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #2d3748;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #e53e3e, #2b6cb0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 22px;
    color: #718096;
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.trust-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: #fef5f5;
    color: #e53e3e;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.badge:hover {
    background: #e53e3e;
    color: white;
    transform: translateY(-2px);
}

.badge i {
    font-size: 15px;
}

.hero-image {
    position: absolute;
    top: calc(-1 * var(--hero-padding));
    bottom: calc(-1 * var(--hero-padding));
    right: calc(-1 * var(--hero-padding));
    width: 50%;
    overflow: hidden;
    will-change: transform;
    filter: brightness(1.2);
    
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    
    clip-path: path('M 80 0 Q 120 150, 80 300 T 80 600 Q 120 750, 80 900 L 9999 900 L 9999 0 Z');
    
}

/* ===== STATS ===== */
.stats {
    padding: 60px 0;
    background: linear-gradient(135deg, #1a2a4a, #2c3e6e);
    color: #fff;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-number {
    font-size: 56px;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}
.stat-label {
    font-size: 22px;
    opacity: 0.8;
}

/* Стиль только для чисел с плюсом */
.stat-number.has-plus::after {
    content: "+";
    margin-left: 2px;
    font-size: inherit;   /* Наследует размер шрифта от родителя */
    font-weight: 700;
}

/* ===== ABOUT ===== */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-blue-light) 100%);
    transition: background 0.3s ease;
}

.about-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #2d3748;
    text-align: center;
    margin-bottom: 60px;
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-text {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.7;
}

.about-text strong {
    color: #2d3748;
    font-weight: 700;
}

.about-image {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ===== SERVICES (Bento Grid) ===== */
.services {
    padding: 100px 0;
    background: var(--bg-white);
    position: relative;
}

.section-header { text-align: center; margin-bottom: 60px; }

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-red));
    margin: 0 auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 20px;
    margin-bottom: 40px;
}
.bento-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--primary-blue);
    display: flex;
    flex-direction: column;
}
.bento-card.large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: white;
    border: none;
    padding: 48px;
}
.bento-card.large .bento-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 80px;
    height: 80px;
}
.bento-card.large .bento-title { color: white; font-size: 32px; }
.bento-card.large .bento-text { color: rgba(255, 255, 255, 0.9); font-size: 17px; }
.bento-card.large .bento-link { color: white; }

.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.bento-icon {
    width: 72px;
    height: 72px;
    background: var(--primary-red-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-size: 36px;
    margin-bottom: 20px;
}
.bento-title {
    font-size: 25px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}
.bento-text {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}
.bento-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: gap 0.3s;
}
.bento-link:hover { gap: 12px; }

.services-footer { text-align: center; }
.services-footer .btn {
    padding: 14px 40px;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: white;
    font-weight: 600;
}
.services-footer .btn:hover { background: linear-gradient(135deg, var(--primary-red), var(--primary-blue)); 
    border: 2px solid linear-gradient(135deg, var(--primary-red), var(--primary-blue)); color: white; 
}


/* ===== DOCTORS ===== */
.doctors {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-blue-light) 100%);
    position: relative;
    overflow: hidden;
}
.doctors::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.doctors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}
.doctor-card {
    background: white;
    border-radius: 25px;
    padding: 0;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
}
.doctor-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(229, 62, 62, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-red-dark);
}

.doctor-card:hover::after { opacity: 1; }
.doctor-card:hover .doctor-photo img { transform: scale(1.05); }


.doctor-photo {
    width: 100%;
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}



.doctor-info {
    padding: 24px 30px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.doctor-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    line-height: 1.3;
}
.doctor-position {
    font-size: 18px;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 8px;
}
.doctor-experience { 
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px; 
}
.btn-appointment {
    margin-top: auto;
    background: transparent;
    color: var(--primary-red);
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    text-decoration: none;
}
.btn-appointment i { font-size: 13px; transition: transform 0.3s ease; }
.btn-appointment:hover { color: var(--primary-red-dark); }
.btn-appointment:hover i { transform: translateX(4px); }

/* ===== ЗАГЛУШКА ДЛЯ ФОТО ВРАЧА ===== */
.doctor-photo-wrapper {
    position: relative;
    width: 100%;
    height: 280px; /* Высота должна совпадать с .doctor-photo в оригинале */
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f1f5f9; /* Светло-серый фон заглушки */
}

/* Стили для самой иконки-заглушки */
.doctor-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Иконка лежит под картинкой, но если картинки нет, её видно */
}

.doctor-placeholder i {
    font-size: 80px;
    color: #78a5db; /* Цвет иконки (светло-серый) */
    opacity: 0.7;
}

/* Стили для изображения */
.doctor-photo-wrapper img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2; /* Картинка лежит поверх иконки */
    transition: transform 0.5s ease;
}

/* При наведении на карточку увеличиваем только картинку, если она есть */
.doctor-card:hover .doctor-photo-wrapper img {
    transform: scale(1.05);
}


/* ===== EQUIPMENT (SLIDER) ===== */
.equipment {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a2a4a 0%, #2c3e6e 100%);
}

.equipment .section-title,
.equipment .section-subtitle {
    color: #ffffff;
}

.section-subtitle {
    font-size: 16px;
    margin-top: 16px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.slider-container {
    position: relative;
    max-width: 1400px;
    margin: 50px auto 0;
}

.slider {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transform: scale(0.95);
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
}

.slide-image {
    height: 550px;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.slide-title {
    font-size: 36px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 24px;
    line-height: 1.3;
}

.slide-description {
    font-size: 18px;
    color: #718096;
    line-height: 1.7;
    margin-bottom: 28px;
}

.slide-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.feature-tag {
    padding: 10px 20px;
    background: #fef5f5;
    color: #e53e3e;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #2d3748;
    transition: all 0.3s ease;
    z-index: 10;
}

.slider-btn:hover {
    background: #e53e3e;
    color: white;
    transform: translateY(-50%) scale(1.05);
}

.slider-btn-prev {
    left: -28px;
}

.slider-btn-next {
    right: -28px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}
.dot.active {
    background: #e53e3e;
    width: 32px;
    border-radius: 6px;
}

/* ===== FAQ ===== */
.faq {
    padding: 80px 0;
    background: #ffffff;
    transition: background 0.3s ease;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f7fafc;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-item.active {
    border-color: #2563eb;
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: inherit;
    text-align: left;
}
.faq-question:hover {
    background: #edf2f7;
}
.faq-question i {
    transition: transform 0.3s ease;
    color: #e53e3e;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 24px;
    color: #4a5568;
    line-height: 1.7;
}
.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}
.faq-answer a {
    color: #e53e3e;
    text-decoration: none;
}

/* ===== CONTACTS ===== */
.contacts {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-blue-light) 100%);
    transition: background 0.3s ease;
}

.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contacts-info {
    padding: 40px;
}

.contacts-title {
    font-size: 42px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 40px;
}

.contact-item {
    margin-bottom: 24px;
}

.contact-phone {
    font-size: 26px;
    font-weight: 700;
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-phone:hover {
    color: #e53e3e;
}

.contact-address,
.contact-hours,
.contact-email {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
}

.contact-email {
    color: #e53e3e;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-email:hover {
    color: #c53030;
}

.contacts-map {
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
}

.contacts-map iframe {
    display: block;
    width: 100%;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--text-dark);
    padding: 50px 0;
    color: white;
}
.footer-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
}
.footer-logo { display: flex; align-items: center; gap: 4px; }
.footer-logo .logo-icon { width: 40px; height: 40px; }
.footer-logo .logo-icon .fa-heart { font-size: 20px; }
.footer-logo .logo-icon .fa-plus { font-size: 12px; width: 18px; height: 18px; }
.footer-logo .logo-title { font-size: 18px; color: white; }
.footer-logo .logo-subtitle { font-size: 10px; color: rgba(255, 255, 255, 0.7); }
.footer-info { text-align: center; }
.footer-license, .footer-ogrn {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
}
.footer-links { display: flex; justify-content: center; gap: 24px; margin-top: 12px; }
.footer-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s ease;
}
.footer-link:hover { color: var(--primary-red); }
.footer-social { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.social-link {
    width: 48px;
    height: 48px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.social-link:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

/* ===== FLOATING BUTTON ===== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff;
    padding: 16px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
.floating-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(229, 62, 62, 0.5);
}

/* ===== КНОПКА "НАВЕРХ" ===== */
.scroll-top {
    position: fixed;
    bottom: 16px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 998;
}
.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top:hover {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-blue));
    transform: translateY(-3px) scale(1.05);
}

/* ===== МОДАЛЬНОЕ ОКНО ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    position: relative;
    background: #fff;
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: #4a5568;
    cursor: pointer;
    transition: color 0.3s ease;
}
.modal-close:hover {
    color: #e53e3e;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 24px;
}

.modal-form .form-group {
    margin-bottom: 20px;
}
.modal-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2d3748;
}
.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.3s ease;
    background: #f7fafc;
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: #e53e3e;
}
.modal-form .btn {
    width: 100%;
    justify-content: center;
}

/* ===== АНИМАЦИИ ПРИ СКРОЛЛЕ (fade-up) ===== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== АНИМАЦИИ ПРИ СКРОЛЛЕ (fade-in) ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----- Общие настройки для таблиц ----- */
.schedule,
.prices {
    padding: 80px 0;
    transition: background 0.3s ease;
}

.schedule {
    background: var(--bg-light);
}

.prices {
    background: var(--bg-white);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    background: var(--bg-white);
    padding: 4px; /* чтобы тень не обрезалась */
}

/* ----- Стили самих таблиц ----- */
.schedule-table, .prices-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px; /* расстояние между строками-карточками */
    background: transparent;
    font-size: 18px;
}

/* Заголовок — sticky и градиентный фон */
.schedule-table thead th,
.prices-table thead th {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-red-dark));
    color: #fff;
    padding: 16px 20px;
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    border: none;
}

/* Первый и последний th — скругления */
.schedule-table thead th:first-child,
.prices-table thead th:first-child {
    border-radius: 16px 0 0 16px;
}
.schedule-table thead th:last-child,
.prices-table thead th:last-child {
    border-radius: 0 16px 16px 0;
}

/*Строки как карточки*/
.schedule-table tbody tr,
.prices-table tbody tr {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    cursor: default;
    /* анимация появления */
    opacity: 0;
    transform: translateY(20px);
    animation: tableFadeUp 0.6s ease forwards;
}

/* Задержка для каждой строки */
.schedule-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.schedule-table tbody tr:nth-child(2) { animation-delay: 0.10s; }
.schedule-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.schedule-table tbody tr:nth-child(4) { animation-delay: 0.20s; }
.schedule-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.schedule-table tbody tr:nth-child(6) { animation-delay: 0.30s; }

.prices-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.prices-table tbody tr:nth-child(2) { animation-delay: 0.10s; }
.prices-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.prices-table tbody tr:nth-child(4) { animation-delay: 0.20s; }
.prices-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.prices-table tbody tr:nth-child(6) { animation-delay: 0.30s; }
.prices-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.prices-table tbody tr:nth-child(8) { animation-delay: 0.40s; }
.prices-table tbody tr:nth-child(9) { animation-delay: 0.45s; }

@keyframes tableFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover-эффект */
.schedule-table tbody tr:hover,
.prices-table tbody tr:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Ячейки */
.schedule-table td,
.prices-table td {
    padding: 16px 20px;
    border: none;
    background: transparent;
    vertical-align: middle;
}

/* Первая и последняя ячейки — скругления */
.schedule-table td:first-child,
.prices-table td:first-child {
    border-radius: 16px 0 0 16px;
}
.schedule-table td:last-child,
.prices-table td:last-child {
    border-radius: 0 16px 16px 0;
}

/*Стоимость — акцент*/
.schedule-table td:last-child,
.prices-table td:last-child {
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}

.schedule-table td:last-child {
    color: var(--primary-red);
}

.prices-table td:last-child {
    color: var(--primary-blue);
}

/* ===== APPOINTMENT (ЗАПИСЬ НА ПРИЕМ) ===== */
.appointment {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #eaf0f8 100%);
    transition: background 0.3s ease;
}

.appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.appointment-info {
    padding: 40px;
}

.appointment-title {
    font-size: 42px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 24px;
}

.appointment-text {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 30px;
}

.appointment-phone {
    margin-bottom: 30px;
}

.appointment-phone-link {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-blue-dark);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.appointment-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.appointment-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    color: #4a5568;
}
.appointment-feature i {
    color: var(--primary-blue-dark);
    width: 20px;
    text-align: center;
}

.appointment-cta .btn {
    padding: 16px 32px;
    font-size: 16px;
}

.appointment-image {
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-radius: 24px;
}
.appointment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 350px;
}

/* ===== PRICES ===== */
.prices {
    padding: 80px 0;
    background: var(--bg-white);
    transition: background 0.3s ease;
}

.prices-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.prices-table thead {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
    color: #fff;
}

.prices-table th {
    padding: 16px 24px;
    text-align: left;
    font-weight: 600;
    font-size: 18px;
}

.prices-table td {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-body);
    font-size: 17px;
}

.prices-table tbody tr:hover {
    background: var(--bg-gray);
}

.prices-table tbody tr:last-child td {
    border-bottom: none;
}

.prices-note {
    margin-top: 30px;
    padding: 20px 24px;
    background: var(--bg-light);
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.prices-note i {
    color: var(--primary-blue);
    font-size: 20px;
    margin-top: 2px;
}

/* ===== ВЫДЕЛЕНИЕ СТРОКИ ПРИ ПЕРЕХОДЕ ПО ЯКОРЮ ===== */
.schedule-table tbody tr:target,
.schedule-table tbody tr.highlight-row {
    background: #fef5f5;
    border-left: 4px solid #e53e3e;
    box-shadow: inset 0 0 0 2px rgba(229, 62, 62, 0.2);
    transition: background 0.3s, box-shadow 0.3s;
}

/* Центрирование строки при переходе по якорю */
.schedule-table tbody tr {
    scroll-margin-top: 40vh; /* подберите значение под свой макет */
}

/* ===== LEGAL ===== */
.legal {
    padding: 80px 0;
    background: var(--bg-light);
    transition: background 0.3s ease;
}

.legal-grid {
    max-width: 900px;
    margin: 0 auto;
}

.legal-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-list li {
    background: white;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
}

.legal-list li:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary-red);
}

.legal-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.legal-list a i {
    color: var(--primary-red);
    font-size: 20px;
    flex-shrink: 0;
}

.legal-list a:hover {
    color: var(--primary-blue);
}

.legal-list a:hover i {
    color: var(--primary-blue);
}

/* ===== БУРГЕР-МЕНЮ ===== */
.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.3s;
}
.burger:hover { background: rgba(229, 62, 62, 0.1); }
.burger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2d3748;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== КНОПКА "ЗАПИСАТЬСЯ" В БУРГЕР-МЕНЮ ===== */

/* На десктопе — скрыта */
.nav-cta {
    display: none;
}

/* Стили для кнопки внутри меню */
.nav-cta a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    color: #fff !important;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px !important;
    text-align: center;
    box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3);
    transition: all 0.3s ease;
    border-bottom: none !important;
}
.nav-cta a::after { display: none !important; }
.nav-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 62, 62, 0.4);
    background: linear-gradient(135deg, #c53030, #9b2c2c);
}
.nav-cta a i {
    font-size: 16px;
}

/* ===== ВЫПАДАЮЩЕЕ МЕНЮ (DROPDOWN) ===== */

/* Контейнер пункта меню должен иметь position relative */
.nav-dropdown {
    position: relative;
}

/* Скрываем список по умолчанию */
.dropdown-list {
    position: absolute;
    top: 100%; /* Появляется сразу под ссылкой */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Центрируем и немного сдвигаем вниз для анимации */
    background: #ffffff;
    min-width: 220px;
    padding: 10px 0;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1002; /* Выше чем хедер */
    border: 1px solid var(--border-color);
}

/* Показываем список при наведении на родительский li */
.nav-dropdown:hover .dropdown-list {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Стили ссылок внутри выпадающего списка */
.dropdown-list li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-body);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap; /* Чтобы текст не переносился */
}

/* Эффект при наведении на пункт списка */
.dropdown-list li a:hover {
    background: var(--bg-light);
    color: var(--primary-red);
}

/* Особый стиль для пункта "Все специалисты" */
.dropdown-list li.dropdown-all a {
    border-top: 1px solid var(--border-color);
    margin-top: 5px;
    color: var(--primary-blue);
    font-weight: 600;
}

.dropdown-list li.dropdown-all a:hover {
    background: var(--primary-blue-light);
    color: var(--primary-blue-dark);
}

/* Стрелочка рядом с текстом "Специалисты" */
.dropdown-trigger i {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-trigger i {
    transform: rotate(180deg);
}

/* ===== БЛОКИ НА СТРАНИЦЕ ПРАВОВОЙ ИНФОРМАЦИИ ===== */
.legal-block {
    margin-bottom: 40px;
}

.legal-block-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.legal-block-title i {
    color: var(--primary-blue);
    font-size: 22px;
}

/* Карточка с информацией (для реквизитов, руководства и т.д.) */
.legal-info-card {
    background: white;
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.legal-info-row {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 15px;
}

.legal-info-row:last-child {
    border-bottom: none;
}

.legal-info-label {
    font-weight: 600;
    color: var(--text-muted);
}

.legal-info-value {
    color: var(--text-dark);
    font-weight: 500;
}

.legal-info-value a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-info-value a:hover {
    color: var(--primary-red);
}

/* Список прав пациентов */
.legal-rights-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.legal-rights-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: var(--text-body);
    padding: 10px 14px;
    background: var(--bg-light);
    border-radius: 10px;
    transition: all 0.2s;
}

.legal-rights-list li:hover {
    background: var(--primary-blue-light);
    transform: translateX(4px);
}

.legal-rights-list li i {
    color: var(--primary-blue);
    font-size: 14px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Блок обратной связи */
.legal-feedback {
    background: linear-gradient(135deg, var(--primary-blue-light), var(--bg-light));
    border-left: 4px solid var(--primary-blue);
}

.legal-feedback > p {
    font-size: 16px;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 20px;
}

.legal-feedback-contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.legal-feedback-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.legal-feedback-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.legal-feedback-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.legal-feedback-item strong {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-weight: 600;
}

.legal-feedback-item a,
.legal-feedback-item span {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.legal-feedback-item a:hover {
    color: var(--primary-red);
}

/* Ссылки внутри legal-list (для контролирующих органов) */
.legal-list li a small {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: 4px;
    line-height: 1.5;
}

.legal-list li a small a {
    color: var(--primary-blue);
    font-weight: 500;
}


/* ===== НАВИГАЦИЯ ПО РАЗДЕЛАМ ЦЕН (в секции Записи) ===== */
.appointment-nav {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: fit-content;
}

.appointment-nav-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color);
}

.appointment-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.appointment-nav-list a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-light);
    color: var(--text-body);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.appointment-nav-list a i {
    color: var(--primary-blue);
    width: 22px;
    text-align: center;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.appointment-nav-list a:hover {
    background: var(--primary-blue-light);
    color: var(--primary-blue-dark);
    border-color: var(--primary-blue);
    transform: translateX(6px);
}

.appointment-nav-list a:hover i {
    transform: scale(1.15);
    color: var(--primary-red);
}

@media (max-width: 480px) {
    .logo-img {
        height: 32px;
    }
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes modalFadeIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ===== АДАПТИВ 1440px ===== */
@media (max-width: 1440px) {
    .container { max-width: 1300px; }
    /* ===== ШАПКА ===== */
    .header-container { max-width: 1300px; }
    .header-container .nav {
        border-radius: 24px 24px 0 0;
        padding: 18px 22px 16px 22px;
        gap: 20px;
    }
    .logo-img { height: 60px; }
    .logo-title { font-size: 20px; }
    .logo-subtitle { font-size: 12px; }
    .nav-menu { gap: 14px; }
    .nav-menu a { font-size: 14px; }
    .phone-number { font-size: 16px; }
    .btn { padding: 12px 24px; font-size: 15px; }
    .btn-large {
        padding: 16px 32px;
        font-size: 16px;
    }

    /* ===== HERO ===== */
    .hero-container { --hero-padding: 60px; border-radius: 0 0 40px 40px; }
    .hero-badge { font-size: 14px; }
    .badge{ font-size: 12px; }
    .hero-title { font-size: 50px; }
    .hero-subtitle { font-size: 17px; }

    /* ===== СТАТИСТИКА ===== */
    .stat-number { font-size: 48px; }
    .stat-label { font-size: 18px; }

    /* ===== ABOUT ===== */
    .about-title {
        font-size: 42px;
    }

    .about-text {
        font-size: 16px;
    }

    /* ===== УСЛУГИ ===== */
    .section-title { font-size: 40px; }
    .section-line { width: 60px; }
    .section-subtitle { font-size: 15px; }
    .bento-card { padding: 28px; }
    .bento-icon { width: 64px; height: 64px; font-size: 28px; }
    .bento-title { font-size: 22px; }
    .bento-text { font-size: 15px; }
    .bento-link { font-size: 15px; }

    /* ===== ДОКТОРА ===== */
    .doctor-card {
        border-radius: 20px;
        padding: 0;
    }

    .doctor-name { font-size: 20px; }

    .doctor-position {
        font-size: 15px;
    }

    .doctor-experience {
        font-size: 14px;
    }

    .btn-appointment {
        padding: 12px 0;
        border-radius: 8px;
        font-size: 17px;
        gap: 8px;
    }

    /* ===== СЛАЙДЕР ===== */
    .slide-title { font-size: 32px; }
    .section-subtitle {
        font-size: 16px;
    }

    .slider-container {
        max-width: 1100px;
    }

    .slide-description {
        font-size: 16px;
    }

    .feature-tag {
        font-size: 14px;
    }

    .slider-btn {
        font-size: 22px;
    }

    /* ===== FAQ ===== */
    .faq-question {
        font-size: 16px;
    }

    .contacts-title { font-size: 36px; }
    .contact-phone { font-size: 24px; }

    .contact-address,
    .contact-hours,
    .contact-email {
        font-size: 16px;
    }

    /* ===== FOOTER ===== */
    .footer-logo .logo-title { font-size: 18px; }
    .footer-logo .logo-subtitle { font-size: 10px; }

    /* ===== APPOINTMENT (ЗАПИСЬ НА ПРИЕМ) ===== */
    .appointment-title { font-size: 36px; }
    .appointment-text { font-size: 16px; }
    .appointment-phone-link { font-size: 24px; }
    .appointment-feature { font-size: 16px; }
}

/* ===== АДАПТИВ 1024px ===== */
@media (max-width: 1024px) {
    .header-container .nav { padding: 16px 24px; gap: 20px; }
    .logo-img { height: 54px; }
    .logo-title { font-size: 18px; }
    .nav-menu { gap: 12px; }
    .nav-menu a { font-size: 14px; }
    .phone-number { font-size: 15px; gap: 8px; }

    .hero-container { padding: 40px; border-radius: 0 0 30px 30px; }
    .hero-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .hero-image {
        position: relative;
        width: 100%;
        height: 380px;
        top: auto; bottom: auto; right: auto;
    }
    .hero-image img { clip-path: none; border-radius: 24px; }
    .hero-title { font-size: 44px; }
    .hero-subtitle { font-size: 17px; }

    .about-wrapper,
    .contacts-wrapper,
    .appointment-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .about-image, .appointment-image { order: -1; max-height: 400px; }

    /* Bento → 2 колонки */
    .services-bento { grid-template-columns: repeat(2, 1fr); }
    .bento-card.large { grid-column: span 2; grid-row: span 1; }

    .doctors-grid { grid-template-columns: repeat(2, 1fr); }

    .slide-image { height: 400px; }
    .slide-content { padding: 40px 30px; }
    .slide-title { font-size: 28px; }
    .slider-btn-prev { left: 10px; }
    .slider-btn-next { right: 10px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .footer-wrapper { grid-template-columns: 1fr; text-align: center; gap: 24px; }
    .footer-logo { justify-content: center; }
    .footer-social { justify-content: center; }
}

/* ===== АДАПТИВ 768px ===== */
@media (max-width: 768px) {
    /* Показываем бургер, скрываем меню */
    .burger { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 20px 24px;
        border-radius: 0 0 20px 20px;
        box-shadow: var(--shadow-md);
        gap: 0;
        margin-top: 10px;
    }
    .nav-menu.active { display: flex; }
    .nav-menu li { width: 100%; }
    .nav-menu a {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 16px;
    }
    .nav-menu li:last-child a { border-bottom: none; }

    .header-container .nav { padding: 14px 18px; gap: 12px; flex-wrap: nowrap; }
    .header-contacts { gap: 10px; }
    .phone-number { font-size: 14px; }
    .phone-number span { display: none; } /* оставляем только иконку */
    .btn-header { padding: 10px 18px; font-size: 13px; }

    .hero { padding: 0 0 40px; }
    .hero-container { padding: 28px 20px; border-radius: 0 0 24px 24px; }
    .hero-badge { padding: 10px 16px; font-size: 13px; }
    .hero-title { font-size: 34px; }
    .hero-subtitle { font-size: 15px; margin-bottom: 24px; }
    .hero-buttons { flex-direction: column; gap: 12px; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .trust-badges { gap: 8px; }
    .badge { padding: 10px 14px; font-size: 13px; }
    .hero-image { height: 280px; }

    .stats { padding: 40px 0; }
    .stat-number { font-size: 34px; }
    .stat-label { font-size: 15px; }

    .about, .services, .doctors, .equipment, .faq, .contacts, .appointment, .prices, .legal {
        padding: 60px 0;
    }
    .about-title, .contacts-title, .appointment-title { font-size: 30px; margin-bottom: 30px; }
    .section-title { font-size: 30px; }
    .section-subtitle { font-size: 15px; }

    /* Bento → 1 колонка */
    .services-bento { grid-template-columns: 1fr; }
    .bento-card.large { grid-column: span 1; padding: 32px; }
    .bento-card.large .bento-title { font-size: 26px; }

    .doctors-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }

    .slide { grid-template-columns: 1fr; }
    .slide-image { height: 260px; }
    .slide-content { padding: 28px 20px; }
    .slide-title { font-size: 22px; }
    .slide-description { font-size: 14px; }
    .slider-btn { width: 42px; height: 42px; font-size: 18px; }

    .faq-question { font-size: 16px; padding: 16px 18px; }
    .faq-answer { font-size: 14px; }

    .contacts-info { padding: 20px; }
    .contact-phone { font-size: 20px; }
    .contact-address, .contact-hours, .contact-email { font-size: 15px; }
    .contacts-map iframe { height: 320px; }

    .appointment-phone-link { font-size: 20px; }
    .appointment-feature { font-size: 15px; }

    /* Таблицы — горизонтальный скролл */
    .table-responsive { border-radius: 16px; }
    .schedule-table, .prices-table { font-size: 14px; }
    .schedule-table th, .prices-table th { padding: 12px 14px; font-size: 14px; }
    .schedule-table td, .prices-table td { padding: 12px 14px; font-size: 14px; }

    .footer { padding: 30px 0; }
    .footer-links { flex-wrap: wrap; gap: 14px; }

    .floating-btn {
        bottom: 16px; right: 16px;
        padding: 12px 18px; font-size: 13px;
    }
    .floating-btn span { display: none; } /* только иконка */
    .floating-btn { border-radius: 50%; width: 52px; height: 52px; padding: 0; justify-content: center; }
    .scroll-top { bottom: 80px; right: 16px; width: 44px; height: 44px; font-size: 18px; }
}

/* ===== АДАПТИВ 480px ===== */
@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .header-container { padding: 0 14px; }
    .header-container .nav { padding: 12px 14px; border-radius: 18px 18px 0 0; }
    .logo-img { height: 44px; }
    .logo-title { font-size: 16px; }
    .logo-subtitle { font-size: 10px; }
    .theme-toggle { font-size: 18px; }

    .hero-container { padding: 22px 16px; border-radius: 0 0 20px 20px; }
    .hero-title { font-size: 26px; }
    .hero-subtitle { font-size: 14px; }
    .hero-badge { padding: 8px 14px; font-size: 12px; }
    .badge { padding: 8px 12px; font-size: 12px; }
    .hero-image { height: 220px; }

    .stat-number { font-size: 28px; }
    .stat-label { font-size: 13px; }

    .about-title, .contacts-title, .appointment-title, .section-title { font-size: 24px; }

    .bento-card { padding: 22px; }
    .bento-icon { width: 54px; height: 54px; font-size: 24px; margin-bottom: 14px; }
    .bento-title { font-size: 19px; }
    .bento-text { font-size: 14px; }

    .doctor-photo { height: 260px; }
    .doctor-name { font-size: 18px; min-height: 44px; }
    .doctor-position { font-size: 14px; }
    .doctor-experience { font-size: 13px; }

    .slide-image { height: 200px; }
    .slide-content { padding: 22px 16px; }
    .slide-title { font-size: 19px; }
    .feature-tag { padding: 6px 12px; font-size: 11px; }

    .faq-question { font-size: 15px; padding: 14px 16px; }

    .contact-phone { font-size: 18px; }
    .contact-address, .contact-hours, .contact-email { font-size: 14px; }

    .schedule-table, .prices-table { font-size: 13px; }
    .schedule-table th, .prices-table th,
    .schedule-table td, .prices-table td { padding: 10px 12px; font-size: 13px; }

    .footer-logo .logo-title { font-size: 15px; }
    .social-link { width: 40px; height: 40px; font-size: 18px; }

    .modal-container { padding: 22px; border-radius: 18px; }
    .modal-title { font-size: 22px; }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ ===== */
@media (max-width: 360px) {
    .hero-title { font-size: 22px; }
    .logo-title { font-size: 14px; }
    .logo-subtitle { display: none; }
    .phone-number { display: none; }
    .btn-header { padding: 8px 14px; font-size: 12px; }
}

/* На мобильных — показываем кнопку в меню и скрываем в шапке */
@media (max-width: 768px) {
    .nav-cta {
        display: block;
        width: 100%;
        padding-top: 8px;
        margin-top: 8px;
        border-top: 1px solid var(--border-color);
    }

    /* Скрываем кнопку "Записаться" в шапке на мобильных,
       чтобы не дублировалась */
    .header-contacts .btn-header {
        display: none;
    }
}

/* На очень маленьких экранах — чуть меньше отступы */
@media (max-width: 480px) {
    .nav-cta a {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* === Адаптивность для мобильных (Бургер-меню) === */
@media (max-width: 768px) {
    /* На мобильных убираем абсолютное позиционирование, 
       чтобы список встраивался в общее меню */
    .dropdown-list {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
        border: none;
        padding: 0;
        min-width: auto;
        display: none; /* Скрыто по умолчанию в мобильном меню */
    }

    /* Показываем список, если открыто бургер-меню (класс active добавляется JS) 
       Или просто всегда показываем, если хотим видеть всех сразу */
    .nav-menu.active .nav-dropdown:hover .dropdown-list,
    .nav-menu.active .dropdown-list {
        display: block;
    }
    
    .dropdown-list li a {
        padding: 10px 20px 10px 30px; /* Больший отступ слева для вложенности */
        font-size: 14px;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    

    /* Убираем hover эффект родителя на мобильных, чтобы не мешал клику */
    .nav-dropdown:hover .dropdown-trigger i {
        transform: none;
    }
}

/* Адаптивность для навигации */
@media (max-width: 1024px) {
    .appointment-nav {
        margin-top: 30px; /* Отступ сверху на планшетах и ниже */
    }
}

@media (max-width: 768px) {
    .appointment-nav {
        padding: 20px;
    }
    .appointment-nav-title {
        font-size: 18px;
    }
    .appointment-nav-list a {
        padding: 12px 14px;
        font-size: 14px;
    }
}