@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;500&family=Roboto:wght@600&display=swap');
/* ==========================================
   1. ШРИФТЫ И ПЕРЕМЕННЫЕ (Из оригинала)
   ========================================== */
@font-face { font-family: 'Gillroy'; font-style: normal; font-weight: 300; src: url('https://rclinic.kz/wp-content/uploads/2026/04/gilroy-light_0.ttf') format('truetype'); }
@font-face { font-family: 'Gillroy'; font-style: normal; font-weight: 400; src: url('https://rclinic.kz/wp-content/uploads/2026/04/gilroy-medium_0.ttf') format('truetype'); }
@font-face { font-family: 'Gillroy'; font-style: normal; font-weight: 500; src: url('https://rclinic.kz/wp-content/uploads/2026/04/gilroy-regular_0.ttf') format('truetype'); }
@font-face { font-family: 'Gillroy'; font-style: normal; font-weight: 600; src: url('https://rclinic.kz/wp-content/uploads/2026/04/gilroy-semibold_0.ttf') format('truetype'); }
@font-face { font-family: 'Gillroy'; font-style: normal; font-weight: 700; src: url('https://rclinic.kz/wp-content/uploads/2026/04/gilroy-bold_0.ttf') format('truetype'); }

:root {
    --color-bg: #18234F;      
    --color-accent: #ADD1F9;   
    --color-btn-bg: #364870;   
    --color-white: #FFFFFF;
    --font-main: 'Gillroy', sans-serif;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-white);
    line-height: 1.5;
    overflow-x: hidden;
    font-size: 19px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 80%;
    max-width: 1440px;
    margin: 0 auto;
}

.description-container ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

/* ==========================================
   2. ШАПКА САЙТА
   ========================================== */
.site-header {
    background-color: var(--color-bg);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;;
}

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

.logo img {
    height: 70px; 
}

.main-nav li {
    position: relative;
    display: flex;
    flex-direction: column;
}

.main-nav ul {
    display: flex;
    gap: 35px;
}


.main-nav a {
    font-size: 19px;
    font-weight: 500;
    color: var(--color-white);
    transition: color 0.3s;
    padding-bottom: 5px;
}



.nav-line {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    pointer-events: none;
}

.main-nav a:hover + .nav-line,
.main-nav a.active + .nav-line {
    transform: scaleX(1);
}

.header-phone a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 600;
    color: var(--color-white);
    transition: color 0.3s;
}

.header-phone svg {
    width: 16px;
    height: 16px;
    fill: var(--color-white);
}

.header-phone a:hover, .header-phone a:hover svg {
    color: var(--color-accent);
    fill: var(--color-accent);
}

.menu-toggle { display: none; } 



/* ==========================================
   3. ГЛАВНЫЙ ЭКРАН (HERO)
   ========================================== */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background-color: #18234F;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #364870;
    color: #ADD1F9;
    font-family: var(--font-main);
    font-size: 19px;
    padding: 10px 20px;
    border-radius: 20px;
    margin-bottom: 25px;
}
.hero-badge svg { width: 16px; height: 16px; fill: #ADD1F9; }

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 62px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 20px;
}
.hero-title span { color: #ADD1F9; }

.hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: var(--color-white);
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;                 
    background-color: #ADD1F9; 
    color: #18234F;            
    font-family: var(--font-main);
    font-size: 19px;
    font-weight: 500;
    padding: 15px 20px;       
    border-radius: 20px;
    box-shadow: none;
    text-decoration: none;
    transform: scale(1);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.hero-btn svg {
    width: 16px;
    height: 16px;
    fill: #18234F;             
    transition: fill 0.3s ease;
    display: block;
}

.hero-btn:hover,
.hero-btn:focus {
    background-color: #ADD1F9;
    color: #FFFFFF;       
    transform: scale(1.03);   
}

.hero-btn:hover svg,
.hero-btn:focus svg {
    fill: #FFFFFF;             
}

.hero-media {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    position: relative;
    min-height: 450px;
}

.floating-badge {
    position: absolute;
    bottom: 30px;
    left: -60px; 
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.floating-icon { display: flex; align-items: center; }

.floating-text { display: flex; flex-direction: column; }
.floating-text strong {
    font-family: var(--font-main);
    font-size: 35px; 
    font-weight: 700;
    color: #18234F;
    line-height: 1;
}
.floating-text span {
    font-family: var(--font-main);
    font-size: 19px;
    color: #6C7C93;
    margin-top: 5px;
}

.pulse { animation: pulse 3s ease-in-out infinite; }
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.05); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 12px rgba(253, 246, 237, 0.2); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.05); }
}

@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content { align-items: center; margin: 0 auto; }
    .hero-desc { text-align: center; }
    .floating-badge { left: 20px; right: 20px; bottom: -30px; justify-content: center; }
}
@media (max-width: 768px) {
    .hero-title { font-size: 38px; }
}

/* ==========================================
   4. ОБЩИЕ СТИЛИ СЕКЦИЙ
   ========================================== */
.features, .doctors-section, .pricing, .target-audience, .children-pricing, .how-it-works, .contact-section, .reviews, .faq {
    padding: 100px 0;
}

.features { background-color: #FAF8F5; color: var(--color-bg); }
.pricing { background-color: #FFFFFF; color: var(--color-bg); }

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.section-title {
    font-size: 35px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-bg);
}

.section-subtitle {
    font-size: 19px;
    color: #6C7C93;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 19px;
    font-weight: 500;
    padding: 15px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}

/* ======================
   5. ПОЧЕМУ НАМ ДОВЕРЯЮТ
   =======================*/
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--color-white);
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 0 10px -2px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background-color: var(--color-bg);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.feature-title {
    font-size: 23px;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-desc {
    font-size: 19px;
    color: #6C7C93;
}

/* ====================
   СЕКЦИЯ: НАШИ ВРАЧИ 
   ===================== */
.doctors-section {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.doctors-carousel-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 50px;
}

.doctors-swiper {
    position: relative;
    overflow: hidden; 
    width: 100%;
    margin: 0;
}

.doctors-swiper .swiper-slide {
    height: auto; 
    display: flex;
    padding: 1px;
    box-sizing: border-box;
}

/* ===============================
   НАВИГАЦИЯ: СТРЕЛКИ И ПАГИНАЦИЯ 
   =============================== */

.doctors-button-prev,
.doctors-button-next {
    color: #18234F !important;
    transition: all 0.3s ease;
    top: calc(50% - 25px); 
    position: absolute;
    z-index: 10;
    cursor: pointer;
    margin: 0;
}

.doctors-button-prev:hover,
.doctors-button-next:hover {
    color: #ADD1F9 !important; 
    transform: scale(1.1); 
}

.doctors-button-prev::after,
.doctors-button-next::after {
    font-size: 24px !important; 
}

.doctors-button-prev { left: -45px; }
.doctors-button-next { right: -45px; }

.doctors-pagination {
    bottom: 0px !important;
    position: absolute;
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
    z-index: 10;
}

.doctors-pagination .swiper-pagination-bullet {
    background: #18234F !important;
    opacity: 0.2 !important;
    width: 8px !important;
    height: 8px !important;
    margin: 0 6px !important;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.doctors-pagination .swiper-pagination-bullet-active {
    background: #18234F !important; 
    opacity: 1 !important;
    width: 22px !important;
    border-radius: 4px !important;
}

@media (max-width: 992px) {
    .doctors-button-prev,
    .doctors-button-next { display: none !important; }
}

/* ==========================================
   КОМПОНЕНТЫ: КАРТОЧКА ВРАЧА И СОДЕРЖИМОЕ
   ========================================== */

.doctor-card {
    width: 100%;
    background-color: #FFFFFF;
    border: 0.5px solid #ADD1F9;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.doctor-card:hover {
    box-shadow: 0px 4px 20px -2px rgba(24, 35, 79, 0.15);
    transform: translateY(-2px);
}

.doctor-photo {
    height: 450px; 
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    display: flex;
    align-items: flex-start;
}

.doctor-badge {
    background-color: #FFFFFF;
    color: #18234F;
    font-family: var(--font-main);
    font-size: 19px; 
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.05);
}

.doctor-info {
    padding: 30px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between; 
}

.doctor-text-wrap {
    margin-bottom: 25px;
}

.doctor-name {
    font-family: var(--font-main);
    font-size: 19px; 
    font-weight: 600;
    color: #263140;
    line-height: 1.3;
    margin-bottom: 10px;
}

.doctor-spec {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #6C7C93;
    margin: 0;
    line-height: 1.4;
}

.doctor-btn {
    display: block;
    width: 100%;
    background-color: #18234F;
    color: #FFFFFF;
    text-align: center;
    padding: 12px 7px; 
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 19px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.doctor-btn:hover {
    background-color: #ADD1F9;
    color: #18234F;
}

/* ==========================================
   7. КОМУ МЫ ПОМОГАЕМ В ПЕРВУЮ ОЧЕРЕДЬ
   ========================================== */
.target-audience { background-color: #FAF8F5; }

.target-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.target-card {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 10px -2px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.target-card:hover { transform: translateY(-10px); }

.target-icon { margin-bottom: 15px; text-align: start; }

.target-card h3 {
    font-size: 23px;
    font-weight: 600;
    color: #263140;
    margin-bottom: 10px;
    line-height: 1.2;
}

.target-card p {
    font-size: 19px;
    color: #6C7C93;
    line-height: 1.4;
}

/* ==========================================
   8. ПАТРОНАЖ ДЛЯ ВЗРОСЛЫХ
   ========================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.price-card {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 20px 40px 40px 40px;
    box-shadow: 0 0 10px -2px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.price-card:hover { transform: translateY(-10px); }

.price-card:hover { transform: translateY(-10px); }

.price-card.premium {
    background-color: var(--color-bg);
    color: var(--color-white);
}

.price-header h3 { font-size: 35px; }
.price-header p { font-size: 19px; color: #ADD1F9;; margin-bottom: 20px; }
.price-header h4 { font-size: 19px;  padding-bottom: 20px;}
.price-card.premium .price-header h4 { border-bottom-color: rgba(255,255,255,0.1); }

.price-list { flex-grow: 1; margin-bottom: 30px; }
.price-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 19px;
}
.price-list svg { width: 22px; height: 22px; fill: #ADD1F9; flex-shrink: 0; }

.price-footer { text-align: start; }
.price-sum { font-size: 35px; font-weight: 700; margin-bottom: 20px; }
.price-sum span { font-size: 15px; font-weight: 400; }
.text-white { color: var(--color-accent); }

.btn-white { background-color: var(--color-accent); color: var(--color-bg); width: 100%; justify-content: center; }
.btn-white:hover { background-color: var(--color-white); }
.price-card:not(.premium) .btn-primary { width: 100%; justify-content: center; }

/* ==========================================
   9. ДЕТСКИЙ ПАТРОНАЖ
   ========================================== */
.children-pricing { background-color: #FAF8F5; }

.children-pricing-inner {
    display: flex;
    background-color: var(--color-white);
    border-radius: 20px;
    box-shadow: 0 0 10px -2px rgba(0,0,0,0.1);
    overflow: hidden;
}

.children-media {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 550px;
}

.children-content {
    flex: 1;
    padding: 15px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.children-title {
    font-size: 35px;
    font-weight: 700;
    color: #263140;
    margin-bottom: 20px;
    line-height: 1.2;
}

.children-desc {
    font-size: 19px;
    color: #6C7C93;
    margin-bottom: 30px;
    line-height: 1.5;
}

.dark-icons li { color: #263140; font-weight: 500; }
.dark-icons svg { fill: #263140; }

.btn-ch-foot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-main);
    font-size: 19px;
    font-weight: 500;
    padding: 5px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-ch-foot:hover {
    background-color: var(--color-accent);
    color: var(--color-bg);
}


.children-footer { display: flex; align-items: start; flex-direction: column; gap: 10px;}
.children-sum { margin-bottom: 0; color: #263140; }

/* ==========================================
   10. КАК ЭТО РАБОТАЕТ
   ========================================== */
.how-it-works { background-color: var(--color-white); }

.steps-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.step-card { flex: 1; min-width: 150px; text-align: center; }
.step-card svg { width: 30px; height: 30px; fill: var(--color-bg); margin-bottom: 15px; }
.step-card h3 { font-size: 23px; color: var(--color-bg); margin-bottom: 10px; }
.step-card p { font-size: 19px; color: #6C7C93; }

/* ==========================================
   11. ФОРМА ЗАЯВКИ
   ========================================== */
.contact-section { background-color: var(--color-bg); }
.contact-inner { display: flex; gap: 50px; align-items: center; }

.contact-text { flex: 1; color: var(--color-white);;}
.contact-text .section-title { color: var(--color-white); text-align: left; }
.text-light { color: var(--color-white); }

.contact-form-wrapper { flex: 1; background-color: var(--color-white); padding: 25px; border-radius: 20px;}

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 19px; color: var(--color-bg); margin-bottom: 10px; font-weight: 500; }
.form-group input {
    width: 100%; padding: 15px; border: 1px solid var(--color-accent);
    background-color: #F8FAFC; border-radius: 10px;
    font-size: 19px; font-family: var(--font-main); color: var(--color-bg);
}
.form-group input:focus { outline: none; border-color: var(--color-bg); }
.btn-submit { width: 100%; justify-content: center; margin-top: 10px; border: none; cursor: pointer; }

    .btn-submit:disabled {
    background-color: #9EA4B4 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}


.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.custom-toast {
    pointer-events: auto;
    padding: 15px 20px;
    border-radius: 8px;
    color: #ffffff;
    font-family: 'Gillroy', sans-serif;
    font-size: 15px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-50px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
}

.custom-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background-color: #2ECC71;
    border-left: 5px solid #27AE60;
}

.toast-error {
    background-color: #E74C3C;
    border-left: 5px solid #C0392B;
}

.btn-submit:disabled {
    background-color: #9EA4B4 !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

.modal-two-columns {
    max-width: 800px !important;
}

.modal-flex-container {
    display: flex;
    gap: 40px;
}

.modal-left, .modal-right {
    flex: 1;
}

.modal-contacts-block p, 
.footer-phone {
    display: flex;
    align-items: center; 
    gap: 10px;          
    text-decoration: none;
    color: #fff;
    margin-bottom: 15px;
}

.modal-contacts-block svg {
    min-width: 24px;
    width: 24px;
    height: 24px;
}

/* --- АДАПТИВ (на мобильных) --- */
@media (max-width: 768px) {
    .modal-two-columns {
        width: 95% !important;
        padding: 20px !important;
        max-height: 90vh;     
        overflow-y: auto;     
    }

    .modal-flex-container {
        flex-direction: column;
        gap: 20px;            
    }

    .modal-left {
        text-align: center;    
    }

    .modal-contacts-block p, 
    .footer-phone {
        justify-content: center;
    }

    .modal-socials {
        justify-content: center !important;
    }
    
    .contact-form-wrapper {
        width: 100%;
    }
}

/* ==========================================
карусели отзывов и пагинации
   ========================================== */
.reviews-section {
    padding: 80px 0;
    background-color: #fafafa;
}

.reviews-swiper {
    padding-bottom: 50px !important; 
    position: relative;
}

.reviews-swiper .swiper-slide {
    height: auto !important;
    display: flex;
    position: relative;
}

.review-card {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 35px 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.review-quote {
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 70px;
    font-family: Georgia, serif;
    color: #f0f2f5;
    line-height: 1;
    user-select: none;
}

.review-stars {
    color: #ffb703;
    font-size: 14px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.review-text {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    border-top: 1px solid #f1f3f5;
    padding-top: 15px;
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    color: #212529;
}

.review-date {
    font-size: 12px;
    color: #adb5bd;
}

.reviews-pagination {
    bottom: 10px !important;
}

.reviews-pagination .swiper-pagination-bullet {
    background: #ced4da;
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.reviews-pagination .swiper-pagination-bullet-active {
    background: #212529 !important;
    width: 22px;
    border-radius: 4px;
}

.reviews-more-action {
    margin-top: 30px;
    position: relative;
    z-index: 10;
}

.review-2gis-link {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #212529;
    text-decoration: underline; 
    transition: opacity 0.2s ease;
}

.review-2gis-link:hover {
    color: #212529;
    text-decoration: none;
    opacity: 0.7; 
}

.review-expand-btn {
    display: none;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 20px;
    color: #6C7C93;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    /* font-weight: 600; */
    text-decoration: underline;
    cursor: pointer;
    text-align: left;
    align-self: flex-start;
}

.review-expand-btn:hover {
    opacity: 0.7;
}

.review-card.expanded .review-text {
    display: block;              
    -webkit-line-clamp: unset;   
    overflow: visible;
}

.review-card.expanded {
    height: max-content;
}

.swiper-wrapper:has(.review-card.expanded) .review-card:not(.expanded) {
    height: max-content;
}
/* ==========================================
   13. FAQ (ЧАСТЫЕ ВОПРОСЫ)
   ========================================== */
.faq { background-color: var(--color-white); }
.faq-inner { width: 80%; margin: 0 auto; }

.faq-item {
    background-color: var(--color-bg);
    border-radius: 15px;
    margin-bottom: 15px;
    color: var(--color-white);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px;
    font-size: 19px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 50px;
    outline: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after { 
    content: '−'; 
    transform: translateY(-50%) rotate(180deg);
}

.faq-content {
    padding: 0 20px;
    font-size: 19px;
    color: var(--color-white);
    line-height: 1.6;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
}

.faq-item[open] .faq-content {
    padding: 0 20px 20px;
    opacity: 1;
}

/* ==========================================
   14. ПОДВАЛ (FOOTER)
   ========================================== */
.site-footer { 
    background-color: var(--color-bg);
    padding-top: 80px; 
    color: var(--color-white); 
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo { 
    width: 60%; 
    max-width: 200px;
    margin-bottom: 30px; 
}

.brand-col p, .brand-col a { 
    font-size: 19px; 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center;
    gap: 15px;
}

.brand-col a:hover {
    color: var(--color-accent);
}

.socials { 
    display: flex; 
    gap: 15px; 
    margin-top: 25px; 
}

.social-icon {
    width: 40px; 
    height: 40px;
    background-color: transparent;
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: transform 0.3s;
}

.social-icon svg {
    width: 60%;
    height: 60%;
    fill: var(--color-white);
    transition: fill 0.3s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon:hover svg {
    fill: var(--color-accent);
}

.nav-col {
    display: flex;
    justify-content: center;
}

.nav-col ul { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.nav-col a { 
    font-size: 19px; 
    transition: color 0.3s; 
}

.nav-col a:hover { 
    color: var(--color-accent); 
}

.map-col {
    display: flex;
    flex-direction: column;
}

.map-container { 
    border-radius: 20px; 
    overflow: hidden; 
    margin-bottom: 20px; 
    height: 180px;
}

.license { 
    font-size: 16px; 
    opacity: 0.8; 
    line-height: 1.5;
}

.footer-bottom {
    background-color: #9EA4B4;
    padding: 30px 0;
    text-align: center;
}

.footer-bottom .copyright { 
    margin: 0 0 10px 0; 
    font-size: 19px; 
    color: var(--color-bg);
    font-weight: 600;
}

.footer-bottom .disclaimer {
    margin: 0;
    font-size: 15px; 
    color: rgba(255, 255, 255, 0.52);
}

/* ==========================================
   МОДАЛЬНОЕ ОКНО
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 35, 79, 0.85); 
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.modal-content {
    background-color: var(--color-bg);
    padding: 40px 30px 30px; 
    border-radius: 20px;
    width: 85%;             
    max-width: 400px;      
    position: relative;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 35px;
    line-height: 1;
    color: var(--color-white);
    cursor: pointer;
    transition: color 0.3s;
    outline: none;
}

.modal-close:hover {
    color: var(--color-accent);
}

body.modal-open {
    overflow: hidden;
}


/* ==========================================
   СТРАНИЦА ДОКТОРА
   ========================================== */
.doctor-section {
    padding: 150px 0 100px;
    background-color: #ffffff;
    color: #333333;
}

.doctor-grid-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.doctor-left-col {
    position: sticky;
    top: 120px; 
}

.doctor-grid-photo {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(24, 35, 79, 0.08); 
}

.doctor-name-p {
    font-family: 'Roboto', sans-serif;
    font-size: 35px; 
    margin-bottom: 10px;
    color: #263140;
    line-height: 1.2;
}

.doctor-position {
    color: #18234F;
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 20px;
}

.doctor-experience {
    color: #6C7C93;
    font-weight: 500;
    margin-bottom: 30px;
    font-size: 18px;
}

.doctor-divider {
    width: 100%;
    height: 1px;
    background-color: #E5E9F0;
    margin: 30px 0;
}

/* ==========================================
   СБРОС И ЗАЩИТА СТИЛЕЙ ИЗ CKEDITOR
   (Чтобы редактор не сломал сайт)
   ========================================== */
.doctor-description-content {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #495057;
}

.doctor-description-content p { margin-bottom: 15px; }

.doctor-description-content ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.doctor-description-content ol {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
}

.doctor-description-content h2,
.doctor-description-content h3,
.doctor-description-content h4 {
    color: #263140;
    margin: 35px 0 15px;
    font-family: var(--font-main);
}

.doctor-description-content img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    margin: 25px 0;
}

.doctor-description-content blockquote {
    border-left: 4px solid var(--color-accent);
    background: #f8fafc;
    padding: 15px 25px;
    margin: 25px 0;
    font-style: italic;
    color: #6C7C93;
    border-radius: 0 10px 10px 0;
}

.doctor-description-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    overflow-x: auto;
    display: block; 
}

.doctor-description-content th, 
.doctor-description-content td {
    border: 1px solid #ADD1F9;
    padding: 12px 15px;
    text-align: left;
}

/* ==========================================
   АДАПТИВНОСТЬ ДЛЯ ТЕЛЕФОНОВ
   ========================================== */
@media (max-width: 992px) {
    .doctor-grid-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .doctor-left-col {
        position: static; 
    }
    .doctor-grid-photo {
        height: 400px;
    }
    .doctor-name-p { font-size: 32px; }
}
/* ==========================================
   15. АДАПТИВНОСТЬ ДЛЯ ВСЕГО САЙТА
   ========================================== */

@media (max-width: 1200px) {
    .container { width: 90%; }
    .hero-title { font-size: 52px; }
    .target-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

/* ОСНОВНОЙ ПЛАНШЕТНЫЙ И МОБИЛЬНЫЙ БРЕЙКПОИНТ */
@media (max-width: 992px) {
    .features, .doctors-section, .pricing, .target-audience, .children-pricing, .how-it-works, .contact-section, .reviews-section, .faq {
        padding: 60px 0;
    }
    .section-title { font-size: 30px; }

    /* --- 1. ШАПКА: ЛОГОТИП И ТЕЛЕФОН --- */
    .site-header { padding: 15px 0; }
    .logo img { height: 55px; }
    
    .header-inner { display: flex; align-items: center; }

    .header-phone { 
        display: block; 
        margin-left: auto; 
        margin-right: 25px; 
    }
    .header-phone a { font-size: 18px; gap: 8px; } 
    .header-phone svg { width: 16px; height: 16px; }
    
    /* --- 2. БУРГЕР-ИКОНКА --- */
    .menu-toggle {
        display: flex; flex-direction: column; gap: 6px;
        background: none; border: none; cursor: pointer;
        z-index: 1000; position: relative;
    }
    .menu-toggle span {
        width: 28px; height: 3px; background: var(--color-white);
        display: block; border-radius: 3px; transition: all 0.3s ease;
    }
    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    /* --- 3. ВЫЕЗЖАЮЩЕЕ МЕНЮ (СВЕРХУ) --- */
    .main-nav {
        position: absolute; 
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--color-bg); 
        z-index: 990;
        max-height: 0; 
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .main-nav.active { 
        max-height: 350px;
        padding: 25px 0; 
    }
    .main-nav ul { flex-direction: column; text-align: center; gap: 20px; }
    .main-nav a { font-size: 19px; }
    .nav-line { display: none; }

    /* --- ОСТАЛЬНЫЕ БЛОКИ --- */
    .hero { min-height: auto; padding-top: 110px; padding-bottom: 60px; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-content { align-items: center; margin: 0 auto; }
    .hero-desc { text-align: center; }
    .hero-media { min-height: 500px;}
    .floating-badge { 
        left: 50%; transform: translateX(-50%); 
        bottom: -30px; width: 85%; justify-content: center; 
        padding: 15px;
    }
    .pulse { animation: none; }

    .features-grid, .pricing-grid, .target-grid { grid-template-columns: 1fr; gap: 20px; }
    .steps-grid { flex-direction: column; gap: 30px; }
    .step-card { width: 100%; display: flex; flex-direction: column; align-items: center;}

    .children-pricing-inner { flex-direction: column; }
    .children-media { min-height: 300px; }
    .children-content { padding: 40px 20px; text-align: center; }
    .children-footer { flex-direction: column; align-items: center; gap: 15px; }
    .price-list { text-align: left; }

    .contact-inner { flex-direction: column; text-align: center; gap: 30px;}
    .contact-text .section-title { text-align: center; }
    .contact-form-wrapper { width: 100%; box-sizing: border-box; }

    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .footer-logo { margin: 0 auto 20px; }
    .brand-col p, .brand-col a { justify-content: center; }
    .socials { justify-content: center; }
}

/* ДЛЯ МАЛЕНЬКИХ ТЕЛЕФОНОВ (до 768px) */
@media (max-width: 768px) {
    .container { width: 92%; }
    
    .hero-title { font-size: 34px; }
    .hero-badge { font-size: 16px; padding: 8px 16px; margin-bottom: 20px;}
    .hero-media { min-height: 400px;}
    .floating-text strong { font-size: 26px; }
    .floating-text span { font-size: 14px; }

    .price-card { padding: 30px 20px; }
    .price-header h3 { font-size: 26px; }
    .price-sum { font-size: 26px; }

    .children-title { font-size: 26px; }
}

/* ДЛЯ ОЧЕНЬ УЗКИХ ЭКРАНОВ (до 480px) Утрамбовываем шапку */
@media (max-width: 480px) {
    .hero-media { min-height: 200px;}
    .logo img { height: 55px; }
    .header-phone { margin-right: 15px; }
    .header-phone a { font-size: 17px; }
    .header-phone svg { display: none; }
}