/* ====================================
   🌿 Глобальные переменные
==================================== */
:root {
    /* Цвета */
    --color-primary: #5D766B; /* основной зелёный */
    --color-primary-hover: #2C4138; /* основной зелёный */
    --color-accent: rgba(229, 144, 144, 0.10); /* розовый фон */
    --color-accent-strong: rgba(229, 144, 144, 0.20); /* градиент */
    --color-text: #433C3A;
    --color-text-muted: #5b5b5b;
    --color-gray: #8a8a8a;
    --color-border: rgba(67, 60, 58, 0.3);
    --color-border-white: rgba(248, 245, 238, 0.3);
    --color-white: #ffffff;
    --color-bg-light: rgba(93, 118, 107, 0.1);

    /* Типографика */
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-md: 18px;
    --font-size-lg: 22px;
    --font-size-xl: 36px;
    --line-height-base: 150%;

    /* Скругления */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;

    /* Отступы и размеры */
    --section-padding: 48px;
    --gap: 32px;
    --card-max-width: 273px;

    /* Эффекты */
    --gradient-accent: linear-gradient(
            0deg,
            var(--color-accent-strong) 0%,
            rgba(229, 144, 144, 0.00) 49.87%
    );
}

/* ====================================
   ⚙️ Общие стили
==================================== */
* {
    box-sizing: border-box;
}

/* ====================================
   🩷 PAGE-TOP
==================================== */
/* ====================================
    🩷 PAGE-TOP
 ==================================== */
.page-top {
    padding: 0 0 var(--section-padding);
    margin-bottom: 72px;
}

.page-top__inner {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: stretch; /* Добавлено: растягиваем все дочерние элементы по высоте */
}

.page-top__cont {
    flex: 0 0 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-right: 0;
    margin-left: 33px;
}

.page-top__text {
    padding: 0 30px 10px;
}

.page-top__eyebrow {
    margin: 0;
    padding-bottom: 15px;
    font-size: 0.95rem;
    color: var(--color-gray);
}

.title {
    margin: 0;
    font-weight: 700;
    color: var(--color-text);
}

.title--page {
    padding-bottom: 30px;
    font-size: clamp(22px, 5.8vmin, var(--font-size-xl));
    line-height: 125%;
}

.title--muted {
    display: block;
    margin-top: 6px;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 0.9em;
}

.page-top__lead {
    margin: 0;
    font-size: clamp(14px, 4.2666vmin, 18px);
    line-height: 1.5;
    color: #333;
    width: 91%;
}

.page-top__hint-wrapper {
    padding-right: 30px;
}

.page-top__hint {
    padding: 23px 30px 30px;
    border-radius: var(--radius-md);
    background: var(--color-accent);
    width: 100%;
}

.page-top__hint-text {
    padding-bottom: 23px;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: var(--line-height-base);
    width: 80%;
}

.page-top__cta-button {

}

/* Основные изменения для картинки */
.page-top__picture {
    flex: 0 0 50%;
    border-radius: var(--radius-md);
    margin-top: 0;
    /* Убрали фиксированную высоту */
    height: auto; /* или можно использовать min-height: 100% */
}

.page-top__picture img {
    width: 100%;
    height: 100%; /* Изменено на 100% */
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Делаем контейнер картинки растягивающимся */
.page-top__picture--desktop {
    display: flex; /* Добавлено */
    height: auto; /* Автоматическая высота */
    align-self: stretch; /* Растягиваем по высоте родителя */
}

.page-top__picture--desktop picture {
    width: 100%;
    height: 100%; /* Занимаем всю высоту родителя */
    display: block;
}

.page-top__picture--desktop img {
    height: 100%; /* Занимаем всю высоту */
    object-fit: cover; /* Сохраняем пропорции */
}

.page-top__picture--mobile {
    display: none;
}

.page-top__picture {
    order: unset;
}

.page-top__text {
    order: 1;
}

.page-top__picture--mobile {
    order: 2;
}

.page-top__hint-wrapper {
    order: 3;
}

@media (max-width: 768px) {
    /* Мобильная версия - оставляем как было */
    .page-top__inner {
        flex-direction: column;
        align-items: normal; /* Сбрасываем stretch для мобильной версии */
    }

    .page-top__picture--desktop {
        display: none; /* На мобилке скрываем десктопную картинку */
    }

    .page-top__picture--mobile {
        display: block;
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
        border-radius: 0 !important;
        margin-bottom: -34px;
        height: auto; /* Автоматическая высота на мобилке */
    }

    .page-top__picture--mobile img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 0 !important;
        margin-bottom: 30px;
    }

    .page-top__cont {
        margin-left: 0;
    }

    /* Остальные стили мобильной версии без изменений */
    .page-top.page-top--outpatient .title--page {
        padding-bottom: 20px;
        font-size: clamp(22px, 5.8vmin, var(--font-size-xl));
        line-height: 125%;
        width: 70%;
        margin-bottom: 0;
    }

    .page-top__picture {
        padding-left: 0;
    }

    .page-top {
        padding: 0 0 28px;
        margin-bottom: 11px;
    }

    .page-top__text {
        padding: 0;
    }

    .page-top__lead {
        padding-bottom: 15px;
        font-size: var(--font-size-base);
        width: 100%;
    }

    .title--page {
        width: 230px;
        font-size: 22px;
        line-height: var(--line-height-base);
        padding-bottom: 15px;
    }

    .page-top__hint-wrapper {
        width: 100vw;
        margin-left: 50%;
        transform: translateX(-50%);
        padding-right: 0;
    }

    .page-top__hint {
        padding: 26px 15px 30px;
        margin-top: 0;
        border-radius: 0;
    }

    .page-top__hint-text {
        font-size: var(--font-size-base);
        width: 100%;
    }

    .page-top__cta-button {

    }
}

/* ====================================
   💡 APPROACH
==================================== */
.approach {
    margin: 0 0 120px;
}

.approach__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    margin-left: -7.5px;
    margin-right: -7.5px;
}

.approach__item {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    flex: 0 0 20%;
    max-width: 20%;
    padding-left: 7.5px;
    padding-right: 7.5px;
}


.approach__picture {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top-left-radius: var(--radius-md);
    border-top-right-radius: var(--radius-md);
    overflow: hidden;
    background: transparent;
    margin: 0 0 -36px;
    z-index: 2;
    position: relative;
}

.approach__picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.approach__title {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 37px 16px 20px;
    font-size: var(--font-size-md);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-accent);
    border-radius: var(--radius-md);
    text-align: center;
    font-family: Inter-Regular;
}


@media (max-width: 1299px) and (min-width: 1000px) {
    .approach__item {
        flex: 0 0 calc((100% - 3 * var(--gap)) / 4);
        max-width: 320px;
    }
}

@media (max-width: 999px) and (min-width: 769px) {
    .approach__item {
        flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
        max-width: 360px;
    }
}

@media (max-width: 768px) {
    .approach {
        padding-bottom: 30px;
        margin-bottom: 30px;
        border-bottom: 1px solid var(--color-border);
    }

    .approach__inner {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: 0;
        margin-right: -15px;
    }

    .approach__inner::-webkit-scrollbar {
        display: none;
    }

    .approach__item {
        flex: 0 0 88%;
        max-width: 88%;
        padding-left: 0;
        padding-right: 15px; /* расстояние между карточками */
        scroll-snap-align: start;
        border-radius: var(--radius-lg);
    }


    .approach__title {
        margin: 0;
        font-size: var(--font-size-base);
        font-weight: 400;
        line-height: var(--line-height-base);
        font-family: Inter-Regular;
        padding: 33px 0 20px;
    }
}



/* ====================================
⭐ FEATURES (3-колонки)
==================================== */
.features {
    display: flex;
    gap: var(--gap);
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 0 0 50px;
    list-style: none;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--cl-rebel-03);
}

.features .item {
    width: calc((100% / 3) - ((var(--gap) * 2) / 3));
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.item .media {
    width: 130px;
    height: 130px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.item .media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-content {
    padding-right: 120px;
}

.item .title {
    color: var(--color-text);
    font-size: var(--font-size-lg);
    font-weight: 700;
    line-height: var(--line-height-base);
    margin: 25px 0 10px;
}

.item .subtitle {
    color: var(--color-text);
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: var(--line-height-base);
    margin: 0;
    opacity: 0.9;
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .feature-content {
        padding-right: 0;
        margin-bottom: 25px;
    }

    .features {
        flex-direction: column;
        gap: 20px;
        padding: 0 0 35px;
        list-style: none;
        margin-bottom: 35px;
    }

    .features .item {
        width: 100%;
        margin-bottom: -2px;
    }

    .item .media {
        width: 78px;
        height: 78px;
    }

    .item .media img {
        width: 78px;
        height: 78px;
        object-fit: cover;
    }

    .item .title {
        font-size: var(--font-size-lg);
        font-weight: 700;
        line-height: var(--line-height-base);
        margin: 10px 0 0;
    }

    .item .subtitle {
        font-size: var(--font-size-base);
        font-weight: 400;
        line-height: var(--line-height-base);
        leading-trim: both;
        -moz-leading-trim: both;
        margin-top: 6px;
    }
}



html, body, .header {
    background: #FCFBF7 !important;
}

/* === Reviews Block (обновление: привёл цвета к переменным, унифицировал размеры) === */
:root {
    --accent-light: #F8F5EE; /* цвет стрелки */
    --border-light: #e0dcd4;
}

/* убираем h1 из виду */
.title.title--h1 {
    display: none;
}

.page-top__cont h2 {
    margin-top: 0;
    padding-bottom: 0;
}

/* стрелки внутри слайдера */
.reviews-block-new__slider .button--arrow-color {
    color: var(--accent-light);
    background-color: var(--color-primary);
    width: 68px;
    height: 44px;
}

.icon-arrow-next::before,
.icon-arrow-prev::before {
    color: var(--accent-light);
}

/* Header: заголовок слева + навигация справа */
.reviews-block-new__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.reviews-block-new__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

/* Навигация */
.reviews-block-new__nav {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: max-content;
    margin: 0;
    box-sizing: border-box;
}

/* Кнопки */
.reviews-block-new__nav .button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 74px;
    height: 44px;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    background-color: var(--color-primary);
}

/* отступ между кнопками */
.reviews-block-new__nav .button + .button {
    margin-left: 20px;
}

/* линия под заголовком */
.reviews-block-new__line {
    margin-top: 0;
    margin-bottom: 18px;
    border: none;
    border-top: 1px solid var(--border-light);
}

/* --- mobile --- */
@media (max-width: 768px) {
    .reviews-block-new__nav .swiper-button-next,
    .reviews-block-new__nav .swiper-button-prev {
        display: none;
    }

    .reviews-block-new.js-reviews-new-slider-wrap {
        padding: 0;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
        background: var(--color-accent);
        margin-bottom: 0;
    }

    .reviews-block-new__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 12px;
    }

    .reviews-block-new__nav {
        width: 100%;
        justify-content: flex-start;
        min-width: 0;
    }

    .reviews-block-new__nav .button {
        min-width: 40px;
        height: 36px;
    }

    /* при вертикальном расположении */
    .reviews-block-new__nav .button + .button {
        margin-left: 0;
        margin-top: 8px;
    }
}


/* === Rehab Price Block + RP Details (clean absolute image version) === */
:root {
    --accent-light: #F8F5EE;
    --accent-bg: rgba(229, 144, 144, 0.10);
}

/* ------------------------------------------------------------------ */
/* BASE LAYOUT                                                         */
/* ------------------------------------------------------------------ */

.rehab-price-block {
    position: relative;
    background: none;
    margin-bottom: 150px;
}

.rehab-price-main {
    width: 100%;
    position: relative;
    z-index: 1;
    height: 518px;
    background: var(--accent-bg);
    border-radius: var(--radius-md);
}

/* ------------------------------------------------------------------ */
/* IMAGE (ABSOLUTE ON DESKTOP)                                         */
/* ------------------------------------------------------------------ */
.rehab-price-img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;        /* ← ключевой момент */
    width: 66%;
    pointer-events: none;
    z-index: 0;
    height: 518px;
}


/* сам градиент */
.rehab-price-img::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    padding-top: 20px;
    padding-bottom: 20px;
    background: linear-gradient(
            to left,
            rgba(250, 240, 237, 0) 35%,
            rgba(250, 240, 237, 0.05) 45%,
            rgba(250, 240, 237, 0.12) 55%,
            rgba(250, 240, 237, 0.20) 65%,
            rgba(250, 240, 237, 0.28) 75%,
            rgba(250, 240, 237, 0.35) 85%,
            #fffbf9 100%
    );
}


.rehab-price-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;   /* или cover — см. ниже */
    border-radius: 0 6px 6px 0;
}

/* ------------------------------------------------------------------ */
/* TEXT CONTENT                                                        */
/* ------------------------------------------------------------------ */
.rehab-price-info {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    color: var(--color-text);
    font-family: Inter, sans-serif;
    padding: 60px;
    position: relative;
    z-index: 2;
    height: 518px;
}

/* ------------------------------------------------------------------ */
/* DESKTOP BACKGROUND PANEL                                            */
/* ------------------------------------------------------------------ */

.rehab-price-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 125%;
    font-family: Inter-Bold;
    margin: 0 0 60px;
}

.rehab-price-value {
    margin: 0 0 33px;
    font-size: 36px;
    font-weight: 700;
    line-height: 125%;
}

.rehab-price-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}


.rehab-price-link {
    color: #444;
    font-size: 16px;
    line-height: 150%;
    cursor: pointer;
    margin-top: 4px;
}

.rehab-price-link_wrap,
.rp-btn-collapse_wrap {
    display: flex;
    flex-direction: column;
    width: fit-content;
}

/* dotted underline */

.rehab_dotline {
    display: block;
    height: 6px;
    margin: -4px 0 0;
    border-bottom: 2px dotted rgba(0, 0, 0, .35);
}
@media (min-width: 768px) {
    .rehab-price-block {
        height: 518px;
    }
}
@media (max-width: 768px) {

    .btn-primary {
        background-color: var(--accent-light);
        color: var(--color-text);
    }
    .rehab-price-value {
        margin-bottom: 13px;
    }

    .rehab-price-actions {
        align-items: flex-start;
    }

    .rehab-price-title,
    .rehab-price-subtitle {
        font-family: Inter, sans-serif;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        margin: 0 0 7px;
    }

    .rehab_dotline {
        border-bottom: 2px dotted var(--color-border-white);
    }
}

/* ------------------------------------------------------------------ */
/* DETAILS PANEL                                                       */
/* ------------------------------------------------------------------ */

.rp-details {
    box-sizing: border-box;
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .42s ease, opacity .28s ease;
    width: 100%;
}

.rp-details.rp-open {
    max-height: 2000px;
    opacity: 1;
    padding: 0 50px 30px 60px;
    margin-top: 30px;
}

.rp-details-title {
    border-top: 1px solid rgba(67, 60, 58, 0.30);
    font-size: 16px;
    margin-top: 10px;
    padding-top: 40px;
}

.rp-module {
    border-bottom: 1px solid rgba(67, 60, 58, 0.30);
    padding-bottom: 14px;
    margin: 12px 0;
}

.rp-module.last {
    border-bottom: unset;
}

.rp-module h4 {
    margin: 0;
    padding-bottom: 5px;
    font-size: 15px;
    font-weight: 700;
}

.rp-module ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.rp-module li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    margin-bottom: 5px;
}

/* количество (x1) — СЛЕВА */
.rp-module li span:last-child {
    order: 0;
    min-width: 28px;
    text-align: left;
    white-space: nowrap;
}

/* текст — СПРАВА */
.rp-module li span:first-child {
    order: 1;
    flex: 1;
}

.rp-actions {
    display: flex;
    gap: 25px;
    margin-top: 18px;
}
.rp-btn-collapse_wrap{
    display: flex;
    justify-content: center;
}
.rp-btn-collapse {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
}



/* ------------------------------------------------------------------ */
/* MOBILE                                                              */
/* ------------------------------------------------------------------ */

@media (max-width: 768px) {
    .rp-module.last{
        padding-bottom: 0;
    }
    .rp-module {
        border-bottom: 1px solid var(--color-border-white);
    }
    .rp-actions {
        flex-direction: column-reverse;
    }
    .rp-details-title {
        border-top: unset;
        border-bottom: 1px solid var(--color-border-white);
        margin-top: 50px;
        padding-top: 0;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .rehab-price-block {
        padding: 25px 15px;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        width: 100vw;
        background: var(--color-primary);
        border-radius: 0;
        height: unset;
        margin-bottom: 60px;
    }

    .rehab-price-info {
        padding: 0;
        background: var(--color-primary);
        height: unset;
    }

    .rehab-price-main {
        height: unset;
        background: var(--color-primary);
    }

    .rehab-price-title,
    .rehab-price-value,
    .rehab-price-subtitle {
        color: var(--accent-light);
    }

    .rehab-price-img {
        display: none;
    }

    .rehab-price-actions {
        flex-direction: column-reverse;
    }

    .rehab-price-link {
        color: var(--accent-light);
    }



    .rp-details {
        background: var(--color-primary);
        color: var(--accent-light);
    }

    .rp-details.rp-open {
        margin-top: 0;
        padding: 0;
    }
}


.mobile-only {
    display: none;
}

@media (max-width: 767px) {
    .mobile-only {
        display: block;
    }

    .mobile-only .rehab-price-block {
        margin-top: -39px;
        margin-bottom: 30px;
    }
}

.footer {
    padding-bottom: 130px;
}

@media (max-width: 767px) {
    #CalltouchWidgetFrame {
        bottom: 176px !important;
    }
    .slider-comfort--programs-detail-new .slider-comfort__type {
        margin-bottom: 20px;
    }
}


