.uhy-services-slider {
    --uhy-slider-height: 720px;
    --uhy-slider-content-width: min(100% - 64px, 1440px);
    position: relative;
    display: grid;
    min-height: max(var(--uhy-slider-height), var(--uhy-slider-dynamic-height, 0px));
    overflow: hidden;
    isolation: isolate;
    container-type: inline-size;
    background: #183f36;
}

.uhy-slider__slides,
.uhy-slider__slide,
.uhy-slider__image,
.uhy-slider__video,
.uhy-slider__overlay {
    position: absolute;
    inset: 0;
}

.uhy-slider__slide {
    z-index: -2;
    visibility: hidden;
    opacity: 0;
    transition: opacity 700ms cubic-bezier(.2, .75, .25, 1), visibility 0s linear 700ms;
}

.uhy-slider__slide.is-active {
    z-index: -1;
    visibility: visible;
    opacity: 1;
    transition: opacity 700ms cubic-bezier(.2, .75, .25, 1);
}

.uhy-slider__image {
    z-index: 0;
    background-color: #183f36;
    background-image: var(--uhy-slide-image, linear-gradient(125deg, #173f36, #2f5547));
    background-position: var(--uhy-slide-image-position, center center);
    background-size: var(--uhy-slide-image-size, cover);
    transform: scale(1.01);
    transition: transform 7s ease-out;
}

.uhy-slider__slide.is-active .uhy-slider__image {
    transform: scale(1.055);
}

.uhy-slider__video {
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uhy-slider__video.is-unavailable {
    display: none;
}

.uhy-slider__overlay {
    z-index: 2;
    opacity: .56;
    background: rgba(18, 33, 31, .56);
}

.uhy-slider__content-wrap {
    display: flex;
    width: var(--uhy-slider-content-width);
    margin: 0 auto;
    padding: clamp(120px, 14vh, 180px) 0 clamp(218px, 24vh, 290px);
    pointer-events: none;
}

.uhy-services-slider.has-counters .uhy-slider__content-wrap {
    padding-bottom: clamp(300px, 31vh, 360px);
}

.uhy-slider__content {
    position: relative;
    width: min(1020px, 100%);
    min-height: 270px;
}

.uhy-slider__copy {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 400ms ease, transform 500ms cubic-bezier(.2, .75, .25, 1), visibility 0s linear 500ms;
}

.uhy-slider__copy.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 420ms ease 120ms, transform 540ms cubic-bezier(.2, .75, .25, 1) 120ms;
    pointer-events: auto;
}

.uhy-slider__eyebrow {
    margin: 0 0 18px;
    color: #d7f03e;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.uhy-slider__title {
    max-width: 17.5ch;
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 5.2vw, 80px);
    font-weight: 600;
    letter-spacing: -.055em;
    line-height: .99;
}

.uhy-slider__description {
    max-width: 750px;
    margin-top: 24px;
    color: #fff;
    font-size: 18px;
    line-height: 1.55;
}

.uhy-slider__description p {
    margin: 0;
}

.uhy-slider__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 34px;
    padding: 15px 20px;
    color: #153c33;
    background: #d7f03e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: transform 220ms ease, background-color 220ms ease, color 220ms ease;
}

.uhy-slider__cta:hover,
.uhy-slider__cta:focus-visible {
    color: #153c33;
    transform: translateY(-2px);
}

.uhy-slider__cta:focus-visible,
.uhy-slider__tab:focus-visible,
.uhy-slider__pause:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.uhy-slider__cta-arrow {
    font-size: 1.2em;
    line-height: 0;
}

.uhy-slider__counters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px clamp(24px, 3vw, 48px);
    width: min(100%, 640px);
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .34);
}

.uhy-slider__counter {
    display: grid;
    gap: 4px;
    min-width: 0;
    justify-items: center;
    text-align: center;
}

.uhy-slider__counter-number {
    color: #d7f03e;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
    line-height: .95;
    white-space: nowrap;
}

.uhy-slider__counter-prefix,
.uhy-slider__counter-suffix {
    display: inline-block;
    color: currentColor;
    font-size: .58em;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    vertical-align: baseline;
}

.uhy-slider__counter-prefix {
    margin-right: .22em;
}

.uhy-slider__counter-suffix {
    margin-left: .16em;
}

.uhy-slider__counter-label {
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    line-height: 1.25;
}

.uhy-slider__navigation-wrap {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: stretch;
    width: var(--uhy-slider-content-width);
    margin: 0 auto;
}

.uhy-slider__navigation {
    display: grid;
    flex: 1;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    overflow: hidden;
}

.uhy-slider__tab {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 136px;
    padding: 26px 24px 24px;
    overflow: hidden;
    color: rgba(255, 255, 255, .78);
    border: 1px solid rgba(255, 255, 255, .23);
    border-right-width: 0;
    border-radius: 0;
    background: rgba(21, 60, 51, .4);
    box-shadow: none;
    cursor: pointer;
    text-align: left;
    white-space: normal;
    transition: color 220ms ease, background-color 220ms ease;
}

.uhy-slider__tab:last-child {
    border-right-width: 1px;
}

.uhy-slider__tab:hover,
.uhy-slider__tab[aria-selected="true"] {
    color: #fff;
    background: rgba(21, 60, 51, .77);
}

.uhy-slider__tab-number {
    align-self: start;
    color: currentColor;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    line-height: 1;
    opacity: .66;
}

.uhy-slider__tab-title {
    align-self: end;
    max-width: 20ch;
    margin-top: 20px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: normal;
}

.uhy-slider__tab-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    background: #d7f03e;
    transform: scaleX(0);
    transform-origin: left center;
}

.uhy-slider__tab[aria-selected="true"] .uhy-slider__tab-progress {
    transform: scaleX(1);
}

.uhy-services-slider.is-autoplaying .uhy-slider__tab[aria-selected="true"] .uhy-slider__tab-progress {
    animation: uhy-slider-progress var(--uhy-slider-delay, 8000ms) linear both;
}

.uhy-services-slider.is-paused .uhy-slider__tab-progress {
    animation-play-state: paused;
}

.uhy-slider__pause {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    min-width: 56px;
    margin-left: 12px;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(21, 60, 51, .72);
    cursor: pointer;
}

.uhy-slider__pause-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.uhy-slider__pause-icon {
    display: block;
    width: 12px;
    height: 14px;
}

.uhy-slider__pause-icon {
    position: relative;
    border-right: 3px solid currentColor;
    border-left: 3px solid currentColor;
}

.uhy-services-slider.is-paused .uhy-slider__pause-icon {
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid currentColor;
    border-right: 0;
}

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

@media (min-width: 768px) and (max-width: 900px) {
    .uhy-slider__content-wrap {
        padding-bottom: 340px;
    }

    .uhy-services-slider.has-counters .uhy-slider__content-wrap {
        padding-bottom: 340px;
    }

    .uhy-slider__navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-columns: auto;
        grid-auto-flow: row;
        gap: 6px;
        overflow: visible;
    }

    .uhy-slider__tab {
        min-width: 0;
        min-height: 118px;
        border-right-width: 1px;
        border-bottom-width: 1px;
    }
}

@container (min-width: 768px) and (max-width: 900px) {
    .uhy-slider__content-wrap {
        padding-bottom: 340px;
    }

    .uhy-services-slider.has-counters .uhy-slider__content-wrap {
        padding-bottom: 340px;
    }

    .uhy-slider__navigation {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-columns: auto;
        grid-auto-flow: row;
        gap: 6px;
        overflow: visible;
    }

    .uhy-slider__tab {
        min-width: 0;
        min-height: 118px;
        border-right-width: 1px;
        border-bottom-width: 1px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .uhy-services-slider {
        --uhy-slider-content-width: min(100% - 48px, 1240px);
    }
}

@media (max-width: 767px) {
    .uhy-services-slider {
        --uhy-slider-content-width: calc(100% - 36px);
        --uhy-slider-height: 680px;
    }

    .uhy-slider__counters {
        display: none;
    }
}

@container (max-width: 767px) {
    .uhy-slider__counters {
        display: none;
    }

    .uhy-slider__navigation {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-flow: row;
        gap: 6px;
        overflow: visible;
        padding: 0;
    }

    .uhy-slider__tab {
        min-width: 0;
        min-height: 64px;
        padding: 12px 13px 14px;
        border-right-width: 1px;
        border-bottom-width: 1px;
    }

    .uhy-slider__content-wrap {
        padding-top: 110px;
        padding-bottom: 230px;
    }

    .uhy-services-slider.has-counters .uhy-slider__content-wrap {
        padding-bottom: 230px;
    }

    .uhy-slider__content {
        min-height: 315px;
    }

    .uhy-slider__title {
        max-width: none;
        font-size: clamp(40px, 12vw, 58px);
    }

    .uhy-slider__description {
        margin-top: 19px;
        font-size: 16px;
        line-height: 1.5;
    }

    .uhy-slider__cta {
        margin-top: 26px;
    }

    .uhy-slider__counter {
        min-width: 0;
    }

    .uhy-slider__counter-number {
        font-size: 26px;
    }

    .uhy-slider__counter-label {
        font-size: 11px;
    }

    .uhy-slider__navigation-wrap {
        width: var(--uhy-slider-content-width);
        padding: 0;
    }

    .uhy-slider__tab:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    .uhy-slider__tab-number {
        display: none;
    }

    .uhy-slider__tab-title {
        display: -webkit-box;
        max-width: none;
        margin-top: 0;
        overflow: hidden;
        font-size: 13px;
        line-height: 1.2;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .uhy-slider__pause {
        position: absolute;
        right: 28px;
        bottom: 208px;
        width: 44px;
        min-width: 44px;
        height: 44px;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .uhy-slider__slide,
    .uhy-slider__copy,
    .uhy-slider__image,
    .uhy-slider__cta {
        transition: none;
    }

    .uhy-slider__slide.is-active .uhy-slider__image {
        transform: none;
    }

    .uhy-slider__tab-progress {
        animation: none !important;
    }
}
