/* Обнуляем отступы card-body, чтобы баннер занимал всю ширину блока */
.banner-slider-wrap {
    margin: -20px;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
}

/* ── Слайдер ── */
.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 310px;
    background: #c9c9c9;
}

/* ── Слайды ── позиционируем абсолютно, по умолчанию за правым краем */
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
    will-change: transform;
}

/* Первый слайд виден до JS */
.banner-slide--active {
    transform: translateX(0);
}

.banner-slide__link {
    display: block;
    text-decoration: none;
    height: 100%;
    color: inherit;
}

.banner-slide__link:hover,
.banner-slide__link:focus {
    text-decoration: none;
    color: inherit;
}

/* Картинка-баннер */
.banner-slide__img {
    display: block;
    width: 100%;
    height: 310px;
    object-fit: cover;
    object-position: center center;
}

/* HTML-баннер */
.banner-slide__html {
    width: 100%;
    height: 310px;
    overflow: hidden;
}

/* ── Стрелки ── */
.banner-slider__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
    outline: none;
}

.banner-slider__btn:hover {
    background: rgba(0, 0, 0, 0.58);
}

.banner-slider__btn--prev { left: 14px; }
.banner-slider__btn--next { right: 14px; }

/* ── Точки ── */
.banner-slider__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
    outline: none;
}

.banner-slider__dot--active {
    background: #fff;
}

/* ══════════════════════════════════════════════
   HTML-баннер с классами .vl-banner
   ══════════════════════════════════════════════ */
.vl-banner {
    width: 100%;
    height: 310px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.vl-banner__body {
    width: 645px;
    max-width: 100%;
    text-align: center;
    color: #fff;
    padding: 0 24px;
    box-sizing: border-box;
}

.vl-banner__eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
    margin: 0 0 10px;
    line-height: 1.4;
}

.vl-banner__title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.vl-banner__desc {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0.9;
    margin: 0 0 22px;
}

.vl-banner__cta {
    display: inline-block;
    background: #fff;
    padding: 13px 32px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    text-decoration: none;
    white-space: nowrap;
    transition: box-shadow 0.2s, transform 0.2s;
}

.banner-slide__link:hover .vl-banner__cta {
    box-shadow: 0 8px 28px rgba(0, 0, 0, .38);
    transform: translateY(-2px);
}

/* ── Адаптив баннеров ── */
@media (max-width: 640px) {
    .vl-banner__title {
        font-size: 19px;
        margin-bottom: 8px;
    }
    .vl-banner__desc {
        font-size: 12px;
        margin-bottom: 14px;
    }
    .vl-banner__eyebrow {
        margin-bottom: 6px;
    }
    .vl-banner__cta {
        padding: 10px 22px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .vl-banner__title {
        font-size: 16px;
    }
    .vl-banner__desc {
        display: none;
    }
    .vl-banner__cta {
        padding: 9px 18px;
        font-size: 12px;
    }
}
