/* ====================================
   🌿 Глобальные переменные
==================================== */
:root {
    /* Цвета */
    --color-primary: #5D766B; /* основной зелёный */
    --color-primary-hover: #2C4138; /* основной зелёный */
    --color-accent: #FAF0ED; /* розовый фон */
    --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%;
    --accent-light: #FCFBF7; /* цвет стрелки */
    --border-light: #e0dcd4;
    /* Скругления */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;

    /* Отступы и размеры */
    --section-padding: 48px;
    --gap: 32px;
    --card-max-width: 273px;
}

/* ====================================
   ⚙️ Общие стили
==================================== */
* {
    box-sizing: border-box;
}

/* ====================================
   🩷 PAGE-TOP
==================================== */
.index.page-top {
    padding: 0 0 var(--section-padding);
    margin-bottom: 0;
}

.page-top__inner {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: space-between;
}

.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 {

}
.index .title.title--page{
    margin: 30px 0;
}
.page-top__eyebrow {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-gray);
}

.title {
    margin: 0;
    font-weight: 700;
    color: var(--color-text);
}

.title--page {
    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 {
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0 30px 5px 0;
}

.page-top__hint-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    margin-right: 30px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* 1-я иконка */
.page-top__hint-wrapper .page-top__hint:nth-child(1) .page-top__hint-icon {
    background-image: url('/local/include/detskaya-reabilitaciya/index/img/1.png');
}

/* 2-я иконка */
.page-top__hint-wrapper .page-top__hint:nth-child(2) .page-top__hint-icon {
    background-image: url('/local/include/detskaya-reabilitaciya/index/img/2.png');
}

/* 3-я иконка */
.page-top__hint-wrapper .page-top__hint:nth-child(3) .page-top__hint-icon {
    background-image: url('/local/include/detskaya-reabilitaciya/index/img/3.png');
}

.page-top__hint:last-child {
    margin: 0 30px 0 0;
}

.page-top__hint-text {
    margin: 0;
    font-size: var(--font-size-md);
    font-weight: 400;
    line-height: var(--line-height-base);
    width: 79%;
}

.page-top__cta-button {

}

.page-top__picture {
    flex: 0 0 50%;
    height: 491px;
    border-radius: var(--radius-md) !important;
    margin-top: 0;
}

.page-top__picture img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.page-top__picture--mobile {
    display: none;
}

.page-top__picture--desktop {
    display: block;
}

.index .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) {
    .index.page-top {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: transparent;
    }
    .page-top__hint-icon {
        width: 60px;
        height: 60px;
        margin-right: 20px;
    }
    .page-top__eyebrow {
        display: none;
    }
    .index .title.title--page{
        margin: 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: 82%;
    }

    .page-top__cont {
        margin-left: 0;
    }

    .index .page-top__picture {
        padding-left: 0;
        margin-bottom: 25px;
    }

    .page-top {
        padding: 0 0 28px;
        margin-bottom: 11px;
    }

    .page-top__inner {
        flex-direction: column;
    }

    .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;
        margin-bottom: 30px!important;
    }

    .page-top__hint {
        padding: 20px;
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 0;
    }

    .page-top__hint-text {
        font-size: var(--font-size-base);
    }

    .page-top__cta-button {

    }

    .page-top__picture--mobile {
        display: block;
        width: 100vw;
        border-radius: 0;
        margin-bottom: -34px;
    }

    .page-top__picture--mobile img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 0;
    }

    .page-top__picture--desktop {
        display: none;
    }
}

/* ====================================
   💡 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;
    }
}

/* ====================================
   🩺 SLIDER-COMFORT
==================================== */
.slider-comfort__doctor {
    display: flex;
    align-items: center;
    gap: 16px;
    border-radius: var(--radius-md);
    background-color: transparent;
}

.slider-comfort__doctor-photo {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.slider-comfort__doctor-photo img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.slider-comfort__doctor-info {
    flex: 1;
    position: relative;
    z-index: 2;
}

.slider-comfort__doctor-name {
    color: var(--color-white);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-base);
}

.slider-comfort__doctor-desc {
    color: var(--color-white);
    opacity: 0.6;
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: var(--line-height-base);
}

.button--arrow-color.button--arrow-next,
.button--arrow-color.button--arrow-prev {
    background-color: var(--color-primary);
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--color-white);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    content: '' !important;
}

.slider-comfort.slider-comfort--programs-detail-new .button--arrow-color.button--arrow-next {
    right: 17.5%;
    background-color: var(--color-primary);
}

.slider-comfort.slider-comfort--programs-detail-new .button--arrow-color.button--arrow-prev {
    left: 17.5%;
    background-color: var(--color-primary);
}
.slider-comfort.slider-comfort--programs-detail-new .button--arrow-color.button--arrow-next:hover,
.slider-comfort.slider-comfort--programs-detail-new .button--arrow-color.button--arrow-prev:hover{
    background: var(--color-primary-hover);
}

.icon--arrow-prev,
.icon--arrow-next {
    padding-left: 7px;
}

@media (min-width: 768px) {
    .slider-comfort--programs-detail-new {
        padding-bottom: 90px !important;
        margin-bottom: 90px !important;
    }
}

.slider-comfort--programs-detail-new .slider-comfort__top {
    border-bottom: transparent;
    padding-bottom: 30px;
}

.slider-comfort--programs-detail-new .slider-comfort__type {
    max-width: 650px;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
    margin-bottom: 30px;
}

.slider-comfort--programs-detail-new .slider-comfort__picture:before {
    background: rgba(0, 0, 0, 0.5);
}

.slider-comfort--programs-detail-new .slider-comfort__top .title {
    margin-bottom: 30px;
}

.slider-comfort__subtitle {
    width: 40%;
}

.slider-comfort__slider {
    overflow: visible;
    padding-right: 64px;
    position: relative;
}

.slider-comfort__item {
    width: 96.5%;
    flex-shrink: 0;
    transition: transform .28s ease, box-shadow .28s ease;
}

@media (min-width: 768px) {
    .slider-comfort__doctor-photo {
        height: 58px;
        width: 58px;
    }

    .slider-comfort__doctor {
        width: max-content;
    }

    .slider-comfort__doctor-photo img {
        width: 100%;
        height: 100%;
    }

    .slider-comfort__item {
        width: 82%;
    }

    .slider-comfort__text {
        width: 675px;
    }
}

@media (min-width: 1024px) {
    .slider-comfort--programs-detail-new .slider-comfort__slider {
        padding-inline: unset;
    }

    .slider-comfort__item {
        width: 70%;
    }

    .slider-comfort__slider {
        padding-right: 96px;
    }
}

@media (min-width: 1400px) {
    .slider-comfort__item {
        width: 64%;
    }

    .slider-comfort__slider {
        padding-right: 140px;
    }
}

.slider-comfort__item.is-active {
    z-index: 3;
}

.slider-comfort__item.is-prev,
.slider-comfort__item.is-next {
    z-index: 2;
}

@media (max-width: 768px) {
    .slider-comfort__text {
        margin-bottom: 30px;
    }

    .slider-comfort--programs-detail-new {
        border-bottom: transparent;
    }

    .slider-comfort--programs-detail-new .slider-comfort__slider {
        margin-bottom: 0;
    }

    .slider-comfort__doctor {
        background-color: var(--color-bg-light);
        margin-bottom: 30px;
    }

    .slider-comfort__doctor-name {
        font-size: var(--font-size-base);
        color: #000;
        margin-bottom: 4px;
    }

    .slider-comfort__doctor-desc {
        font-size: var(--font-size-sm);
        color: #000;
        opacity: 0.6;
    }

    .slider-comfort__doctor-photo {
        flex: 0 0 33%;
    }

    .slider-comfort__info {
        font-size: 22px;
        font-weight: 700;
        line-height: var(--line-height-base);
        margin-bottom: -10px;
        padding: 0;
    }

    .first.slider-comfort__text {
        margin-bottom: 24px;
        height: 276px;
    }

    .slider-comfort--programs-detail-new {
        padding-bottom: 26px;
        margin-bottom: 0;
    }

    .slider-comfort--programs-detail-new .slider-comfort__top {
        margin-bottom: 32px;
        padding-bottom: 0;
    }

    .slider-comfort--programs-detail-new .slider-comfort__top .title {
        margin-bottom: 15px;
        font-size: 22px;
        line-height: var(--line-height-base);
    }

    .slider-comfort__subtitle {
        width: 100%;
        font-size: 16px;
        line-height: var(--line-height-base);
        margin-bottom: 30px;
    }

    .js-comfort-slider .swiper-button-next,
    .js-comfort-slider .swiper-button-prev {
        display: none !important;
        pointer-events: none;
        opacity: 0;
    }

    .slider-comfort__slider {
        margin-left: -24px;
        padding-right: 23px;
    }

    .title.title--h2.title--comfort br {
        display: none;
    }
}

.breadcrumbs--detskaya-reabilitaciya .breadcrumbs--description-page-programs .breadcrumbs__link{
    color: var(--color-text);
}
