.conbest-hero {
    --hero-shift-x: 0px;
    --hero-shift-y: 0px;
    --hero-scroll-y: 0px;
    position: relative;
    width: 100%;
    height: clamp(400px, calc(75svh - 80px), 620px);
    overflow: hidden;
    background: #f3f3f3;
    color: #515151;
    isolation: isolate;
}

.conbest-hero * { box-sizing: border-box; }
.conbest-hero__viewport,
.conbest-hero__slide { position: absolute; inset: 0; }
.conbest-hero__slide {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.035);
    transition: opacity 1.25s ease-in-out, transform 1.5s ease-in-out, visibility 1.25s;
    pointer-events: none;
}
.conbest-hero__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}
.conbest-hero__visual { position: absolute; inset: 0; display: block; }
.conbest-hero__visual picture { position: absolute; inset: 0; display: block; }
.conbest-hero__visual:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -4px; }
.conbest-hero__visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    transform: translate3d(var(--hero-shift-x), calc(var(--hero-shift-y) + var(--hero-scroll-y)), 0) scale(1.015);
    transition: transform .75s ease-out;
    will-change: transform;
}
.conbest-hero__copy {
    position: absolute;
    top: 36%;
    left: 51.5%;
    width: min(43%, 740px);
    z-index: 2;
    text-align: left;
}
.conbest-hero__title {
    margin: 0;
    font-size: clamp(2.25rem, 4.5vw, 5.8rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -.025em;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .65s ease, transform .75s cubic-bezier(.2,.75,.2,1);
}
.conbest-hero__title a { color: inherit; text-decoration: none; transition: color .2s ease; }
.conbest-hero__title a:hover,
.conbest-hero__title a:focus-visible,
.conbest-hero__visual[href]:hover + .conbest-hero__copy .conbest-hero__title a,
.conbest-hero__visual[href]:focus-visible + .conbest-hero__copy .conbest-hero__title a { color: var(--color-primary); }
.conbest-hero__rule {
    display: block;
    width: 100px;
    height: 3px;
    margin: clamp(22px, 3vw, 44px) 0 22px;
    background: currentColor;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left center;
    transition: opacity .45s ease, transform .85s cubic-bezier(.2,.75,.2,1);
}
.conbest-hero__subtitle {
    max-width: 730px;
    margin: 0;
    font-size: clamp(1.25rem, 2.45vw, 2.65rem);
    font-weight: 300;
    line-height: 1.23;
    white-space: pre-line;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .75s ease, transform .85s cubic-bezier(.2,.75,.2,1);
}
.conbest-hero__slide.is-active .conbest-hero__title {
    opacity: 1;
    transform: none;
    animation: conbest-hero-text-reveal .75s .55s both;
}
.conbest-hero__slide.is-active .conbest-hero__rule {
    opacity: 1;
    transform: scaleX(1);
    animation: conbest-hero-rule-reveal .85s .8s both;
}
.conbest-hero__slide.is-active .conbest-hero__subtitle {
    opacity: 1;
    transform: none;
    animation: conbest-hero-text-reveal .85s 1.05s both;
}
@keyframes conbest-hero-text-reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes conbest-hero-rule-reveal {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
}
.conbest-hero__controls {
    position: absolute;
    right: clamp(16px, 3vw, 48px);
    bottom: 18px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}
.conbest-hero__arrow,
.conbest-hero__scroll {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #666;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}
.conbest-hero__arrow:hover,
.conbest-hero__scroll:hover,
.conbest-hero__arrow:focus-visible,
.conbest-hero__scroll:focus-visible { background: #fff9; color: var(--color-primary); transform: translateY(-2px); }
.conbest-hero__dots { display: flex; align-items: center; gap: 8px; }
.conbest-hero__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid #777;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.conbest-hero__dot.is-active { background: var(--color-primary); border-color: var(--color-primary); }
.conbest-hero__scroll { position: absolute; z-index: 3; left: 50%; bottom: 17px; transform: translateX(-50%); }
.conbest-hero__scroll:hover,
.conbest-hero__scroll:focus-visible { transform: translateX(-50%) translateY(-2px); }

@media (max-width: 767px) {
    .conbest-hero { height: min(680px, 90svh); min-height: 500px; }
    .conbest-hero__visual { bottom: 39%; overflow: hidden; }
    .conbest-hero__visual img {
        width: auto;
        max-width: none;
        height: 100%;
        object-fit: contain;
        object-position: left center;
    }
    .conbest-hero__copy { top: 58%; left: 6%; width: 88%; }
    .conbest-hero__title { font-size: clamp(2rem, 8vw, 3.3rem); }
    .conbest-hero__rule { width: 72px; margin: 16px 0 14px; }
    .conbest-hero__subtitle { font-size: clamp(1.1rem, 4.5vw, 1.5rem); }
    .conbest-hero__controls { right: 10px; bottom: 8px; gap: 3px; }
    .conbest-hero__scroll { left: 10px; bottom: 8px; transform: none; }
    .conbest-hero__scroll:hover,
    .conbest-hero__scroll:focus-visible { transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
    .conbest-hero__slide,
    .conbest-hero__visual img,
    .conbest-hero__title,
    .conbest-hero__rule,
    .conbest-hero__subtitle,
    .conbest-hero__arrow,
    .conbest-hero__scroll { transition: none !important; transform: none !important; }
    .conbest-hero__title,
    .conbest-hero__rule,
    .conbest-hero__subtitle { animation: none !important; opacity: 1 !important; }
}
