.home-slider-tunda {
    --tunda-gap: clamp(28px, 2.2vw, 44px);
    --tunda-card-width: min(82vw, 1480px);
    --tunda-frame-x: clamp(32px, 2.6vw, 52px);
    --tunda-frame-top: clamp(72px, 5.4vw, 104px);
    --tunda-frame-bottom: clamp(70px, 5vw, 96px);
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    padding: var(--tunda-frame-top) 0 var(--tunda-frame-bottom);
    background: #000;
}

.home-slider-tunda::before,
.home-slider-tunda::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
/*
.home-slider-tunda::before {
    z-index: 0;
    top: clamp(22px, 1.8vw, 36px);
    right: var(--tunda-frame-x);
    bottom: clamp(20px, 1.6vw, 32px);
    left: var(--tunda-frame-x);
    background: #222;
}
*/
.home-slider-tunda::after {
    z-index: -1;
    top: clamp(46px, 3.2vw, 62px);
    right: clamp(18px, 1.5vw, 30px);
    bottom: clamp(8px, .8vw, 16px);
    left: clamp(18px, 1.5vw, 30px);
/*    background: rgba(255,255,255,.22);*/
}

.home-slider-tunda__viewport {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: visible;
    touch-action: pan-y;
    cursor: grab;
}

.home-slider-tunda__viewport.is-dragging { cursor: grabbing; }

.home-slider-tunda__track {
    display: flex;
    align-items: center;
    gap: var(--tunda-gap);
    will-change: transform;
    transition: transform 650ms cubic-bezier(.22,.61,.36,1);
}

.home-slider-tunda__track.is-no-transition { transition: none !important; }

.home-slider-tunda__slide {
    position: relative;
    flex: 0 0 var(--tunda-card-width);
    min-width: 0;
    opacity: .43;
    filter: brightness(.42) saturate(.8) blur(.4px);
    transform: scale(.975);
    transition: transform 650ms cubic-bezier(.22,.61,.36,1), opacity 420ms ease, filter 420ms ease;
}

.home-slider-tunda__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(0,0,0,.35);
    pointer-events: none;
    transition: opacity 420ms ease;
}

.home-slider-tunda__slide.is-active {
    z-index: 3;
    opacity: 1;
    filter: none;
    transform: scale(1);
}

.home-slider-tunda__slide.is-active::after { opacity: 0; }
.home-slider-tunda__slide.is-neighbour { opacity: .62; filter: brightness(.56) saturate(.9) blur(.25px); }

.home-slider-tunda__card {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1.94 / 1;
    background: #111;
    color: #fff;
    text-decoration: none;
}

.home-slider-tunda__card picture,
.home-slider-tunda__card img { display: block; width: 100%; height: 100%; }
.home-slider-tunda__card img { object-fit: cover; user-select: none; transition: transform 900ms cubic-bezier(.22,.61,.36,1); }
.home-slider-tunda__slide.is-active .home-slider-tunda__card:hover img { transform: scale(1.018); }

.home-slider-tunda__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.03) 24%, rgba(0,0,0,.13) 62%, rgba(0,0,0,.34) 100%);
    pointer-events: none;
}

.home-slider-tunda__content {
    position: absolute;
    top: 50%;
    right: clamp(24px, 4vw, 70px);
    left: clamp(24px, 4vw, 70px);
    z-index: 2;
    text-align: center;
    transform: translateY(-50%);
    text-shadow: 0 2px 14px rgba(0,0,0,.4);
}

.home-slider-tunda__title {
    display: block;
    font-size: clamp(34px, 3.1vw, 64px);
    line-height: 1;
    font-weight: 700;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.home-slider-tunda__description { display: block; max-width: 760px; margin: 16px auto 0; font-size: clamp(14px, 1.15vw, 20px); line-height: 1.4; }
.home-slider-tunda__description p { margin: 0; }

.home-slider-tunda__arrow {
    position: absolute;
    top: 50%;
    z-index: 8;
    display: grid;
    place-items: center;
    width: clamp(46px, 3.5vw, 62px);
    height: clamp(46px, 3.5vw, 62px);
    padding: 0;
    border: 2px solid rgba(255,255,255,.9);
    border-radius: 50%;
    background: rgba(0,0,0,.78);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 2px 10px rgba(0,0,0,.32);
}

.home-slider-tunda__arrow span { display: none; }
.home-slider-tunda__arrow::before { content: ""; width: 13px; height: 13px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; }
.home-slider-tunda__arrow--prev::before { transform: rotate(-135deg) translate(-1px, -1px); }
.home-slider-tunda__arrow--next::before { transform: rotate(45deg) translate(-1px, 1px); }
.home-slider-tunda__arrow:hover,
.home-slider-tunda__arrow:focus-visible { background: #000; border-color: #fff; }
.home-slider-tunda__arrow:active { transform: translateY(-50%) scale(.94); }
.home-slider-tunda__arrow--prev { left: calc((100vw - var(--tunda-card-width)) / 2 + clamp(26px, 2.8vw, 52px)); }
.home-slider-tunda__arrow--next { right: calc((100vw - var(--tunda-card-width)) / 2 + clamp(26px, 2.8vw, 52px)); }

.home-slider-tunda__dots {
    position: absolute;
    left: 50%;
    bottom: clamp(34px, 2.8vw, 50px);
    z-index: 9;
    display: flex;
    align-items: center;
    gap: 11px;
    transform: translateX(-50%);
}

.home-slider-tunda__dot { width: 10px; height: 10px; padding: 0; border: 1px solid rgba(245, 245, 245, 0.64); border-radius: 50%; background: transparent; cursor: pointer; transition: transform 180ms ease, background-color 180ms ease; }
.home-slider-tunda__dot.is-active { background: #fff; transform: scale(1.15); }

@media (max-width: 767px) {
    .home-slider-tunda { --tunda-gap: 0px; --tunda-card-width: 100vw; padding: 0 0 52px; background: #fff; }
    .home-slider-tunda::before,
    .home-slider-tunda::after { display: none; }
    .home-slider-tunda__viewport { overflow: hidden; touch-action: pan-y pinch-zoom; }
    .home-slider-tunda__slide,
    .home-slider-tunda__slide.is-neighbour,
    .home-slider-tunda__slide.is-active { opacity: 1; filter: none; transform: none; }
    .home-slider-tunda__slide::after { display: none; }
    .home-slider-tunda__card { aspect-ratio: 4 / 5; }
    .home-slider-tunda__content { top: auto; right: 22px; bottom: 36px; left: 22px; transform: none; }
    .home-slider-tunda__title { font-size: clamp(28px, 9.5vw, 46px); }
    .home-slider-tunda__description { margin-top: 10px; font-size: 15px; }
    .home-slider-tunda__arrow { top: calc(50% - 26px); width: 44px; height: 44px; }
    .home-slider-tunda__arrow::before { width: 11px; height: 11px; border-width: 2px; }
    .home-slider-tunda__arrow--prev { left: 12px; }
    .home-slider-tunda__arrow--next { right: 12px; }
    .home-slider-tunda__dots { bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-slider-tunda__track,
    .home-slider-tunda__slide,
    .home-slider-tunda__card img,
    .home-slider-tunda__dot { transition: none !important; }
}
