.hero-section {
    padding-top: 0;
    padding-bottom: 0;
}

.hero-slider {
    position: relative;
}

.hero-slides {
    position: relative;
    min-height: 48rem;
    overflow: hidden;
    background: #e8eef5;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    min-height: 48rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    filter: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 26, 46, 0.05), rgba(8, 26, 46, 0.02));
}

.hero-copy-plane {
    position: absolute;
    top: 0;
    right: calc(
        max(1.25rem, calc((100vw - var(--container)) / 2)) +
        (min(var(--container), calc(100vw - 2.5rem)) - min(48rem, 46vw))
    );
    bottom: 0;
    width: max(120vw, 146rem);
    z-index: 1;
    pointer-events: none;
    background: url("../../../img/slider-bg.svg") right center / auto 100% no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 48rem;
    padding-top: 3.2rem;
    padding-bottom: 10rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    color: var(--text-main);
}

.hero-copy-panel {
    width: min(48rem, 46vw);
    padding-left: clamp(0rem, 2vw, 1.5rem);
}

.hero-title {
    max-width: 17ch;
    font-family: "Montserrat Black", "Montserrat", var(--font-display);
    font-size: clamp(1.6rem, 2.4vw, 2.7rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero-title span {
    display: block;
    font-family: "Montserrat Black", "Montserrat", var(--font-display);
    font-weight: 900;
}

.hero-title-red {
    color: #e20c16;
}

.hero-title-blue {
    color: var(--brand-primary);
}

.hero-summary {
    margin: 1.5rem 0 0;
    max-width: 34rem;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    line-height: 1.4;
    font-weight: 600;
    color: #142d46;
    text-align: left;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2.3rem;
}

.hero-actions .btn {
    gap: 0.72rem;
}

.hero-action-icon {
    width: 1.95rem;
    height: 1.95rem;
    display: block;
    flex: 0 0 auto;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 1.35rem;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    padding-top: 0;
}

.hero-dots button {
    width: 1.2rem;
    height: 1.2rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d9d9d9;
    cursor: pointer;
    transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.hero-dots button:hover,
.hero-dots button:focus-visible {
    transform: scale(1.12);
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(47, 158, 209, 0.14);
}

.hero-dots button.is-active {
    background: var(--brand-primary);
}

@media (max-width: 700px) {
    .hero-section {
        padding-top: 0;
    }

    .hero-slides,
    .hero-slide,
    .hero-content {
        min-height: 28rem;
    }

    .hero-slide-image {
        object-position: center top;
    }

    .hero-copy-plane {
        right: 0;
        width: 100%;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
            rgba(255, 255, 255, 0.58);
        backdrop-filter: blur(7px) saturate(120%);
        -webkit-backdrop-filter: blur(7px) saturate(120%);
        opacity: 0.9;
    }

    .hero-content {
        padding-top: 8.65rem;
        padding-bottom: 3.45rem;
        display: grid;
        align-items: center;
        justify-items: center;
        text-align: center;
        justify-content: center;
    }

    .hero-copy-panel {
        width: min(100%, 34rem);
        padding-left: 0;
        text-align: center;
        transform: translateY(-1.25rem);
    }

    .hero-title {
        max-width: 18ch;
        font-size: clamp(1.45rem, 7vw, 2.18rem);
        margin-inline: auto;
    }

    .hero-copy-panel .hero-summary {
        max-width: 31rem;
        margin-top: 0.6rem;
        margin-inline: auto;
        font-size: clamp(0.92rem, 4.25vw, 1.08rem);
        text-align: center;
    }

    .hero-actions {
        width: min(100%, 21rem);
        margin-top: 0.95rem;
        flex-direction: column;
        margin-inline: auto;
    }

    .hero-dots {
        bottom: 0.78rem;
    }
}

@media (max-width: 420px) {
    .hero-slides,
    .hero-slide,
    .hero-content {
        min-height: 28rem;
    }

    .hero-content {
        padding-top: 8.45rem;
        padding-bottom: 3.25rem;
    }

    .hero-copy-panel {
        width: min(100%, 22rem);
        transform: translateY(-1.15rem);
    }

    .hero-title {
        font-size: clamp(1.35rem, 7vw, 2rem);
    }

    .hero-summary {
        font-size: 0.98rem;
    }

    .hero-action-icon {
        width: 1.55rem;
        height: 1.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-dots button {
        transition: none;
    }
}
