/* =====================================================
   HERO SECTION — HARD RESET BUILD
===================================================== */

.hp-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

/* ================= SLIDES ================= */

.hp-hero__slide,
.hp-hero .swiper-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.hp-hero__slide.active,
.hp-hero .swiper-slide-active {
    opacity: 1;
    z-index: 2;
}

.hp-hero__slide img,
.hp-hero .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ================= TEXT BLOCK ================= */

.hp-hero__overlay {
    position: absolute;
    left: 40px;
    bottom: 40px;
    z-index: 100; /* ВСЕГДА выше стрелок */

    display: flex;
    flex-direction: column;
    gap: 18px;

    max-width: 85%;
}

/* Заголовок */

.hp-hero__overlay h1 {
    margin: 0;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;

    -webkit-text-stroke: 1px rgba(0,0,0,0.65);
    text-shadow:
        0 3px 8px rgba(0,0,0,0.85),
        0 10px 28px rgba(0,0,0,0.75);
}

/* Подзаголовок */

.hp-hero__overlay p {
    margin: 0;
    font-size: 1.25rem;
    color: #ffffff;

    -webkit-text-stroke: 0.6px rgba(0,0,0,0.6);
    text-shadow:
        0 2px 6px rgba(0,0,0,0.85),
        0 6px 18px rgba(0,0,0,0.75);
}

/* ================= FORM BUTTONS ================= */

.hp-hero__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hp-hero__buttons button {
    white-space: nowrap;
}

/* =====================================================
   SLIDER ARROWS — FULL OVERRIDE
===================================================== */

/* Убираем любые фоны и подложки */

.hp-hero button,
.hp-hero .swiper-button-prev,
.hp-hero .swiper-button-next,
.hp-hero__arrow {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Убираем псевдо-подложки */

.hp-hero .swiper-button-prev::before,
.hp-hero .swiper-button-next::before,
.hp-hero .swiper-button-prev::after,
.hp-hero .swiper-button-next::after {
    background: none !important;
}

/* Позиционирование */

.hp-hero .swiper-button-prev,
.hp-hero .swiper-button-next,
.hp-hero__arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    z-index: 5 !important; /* ниже текста */

    width: auto !important;
    height: auto !important;

    color: #ffffff !important;
    font-size: 26px !important;

    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.hp-hero .swiper-button-prev:hover,
.hp-hero .swiper-button-next:hover,
.hp-hero__arrow:hover {
    opacity: 1;
}

/* максимально к краям */

.hp-hero .swiper-button-prev,
.hp-hero__arrow.prev {
    left: 8px !important;
}

.hp-hero .swiper-button-next,
.hp-hero__arrow.next {
    right: 8px !important;
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .hp-hero {
        height: 340px;
    }

    .hp-hero__overlay {
        left: 20px;
        right: 20px;
        bottom: 20px;
        max-width: 100%;
        gap: 12px;
    }

    .hp-hero__overlay h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .hp-hero__overlay p {
        font-size: 0.95rem;
    }

    .hp-hero__buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .hp-hero__buttons button {
        width: 100%;
    }

    /* стрелки уводим вниз, чтобы не пересекали текст */

    .hp-hero .swiper-button-prev,
    .hp-hero .swiper-button-next,
    .hp-hero__arrow {
        top: auto !important;
        bottom: 10px !important;
        transform: none !important;
        font-size: 18px !important;
    }

}