.softrum-hero {
    --softrum-hero-blue: #1469a8;
    --softrum-hero-green: #79b928;
    --softrum-hero-control: rgba(12, 24, 36, 0.58);
    --softrum-hero-control-hover: rgba(12, 24, 36, 0.78);
    --softrum-hero-white: #fff;
    --softrum-hero-transition: 560ms cubic-bezier(0.22, 1, 0.36, 1);

    position: relative;
    width: 100%;
    overflow: hidden;
    background: #eef3f6;
    isolation: isolate;
}

.softrum-hero *,
.softrum-hero *::before,
.softrum-hero *::after {
    box-sizing: border-box;
}

.softrum-hero__viewport {
    position: relative;
    width: 100%;
    aspect-ratio: var(--softrum-hero-ratio, 1920 / 360);
    min-height: 1px;
    overflow: hidden;
    touch-action: pan-y;
}

.softrum-hero__slides {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}

.softrum-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(1.5%, 0, 0) scale(1.01);
    transition:
        opacity var(--softrum-hero-transition),
        transform var(--softrum-hero-transition),
        visibility 0s linear 560ms;
    will-change: opacity, transform;
}

.softrum-hero__slide.is-active {
    z-index: 2;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
    transition-delay: 0s;
}

.softrum-hero__link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.softrum-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    user-select: none;
    -webkit-user-drag: none;
}

.softrum-hero__arrow,
.softrum-hero__autoplay,
.softrum-hero__dot {
    margin: 0;
    border: 0;
    font: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.softrum-hero__arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    color: var(--softrum-hero-white);
    background: var(--softrum-hero-control);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(12, 24, 36, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease,
        opacity 180ms ease;
}

.softrum-hero__arrow--prev {
    left: clamp(12px, 2vw, 28px);
}

.softrum-hero__arrow--next {
    right: clamp(12px, 2vw, 28px);
}

.softrum-hero__arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .softrum-hero__arrow:hover,
    .softrum-hero__autoplay:hover {
        background: var(--softrum-hero-control-hover);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .softrum-hero__arrow--prev:hover {
        transform: translate(-2px, -50%);
    }

    .softrum-hero__arrow--next:hover {
        transform: translate(2px, -50%);
    }
}

.softrum-hero__arrow:focus-visible,
.softrum-hero__autoplay:focus-visible,
.softrum-hero__dot:focus-visible,
.softrum-hero__link:focus-visible {
    outline: 3px solid var(--softrum-hero-green);
    outline-offset: 3px;
}

.softrum-hero__nav {
    position: absolute;
    left: 50%;
    bottom: clamp(10px, 1.8vw, 22px);
    z-index: 5;
    display: flex;
    min-height: 42px;
    max-width: calc(100% - 32px);
    align-items: center;
    gap: 12px;
    padding: 7px 8px 7px 12px;
    color: var(--softrum-hero-white);
    background: rgba(12, 24, 36, 0.56);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(12, 24, 36, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(-50%);
}

.softrum-hero__counter {
    display: inline-flex;
    min-width: 48px;
    align-items: baseline;
    gap: 4px;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.softrum-hero__counter-separator {
    opacity: 0.54;
}

.softrum-hero__dots {
    display: flex;
    align-items: center;
    gap: 4px;
}

.softrum-hero__dot {
    display: grid;
    width: 30px;
    height: 28px;
    padding: 0 4px;
    place-items: center;
    background: transparent;
    border-radius: 999px;
}

.softrum-hero__dot span {
    display: block;
    width: 100%;
    height: 3px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    transition:
        height 180ms ease,
        background-color 180ms ease,
        transform 180ms ease;
}

.softrum-hero__dot.is-active span {
    height: 4px;
    background: var(--softrum-hero-white);
}

@media (hover: hover) {
    .softrum-hero__dot:hover span {
        background: rgba(255, 255, 255, 0.76);
        transform: scaleY(1.25);
    }
}

.softrum-hero__autoplay {
    display: grid;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    color: var(--softrum-hero-white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    transition:
        background-color 180ms ease,
        border-color 180ms ease;
}

.softrum-hero__icon {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.softrum-hero__icon--play {
    display: none;
}

.softrum-hero.is-paused .softrum-hero__icon--pause {
    display: none;
}

.softrum-hero.is-paused .softrum-hero__icon--play {
    display: block;
}

.softrum-hero__status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.softrum-hero.is-dragging {
    cursor: grabbing;
}

.softrum-hero.is-dragging .softrum-hero__link {
    pointer-events: none;
}

@media (max-width: 767px) {
    .softrum-hero__arrow {
        display: none;
    }

    /*.softrum-hero__viewport {
        height: 110px;
        min-height: 110px;
        aspect-ratio: auto;
    }*/

    .softrum-hero__viewport {
        height: clamp(125px, 34vw, 180px);
        min-height: 125px;
        aspect-ratio: auto;
    }

    .softrum-hero__image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .softrum-hero__nav {
        bottom: 8px;
        min-height: 36px;
        gap: 7px;
        padding: 4px 5px 4px 9px;
    }

    .softrum-hero__counter {
        min-width: 42px;
        font-size: 11px;
    }

    .softrum-hero__dots {
        gap: 1px;
    }

    .softrum-hero__dot {
        width: 22px;
        height: 26px;
        padding-inline: 3px;
    }

    .softrum-hero__autoplay {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 479px) {
    .softrum-hero__counter {
        display: none;
    }

    .softrum-hero__nav {
        max-width: calc(100% - 16px);
    }

    .softrum-hero__dot {
        width: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .softrum-hero__slide,
    .softrum-hero__arrow,
    .softrum-hero__dot span,
    .softrum-hero__autoplay {
        transition: none !important;
    }
}
