/* Обертка секции */
.hero-slider {
    --slider-height: auto;
    /* Высоту потом можно очень легко менять здесь */
    --slider-radius: var(--radius);
    --content-max-width: 560px;
    --side-gap: 24px;
    --bottom-gap: 24px;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.hero-slider__inner {
    max-width: 1180px;
    margin: 0 auto;
    /* padding: 0 16px; */
    box-sizing: border-box;
}

.hero-slider__swiper {
    position: relative;
    overflow: hidden;
    border-radius: var(--slider-radius);
    background: var(--black);
    box-shadow:
        0 15px 40px rgba(25, 19, 8, 0.18),
        0 30px 80px rgba(25, 19, 8, 0.12);
}

/* Слайд */
.hero-slide {
    position: relative;
    height: var(--slider-height);
    overflow: hidden;
    background: var(--black);
}

/* Картинка/медиа */
.hero-slide__media {
    position: relative;
    inset: 0;
    z-index: 1;
}

.hero-slide__media picture,
.hero-slide__media img {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide__media img {
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 1.8s ease, filter 1.2s ease;
    filter: saturate(100%) contrast(104%);
}

/* Затемнение */
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(25, 19, 8, 0.68) 0%, rgba(25, 19, 8, 0.38) 35%, rgba(25, 19, 8, 0.18) 60%, rgba(25, 19, 8, 0.22) 100%),
        linear-gradient(180deg, rgba(25, 19, 8, 0.08) 0%, rgba(25, 19, 8, 0.22) 100%);
}

/*Контент */
.hero-slide__content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 25px;
    padding-bottom: 75px;
    box-sizing: border-box;
}

.hero-slide__content-inner {
    max-width: var(--content-max-width);
    color: var(--white);
}

.hero-slide__label {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border: 1px solid var(--transparent-white);
    border-radius: 999px;
    background: rgba(255, 250, 255, 0.08);
    backdrop-filter: blur(10px);
    font-size: 13px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-slide__title {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.05;
    font-weight: 700;
}

.hero-slide__text {
    margin: 0 0 28px;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.6;
    color: rgba(255, 250, 255, 0.92);
}

.hero-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-slide__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

.hero-slide__btn:hover {
    transform: translateY(-2px);
}

.hero-slide__btn--primary {
    color: var(--white);
    background: var(--btn-bg);
    border: 1px solid rgba(255, 250, 255, 0.14);
    box-shadow: 0 10px 24px rgba(0, 63, 116, 0.22);
}

.hero-slide__btn--ghost {
    color: var(--white);
    background: rgba(255, 250, 255, 0.08);
    border: 1px solid rgba(255, 250, 255, 0.24);
    backdrop-filter: blur(10px);
}

/* Стрелки */
.hero-slider__nav {
    position: absolute;
    right: var(--side-gap);
    bottom: var(--bottom-gap);
    z-index: 5;
    display: flex;
    gap: 10px;
}

.hero-slider__arrow {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 250, 255, 0.22);
    border-radius: 50%;
    background: rgba(25, 19, 8, 0.24);
    color: var(--white);
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-slider__arrow:hover {
    transform: translateY(-2px);
    background: rgba(60, 105, 151, 0.38);
    border-color: rgba(255, 250, 255, 0.4);
}

/* Пагинация */
.hero-slider__pagination {
    position: absolute;
    left: var(--side-gap) !important;
    right: auto !important;
    bottom: calc(var(--bottom-gap) + 16px) !important;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-slider__pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0 !important;
    background: rgba(255, 250, 255, 0.45);
    opacity: 1;
    transition: width 0.3s ease, border-radius 0.3s ease, background 0.3s ease;
}

.hero-slider__pagination .swiper-pagination-bullet-active {
    width: 30px;
    border-radius: 999px;
    background: var(--light-blue);
}

/* Анимация активного слайда */
.hero-slide .hero-slide__content-inner>* {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.hero-slide.swiper-slide-active .hero-slide__content-inner>* {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide.swiper-slide-active .hero-slide__content-inner>*:nth-child(1) {
    transition-delay: 0.15s;
}

.hero-slide.swiper-slide-active .hero-slide__content-inner>*:nth-child(2) {
    transition-delay: 0.25s;
}

.hero-slide.swiper-slide-active .hero-slide__content-inner>*:nth-child(3) {
    transition-delay: 0.35s;
}

.hero-slide.swiper-slide-active .hero-slide__content-inner>*:nth-child(4) {
    transition-delay: 0.45s;
}

.hero-slide.swiper-slide-active .hero-slide__content-inner>*:nth-child(5) {
    transition-delay: 0.55s;
}

/* Легкое "дорогое" движение изображения */
.hero-slide.swiper-slide-active .hero-slide__media img {
    /* transform: scale(1.08); */
}

/* Адаптив */
@media (max-width: 991px) {
    .hero-slider {
        --slider-height: auto;
        --slider-radius: var(--radius);
    }

    .hero-slide__content {
        padding: 36px 30px;
    }

    .hero-slide__title {
        max-width: 92%;
    }
}

@media (max-width: 767px) {
    .hero-slider {
        --slider-height: auto;
        /* На мобильном можно отдельно задать */
        --slider-radius: var(--radius);
        --side-gap: 16px;
        --bottom-gap: 16px;
    }

    .hero-slider__inner {
        padding: 0 12px;
    }

    .hero-slide__overlay {
        background:
            linear-gradient(180deg, rgba(25, 19, 8, 0.20) 0%, rgba(25, 19, 8, 0.42) 38%, rgba(25, 19, 8, 0.72) 100%);
    }

    .hero-slide__content {
        align-items: flex-end;
        padding: 24px 18px 84px;
    }

    .hero-slide__content-inner {
        max-width: 100%;
    }

    .hero-slide__label {
        margin-bottom: 14px;
        font-size: 12px;
    }

    .hero-slide__title {
        margin-bottom: 12px;
        font-size: clamp(24px, 7vw, 34px);
        line-height: 1.12;
        max-width: 100%;
    }

    .hero-slide__text {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.5;
    }

    .hero-slide__actions {
        gap: 10px;
    }

    .hero-slide__btn {
        min-height: 46px;
        padding: 10px 18px;
        font-size: 14px;
    }

    .hero-slider__nav {
        right: 16px;
        bottom: 16px;
    }

    .hero-slider__arrow {
        width: 44px;
        height: 44px;
    }

    .hero-slider__pagination {
        left: 16px !important;
        bottom: 30px !important;
    }
}