/* ================================================================
   Hero Slider (Swiper-based)
   ================================================================ */
.hero-slider {
    position: relative;
    width: 100%;
    /* высота: viewport минус высота хедера (~120px), не меньше 560px */
    height: 800px;
    background-color: var(--color-accent-secondary);
    overflow: hidden;
}

/* ---- Swiper wrapper stretches to slider height ---- */
.hero-slider .swiper-wrapper { height: 100%; }

/* ---- Single slide ---- */
.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* ---- Background image ---- */
.hero-slide__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
    user-select: none;
}

/* ---- Overlay: тёмный градиент слева, светлее справа ---- */
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #1B433299;
}

/* ---- Container inside slide ---- */
.hero-slide > .container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
}

/* ---- Content (left ~52%) ---- */
.hero-slide__content {
    width: 100%;
    max-width: 793px;
    display: flex;
    flex-direction: column;
}

/* ---- Badge ---- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    padding: 10px;
    color: var(--color-text-primary);
    font-size: 12px;
    font-weight: 500;
    width: fit-content;
    backdrop-filter: blur(4px);
    line-height: 16px;
    margin-bottom: 40px;
}

/* ---- Heading ---- */
.hero-slide__heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 3.2vw, 44px);
    font-weight: 600;
    color: var(--color-white);
    line-height: clamp(40px, 3.2vw, 56px);;
    letter-spacing: 0px;
    margin: 0;
}

/* ---- Subtext ---- */
.hero-slide__subtext {
    font-size: clamp(16px, 1.4vw, 20px);
    color: #D1D5DC;
    line-height: clamp(26px, 1.8vw, 28px);
    margin-top: 40px;
}

/* ---- Buttons row ---- */
.hero-slide__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 66px;
}

/* Hero size modifier */
.btn--hero {
    width: 203px;
}

/* ================================================================
   Swiper pagination override (dots)
   ================================================================ */
.hero-slider__pagination {
    position: absolute;
    bottom: 52px !important;
    left: 50% !important;
    transform: translateX(-50%);
    z-index: 10;
    width: auto !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* override swiper bullet defaults */
.hero-slider__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E8F3EE;
    opacity: 1;
    margin: 0 !important;
    transition: background-color var(--transition), transform var(--transition);
}

.hero-slider__pagination .swiper-pagination-bullet-active {
    background: var(--color-accent-secondary);
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 1024px) {

}

@media (max-width: 768px) {
    .hero-slider {
        height: 700px;
    }

    .hero-slide { padding-block: 48px; }

    .hero-slide__content { width: 100%; justify-content: center; align-items: center; }

    .hero-slide__heading,
    .hero-slide__subtext {
        text-align: center;
        width: 100%;
    }

    .hero-slide__subtext {
        margin-top: 20px;
    }

    .hero-slide__actions {
        justify-content: center;
        gap: 20px;
        margin-top: 20px;
    }
}

@media (max-width: 560px) {
    .hero-badge {
        width: 100%;
        justify-content: center;
    }
    .hero-slide__actions { flex-direction: column; align-items: stretch; width: 100%; }
    .btn--hero { width: 100%; justify-content: center; }
}
