/**
 * Спец. режим we-help-ydirect — только страница Яндекс.Директ.
 * Десктоп (≥994px): 2 карточки сеткой.
 * Планшет/мобилка: слайдер, карточка на всю ширину.
 */

.we-help.we-help-ydirect .container .we-help-content .we-help-title {
    margin-bottom: 2.5rem;
}

.we-help.we-help-ydirect .container .we-help-content .we-help-title .h2 {
    margin-bottom: 0;
    max-width: 100%;
}

/* Списки всегда открыты */
.we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation .dropdown-description {
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
    height: auto !important;
}

.we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation {
    height: auto !important;
}

/* Подзаголовок под H2, над карточками */
.we-help.we-help-ydirect .we-help-subtitle {
    margin: 0 0 2.5rem;
    max-width: 52rem;
}

.we-help.we-help-ydirect .we-help-subtitle p {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

/* Десктоп: сетка, без слайдера */
@media screen and (min-width: 994px) {
    .we-help.we-help-ydirect .requests-slider-arrows {
        display: none;
    }

    .we-help.we-help-ydirect .container .we-help-content .js-we-help-slider {
        max-width: none !important;
        overflow: visible !important;
        width: 100% !important;
    }

    .we-help.we-help-ydirect .container .we-help-content .we-help-variations.swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.25rem;
        width: 100% !important;
        transform: none !important;
    }

    .we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation.swiper-slide {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        min-height: 0;
    }
}

@media screen and (max-width: 993px) {
    .we-help.we-help-ydirect .container .we-help-content .we-help-title {
        margin-bottom: 1.5rem;
    }

    .we-help.we-help-ydirect .requests-slider-arrows {
        display: flex;
    }

    .we-help.we-help-ydirect .container .we-help-content .js-we-help-slider {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    .we-help.we-help-ydirect .container .we-help-content .we-help-variations.swiper-wrapper {
        display: flex !important;
        grid-template-columns: none;
    }

    .we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation,
    .we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation.swiper-slide,
    .we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation.wider,
    .we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation.swiper-slide.wider {
        max-width: 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        flex: 0 0 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        margin-right: 0 !important;
    }

    .we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation .we-help-variation-desc,
    .we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation.wider .we-help-variation-desc {
        max-width: 100% !important;
        width: 100% !important;
        min-height: 0 !important;
    }

    .we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation .we-help-variation-title p,
    .we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation.wider .we-help-variation-title p {
        max-width: 100% !important;
    }

    .we-help.we-help-ydirect .container .we-help-content .we-help-variations .we-help-variation .we-help-variation-btn {
        max-width: 100% !important;
    }

    .we-help.we-help-ydirect .we-help-subtitle {
        margin-bottom: 1.25rem;
    }
}
