.s2f-hero-slider {
    --s2f-hero-min-height: 620px;
    --s2f-hero-content-width: 1180px;
    --s2f-hero-panel-width: 800px;
    --s2f-hero-panel-bg: rgba(0, 0, 0, 0.56);
    --s2f-hero-rule: rgba(255, 255, 255, 0.56);
    --s2f-hero-accent: rgb(255, 169, 2);
    position: relative;
    width: 100%;
    min-height: var(--s2f-hero-min-height);
    overflow: hidden;
    background: #1d1d1d;
    color: #fff;
}

.s2f-hero-slider__viewport,
.s2f-hero-slider__track {
    position: relative;
    width: 100%;
    min-height: inherit;
}

.s2f-hero-slider__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    min-height: inherit;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 700ms ease, visibility 700ms ease;
}

.s2f-hero-slider__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.s2f-hero-slider__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.s2f-hero-slider__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.04);
    z-index: 1;
}

.s2f-hero-slider__content-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: var(--s2f-hero-content-width);
    margin: 0 auto;
    padding: 80px 72px;
}

.s2f-hero-slider__content {
    width: min(100%, var(--s2f-hero-panel-width));
    padding: 20px 34px 22px;
    background: var(--s2f-hero-panel-bg);
    text-align: center;
    font-family: Muli, Arial, sans-serif;
}

.s2f-hero-slider__title {
    margin: 0 0 12px;
    padding: 12px 0 14px;
    border-top: 1px solid var(--s2f-hero-rule);
    border-bottom: 1px solid var(--s2f-hero-rule);
    color: #fff;
    font-family: 'Josefin Slab', sans-serif;
    font-size: 54px;
    line-height: 0.95;
    font-weight: 400;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.s2f-hero-slider__subtitle {
    max-width: 520px;
    margin: 0 auto 18px;
    color: #fff;
    font-family: Muli, Arial, sans-serif;
    font-size: 21px;
    line-height: 1.45;
    font-weight: 400;
}

.s2f-hero-slider__link {
    display: inline-block;
    min-height: 0;
    padding: 0;
    border: 0;
    color: var(--s2f-hero-accent);
    background: transparent;
    font-family: Muli, Arial, sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.45;
    transition: color 180ms ease, opacity 180ms ease;
}

.s2f-hero-slider__link:hover,
.s2f-hero-slider__link:focus-visible {
    color: #f0c43c;
    background: transparent;
    opacity: 0.95;
}

.s2f-hero-slider__arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 56px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 42px;
    font-weight: 300;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.s2f-hero-slider__arrow--prev {
    left: 10px;
}

.s2f-hero-slider__arrow--next {
    right: 10px;
}

.s2f-hero-slider__arrow:hover,
.s2f-hero-slider__arrow:focus-visible {
    background: transparent;
    opacity: 0.8;
}

.s2f-hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 3;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.s2f-hero-slider__dot {
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.s2f-hero-slider__dot.is-active {
    background: #fff;
}

.s2f-hero-slider__arrow:focus-visible,
.s2f-hero-slider__dot:focus-visible,
.s2f-hero-slider__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .s2f-hero-slider {
        --s2f-hero-min-height: 560px;
        --s2f-hero-panel-width: 560px;
    }

    .s2f-hero-slider__content-wrap {
        padding: 72px 54px;
    }
}

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

    .s2f-hero-slider__content-wrap {
        padding: 56px 28px 78px;
    }

    .s2f-hero-slider__content {
        width: 100%;
        padding: 18px 22px 20px;
    }

    .s2f-hero-slider__title {
        font-size: 30px;
    }

    .s2f-hero-slider__subtitle,
    .s2f-hero-slider__link {
        font-size: 18px;
    }

    .s2f-hero-slider__arrow {
        top: 50%;
        bottom: auto;
        width: 36px;
        height: 48px;
        transform: translateY(-50%);
        font-size: 34px;
    }

    .s2f-hero-slider__arrow--prev {
        left: 4px;
    }

    .s2f-hero-slider__arrow--next {
        right: 4px;
    }

    .s2f-hero-slider__dots {
        bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .s2f-hero-slider__slide,
    .s2f-hero-slider__link,
    .s2f-hero-slider__arrow {
        transition: none;
    }
}
