.mhr-custom-slider {
    position: relative;
    width: 100%;
    height: var(--mhr-slider-height-desktop, 740px);
    min-height: 520px;
    overflow: hidden;
    background: #07090a;
    color: #fff;
    isolation: isolate;
    touch-action: pan-y;
}

.mhr-custom-slides,
.mhr-custom-slide,
.mhr-custom-slide-media,
.mhr-custom-slide-media img,
.mhr-custom-slide-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mhr-custom-slide {
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity var(--mhr-slider-duration, 850ms) cubic-bezier(.22, 1, .36, 1),
        transform var(--mhr-slider-duration, 850ms) cubic-bezier(.22, 1, .36, 1),
        clip-path var(--mhr-slider-duration, 850ms) cubic-bezier(.22, 1, .36, 1);
}

.mhr-custom-slide.is-active {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
}

.mhr-custom-slide-media {
    display: block;
    overflow: hidden;
}

.mhr-custom-slide-empty {
    background:
        radial-gradient(circle at 72% 36%, rgba(75, 83, 88, .55), transparent 34%),
        linear-gradient(118deg, #060809 0%, #171b1e 54%, #090b0c 100%);
}

.mhr-custom-slide-media img {
    display: block;
    object-fit: cover;
    object-position: var(--mhr-slide-x, 50%) var(--mhr-slide-y, 50%);
    transform: scale(var(--mhr-slide-zoom, 1));
    transition: transform calc(var(--mhr-slider-duration, 850ms) * 1.35) cubic-bezier(.22, 1, .36, 1);
}

.mhr-custom-slide-shade {
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(3, 5, 6, calc(var(--mhr-slide-overlay, .52) + .25)) 0%, rgba(3, 5, 6, var(--mhr-slide-overlay, .52)) 40%, rgba(3, 5, 6, .08) 76%),
        linear-gradient(0deg, rgba(3, 5, 6, .64), transparent 45%);
}

.mhr-custom-slide-content {
    position: absolute;
    z-index: 4;
    left: max(5vw, 42px);
    bottom: clamp(92px, 13vh, 135px);
    width: min(610px, 48vw);
    color: #fff;
}

.mhr-custom-slide-content h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(50px, 5.1vw, 82px);
    font-weight: 650;
    letter-spacing: -.045em;
    line-height: .94;
    white-space: pre-line;
}

.mhr-custom-slide-content p {
    max-width: 540px;
    margin: 23px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.55;
}

.mhr-custom-slide-content a {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    min-height: 48px;
    margin-top: 28px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .58);
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-decoration: none;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mhr-custom-slide-content a:hover,
.mhr-custom-slide-content a:focus-visible {
    border-color: #fff;
    background: #fff;
    color: #080a0b !important;
}

.mhr-custom-slide-content a span {
    font-size: 17px;
    transition: transform 180ms ease;
}

.mhr-custom-slide-content a:hover span {
    transform: translateX(3px);
}

.mhr-custom-arrow {
    position: absolute;
    z-index: 8;
    top: 50%;
    width: 48px;
    height: 56px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .72);
    font: 300 42px/1 Arial, sans-serif;
    transform: translateY(-50%);
    cursor: pointer;
    transition: color 180ms ease, transform 180ms ease;
}

.mhr-custom-arrow:hover,
.mhr-custom-arrow:focus-visible {
    color: #fff;
    transform: translateY(-50%) scale(1.08);
}

.mhr-custom-prev { left: 14px; }
.mhr-custom-next { right: 14px; }

.mhr-custom-dots {
    position: absolute;
    z-index: 8;
    left: 50%;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.mhr-custom-dots button {
    width: 24px;
    height: 2px;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: width 180ms ease, background 180ms ease;
}

.mhr-custom-dots button.is-active {
    width: 38px;
    background: #fff;
}

.mhr-custom-slide.mhr-transition-slide:not(.is-active) { transform: translateX(7%); }
.mhr-custom-slide.mhr-transition-zoom:not(.is-active) .mhr-custom-slide-media img { transform: scale(calc(var(--mhr-slide-zoom, 1) + .09)); }
.mhr-custom-slide.mhr-transition-reveal:not(.is-active) { clip-path: inset(0 0 0 100%); }
.mhr-custom-slide.mhr-transition-reveal.is-active { clip-path: inset(0); }

.mhr-custom-slide:not(.is-active) .mhr-custom-slide-content {
    opacity: 0;
    transform: translateY(20px);
}

.mhr-custom-slide.is-active .mhr-custom-slide-content {
    opacity: 1;
    transform: none;
    transition: opacity 520ms ease 180ms, transform 650ms cubic-bezier(.22, 1, .36, 1) 150ms;
}

@media (max-width: 1024px) {
    .mhr-custom-slider {
        height: var(--mhr-slider-height-tablet, 620px);
        min-height: 420px;
    }

    .mhr-custom-slide-content {
        width: min(590px, 62vw);
    }
}

@media (max-width: 767px) {
    .mhr-custom-slider {
        height: var(--mhr-slider-height-mobile, 560px);
        min-height: 360px;
    }

    .mhr-custom-slide-media img {
        object-position: var(--mhr-slide-mobile-x, 50%) var(--mhr-slide-mobile-y, 50%);
    }

    .mhr-custom-slide-shade {
        background:
            linear-gradient(90deg, rgba(3, 5, 6, calc(var(--mhr-slide-overlay, .52) + .2)), rgba(3, 5, 6, .12) 92%),
            linear-gradient(0deg, rgba(3, 5, 6, .88) 0%, rgba(3, 5, 6, .22) 70%);
    }

    .mhr-custom-slide-content {
        left: 30px;
        bottom: 78px;
        width: calc(100% - 60px);
    }

    .mhr-custom-slide-content h2 {
        max-width: 94%;
        font-size: clamp(38px, 11.4vw, 56px);
        line-height: .96;
    }

    .mhr-custom-slide-content p {
        max-width: 92%;
        margin-top: 17px;
        font-size: 15px;
        line-height: 1.5;
    }

    .mhr-custom-slide-content a {
        min-height: 50px;
        margin-top: 20px;
    }

    .mhr-custom-arrow {
        top: auto;
        bottom: 17px;
        width: 44px;
        height: 44px;
        transform: none;
        font-size: 34px;
    }

    .mhr-custom-arrow:hover,
    .mhr-custom-arrow:focus-visible {
        transform: scale(1.06);
    }

    .mhr-custom-prev { left: 16px; }
    .mhr-custom-next { right: 16px; }
    .mhr-custom-dots { bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .mhr-custom-slider *,
    .mhr-custom-slider *::before,
    .mhr-custom-slider *::after {
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
        animation: none !important;
    }
}
