.home-hero {
    --header-fallback: 144px;
    position: relative;
    height: min(660px, var(--hero-available, 660px));
    max-height: min(var(--hero-available, 100dvh), calc(100dvh - var(--header-fallback)));
    overflow: hidden;
    background: var(--color-dark);
}
.home-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .6s, visibility .6s;
}
.home-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}
.home-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.home-hero__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #151515de 0%, #20201fa8 35%, #1b1a1920 66%, transparent 100%);
}
.home-hero__content {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    padding-bottom: 24px;
}
.home-hero__copy {
    max-width: 610px;
    width: 53%;
    color: var(--color-white);
}
.home-hero h1,
.home-hero h2 {
    font-size: clamp(40px, 4.4vw, 60px);
    line-height: 1.08;
    letter-spacing: -2px;
    color: var(--color-white);
    margin-bottom: 26px;
}
.home-hero__copy p {
    font-size: 17px;
    line-height: 1.75;
    color: #e7e4df;
    max-width: 500px;
    margin-bottom: 32px;
}
.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.home-hero__controls {
    position: absolute;
    z-index: 3;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
}
.home-hero__controls > button {
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff80;
    background: #24242440;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
}
.home-hero__controls > button:hover {
    background: var(--color-primary);
}
.hero-prev svg {
    transform: rotate(180deg);
}
.hero-dots {
    display: flex;
    gap: 9px;
}
.hero-dots button {
    width: 26px;
    height: 22px;
    position: relative;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.hero-dots button::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 3px;
    top: 9px;
    left: 0;
    background: #ffffff70;
}
.hero-dots button[aria-pressed='true']::after,
.hero-dots button:hover::after {
    background: var(--color-white);
}
@media (max-width: 1024px) {
    .home-hero {
        --header-fallback: 132px;
    }
    .home-hero__copy {
        width: 66%;
    }
    .home-hero__slide::after {
        background: linear-gradient(90deg, #151515e0 0%, #20201f99 48%, #1b1a1920 100%);
    }
    .home-hero h1,
    .home-hero h2 {
        font-size: 46px;
    }
}
@media (max-width: 640px) {
    .home-hero {
        --header-fallback: 118px;
        height: min(650px, var(--hero-available, 650px));
    }
    .home-hero__image {
        object-position: 63% center;
    }
    .home-hero__slide::after {
        background: linear-gradient(90deg, #171717e3 0%, #202020a8 67%, #20202073 100%);
    }
    .home-hero__content {
        padding-bottom: 46px;
    }
    .home-hero__copy {
        width: 100%;
        max-width: 440px;
    }
    .home-hero h1,
    .home-hero h2 {
        font-size: 38px;
        letter-spacing: -1.2px;
        margin-bottom: 20px;
        line-height: 1.13;
    }
    .home-hero__copy p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 26px;
    }
    .home-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .home-hero__controls {
        bottom: 20px;
    }
}
@media (max-height: 500px) {
    .home-hero__content {
        padding-bottom: 34px;
    }
    .home-hero__copy {
        width: 80%;
        max-width: 700px;
    }
    .home-hero h1,
    .home-hero h2 {
        font-size: 27px;
        margin-bottom: 8px;
    }
    .home-hero__copy p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 12px;
        max-width: 600px;
    }
    .home-hero__actions {
        flex-direction: row;
    }
    .home-hero__actions .button {
        min-height: 36px;
        padding: 7px 14px;
        font-size: 12px;
    }
    .home-hero__controls {
        bottom: 5px;
    }
    .home-hero__controls > button {
        width: 26px;
        height: 26px;
    }
}
@media (min-width: 1025px) {
    .home-hero__content {
        padding-left: 40px;
        padding-right: 40px;
    }
    .home-hero__controls {
        inset: 0;
        transform: none;
        display: block;
        pointer-events: none;
    }
    .home-hero__controls > button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
        pointer-events: auto;
    }
    .home-hero__controls .hero-prev {
        left: 20px;
    }
    .home-hero__controls .hero-next {
        right: 20px;
    }
    .home-hero__controls .hero-dots {
        position: absolute;
        bottom: 26px;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: auto;
    }
}
