.tresto-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(500px, calc(100svh - 200px), 740px);
    margin-top: var(--tresto-hero-header-offset, 112px);
    overflow: hidden;
    background: #09243d;
    color: #fff;
    font-family: Poppins, sans-serif;
}

.tresto-hero__images,
.tresto-hero__slide {
    position: absolute;
    inset: 0;
}

.tresto-hero__images::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 22, 40, .94), rgba(4, 22, 40, .78) 36%, rgba(4, 22, 40, .24) 74%, rgba(4, 22, 40, .08));
    content: '';
}

.tresto-hero__slide {
    opacity: 0;
    transition: opacity 700ms ease;
}

.tresto-hero__slide.is-active {
    opacity: 1;
}

.tresto-hero .tresto-hero__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
}

.tresto-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: inherit;
    max-width: 1260px;
    margin: 0 auto;
    padding: 56px 32px 72px;
    align-items: center;
}

.tresto-hero__content {
    max-width: 760px;
}

.tresto-hero #tresto-hero-heading {
    margin: 0;
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: clamp(38px, 4.2vw, 60px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.tresto-hero .tresto-hero__tagline {
    max-width: 720px;
    margin: 24px 0 30px;
    color: #eef4fa;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
}

.tresto-hero__tagline span {
    display: inline-block;
    white-space: nowrap;
}

.tresto-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tresto-hero__actions a {
    display: inline-flex;
    min-height: 52px;
    padding: 14px 26px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
}

.tresto-hero__actions .tresto-hero__quote {
    background: #fff;
    color: #092b4c;
}

.tresto-hero__actions .tresto-hero__quote:hover {
    background: #eef3f8;
}

.tresto-hero__actions .tresto-hero__products {
    border-color: rgba(255, 255, 255, .7);
    background: rgba(4, 22, 40, .3);
    color: #fff;
}

.tresto-hero__actions .tresto-hero__products:hover {
    background: rgba(255, 255, 255, .15);
}

.tresto-hero__controls {
    position: absolute;
    z-index: 3;
    right: 32px;
    bottom: 22px;
    display: flex;
    padding: 4px 8px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 30px;
    background: rgba(4, 22, 40, .8);
}

.tresto-hero__controls[hidden] {
    display: none;
}

.tresto-hero__controls button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.tresto-hero__dots {
    display: flex;
}

.tresto-hero__dots button::after {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    content: '';
}

.tresto-hero__dots button[aria-current]::after {
    background: #ffc83d;
}

.tresto-hero__controls .tresto-hero__pause {
    width: 58px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.tresto-hero a:focus-visible,
.tresto-hero button:focus-visible {
    outline: 3px solid #ffc83d;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    .tresto-hero {
        min-height: 0;
    }

    .tresto-hero__images {
        position: relative;
        height: clamp(220px, 56vw, 360px);
    }

    .tresto-hero__images::after {
        background: linear-gradient(0deg, rgba(9, 36, 61, .25), transparent 60%);
    }

    .tresto-hero .tresto-hero__image {
        object-position: center;
    }

    .tresto-hero__inner {
        padding: 28px 24px 32px;
    }

    .tresto-hero #tresto-hero-heading {
        font-size: clamp(29px, 7.8vw, 42px);
        line-height: 1.18;
        letter-spacing: -.025em;
        text-wrap: initial;
    }

    .tresto-hero .tresto-hero__tagline {
        margin: 18px 0 24px;
        font-size: 16px;
        line-height: 1.6;
    }

    .tresto-hero__actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tresto-hero__actions a {
        min-height: 48px;
        padding: 12px 10px;
        font-size: 14px;
    }

    .tresto-hero__controls {
        top: calc(clamp(220px, 56vw, 360px) - 56px);
        right: 16px;
        bottom: auto;
    }
}

@media (max-width: 1199px) {
    .tresto-hero {
        --tresto-hero-header-offset: 0px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tresto-hero__slide {
        transition: none;
    }
}
