.hero {
    --hero-radius-bottom: 35px;

    position: relative;
    width: 100vw;
    max-width: 100%;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    border-radius: 0 0 var(--hero-radius-bottom) var(--hero-radius-bottom);
    background: transparent;
}

.hero__viewport {
    position: relative;
    width: 100%;
    min-height: clamp(420px, 62vh, 640px);
    overflow: hidden;
    border-radius: 0 0 var(--hero-radius-bottom) var(--hero-radius-bottom);
    transform: translateZ(0);
    isolation: isolate;
}

.hero__track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    border-radius: 0 0 var(--hero-radius-bottom) var(--hero-radius-bottom);
    opacity: 0;
    z-index: 0;
    transition: opacity 0.6s var(--header-ease-out, ease);
    pointer-events: none;
}

.hero__slide.is-active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.hero__slide.is-leaving {
    z-index: 1;
    pointer-events: none;
}

.hero__bg,
.hero__overlay {
    border-radius: 0 0 var(--hero-radius-bottom) var(--hero-radius-bottom);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-color: #2d5a56;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(20, 48, 45, 0.82) 0%,
        rgba(20, 48, 45, 0.45) 55%,
        rgba(20, 48, 45, 0.25) 100%
    );
}

.hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--header-container, 1320px);
    margin: 0 auto;
    padding: 72px 24px 88px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    gap: 16px;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: var(--header-radius-pill, 999px);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}

.hero__title {
    margin: 0;
    max-width: 16ch;
    font-size: clamp(28px, 4.5vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
}

.hero__subtitle {
    margin: 0;
    max-width: 42ch;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
}

.hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 28px;
    border-radius: var(--header-radius-pill, 999px);
    background: var(--site-button-bg, #ffffff);
    color: var(--site-button-text, #4a8c88);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero__btn:hover {
    background: var(--site-button-bg-hover, #ffffff);
    color: var(--site-button-text-hover, #3d7572);
    transform: translateY(-1px);
}

.hero__controls {
    position: absolute;
    left: max(24px, calc((100% - var(--header-container, 1320px)) / 2 + 24px));
    bottom: 32px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    backdrop-filter: blur(4px);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero__arrow:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
}

.hero__dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero__dot.is-active {
    background: #ffffff;
    transform: scale(1.15);
}

@media (max-width: 767px) {
    .hero {
        --hero-radius-bottom: 32px;
    }

    .hero__container {
        padding-top: 56px;
        padding-bottom: 72px;
    }

    .hero__controls {
        left: 24px;
        bottom: 20px;
    }

    .hero__arrow {
        width: 36px;
        height: 36px;
    }
}
