.stats__from {
    font-size: 20px;
    color: var(--muted);
    font-weight: 400;
}

.deck {
    position: relative;
    aspect-ratio: 4 / 3;
    transform: rotateY(-12deg) rotateX(5deg);
    transform-style: preserve-3d;
}

.deck__card {
    position: absolute;
    left: 0;
    right: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    background: var(--surface);
    box-shadow: var(--shadow);
    animation: tile-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.deck__card img {
    width: 100%;
    height: auto;
}

.deck__card--1 {
    top: 0;
    transform: translateX(-6%) scale(0.92);
    opacity: 0.85;
}

.deck__card--2 {
    top: 30%;
    transform: translateX(4%) scale(0.96);
    animation-delay: 0.08s;
}

.deck__card--3 {
    top: 66%;
    transform: translateX(-2%);
    animation-delay: 0.16s;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    min-width: 0;
}

.feature--wide {
    grid-column: 1 / -1;
}

.feature__title {
    font-size: 22px;
    line-height: 1.25;
}

.feature__text {
    margin-top: 8px;
    color: var(--muted);
    max-width: 820px;
}

.feature__media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0b10;
    border: 1px solid var(--border);
    flex: 1 1 auto;
    display: grid;
    place-items: center;
}

.feature__media img,
.feature__media video {
    display: block;
    width: 100%;
    height: 100%;
}

.feature__media--banner {
    padding: clamp(16px, 4vw, 48px);
}

.feature__media--banner img {
    height: auto;
    border-radius: 8px;
}

.feature__media--video {
    aspect-ratio: 16 / 9;
}

.feature__media--video video {
    object-fit: cover;
}

.feature__media--camp {
    aspect-ratio: 16 / 9;
}

.feature__media--camp img {
    object-fit: contain;
}

.compare {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0b10;
    border: 1px solid var(--border);
    user-select: none;
    touch-action: pan-y;
}

.compare__img {
    display: block;
    width: 100%;
    height: auto;
}

.compare__after {
    position: absolute;
    inset: 0;
    clip-path: inset(0 42% 0 0);
}

.compare__after .compare__img {
    height: 100%;
    object-fit: cover;
}

.compare__label {
    position: absolute;
    top: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(13, 11, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 600;
    pointer-events: none;
}

.compare__label--after {
    left: 12px;
}

.compare__label--before {
    right: 12px;
}

.compare__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 58%;
    width: 2px;
    margin-left: -1px;
    background: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

.compare__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.compare__handle::before,
.compare__handle::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    margin-top: -6px;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.compare__handle::before {
    left: 10px;
    border-right: 7px solid #fff;
}

.compare__handle::after {
    right: 10px;
    border-left: 7px solid #fff;
}

.compare__range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.carousel {
    display: grid;
    gap: 16px;
}

.carousel__viewport {
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #0d0b10;
}

.carousel__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
}

.carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.carousel__btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.carousel__btn:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.carousel__btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.carousel__dots {
    display: flex;
    gap: 8px;
}

.carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    cursor: pointer;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.carousel__dot.is-active {
    width: 28px;
    background: var(--accent-2);
}

.partners--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 920px) {
    .deck {
        transform: none;
        aspect-ratio: 16 / 9;
    }

    .deck__card--1 { transform: scale(0.86); }
    .deck__card--2 { transform: scale(0.93); }
    .deck__card--3 { transform: none; }

    .features {
        grid-template-columns: 1fr;
    }

    .partners--3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .feature {
        padding: 16px;
        gap: 14px;
    }

    .feature__title {
        font-size: 19px;
    }

    .partners--3 {
        grid-template-columns: 1fr;
    }

    .partners--3 .partner {
        flex-direction: row;
        text-align: left;
    }

    .compare__handle {
        width: 36px;
        height: 36px;
        margin: -18px 0 0 -18px;
    }
}
