.hero-slider {
    --hero-height: 620px;
    --slide-duration: 3500ms;
    position: relative;
    min-height: var(--hero-height);
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background: #c61320;
    touch-action: pan-y pinch-zoom;
}

.hero-slides {
    min-height: var(--hero-height);
}

.hero-slide {
    --hero-color: #c61320;
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    background: var(--hero-color);
    pointer-events: none;
    transition: opacity 450ms cubic-bezier(0.22, 1, 0.36, 1), visibility 0s 450ms;
}

.hero-slide.is-active {
    z-index: 1;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition-delay: 0s;
}

.hero-theme-aquarium {
    --hero-color: #3c1925;
}

.hero-theme-birds {
    --hero-color: #951526;
}

.hero-media {
    position: absolute;
    inset-block: 0;
    inset-inline: 40% 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 18%);
}

.hero-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 44%;
    transform: scale(1.07);
    transition: transform var(--slide-duration) linear;
}

.hero-slide.is-active .hero-image {
    transform: scale(1);
}

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

.hero-slide::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, var(--hero-color) 0%, var(--hero-color) 31%, transparent 75%), linear-gradient(0deg, rgb(35 6 16 / 62%) 0%, transparent 35%);
    content: "";
    pointer-events: none;
}

.hero-slide-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    min-height: var(--hero-height);
    padding-top: 40px;
    padding-bottom: 126px;
}

.hero-copy {
    max-width: 600px;
    width: 53%;
}

.hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(44px, 4.65vw, 68px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.12;
    text-wrap: balance;
}

.hero-title > span {
    display: block;
}

.hero-description {
    max-width: 420px;
    margin: 24px 0 30px;
    color: #fff2f1;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 52px;
    padding: 15px 23px;
    border-radius: 9px;
    color: #b5121a;
    background: #fff;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease;
}

.hero-cta:hover {
    color: #891018;
    background: #ffedef;
}

.hero-cta > i {
    font-size: 17px;
}

.hero-slide.is-active .hero-title {
    animation: hero-text-enter 450ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-slide.is-active .hero-description {
    animation: hero-text-enter 450ms 60ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-slide.is-active .hero-cta {
    animation: hero-text-enter 450ms 110ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-controls {
    position: absolute;
    inset-inline: 0;
    bottom: 26px;
    z-index: 3;
    display: none;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
}

.hero-is-ready .hero-controls {
    display: grid;
}

.hero-pagination {
    display: flex;
    gap: 20px;
    width: min(540px, 100%);
}

.hero-page {
    flex: 1;
    min-width: 0;
    min-height: 48px;
    padding: 8px 0;
    border: 0;
    color: #f6dce0;
    background: transparent;
    text-align: start;
    font-size: 12px;
    font-weight: 650;
}

.hero-page[aria-current="true"],
.hero-page:hover {
    color: #fff;
}

.hero-page-track {
    position: relative;
    display: block;
    height: 2px;
    margin-top: 13px;
    overflow: hidden;
    background: rgb(255 255 255 / 28%);
}

.hero-page-progress {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
}

.hero-page[aria-current="true"] .hero-page-progress {
    animation: hero-progress var(--slide-duration) linear both;
}

.hero-is-paused .hero-page-progress {
    animation-play-state: paused;
}

.hero-navigation,
.hero-arrows {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-navigation {
    gap: 20px;
}

.hero-counter {
    display: flex;
    gap: 9px;
    align-items: baseline;
    margin-inline-end: 4px;
    color: #f4dce1;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.hero-counter > [data-hero-current] {
    color: #fff;
    font-size: 18px;
    font-weight: 750;
}

.hero-counter-divider {
    color: #e6bfc7;
}

.hero-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 52%);
    border-radius: 50%;
    color: #fff;
    background: transparent;
    font-size: 14px;
    transition: background-color 160ms ease, color 160ms ease;
}

.hero-control:hover {
    color: #a70f1b;
    background: #fff;
}

.hero-control:focus-visible,
.hero-page:focus-visible,
.hero-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 5px;
}

:root[dir="rtl"] .hero-slide::after {
    background: linear-gradient(270deg, var(--hero-color) 0%, var(--hero-color) 31%, transparent 75%), linear-gradient(0deg, rgb(35 6 16 / 62%) 0%, transparent 35%);
}

:root[dir="rtl"] .hero-media {
    -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 18%);
    mask-image: linear-gradient(270deg, transparent 0%, #000 18%);
}

:root[dir="rtl"] .hero-page-progress {
    transform-origin: right;
}

:root[dir="rtl"] .hero-cta > i,
:root[dir="rtl"] .hero-arrows i {
    transform: rotate(180deg);
}

@keyframes hero-text-enter {
    from { opacity: 0.55; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

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

    .hero-copy {
        width: 62%;
    }

    .hero-title {
        font-size: clamp(38px, 5.7vw, 58px);
    }

    .hero-description {
        max-width: 360px;
        font-size: 14px;
    }

    .hero-controls {
        gap: 26px;
    }

    .hero-pagination {
        gap: 16px;
    }

    .hero-navigation {
        gap: 10px;
    }
}

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

    .hero-media,
    :root[dir="rtl"] .hero-media {
        inset-block: 225px 0;
        inset-inline: 0;
        -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
        mask-image: linear-gradient(180deg, transparent 0%, #000 14%);
    }

    .hero-image {
        object-position: center 38%;
    }

    .hero-slide::after,
    :root[dir="rtl"] .hero-slide::after {
        background: linear-gradient(180deg, var(--hero-color) 0%, var(--hero-color) 30%, transparent 62%), linear-gradient(0deg, rgb(35 6 16 / 78%) 0%, transparent 35%);
    }

    .hero-slide-inner {
        align-items: flex-start;
        padding-top: 32px;
        padding-bottom: 130px;
    }

    .hero-copy {
        width: 100%;
        max-width: 390px;
    }

    .hero-title {
        font-size: clamp(33px, 9.1vw, 44px);
        letter-spacing: -0.035em;
        line-height: 1.12;
    }

    .hero-description {
        max-width: 320px;
        margin-block: 17px 21px;
        font-size: 13px;
        line-height: 1.7;
    }

    .hero-cta {
        min-height: 46px;
        padding: 12px 18px;
        gap: 22px;
        border-radius: 8px;
        font-size: 12px;
    }

    .hero-controls {
        bottom: 18px;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-pagination {
        gap: 14px;
        width: 100%;
    }

    .hero-page {
        font-size: 10px;
        min-height: 42px;
    }

    .hero-page-track {
        margin-top: 10px;
    }

    .hero-navigation {
        justify-content: flex-end;
        gap: 12px;
    }

    .hero-counter {
        margin-inline-end: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: opacity 100ms linear, visibility 0s 100ms;
    }

    .hero-slide.is-active {
        transition-delay: 0s;
    }

    .hero-image,
    .hero-cta,
    .hero-control {
        transform: none;
        transition: none;
    }

    .hero-slide.is-active .hero-title,
    .hero-slide.is-active .hero-description,
    .hero-slide.is-active .hero-cta {
        animation: none;
    }
}
