/*
Theme Name: Нарколог Клиника
Description: Простой шаблон главной страницы наркологической клиники
Version: 1.0
*/

/* ===== СБРОС И БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Запрещаем горизонтальный скролл для всей страницы */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Страховка для всех секций */
.service-page__main, 
.promotions-block, 
.feedback-cta-section, 
.doctors, 
.reviews-section {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #2d2d2d;
    background: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color .3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.title__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
    color: #1a1a1a;
}

.button {
    display: inline-block;
    padding: 15px 40px;
    background: #2782F7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease;
}

.button:hover {
    background: #1a6fd6;
    transform: translateY(-2px);
}

section {
    padding: 60px 0;
}

/* ===== HERO / БАННЕР ===== */
.home-banner {
    background: linear-gradient(135deg, #eaf3ff 0%, #f7fbff 100%);
    padding: 60px 0;
}

.home-banner .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.home__text {
    display: inline-block;
    background: #2782F7;
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.home__title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    color: #1a1a1a;
    margin-bottom: 25px;
}

.url_wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.url_wrapper li a {
    display: inline-block;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #d9e6f7;
    border-radius: 8px;
    font-size: 14px;
    color: #2782F7;
    transition: all .3s ease;
}

.url_wrapper li a:hover {
    background: #2782F7;
    color: #fff;
    border-color: #2782F7;
}

/* Форма в баннере */
.banner__form {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(39, 130, 247, .1);
    max-width: 480px;
}

.form__text {
    font-size: 16px;
    margin-bottom: 15px;
}

.form__text--color {
    color: #2782F7;
    font-weight: 700;
}

.form__data {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.form__phone,
.consultation__input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #d9e6f7;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color .3s ease;
}

.form__phone:focus,
.consultation__input:focus {
    border-color: #2782F7;
}

.form__button,
.consultation__button {
    padding: 14px 28px;
    background: #2782F7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s ease;
    white-space: nowrap;
}

.form__button:hover,
.consultation__button:hover {
    background: #1a6fd6;
}

.sub_text-form {
    font-size: 12px;
    color: #888;
}

.sub_text-form a {
    color: #2782F7;
    text-decoration: underline;
}

.banner__img img {
    border-radius: 16px;
}

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantage {
    padding: 40px 0;
}

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

.advantage__elem {
    background: #f7fbff;
    border: 1px solid #e3eefb;
    border-radius: 12px;
    padding: 25px 20px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
}

.advantage__elem:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(39, 130, 247, .12);
}

.advantage__elem img {
    width: 48px;
    height: 48px;
    margin: 0 auto 15px;
}

.advantage__elem p {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* ===== УСЛУГИ ===== */
.services {
    background: #fafafa;
}

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

.services__item {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}

.services__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .1);
}

.services__item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.services__item span {
    display: block;
    padding: 18px 20px;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

.services__item:hover span {
    color: #2782F7;
}

/* ===== РАССРОЧКА ===== */
.installment-plan {
    padding: 0;
}

.installment-plan__container {
    background: linear-gradient(135deg, #2782F7 0%, #4795f8 100%);
    border-radius: 24px;
    padding: 50px 60px;
    color: #fff;
}

.installment-plan__item-title {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    max-width: 750px;
}

.installment-plan__item-subtitle {
    font-size: 18px;
    margin-bottom: 35px;
    opacity: .9;
}

.installment-plan__item-numbers {
    display: flex;
    background: rgba(255, 255, 255, .15);
    border-radius: 16px;
    margin-bottom: 35px;
    max-width: 600px;
}

.installment-plan__item-number {
    flex: 1;
    padding: 22px 25px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .2);
}

.installment-plan__item-number:last-child {
    border-right: none;
}

.installment-plan__item-number span {
    display: block;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 5px;
}

.installment-plan__item-number p {
    font-size: 14px;
    opacity: .85;
}

.installment-plan__button {
    padding: 15px 45px;
    background: #fff;
    color: #2782F7;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all .3s ease;
}

.installment-plan__button:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ===== ПОЧЕМУ МЫ ===== */
.choice__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.choice__item {
    background: #f7fbff;
    border-radius: 16px;
    padding: 30px 25px;
    border-left: 4px solid #2782F7;
    transition: transform .3s ease;
}

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

.choice__item strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.choice__item p {
    font-size: 15px;
    color: #555;
}

/* ===== КОНСУЛЬТАЦИЯ ===== */
.consultation {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
}

.consultation__inner {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.consultation__title {
    display: block;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 15px;
}

.consultation__text {
    font-size: 16px;
    opacity: .85;
    margin-bottom: 25px;
}

.consultation__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.consultation__input {
    background: #fff;
    border: none;
}

.consultation__button {
    background: #2782F7;
}

.consultation__text-bottom {
    font-size: 12px;
    opacity: .6;
}

/* ===== ТЕКСТОВЫЕ БЛОКИ ===== */
.center {
    background: #fff;
}

.center__text {
    max-width: 900px;
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.center__text p {
    margin-bottom: 18px;
}

.center__text h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 30px 0 15px;
}

.center__text ul,
.center__text ol {
    margin: 15px 0 20px 25px;
}

.center__text ul {
    list-style: disc;
}

.center__text ol {
    list-style: decimal;
}

.center__text li {
    margin-bottom: 8px;
}

/* ===== ВРАЧИ ===== */
.doctors {
    background: #fafafa;
}

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

.doctors__item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .05);
    transition: transform .3s ease;
}

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

.doctors__item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    margin-bottom: 18px;
}

.doctors__item strong {
    display: block;
    font-size: 14px;
    color: #2782F7;
    font-weight: 600;
    margin-bottom: 5px;
    padding: 0 15px;
}

.doctors__item span {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    padding: 0 15px;
}

.doctors__item p {
    font-size: 14px;
    color: #777;
}

/* ===== ОТЗЫВЫ ===== */
.reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.reviews__item {
    background: #f7fbff;
    border-radius: 16px;
    padding: 30px 25px;
    position: relative;
}

.reviews__item::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 80px;
    color: #2782F7;
    opacity: .15;
    font-family: Georgia, serif;
    line-height: 1;
}

.reviews__item p {
    font-size: 15px;
    color: #444;
    margin-bottom: 20px;
    font-style: italic;
}

.reviews__item strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 3px;
}

.reviews__item span {
    font-size: 13px;
    color: #888;
}

/* ===== ФИНАЛЬНЫЙ CTA ===== */
.final-cta {
    background: linear-gradient(135deg, #2782F7 0%, #4795f8 100%);
    color: #fff;
    text-align: center;
}

.final-cta h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 12px;
}

.final-cta p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: .9;
}

.final-cta .button {
    background: #fff;
    color: #2782F7;
    font-size: 20px;
    padding: 18px 50px;
}

.final-cta .button:hover {
    background: #1a1a1a;
    color: #fff;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1024px) {
    .home-banner .container {
        grid-template-columns: 1fr;
    }

    .banner__img {
        display: none;
    }

    .advantage__wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .services__grid,
    .choice__items,
    .reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .doctors__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .title__title {
        font-size: 30px;
    }

    .home__title {
        font-size: 34px;
    }
}

@media (max-width: 640px) {
    section {
        padding: 40px 0;
    }

    .title__title {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .home__title {
        font-size: 26px;
    }

    .advantage__wrapper,
    .services__grid,
    .choice__items,
    .reviews__grid,
    .doctors__grid {
        grid-template-columns: 1fr;
    }

    .form__data {
        flex-direction: column;
    }

    .installment-plan__container {
        padding: 30px 20px;
    }

    .installment-plan__item-title {
        font-size: 22px;
    }

    .installment-plan__item-numbers {
        flex-direction: column;
    }

    .installment-plan__item-number {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, .2);
    }

    .installment-plan__item-number:last-child {
        border-bottom: none;
    }

    .consultation__title {
        font-size: 24px;
    }

    .final-cta h2 {
        font-size: 26px;
    }

    .final-cta .button {
        font-size: 17px;
        padding: 15px 35px;
    }
}

/* ==========================================================================
   HEADER STYLES (ОБНОВЛЕННЫЕ)
   ========================================================================== */

/* --- 1. Верхняя плашка --- */
.plashka_top {
    background-color: #f4f6f8;
    padding: 8px 0;
    font-size: 13px;
    color: #555;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.plashka_aktsii {
    color: #B2115B;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.plashka_aktsii:hover {
    color: #8f0e48;
    text-decoration: underline;
}

/* --- 2. Основной контейнер --- */
.header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ГЛАВНОЕ ИЗМЕНЕНИЕ: Делаем колонку, чтобы навигация была ПОД инфо */
.header__inner {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    gap: 15px;
}

.header__inner-media {
    display: none; /* Скрыто на десктопе */
}

/* --- 3. Верхняя строка (Лого, Адрес, Телефон, Кнопка, Поиск) --- */
.header__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Логотип с изображением */
.header__logo,
.footer__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #222;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 500;
    flex-shrink: 0;
}

.header__logo-img,
.footer__logo-img {
    height: 100%;
    max-height: 55px;
    object-fit: contain;
    flex-shrink: 0;
}

.header__logo-text,
.footer__logo-text {
    display: flex;
    flex-direction: column;
    max-width: 235px;
    font-size: 13px;
}


/* Блок Адрес + Телефон */
.header__address-block {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.header__address {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.open_popup_regions {
    color: #2782F7;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 4px;
}

.open_popup_regions:hover {
    text-decoration: underline;
}

/* Новый номер телефона */
.header__phone-main {
    font-size: 18px;
    font-weight: 700;
    color: #222;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.header__phone-main:hover {
    color: #2782F7;
}

/* Кнопка "Вызвать врача" для десктопа */
.header__button-desk {
    background: #B2115B;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(178, 17, 91, 0.3);
    flex-shrink: 0;
}

.header__button-desk:hover {
    background: #8f0e48;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(178, 17, 91, 0.4);
}

/* Поиск */
.search_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f4f8;
    border: 1px solid #e1e8ed;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #223858;
    font-size: 14px;
    flex-shrink: 0;
}

.search_btn:hover {
    background: #e1e8ed;
    border-color: #d0d7de;
}

/* --- 4. Навигация (Десктоп) --- */
.header__nav {
    width: 100%;
    border-top: 1px solid #f0f0f0;

}

.header__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.header__item {
    position: relative;
}

.header__link {
    display: block;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header__link:hover {
    color: #2782F7;
}

.str_bottom {
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #2782F7;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.header__item:hover .str_bottom {
    transform: scaleX(1);
}

/* --- 5. Выпадающие меню (Многоуровневые) --- */
.header__submenu-box {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    padding: 10px 0;
}

.header__item:hover > .header__submenu-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__submenu-item {
    position: relative;
}

.header__submenu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.header__submenu-link:hover {
    background: #f5f8fa;
    color: #2782F7;
}

.header__submenu-arrow {
    width: 8px;
    height: 8px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.header__submenu-item:hover .header__submenu-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* Уровень 2 */
.header__level2 {
    position: absolute;
    left: 100%;
    top: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    min-width: 260px;
    list-style: none;
    margin: 0;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1002;
}

.header__submenu-item:hover > .header__level2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.header__level2-item {
    margin: 0;
}

.header__level2-link {
    display: block;
    padding: 9px 20px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.header__level2-link:hover {
    background: #f5f8fa;
    color: #2782F7;
    padding-left: 25px;
}

/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ (до 1024px)
   ========================================================================== */
/* ===== МОБИЛЬНОЕ МЕНЮ (ИСПРАВЛЕННОЕ) ===== */
@media (max-width: 1024px) {


      .header__inner {
        display: none;
    }

    .header__inner-media {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 15px 0;
    }

    .header__info-media {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .header__actions-media {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .wrapper_phone {
        display: flex;
        justify-content: center;
        padding: 10px 0;
        border-top: 1px solid #f0f0f0;
        border-bottom: 1px solid #f0f0f0;
    }

    .header__phone {
        font-size: 18px;
        font-weight: 700;
        color: #222;
        text-decoration: none;
    }


    /* Скрываем десктопный хедер */
    .header__inner:not(.header__inner-media) {
        display: none !important;
    }



    .header__actions-media {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    /* Стили бургера */
    /* Бургер-меню */
    .burger-checkbox {
        display: none;
    }

    .burger {
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 1005;
    }

    .burger::before,
    .burger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background: #222;
        transition: all 0.3s ease;
    }

    .burger::before {
        top: 0;
        box-shadow: 0 9px 0 #222;
    }

    .burger::after {
        bottom: 0;
    }

    .burger-checkbox:checked + .burger::before {
        transform: rotate(45deg);
        top: 9px;
        box-shadow: 0 0 0 #222;
    }

    .burger-checkbox:checked + .burger::after {
        transform: rotate(-45deg);
        bottom: 9px;
    }

    /* Контейнер меню - скрыт по умолчанию */
    .nav_mobail {
                max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100%;

    }


    /* ПОКАЗ МЕНЮ ПРИ КЛАССЕ .OPEN */
    .nav_mobail.open {
        max-height: calc(100vh - 280px); /* Вычитаем высоту шапки, телефона и кнопки CTA */
        opacity: 1;
        visibility: visible;
        margin-top: 15px;
        border-top: 1px solid #f0f0f0;
        padding-top: 15px;

            /* Ограничиваем высоту меню, чтобы оно не уходило за пределы экрана */
        
        /* Разрешаем вертикальный скролл */
        overflow-y: auto; 
        
        /* Плавная прокрутка для iOS */
        -webkit-overflow-scrolling: touch; 
        
        /* Убираем лишние отступы при скролле на некоторых устройствах */
        overscroll-behavior: contain; 
    }
    /* Стилизация полосы прокрутки (для Chrome, Safari, Edge) */
    .nav_mobail.open::-webkit-scrollbar {
        width: 4px;
    }

    .nav_mobail.open::-webkit-scrollbar-track {
        background: transparent;
    }

    .nav_mobail.open::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }

    /* Стили списка мобильного меню */
    .header__list_mob {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .header__item_mob {
        border-bottom: 1px solid #f0f0f0;
    }

    .header__link_mob {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
        color: #222;
        text-decoration: none;
        font-size: 16px;
        font-weight: 600;
    }

    /* Стрелочки аккордеона */
    .str_mob, .str_mob2 {
        width: 12px;
        height: 12px;
        border-right: 2px solid #999;
        border-bottom: 2px solid #999;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        margin-left: 10px;
        flex-shrink: 0;
    }

    .str_mob.open, .str_mob2.open {
        transform: rotate(-135deg);
        border-color: #2782F7;
    }

    /* Подменю первого уровня - ВСЕГДА ВИДИМО */
    .header__submenu-nav_mob {
        /* Убрали max-height: 0 и overflow: hidden */
        background: #f9fafb;
        padding-left: 15px;
        padding-bottom: 10px;
        margin-top: -5px; /* Небольшая компенсация отступа ссылки */
    }

    .header__submenu_mob {
        list-style: none;
        margin: 0;
        padding: 5px 0;
    }

    .header__submenu-link_mob {
        display: block;
        padding: 10px 0;
        color: #555;
        text-decoration: none;
        font-size: 14px;
    }

    /* Подменю второго уровня - ВСЕГДА ВИДИМО */
    .header__submenu-nav_mob2 {
        background: #f0f2f5;
        padding-left: 15px;
        padding-bottom: 5px;
        margin-top: -5px;
    }

    .header__submenu_mob2 {
        list-style: none;
        margin: 0;
        padding: 5px 0;
    }

    .header__level2-link_mob {
        display: block;
        padding: 8px 0;
        color: #777;
        text-decoration: none;
        font-size: 13px;
    }
    
    /* Удаляем старые стили для стрелочек, так как их больше нет */
    .str_mob, .str_mob2 {
        display: none !important;
    }
}

/* ===== FOOTER STYLES ===== */
.site-footer {
	background-color: #2782F7; /* Синий цвет как на скриншоте */
	color: #fff;
	padding: 60px 0 40px;
	font-size: 14px;
	position: relative;
}

.footer-top {
	display: flex;
	gap: 60px;
	margin-bottom: 50px;
}

/* Левая колонка: Меню */
.footer-menu-col {
	flex: 2;
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* 3 колонки услуг */
	gap: 30px;
}

.footer-menu-category {
	margin-bottom: 20px;
}


.footer-submenu {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 1000px; /* Для анимации на десктопе всегда открыто */
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.footer-menu-link {
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	display: block;
	padding: 4px 0;
	transition: color 0.3s ease;
}

.footer-menu-link:hover {
	color: #fff;
	text-decoration: underline;
}

/* Правая колонка: Контакты */
.footer-contacts-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 25px;
}

.footer-label {
	display: block;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 8px;
}

.footer-phone {
	display: block;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
	margin-bottom: 5px;
}

.footer-address {
	margin: 0;
	line-height: 1.5;
}

.social-icons {
	display: flex;
	gap: 15px;
}

.social-icons a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	transition: background 0.3s ease;
}

.social-icons a:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Нижняя часть: Юридическая инфо */
.footer-bottom {
	display: flex;
	gap: 40px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 30px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.6;
}

.footer-copy-block {
	flex: 1;
}

.footer-copy-block p {
	margin-bottom: 10px;
}

.footer-copy-block a {
	color: rgba(255, 255, 255, 0.7);
}

/* Кнопка "Наверх" */
.scroll-top-btn {
	position: fixed;
	bottom: 30px;
	left: 30px;
	width: 50px;
	height: 50px;
	background: #fff;
	border: none;
	border-radius: 50%;
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.scroll-top-btn.visible {
	opacity: 1;
	visibility: visible;
}

.scroll-top-btn:hover {
	transform: translateY(-5px);
}

/* ===== АДАПТИВ ФУТЕРА ===== */
@media (max-width: 1024px) {
	.footer-top {
		flex-direction: column;
		gap: 40px;
	}

	.footer-menu-col {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.site-footer {
		padding: 40px 0 30px;
	}

	.footer-menu-col {
		grid-template-columns: 1fr; /* Одна колонка на мобильных */
		gap: 0;
	}



	.footer-bottom {
		flex-direction: column;
		gap: 20px;
	}

	.scroll-top-btn {
		width: 40px;
		height: 40px;
		bottom: 20px;
		left: 20px;
	}
}

/* ==========================================================================
   FOOTER MENU GRID LAYOUT
   ========================================================================== */

/* Превращаем главный список меню в сетку */
.footer-menu-list {
    display: grid;
    /* Автоматически заполняем строку колонками шириной минимум 280px */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; /* Расстояние между колонками */
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Убираем лишние отступы у элементов списка, так как теперь они ячейки грида */
.footer-menu-list > li,
.footer-menu-list > div {
    margin: 0;
    padding: 0;
    border-bottom: none; /* Если был разделитель, убираем его для десктопа */
}

/* Стили для контейнера категории (чтобы он корректно вел себя внутри ячейки) */
.footer-menu-category {
    margin-bottom: 0;
    height: 100%; /* Растягиваем на всю высоту ячейки при необходимости */
}

/* Заголовок категории */
.footer-menu-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
    padding-right: 20px;
    line-height: 1.3;
}

/* Списки услуг внутри категорий */
.footer-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: none !important; /* Всегда открыто */
    overflow: visible !important;
}

/* Ссылки первого уровня */
.footer-menu-link {
    display: block;
    padding: 4px 0;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    line-height: 1.4;
}

.footer-menu-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Вложенные списки (3 уровень) */
.footer-submenu-level2 {
    list-style: none;
    padding: 5px 0 5px 15px;
    margin: 0;
}

.footer-menu-link--sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    padding: 3px 0;
}

.footer-menu-link--sub:hover {
    color: #fff;
}

/* Маркер для пунктов с детьми */
.footer-menu-link-item.has-children > .footer-menu-link::after {
    content: '›';
    float: right;
    font-size: 18px;
    line-height: 1;
    opacity: 0.7;
}

/* ==========================================================================
   АДАПТИВ ДЛЯ МОБИЛЬНЫХ
   ========================================================================== */
@media (max-width: 768px) {
    .footer-menu-list {
        /* На мобильных возвращаем в одну колонку для удобства скролла */
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .footer-menu-category {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 0;
    }

    /* Включаем аккордеон только на мобильных */
    .footer-menu-title::after {
        display: block;
        content: '+';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        color: rgba(255, 255, 255, 0.5);
    }

    .footer-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .footer-menu-title.active::after {
        content: '−';
    }

    .footer-menu-title.active + .footer-submenu {
        max-height: 2000px;
        padding-bottom: 15px;
    }
}

.content-toc {
    background: #f8f9fa;
    border-left: 4px solid #2782F7;
    padding: 20px 25px;
    margin: 30px 0;
    border-radius: 0 8px 8px 0;
}

.content-toc h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.content-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.content-toc li {
    margin-bottom: 8px;
}

.content-toc a {
    color: #2782F7;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    display: block;
    padding: 4px 0;
}

.content-toc a:hover {
    color: #B2115B;
    padding-left: 8px;
}

.sidebar {
    width: 280px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: block;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background: #2782F7;
    color: #fff;
}

/* Скрываем сайдбар на мобильных, если нужно */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
}

/* ==========================================================================
   SERVICE PAGE TEMPLATE STYLES
   ========================================================================== */

.service-page {
	padding: 40px 0 60px;
	background: #fff;
}

.service-page__container {
	display: grid;
	grid-template-columns: 1fr 300px; /* Контент + Сайдбар */
	gap: 40px;
	align-items: start;
}

/* --- Основной контент --- */
.service-page__main {
	max-width: 100%;
}

.breadcrumbs {
	font-size: 13px;
	color: #888;
	margin-bottom: 20px;
}

.breadcrumbs a {
	color: #2782F7;
	text-decoration: none;
}

.service-page__title {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
	margin-bottom: 30px;
}

/* Стили для контента внутри редактора WordPress */
.service-page__content p {
	margin-bottom: 18px;
	line-height: 1.6;
	color: #333;
}

.service-page__content h2 {
	font-size: 28px;
	font-weight: 700;
	margin: 40px 0 20px;
	color: #1a1a1a;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 10px;
}

.service-page__content ul, 
.service-page__content ol {
	margin: 15px 0 20px 20px;
}

.service-page__content li {
	margin-bottom: 8px;
	line-height: 1.5;
}

/* --- Блок преимуществ --- */
.advantages-block {
	margin-top: 50px;
	padding-top: 40px;
	border-top: 1px solid #eee;
}

.advantages-block h2 {
	font-size: 26px;
	margin-bottom: 30px;
	text-align: center;
}

.advantages-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 25px;
}

.advantage-card {
	background: #f8fbff;
	border: 1px solid #e3eefb;
	border-radius: 12px;
	padding: 25px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(39, 130, 247, 0.1);
}

.advantage-icon {
	font-size: 32px;
	margin-bottom: 15px;
}

.advantage-card h3 {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #1a1a1a;
}

.advantage-card p {
	font-size: 14px;
	color: #555;
	margin: 0;
	line-height: 1.5;
}

/* --- Сайдбар --- */
.service-page__sidebar {
	position: sticky;
	top: 100px; /* Отступ сверху при скролле */
}

.sidebar-nav {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 25px;
	box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.sidebar-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 2px solid #2782F7;
}

.sidebar-menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-menu-list li {
	margin-bottom: 8px;
}

.sidebar-menu-list a {
	display: block;
	padding: 8px 12px;
	color: #333;
	text-decoration: none;
	border-radius: 6px;
	font-size: 15px;
	transition: all 0.2s ease;
}

.sidebar-menu-list a:hover,
.sidebar-menu-list .current-menu-item > a {
	background: #f0f7ff;
	color: #2782F7;
	padding-left: 18px;
}

/* Виджет CTA в сайдбаре */
.cta-widget {
	background: linear-gradient(135deg, #2782F7 0%, #1a6fd6 100%);
	color: #fff;
	padding: 25px;
	border-radius: 12px;
	text-align: center;
}

.cta-widget p {
	font-size: 16px;
	margin-bottom: 10px;
	font-weight: 500;
}

.cta-phone {
	display: block;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	margin-bottom: 15px;
	letter-spacing: 0.5px;
}

.cta-widget .button {
	width: 100%;
	background: #fff;
	color: #2782F7;
	border: none;
	padding: 12px;
	border-radius: 8px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.3s ease;
}

.cta-widget .button:hover {
	background: #f0f0f0;
}

/* --- Адаптивность --- */
@media (max-width: 1024px) {
	.service-page__container {
		grid-template-columns: 1fr; /* Одна колонка */
		gap: 30px;
	}

	.service-page__sidebar {
		position: static; /* Убираем липкость на планшетах */
		order: -1; /* Сайдбар сверху на планшетах (опционально) */
	}
	
	.sidebar-nav {
		max-width: 400px;
	}
}

@media (max-width: 768px) {
	.service-page__title {
		font-size: 28px;
	}

	.advantages-grid {
		grid-template-columns: 1fr; /* Преимущества в одну колонку */
	}

	.service-page {
		padding: 20px 0 40px;
	}
	
	.sidebar-nav {
		max-width: 100%;
	}
}

/* === HERO SECTION STYLES === */
.service-hero {
    background: #c16565;
    color: #fff;
    padding: 60px 0 80px;
    position: relative;
    overflow: hidden;
}

.service-hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

/* Левая колонка */
.service-hero__content {
    flex: 1;
    max-width: 600px;
}

.service-hero__title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFF;
}

.service-hero__subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Белый блок формы */
.service-hero__form-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    color: #333;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    margin-bottom: 40px;
    max-width: 500px;
}

.price-block {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.new-price {
    font-size: 32px;
    font-weight: 800;
    color: #2b7bf6;
}

.hero-form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.hero-input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: #f4f7fb;
}

.hero-input:focus {
    border-color: #2b7bf6;
    background: #fff;
}

.hero-btn {
    background: #b2115b; /* Малиновый цвет как на скрине */
    color: #fff;
    border: none;
    padding: 0 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}

.hero-btn:hover {
    background: #8f0d49;
}

.form-footer {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.form-footer a {
    color: #2b7bf6;
    font-weight: 600;
    text-decoration: none;
}

/* Преимущества */
.service-hero__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 500;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Правая колонка (Картинка) */
.service-hero__image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.service-hero__image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    /* Если нужно, чтобы картинка "вылезала" за пределы контейнера справа: */
    /* transform: translateX(50px); */ 
}

/* Адаптив */
@media (max-width: 1024px) {
    .service-hero__container {
        flex-direction: column;
        text-align: center;
    }
    
    .service-hero__content {
        max-width: 100%;
    }
    
    .service-hero__form-box {
        margin: 0 auto 40px;
    }
    
    .service-hero__features {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .service-hero__image {
        margin-top: 30px;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .service-hero__title {
        font-size: 28px;
    }
    
    .hero-form {
        flex-direction: column;
    }
    
    .hero-btn {
        padding: 15px;
        width: 100%;
    }
    
    .service-hero__features {
        grid-template-columns: 1fr;
    }
}

/* === БЛОК АВТОРОВ СТАТЬИ === */
.article-authors-block {
    background: #f8fbff;
    border: 1px solid #e3eefb;
    border-radius: 16px;
    padding: 30px;
    margin: 40px 0;
}

.article-authors-block__title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #2782F7;
    display: inline-block;
}

.article-authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Карточка специалиста */
.specialist-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(39, 130, 247, 0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.specialist-card__header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.specialist-card__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e3eefb;
    flex-shrink: 0;
}

.specialist-card__role {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2782F7;
    margin-bottom: 4px;
}

.specialist-card__name {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 5px;
    line-height: 1.3;
}

.specialist-card__spec {
    font-size: 14px;
    color: #555;
    margin: 0 0 3px;
}

.specialist-card__exp {
    font-size: 13px;
    color: #888;
    margin: 0;
}

/* Баннер ПроДокторов */
.pro-doctors-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto; /* Прижимает кнопку к низу карточки */
}

.pro-doctors-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
    color: #fff;
}

.pro-doctors-banner__icon {
    transition: transform 0.3s ease;
}

.pro-doctors-banner:hover .pro-doctors-banner__icon {
    transform: translate(2px, -2px);
}

/* Адаптив */
@media (max-width: 768px) {
    .article-authors-block {
        padding: 20px;
    }
    
    .article-authors-grid {
        grid-template-columns: 1fr;
    }
    
    .specialist-card__header {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== PRICE TABLE TABS ===== */
.price-tabs-nav {
    display: flex;
    gap: 5px;
    margin-bottom: 0;
    overflow-x: auto;
    padding-bottom: 5px;
}

.price-tab-btn {
    padding: 12px 24px;
    background: #f0f4f8;
    border: none;
    border-radius: 8px 8px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.price-tab-btn:hover {
    background: #e3eefb;
    color: #2782F7;
}

.price-tab-btn.active {
    background: #2782F7;
    color: #fff;
}

.price-tabs-content {
    background: #fff;
    border-radius: 0 12px 12px 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    overflow: hidden;
}

.price-tab-panel {
    display: none;
    padding: 20px;
}

.price-tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Одиночная таблица (без табов) */
.price-table__single-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

/* ===== TABLE STYLES ===== */
.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.price-table th {
    text-align: left;
    padding: 15px 20px;
    background: #f7fbff;
    color: #2782F7;
    font-weight: 700;
    border-bottom: 2px solid #e3eefb;
}

.price-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table tr:hover td {
    background: #fafcff;
}

.pt-price {
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}

.pt-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #B2115B;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.pt-btn:hover {
    background: #8f0e48;
    transform: translateY(-2px);
}

/* ===== MOBILE ADAPTIVE ===== */
@media (max-width: 768px) {
    .price-tabs-nav {
        gap: 3px;
    }
    
    .price-tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .price-tab-panel {
        padding: 15px 10px;
    }
    
    /* Карточный вид на мобильных */
    .price-table thead {
        display: none;
    }
    
    .price-table, .price-table tbody, .price-table tr, .price-table td {
        display: block;
        width: 100%;
    }
    
    .price-table tr {
        margin-bottom: 15px;
        border: 1px solid #e3eefb;
        border-radius: 12px;
        padding: 15px;
        background: #fff;
    }
    
    .price-table td {
        padding: 8px 0;
        border-bottom: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .price-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #888;
        font-size: 13px;
        margin-right: 15px;
    }
    
    .pt-name {
        font-weight: 700;
        font-size: 16px;
        color: #1a1a1a;
        margin-bottom: 5px;
    }
    
    .pt-name::before {
        display: none;
    }
    
    .pt-action {
        margin-top: 10px;
        justify-content: flex-start;
    }
    
    .pt-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}
/* ===== CUSTOM PROMO SLIDER STYLES ===== */
.promotions-block {
    padding: 60px 0;
    background: #fff;
}

.promo-section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.promotions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.swiper-button-group {
    display: flex;
    gap: 10px;
}

.promo-swiper-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f0f4f8;
    border: 1px solid #e1e8ed;
    cursor: pointer;
    font-size: 18px;
    color: #223858;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-swiper-btn:hover:not(:disabled) {
    background: #2782F7;
    border-color: #2782F7;
    color: #fff;
}

.promo-swiper-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Контейнер слайдера */
.custom-promo-slider {
    overflow: hidden; /* Скрываем всё, что выходит за пределы */
    position: relative;
}

.custom-promo-track {
    display: flex;
    gap: 30px;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1); /* Плавная анимация */
    will-change: transform;
}

.custom-promo-slide {
    min-width: 100%; /* 2 слайда в ряд с учетом gap */
    flex-shrink: 0;
}

/* Стили карточек (остаются прежними) */
.promo-card {
    border-radius: 20px;
    overflow: hidden;
    height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(39, 130, 247, 0.1);
}

.promo-card--blue {
    background: linear-gradient(135deg, #2b7bf6 0%, #1a5bd6 100%);
    color: #fff;
}

.promo-card--light-blue {
    background: linear-gradient(135deg, #4da3ff 0%, #2b7bf6 100%);
    color: #fff;
}

.promo-card__content {
    display: flex;
    width: 100%;
    height: 100%;
    padding: 30px;
    position: relative;
    z-index: 2;
}

.promo-card__content--reverse {
    flex-direction: row-reverse;
    text-align: right;
}

.promo-card__text-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.promo-card__title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.promo-badge {
    position: absolute;
    right: 40px;
    bottom: 40px;
    width: 80px;
    height: 80px;
    background: #B2115B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(178, 17, 91, 0.4);
    z-index: 3;
}

.promo-features {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    justify-content: flex-end;
}

.promo-card:not(.promo-card--light-blue) .promo-features {
    justify-content: flex-start;
}

.promo-feature {
    background: #fff;
    color: #222;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 100px;
}

.promo-bottom-row {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
}

.promo-card:not(.promo-card--light-blue) .promo-bottom-row {
    justify-content: flex-start;
}

.promo-price {
    background: #B2115B;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 18px;
}

.promo-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    color: #222;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.promo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.promo-card__img {
    position: absolute;
    bottom: 0;
    height: 90%;
    width: auto;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
}

.promo-card__img--left { left: -20px; }
.promo-card__img--right { right: -20px; }

/* Адаптив */
@media (max-width: 768px) {
    .custom-promo-slide {
        min-width: 100%; /* На мобильных 1 слайд */
        max-width: 100%; /* На мобильных 1 слайд */
    }
    
    .promo-card {
        height: auto;
        min-height: 300px;
    }
    
    .promo-card__content,
    .promo-card__content--reverse {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .promo-card__img {
        position: relative;
        height: 200px;
        width: 100%;
        object-fit: cover;
        border-radius: 12px;
        margin-top: 15px;
        left: auto !important;
        right: auto !important;
        bottom: auto;
    }
    
    .promo-features,
    .promo-bottom-row {
        justify-content: center !important;
    }
    
    .promo-badge {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 15px auto;
    }
}

/* ===== FEEDBACK CTA BLOCK STYLES ===== */
.feedback-cta-section {
    padding: 60px 20px;
    background: #fff; /* Фон секции вокруг блока */
}

.feedback-cta-wrapper {
    max-width: 1100px; /* Ограничиваем ширину вместо container */
    margin: 0 auto;
    background: linear-gradient(135deg, #4da3ff 0%, #2b7bf6 100%); /* Синий градиент как на скрине */
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden; /* Чтобы картинка не вылезала за скругления */
    box-shadow: 0 15px 40px rgba(43, 123, 246, 0.2);
}

/* Левая колонка с контентом */
.feedback-cta-content {
    flex: 1;
    padding: 50px 60px;
    color: #fff;
    z-index: 2;
    max-width: 600px;
}

.feedback-cta-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.feedback-cta-desc {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 35px;
    opacity: 0.9;
    color: #fff;
}

/* Форма */
.feedback-cta-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 450px;
}

.feedback-cta-input {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5); /* Линия снизу как на скрине */
    background: transparent;
    color: #fff;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.feedback-cta-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.feedback-cta-input:focus {
    border-bottom-color: #fff;
}

.feedback-cta-btn {
    display: inline-block;
    width: 100%;
    padding: 18px 30px;
    background: #fff;
    color: #222;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 10px;
}

.feedback-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: #f8f9fa;
}

.feedback-cta-policy {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 10px;
    line-height: 1.4;
}

/* Правая колонка с изображением */
.feedback-cta-image-block {
    flex: 0 0 45%; /* Фиксированная ширина для картинки */
    height: 100%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none; /* Чтобы картинка не перекрывала клики */
}

.feedback-cta-img {
    max-height: 550px; /* Ограничиваем высоту врача */
    width: auto;
    object-fit: contain;
    /* Сдвигаем картинку немного вниз и вправо, чтобы она "выглядывала" */
    transform: translateX(20px) translateY(20px); 
}

/* ===== АДАПТИВ ===== */
@media (max-width: 992px) {
    .feedback-cta-wrapper {
        flex-direction: column;
        text-align: center;
        padding-bottom: 0; /* Убираем паддинг снизу, так как картинка будет внизу */
    }

    .feedback-cta-content {
        padding: 40px 30px;
        max-width: 100%;
    }

    .feedback-cta-form {
        margin: 0 auto;
    }

    .feedback-cta-image-block {
        flex: none;
        width: 100%;
        height: 300px; /* Фиксированная высота для картинки на планшете */
        margin-top: -20px; /* Небольшой нахлест */
    }

    .feedback-cta-img {
        max-height: 100%;
        transform: none;
    }
}

@media (max-width: 576px) {
    .feedback-cta-title {
        font-size: 24px;
    }

    .feedback-cta-desc {
        font-size: 14px;
    }

    .feedback-cta-content {
        padding: 30px 20px;
    }

    .feedback-cta-image-block {
        height: 250px;
    }
}
/* ===== DOCTORS SLIDER STYLES (FIXED OVERFLOW) ===== */
.doctors {
    padding: 60px 0;
    background: #f8fbff;
    /* ВАЖНО: Обрезаем всё, что выходит за пределы секции */
    overflow: hidden; 
}

.promo-section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ЖЕСТКАЯ ГОРИЗОНТАЛЬНАЯ ОРИЕНТАЦИЯ */
.doctors-swiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    transition-timing-function: linear !important;
    /* Убираем лишние отступы, которые могут вызывать скролл */
    margin-left: 0 !important; 
    margin-right: 0 !important;
}

/* СЛАЙДЫ С ФИКСИРОВАННОЙ ШИРИНОЙ */
.doctors-swiper .swiper-slide {
    width: 230px;
    height: auto;
    flex-shrink: 0;
    /* Запрещаем слайду влиять на ширину родителя */
    max-width: 100%; 
}

.doctor-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(39, 130, 247, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(39, 130, 247, 0.15);
}

.doctor-card__img-wrap {
    height: 280px;
    overflow: hidden;
    background: #f0f4f8;
    flex-shrink: 0;
}

.doctor-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.doctor-card:hover .doctor-card__img-wrap img {
    transform: scale(1.05);
}

.doctor-card__info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.doctor-card__role {
    font-size: 13px;
    color: #2782F7;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.doctor-card__name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.3;
}

.doctor-card__exp {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.doctor-card__btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #2782F7;
    color: #2782F7;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    white-space: nowrap;
}

.doctor-card__btn:hover {
    background: #2782F7;
    color: #fff;
}

/* Адаптив */
@media (max-width: 360px) {
    .doctors-swiper .swiper-slide {
        width: 200px;
    }
    
    .doctor-card__img-wrap {
        height: 240px;
    }
}
   /* ========================================
   ПОДКЛЮЧЕНИЕ OWL CAROUSEL
   ======================================== */
@import url('https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css');
@import url('https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.theme.default.min.css');
/* ========================================
   СЕКЦИЯ ОТЗЫВОВ
   ======================================== */
.reviews-section {
    padding: 80px 0;
    background-color: #f8fafc;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    color: #07385d;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #718096;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   КАРУСЕЛЬ OWL CAROUSEL
   ======================================== */
.reviews-carousel.owl-carousel {
    padding: 20px 10px 60px;
    position: relative;
}

.reviews-carousel .owl-stage-outer {
    padding: 10px 5px;
    overflow: visible; /* Чтобы тени не обрезались */
}

.reviews-carousel .owl-stage {
    display: flex;
    align-items: stretch;
}

.reviews-carousel .owl-item {
    padding: 10px;
    height: auto;
}

/* ========================================
   КАРТОЧКА ОТЗЫВА
   ======================================== */
.review-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #edf2f7;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* ========================================
   ШАПКА ОТЗЫВА
   ======================================== */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #edf2f7;
    gap: 15px;
}

.author-name {
    font-size: 17px;
    font-weight: 700;
    color: #07385d;
    margin-bottom: 4px;
    line-height: 1.3;
}

.author-city {
    font-size: 13px;
    color: #718096;
}

/* ========================================
   РЕЙТИНГ
   ======================================== */
.review-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1;
}

.star.active {
    color: #f5a623;
}

.rating-number {
    font-size: 13px;
    font-weight: 700;
    color: #07385d;
}

/* ========================================
   ТЕКСТ ОТЗЫВА (С обрезкой)
   ======================================== */
.review-text {
    flex: 1;
    margin-bottom: 15px;
    position: relative;
    transition: max-height 0.4s ease;
}

.review-text p {
    font-size: 14px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Показываем 4 строки */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Раскрытый текст */
.review-text.expanded p {
    -webkit-line-clamp: unset;
    display: block;
}

/* Градиентная тень для свёрнутого текста */
.review-text:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, #fff);
    pointer-events: none;
}

/* ========================================
   КНОПКА "ЧИТАТЬ ПОЛНОСТЬЮ"
   ======================================== */
.review-toggle {
    background: transparent;
    border: none;
    color: #4b49e6;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    align-self: flex-start;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-toggle:hover {
    color: #ef5b5c;
}

.review-toggle::after {
    content: '↓';
    font-size: 12px;
    transition: transform 0.3s ease;
}

.review-text.expanded + .review-toggle::after {
    transform: rotate(180deg);
}

/* ========================================
   НАВИГАЦИЯ CAROUSEL (СТРЕЛКИ)
   ======================================== */
.reviews-carousel .owl-nav {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
}

.reviews-carousel .owl-nav button {
    background: #fff !important;
    color: #07385d !important;
    font-size: 20px !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
    pointer-events: all;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #edf2f7 !important;
}

.reviews-carousel .owl-nav button:hover {
    background: #4b49e6 !important;
    color: #fff !important;
    border-color: #4b49e6 !important;
}

.reviews-carousel .owl-nav button span {
    line-height: 1;
    font-weight: 700;
}

/* ========================================
   ТОЧКИ (DOTS)
   ======================================== */
.reviews-carousel .owl-dots {
    margin-top: 30px !important;
    text-align: center;
}

.reviews-carousel .owl-dots button {
    width: 10px !important;
    height: 10px !important;
    margin: 0 5px !important;
    border-radius: 50% !important;
    background: #cbd5e1 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    padding: 0 !important;
}

.reviews-carousel .owl-dots button.active {
    background: #4b49e6 !important;
    width: 24px !important;
    border-radius: 5px !important;
}

/* ========================================
   АДАПТИВНОСТЬ
   ======================================== */
@media (max-width: 992px) {
    .section-title { font-size: 28px; }
    .reviews-carousel .owl-nav { display: none; } /* Скрываем стрелки на планшетах */
}

@media (max-width: 576px) {
    .reviews-section { padding: 50px 0; }
    .section-title { font-size: 24px; }
    .review-header { flex-direction: column; gap: 10px; }
    .review-rating { flex-direction: row; align-items: center; }
    .review-card { padding: 20px; }
}
