@media (min-width: 768px) {
    .button-hover:hover {
        background: var(--color-primary-hover) !important;
    }
}

.the-rest.first .slider-comfort__person img {
    margin-right: 10px;
}

.the-rest.first .slider-comfort__slider {
    overflow: hidden;
}

.the-rest.first .slider-comfort--programs-detail-new .slider-comfort__top .title {
    margin-bottom: 0;
}

.the-rest.first .slider-comfort--programs-detail-new .slider-comfort__slider {
    padding: 0;
    margin: 0;
}

.the-rest.first .slider-comfort .button--arrow-prev,
.the-rest.first .slider-comfort .button--arrow-next {
    top: var(--swiper-navigation-top-offset, 42%);
}

.the-rest.first .title--first-block-new {
    font-size: 36px;
    line-height: 45px;
    margin-bottom: 56px;
    margin-top: 0;
    padding-bottom: 0;
    color: var(--cl-rebel);
}



/* стрелки для second не трогаем — оставляем как есть */
.the-rest.second .button--arrow-prev {
    left: 2%;
    top: 164px !important;
    width: 74px;
}

.the-rest.second .button--arrow-next {
    right: 2%;
    top: 164px !important;
    width: 74px;
}

/* 2) Слайды не растягиваются по высоте контента */
.the-rest.first .slider-comfort__item,
.the-rest.first .swiper-slide {
    align-self: flex-start !important;
    height: auto !important;
}

/* 3) Картинка не создаёт дополнительной высоты */
.the-rest.first .slider-comfort__picture img {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* 4) Внутренний контент слайда всегда вертикальный стек */
.the-rest.first .slider-comfort__wrapper {
    height: auto !important;
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
}

.the-rest.first .slider-multi--main-new .button--arrow {
    width: 54px;
    top: 43%;
}

.the-rest.first .button--arrow-next {
    margin-right: 0;
    right: 17.5%;
    top: 50% !important;
    background-color: var(--color-primary);
}

.the-rest.first .button--arrow-prev {
    margin-left: 0;
    left: 17.5%;
    top: 50% !important;
    background-color: var(--color-primary);
}

.the-rest.first .icon--arrow-prev:before {
    content: "\f104";
    color: var(--accent-light);
}

.the-rest.first .icon--arrow-next:before {
    content: "\f103";
    color: var(--accent-light);
}

.the-rest.first .icon--arrow-prev {
    padding-left: 0;
}

.the-rest.first .icon--arrow-next {
    padding-left: 4px;
}

@media (min-width: 768px) {
    .title-title--h2 {
        margin-bottom: 60px;
    }
}

@media (max-width: 768px) {

    .the-rest.second .slider-multi--main-new .slider-multi__slider {
        padding: 0;
    }

    .the-rest.first .slider-comfort--programs-detail-new {
        margin-bottom: 50px;
        border-bottom: 1px solid var(--cl-rebel-03);
        padding-bottom: 50px;
        height: auto;
    }

    .the-rest.first .swiper-button-next,
    .the-rest.first .swiper-button-prev {
        display: none;
    }

    .the-rest.first .title--first-block-new.title--info-video,
    .the-rest.first .title--info-video_span {
        font-size: 22px;
        font-style: normal;
        font-weight: 700;
        line-height: 150%;
    }

    .the-rest.first .title--first-block-new.title--info-video {
        margin-bottom: 30px;
    }

    .the-rest.first .button--arrow-next,
    .the-rest.first .button--arrow-prev {
        display: none;
    }

    .the-rest.first .slider-comfort__item {
        width: calc(100% - 30px) !important;
    }

    .the-rest.first .slider-comfort__item .slider-comfort__wrapper{
        border-radius: var(--radius-md);
    }
}

.icon.icon--arrow-next.icon-arrow-next {
    padding-left: 14px;
}

.icon.icon--arrow-prev.icon-arrow-prev {
    padding-left: 10px;
}


.title--info-video_span {
    color: var(--color-primary) !important;
    font-size: 36px;
    line-height: 45px;
    font-family: Inter-Bold !important;
    font-weight: 700;
}

.info-video .title--h2 {
    font-size: 36px;
    color: var(--color-text);
}

.popup .swiper-button-next,
.popup .swiper-button-prev {
    color: var(--accent-light);
    top: 43%;
    background-color: var(--color-primary);
    width: 68px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.popup .icon.icon--arrow-prev,
.popup .icon--arrow-next {
    padding: 0;
}

.slider-comfort .button--arrow-prev,
.slider-comfort .button--arrow-next {
    width: 74px;
    background-color: #5D766B;
}

.slider-comfort--programs-detail-new .slider-comfort__top {
    border-bottom: 1px solid var(--cl-rebel-03);
}

.slider-comfort--programs-detail-new {
    padding-bottom: 0;
}
.the-rest.second .tab--main-new {
    margin-bottom: 150px;
    padding-bottom: 90px;
    border-bottom: 1px solid var(--cl-rebel-03);
}
@media (max-width: 768px) {
    .info-video .title--h2,
    .title--info-video_span {
        font-size: 22px;
    }

    .info-video .title--h2 {
        margin-bottom: 50px;
    }


    .popup .swiper-button-next, .popup .swiper-button-prev {
        display: none;
    }

    .slider-comfort--programs-detail-new .slider-comfort__top {
        border-bottom: transparent;
    }
    .the-rest.second .tab--main-new {
        margin-bottom: 60px;
        padding-bottom: 0;
    }
}

.second .tab__content.js-filter-content {
    overflow: hidden;
}
