:root {
    /* Цвета из макета */
    --primary-blue: #3B63F6; /* Синий цвет кнопок и акцентов */
    --primary-blue-hover: #2a4ac8;
    --text-dark: #0F172A; /* Темно-синий для заголовков */
    --text-gray: #64748B;
    --bg-light: #F8FAFC; /* Легкий фон всей секции */
    --white: #FFFFFF;
    --green-dot: #22C55E;
    
    /* Тени и радиусы */
    --shadow-badge: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-btn: 0 4px 14px rgba(59, 99, 246, 0.3);
    --radius-full: 50px;
    --radius-box: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth; 
    scroll-padding-top: 100px; 
}
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-gray);
    background-color: var(--bg-light);
    line-height: 1.6;
}

a { text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= HEADER ================= */
.main-header {
    background: transparent;
    padding: 20px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Логотип */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-img {
    width: 60px; /* Можешь менять размер логотипа здесь */
    height: 60px;
    object-fit: cover; /* Гарантирует, что фото не сплющится, если оно не квадратное */
    border-radius: 8px; /* Оставляет легкое скругление углов. Если нужен круг, напиши 50% */
}
.logo-text { display: flex; flex-direction: column; }
.clinic-name { font-weight: 700; color: var(--text-dark); font-size: 16px; }
.doctor-name { font-size: 11px; letter-spacing: 1px; color: var(--text-gray); text-transform: uppercase; }

/* Навигация */
.main-nav ul { display: flex; gap: 32px; }
.main-nav a { color: var(--text-gray); font-weight: 500; transition: 0.3s; }
.main-nav a:hover { color: var(--primary-blue); }

/* Правая часть шапки */
.header-actions { display: flex; align-items: center; gap: 24px; }
.lang-switcher button {
    background: none; border: none; font-weight: 600; font-size: 14px;
    color: var(--text-gray); cursor: pointer; margin-right: 8px;
}
.lang-switcher button.active, .lang-switcher button:hover { color: var(--primary-blue); }

/* ================= HERO SECTION ================= */
.hero { padding: 40px 0; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Левая колонка */
.rating-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px; font-weight: 600; color: var(--primary-blue);
    box-shadow: var(--shadow-badge); margin-bottom: 30px;
}

.hero-title {
    font-family: 'Playfair Display', serif; /* Элегантный шрифт с засечками как на макете */
    font-size: 56px; line-height: 1.1; color: var(--text-dark); margin-bottom: 24px;
}
.hero-title .text-blue { color: var(--primary-blue); }

.hero-desc { font-size: 18px; margin-bottom: 40px; max-width: 90%; }

/* Кнопки */
.hero-buttons { display: flex; gap: 16px; margin-bottom: 40px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius-full);
    font-weight: 600; font-size: 15px; transition: 0.3s; cursor: pointer;
}
.btn-primary {
    background: var(--primary-blue); color: var(--white); border: 2px solid var(--primary-blue);
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--primary-blue-hover); border-color: var(--primary-blue-hover); transform: translateY(-2px); }
.btn-outline {
    background: transparent; color: var(--text-dark); border: 2px solid #E2E8F0;
}
.btn-outline:hover { border-color: var(--primary-blue); color: var(--primary-blue); }

/* Преимущества с галочками */
.hero-features { display: flex; gap: 20px; font-size: 14px; font-weight: 500; color: var(--text-gray); }

/* Правая колонка с изображением */
.hero-image-wrapper { position: relative; }
.hero-main-img {
    width: 100%;
    height: 550px; /* Фиксированная высота для соответствия макету */
    object-fit: cover; /* Картинка заполнит блок без искажений пропорций */
    border-radius: var(--radius-box); /* Скругление углов, как на макете */
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Легкая тень для самой фотографии */
}

/* Плавающие плашки */
.floating-badge {
    position: absolute; background: var(--white);
    padding: 16px 20px; border-radius: 16px;
    box-shadow: var(--shadow-badge);
    display: flex; align-items: flex-start; gap: 12px;
}
.badge-top-left { top: 40px; left: -40px; }
.badge-bottom-right { bottom: 40px; right: -40px; }

.status-dot { width: 10px; height: 10px; background: var(--green-dot); border-radius: 50%; margin-top: 4px; }
.badge-text strong { display: block; font-size: 14px; color: var(--text-dark); margin-bottom: 2px; }
.badge-text span { font-size: 12px; color: var(--text-gray); }

/* ================= АДАПТИВНОСТЬ ================= */

/* Планшеты (до 992px) */
@media (max-width: 992px) {
     /* --- ИСПРАВЛЕННАЯ ШАПКА --- */
    .main-header .container {
        flex-wrap: wrap; /* Разрешаем элементам переноситься */
        justify-content: space-between; /* Логотип налево, кнопка направо */
        row-gap: 20px; /* Отступ между строками */
    }
    
    /* Переносим меню навигации вниз на всю ширину */
    .main-nav {
        order: 3; /* Заставляет меню спуститься под лого и кнопки */
        width: 100%; 
        display: flex;
        justify-content: center; /* Центрируем ссылки */
    }
    
    .main-nav ul {
        gap: 30px; /* Красивые отступы между ссылками */
    }
    
    .header-actions {
        gap: 15px;
    }

    /* --- СЕТКА ГЛАВНОГО ЭКРАНА (Остается как было) --- */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .hero-main-img {
        height: 450px;
    }
    
    .badge-top-left {
        left: -10px;
    }
    
    .badge-bottom-right {
        right: -10px;
    }

}

/* Мобильные телефоны (до 768px) */
@media (max-width: 768px) {
     /* Шапка */
    .main-header {
        padding: 15px 0;
    }
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Логотип по центру (иконка над текстом) */
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .logo-text {
        align-items: center;
    }
    .clinic-name {
        font-size: 15px;
    }
    
    /* Навигация (Горизонтальный скролл - свайп) */
    .main-nav {
        width: 100%;
        overflow-x: auto; /* Включаем горизонтальную прокрутку */
        -ms-overflow-style: none; /* Для IE и Edge */
        scrollbar-width: none; /* Для Firefox */
        padding: 5px 0;
    }
    .main-nav::-webkit-scrollbar {
        display: none; /* Прячем визуальный ползунок для красоты */
    }
    .main-nav ul {
        flex-wrap: nowrap; /* Запрещаем перенос слов на новую строку */
        justify-content: flex-start;
        gap: 20px;
        padding: 0 10px;
    }
    .main-nav a {
        font-size: 15px;
        white-space: nowrap; /* Текст пунктов меню не ломается */
    }
    
    /* Языки и кнопка */
    .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    .lang-switcher {
        display: flex;
        justify-content: center;
        gap: 20px; /* Равномерный отступ между языками */
    }
    .lang-switcher button {
        margin: 0;
        font-size: 15px;
    }
    .header-actions .btn {
        width: 100%;
        justify-content: center;
    }
    /* Главный экран */
    .hero {
        padding: 20px 0 40px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .rating-badge {
        margin: 0 auto 20px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-desc {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    /* Картинка и плашки на мобильных */
    .hero-main-img {
        height: 350px;
    }
    /* Картинка и плашки на мобильных */
    .hero-image-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .hero-main-img {
        height: 400px; /* Можно сделать чуть выше, так как плашек на ней больше нет */
    }
    
    /* Отменяем абсолютное позиционирование, чтобы плашки встали ПОД фото */
    .floating-badge {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        justify-content: center; /* Центрируем содержимое плашки */
        padding: 16px;
    }
    
    .badge-text strong {
        font-size: 14px;
    }
    .floating-badge {
        padding: 12px 15px;
    }
    
    /* Помещаем плашки внутрь картинки, чтобы они не обрезались экраном */
    .badge-top-left {
        top: 15px;
        left: 15px;
    }
    
    .badge-bottom-right {
        bottom: 15px;
        right: 15px;
    }
    
    .badge-text strong {
        font-size: 13px;
    }
}
/* ================= STATS & FEATURES SECTION ================= */
.stats-section {
    padding: 20px 0 80px;
    background-color: var(--bg-light); /* Сохраняем фон как в Hero, чтобы смотрелось цельно */
}

/* Сетка карточек (Верхний ряд) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04); /* Мягкая тень как на макете */
    transition: transform 0.3s ease;
}

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

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    background-color: #EEF2FF; /* Светло-синий фон под иконкой */
    color: var(--primary-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 20px;
}

.stat-number {
    font-family: 'Playfair Display', serif; /* Шрифт с засечками из макета */
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1;
}

/* Стилизация плюсика и текста "min" */
.stat-number .plus {
    font-size: 24px;
    vertical-align: super;
    color: var(--primary-blue);
}

.stat-number .text-sm {
    font-size: 22px;
    font-weight: 600;
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

/* Сетка преимуществ (Нижний ряд) */
.features-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 40px;
    border-top: 1px solid #E2E8F0; /* Тонкая линия разделения */
    flex-wrap: wrap;
    gap: 30px;
}

.feat-box {
    text-align: center;
    flex: 1;
    min-width: 140px;
}

.feat-icon {
    font-size: 28px;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.feat-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 6px;
}

.feat-desc {
    font-size: 13px;
    color: var(--text-gray);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr; /* По 2 карточки в ряд на планшете */
    }
    .features-bottom {
        justify-content: center;
    }
}

/* ================= ABOUT DOCTOR SECTION ================= */
.about-section {
    padding: 60px 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Левая часть: Изображение и Плашка */
.about-image-wrapper {
    position: relative;
    border-radius: 30px;
}

.about-img {
    width: 100%;
    height: auto;
    min-height: 500px;
    object-fit: cover;
    border-radius: 30px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 30px 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(59, 99, 246, 0.4);
}

.exp-number {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 5px;
}

.exp-number .plus {
    font-size: 28px;
    vertical-align: super;
}

.exp-text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

/* Правая часть: Контент */
.section-subtitle {
    display: inline-block;
    background-color: #EEF2FF;
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-desc {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.7;
}

/* Список-таймлайн с галочками */
.about-timeline {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-timeline li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.check-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background-color: #EEF2FF;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.check-icon svg {
    width: 12px;
    height: 12px;
}

.timeline-content {
    color: var(--text-gray);
    font-size: 15px;
    line-height: 1.5;
}

.timeline-content strong {
    color: var(--text-dark);
    margin-right: 8px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .experience-badge {
        left: 20px;
        bottom: -20px;
        padding: 20px 30px;
    }
}
/* ================= SERVICES SECTION ================= */
.services-section {
    padding: 60px 0;
    background-color: var(--bg-light); /* Светло-серый фон для контраста с белыми секциями */
}

/* Шапка секции */
.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.services-header .section-title .text-blue {
    color: var(--primary-blue);
}

.services-desc {
    font-size: 18px;
    color: var(--text-gray);
    margin-top: 15px;
}

/* Сетка карточек */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Меняем на 3 ровные колонки */
    gap: 30px; /* Отступы между карточками (можешь оставить свои) */
    align-items: stretch; /* Чтобы все карточки были одинаковой высоты */
}
/* Сама карточка (сделана как ссылка, поэтому flex для правильного расположения текста) */
.service-card {
    background: var(--white);
    border-radius: var(--radius-box);
    padding: 40px 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-badge);
    border-color: #EEF2FF;
}

/* Иконка */
.service-icon {
    width: 64px;
    height: 64px;
    background-color: #EEF2FF;
    color: var(--primary-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

/* Тексты внутри карточки */
.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
}

.service-card p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
    flex-grow: 1; /* Прижимает кнопку "Подробнее" к низу, если тексты разной длины */
}

/* Ссылка "Подробнее" */
.service-link {
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.service-card:hover .service-link {
    gap: 10px; /* При наведении стрелочка немного отъезжает вправо */
}

/* Адаптивность */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr); /* Будет 3 ровных ряда по 2 карточки */
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr; /* Карточки выстроятся ровно друг под другом */
        gap: 20px;
    }
}

/* ================= PROCESS SECTION ================= */
.process-section {
    padding: 60px 0;
    background-color: var(--white); /* Белый фон для чередования с серым */
}

.process-header {
    margin-bottom: 60px;
}

.process-header .section-title .text-blue {
    color: var(--primary-blue);
}

.process-list {
    border-top: 1px solid #E2E8F0; /* Верхняя линия списка */
}

/* Строка этапа */
.process-item {
    display: grid;
    grid-template-columns: 80px 1fr 1.5fr; /* Пропорции как на скриншоте: цифра, заголовок, текст */
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid #E2E8F0; /* Тонкая линия между пунктами */
    align-items: start;
    transition: var(--transition);
}

.process-item:hover {
    background-color: #F8FAFC; /* Легкое подсвечивание при наведении */
    /* Отрицательный margin/padding чтобы фон выходил за края текста, но не ломал сетку */
    margin: 0 -20px;
    padding: 40px 20px;
}

/* Номер этапа */
.process-num {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-blue); /* Синий акцент */
}

/* Заголовок этапа */
.process-title {
    font-family: 'Playfair Display', serif; /* Шрифт с засечками */
    font-size: 28px;
    color: var(--text-dark);
    line-height: 1.3;
}

/* Описание этапа */
.process-desc {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Адаптивность для планшетов и телефонов */
@media (max-width: 992px) {
    .process-item {
        grid-template-columns: 60px 1fr; /* Текст переносится под заголовок */
        gap: 20px;
    }
    .process-desc {
        grid-column: 2 / -1; /* Описание занимает всю ширину под заголовком */
    }
}

@media (max-width: 600px) {
    .process-item {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .process-num {
        margin-bottom: 5px;
    }
    .process-desc {
        grid-column: 1 / -1;
    }
}

/* ================= RESULTS SECTION ================= */
.results-section {
    padding: 60px 0;
    background-color: var(--bg-light); 
}

.results-header {
    text-align: center;
    margin-bottom: 50px;
}

.results-desc {
    color: var(--text-gray);
    margin-top: 15px;
    font-size: 18px;
}

/* Сетка портфолио */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px;
    margin-bottom: 50px;
}

.hidden-result {
    display: none !important;
}

/* Карточка результата (Только фото) */
.result-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

/* Изображение и плашка */
.result-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3; /* Задает идеальные пропорции для фото */
    background-color: #E2E8F0; 
}

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

.badge-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.6);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

/* Кнопка "Смотреть все" */
.results-action {
    text-align: center;
}

.btn-outline-dark {
    background: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-dark:hover {
    background: var(--text-dark);
    color: var(--white);
}

/* Адаптивность */
@media (max-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}

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

/* ================= REVIEWS CAROUSEL SECTION ================= */
.reviews-section {
    padding: 60px 0;
    background-color: var(--white);
    overflow: hidden; /* Чтобы тени кнопок не создавали горизонтальный скролл */
}

.reviews-header {
    text-align: center;
    margin-bottom: 50px;
}

/* Обертка для кнопок и самого слайдера */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Контейнер, который скрывает все, что выходит за рамки */
.carousel-container {
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    padding: 10px 0; /* Место для тени карточек */
}

/* Трек, который будет двигаться влево/вправо */
.carousel-track {
    display: flex;
    gap: 24px; /* Расстояние между фото */
    transition: transform 0.5s ease-in-out;
}

/* Сама картинка-отзыв */
.carousel-item {
    /* На компьютерах показываем 3 карточки одновременно */
    flex: 0 0 calc((100% - 48px) / 3); 
    aspect-ratio: 4 / 5; /* Пропорции Инстаграма */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Кнопки управления */
.carousel-btn {
    position: absolute;
    z-index: 10;
    background: var(--white);
    border: 1px solid #E2E8F0;
    color: var(--primary-blue);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.carousel-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

/* Позиционирование кнопок по краям (выходят за рамки контейнера) */
.prev-btn { left: -25px; }
.next-btn { right: -25px; }

/* Адаптивность */
@media (max-width: 992px) {
    .carousel-item {
        /* На планшетах показываем 2 карточки */
        flex: 0 0 calc((100% - 24px) / 2);
    }
    .prev-btn { left: -10px; }
    .next-btn { right: -10px; }
}

@media (max-width: 600px) {
    .carousel-item {
        /* На телефонах показываем 1 карточку */
        flex: 0 0 100%;
    }
    /* Сдвигаем кнопки внутрь на мобильных */
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }
}

/* ================= CONTACT CTA SECTION ================= */
.contact-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.contact-box {
    background: linear-gradient(135deg, var(--primary-blue), #2a4ac8);
    border-radius: 30px;
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    box-shadow: 0 20px 40px rgba(59, 99, 246, 0.2);
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 38px;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Стили для кнопок в блоке контакта */
.btn-whatsapp, .btn-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
}

.btn-whatsapp {
    background-color: #25D366; /* Фирменный цвет WhatsApp */
    color: var(--white);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #1ebe57;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(37, 211, 102, 0.4);
}

.btn-call {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-call:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-box {
        padding: 40px 20px;
    }
    .contact-title {
        font-size: 30px;
    }
    .btn-whatsapp, .btn-call {
        width: 100%;
        justify-content: center;
    }
}

/* ================= FOOTER SECTION ================= */
.main-footer {
    background-color: var(--text-dark); /* Темно-синий фон */
    color: #94A3B8; /* Светло-серый текст */
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 2fr; /* Пропорции колонок */
    gap: 40px;
    margin-bottom: 60px;
}

/* Лого и описание */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .clinic-name.text-white {
    color: var(--white);
    font-size: 18px;
    letter-spacing: 1px;
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Социальные сети */
.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-blue);
    transform: translateY(-3px);
}

/* Заголовки колонок */
.footer-title {
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ссылки навигации и соглашений */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #94A3B8;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-blue);
    padding-left: 5px; /* Эффект смещения при наведении */
}

/* Адрес и Карта */
.footer-address {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.footer-map iframe {
    border-radius: 12px;
    background-color: #1E293B; /* Цвет заглушки, пока грузится карта */
}

/* Копирайт */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
}

.footer-bottom p {
    color: #64748B;
}

/* Адаптивность футера */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 50px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links a:hover {
        padding-left: 0;
        color: var(--primary-blue);
    }
}

/* ================= CONSENT MODAL (ОКНО СОГЛАСИЯ) ================= */
.consent-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.4); /* Сделал затемнение чуть легче */
    backdrop-filter: blur(2px); 
    display: flex;
    align-items: flex-end; /* Прижимаем к низу */
    justify-content: flex-start; /* Прижимаем к левому краю */
    padding: 30px; /* Отступы от краев экрана (для ПК) */
    z-index: 9999;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.consent-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.consent-modal {
    background: var(--white);
    border-radius: var(--radius-box);
    padding: 30px;
    max-width: 400px; /* Сделали карточку чуть компактнее */
    width: 100%;
    text-align: left; /* Выравнивание текста по левому краю */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    
    transform: translateY(30px) scale(0.95);
    transition: transform 0.4s ease;
}

.consent-modal-overlay.show .consent-modal {
    transform: translateY(0) scale(1);
}

.consent-modal h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.consent-modal p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.5;
}

.consent-modal a {
    color: var(--primary-blue);
    font-weight: 500;
    text-decoration: underline;
    transition: var(--transition);
}

.consent-modal a:hover {
    color: var(--primary-blue-hover);
}

.consent-buttons .btn {
    width: 100%;
    justify-content: center;
}

/* ================= АДАПТИВНОСТЬ МОДАЛЬНОГО ОКНА ================= */
@media (max-width: 768px) {
    .consent-modal-overlay {
        padding: 15px; /* Меньше отступов на телефоне */
    }
    
    .consent-modal {
        max-width: 100%; /* На телефоне растягиваем на всю ширину */
        padding: 24px 20px;
        text-align: center; /* На телефоне текст лучше смотрится по центру */
    }
}