.hero {
    position: relative;
    width: 100%;
    height: min(clamp(380px, 46vw, 700px), var(--hero-limit, 700px));
    overflow: hidden;
    background: var(--pale);
}
.hero-slide {
    position: absolute;
    inset: 0;
}
.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-content {
    position: absolute;
    inset: 0;
    max-width: var(--content);
    margin: auto;
    padding: 30px 24px 60px;
    display: flex;
    align-items: center;
}
.hero-content > div {
    width: 47%;
    max-width: 540px;
}
.hero-content h1 {
    font-size: clamp(36px, 4.15vw, 60px);
    line-height: 1.1;
    font-weight: 750;
    letter-spacing: -1.7px;
    color: var(--navy);
    margin-bottom: 24px;
}
.hero-content p {
    max-width: 450px;
    font-size: 17px;
    line-height: 1.65;
    color: #365873;
    margin-bottom: 32px;
}
.hero-content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: var(--blue);
    color: white;
    padding: 15px 26px;
    min-height: 51px;
    border: 1px solid var(--blue);
    border-radius: 4px;
    font-weight: 600;
}
.hero-content a:hover,
.hero-content a:focus-visible {
    background: var(--navy);
    border-color: var(--navy);
}
.hero-controls {
    position: absolute;
    bottom: 27px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
}
.hero-controls > button {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #a8c3d6;
    color: var(--navy);
    background: #ffffff80;
    border-radius: 50%;
}
.hero-controls > button:hover,
.hero-controls > button:focus-visible {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}
.hero-controls > button svg {
    width: 17px;
    height: 17px;
}
.hero-controls .is-paused svg {
    display: none;
}
.hero-controls .is-paused::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
    margin-left: 3px;
}
.hero-dots {
    display: flex;
    gap: 9px;
}
.hero-dots button {
    width: 9px;
    height: 9px;
    border: 1px solid var(--blue);
    border-radius: 50%;
    background: transparent;
}
.hero-dots button:hover,
.hero-dots button:focus-visible,
.hero-dots button[aria-pressed="true"] {
    background: var(--blue);
}
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }
    .hero-content p {
        font-size: 15px;
    }
    .hero-content > div {
        width: 52%;
    }
}
@media (max-width: 640px) {
    .hero {
        height: min(112vw, 500px, var(--hero-limit, 500px));
    }
    .hero-slide > img {
        object-position: 35% center;
    }
    .hero-content {
        padding: 28px 20px 64px;
        background: linear-gradient(90deg, #eaf3fadb, #eaf3fa60 70%, transparent);
    }
    .hero-content > div {
        width: 88%;
        max-width: 340px;
    }
    .hero-content h1 {
        font-size: clamp(32px, 9vw, 40px);
        line-height: 1.13;
        margin-bottom: 18px;
    }
    .hero-content p {
        font-size: 14px;
        max-width: 290px;
        margin-bottom: 22px;
    }
    .hero-content a {
        padding: 12px 20px;
        min-height: 46px;
        gap: 13px;
        font-size: 13px;
    }
    .hero-controls {
        bottom: 20px;
    }
}
@media (max-height: 520px) and (orientation: landscape) {
    .hero-content {
        padding-top: 12px;
        padding-bottom: 48px;
    }
    .hero-content > div {
        width: 62%;
        max-width: 520px;
    }
    .hero-content h1 {
        font-size: clamp(22px, 3.4vw, 30px);
        margin-bottom: 8px;
        letter-spacing: -0.5px;
    }
    .hero-content p {
        font-size: 12px;
        line-height: 1.3;
        margin-bottom: 12px;
    }
    .hero-content a {
        min-height: 34px;
        padding: 7px 14px;
        font-size: 12px;
    }
    .hero-controls {
        bottom: 10px;
    }
    .hero-controls > button {
        width: 26px;
        height: 26px;
    }
}
