/* Стартовая страница Wallet Service. Палитра — из бонусного процессинга (workspace.css, auth.css). */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    color-scheme: light;

    --accent: #087f98;
    --accent-strong: #066a80;
    --accent-bright: #29b9d5;
    --accent-cyan: #69d7e8;
    --accent-soft: #e4f5f9;
    --pink: #f58b98;
    --grad-accent: linear-gradient(110deg, #37c6da, #23a9cc);
    --grad-text: linear-gradient(100deg, #087f98 0%, #23a9cc 50%, #5fd0e3 100%);

    --ink: #0d2534;
    --ink-2: #173f52;
    --muted: #587283;
    --line: #dce7ee;
    --bg: #f7fbfd;
    --surface: #ffffff;

    --navy: #060f1a;
    --navy-2: #0c2233;
    --navy-3: #12364b;

    --shadow-sm: 0 1px 2px rgba(13, 37, 52, .05), 0 6px 16px -8px rgba(13, 37, 52, .12);
    --shadow-md: 0 18px 40px -22px rgba(13, 37, 52, .35);
    --shadow-card: 0 28px 48px -26px rgba(6, 15, 26, .6), 0 10px 20px -14px rgba(6, 15, 26, .35);

    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 72px;
    --ease: cubic-bezier(.22, .8, .24, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 8px);
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 12px;
    z-index: 100;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    text-decoration: none;
    transition: top .2s;
}

.skip-link:focus {
    top: 12px;
}

:where(a, button, [tabindex]):focus-visible {
    outline: 3px solid rgba(41, 185, 213, .6);
    outline-offset: 3px;
    border-radius: 12px;
}

.icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}

.btn--lg {
    min-height: 54px;
    padding: 0 28px;
    font-size: 16px;
}

.btn--primary {
    color: #fff;
    background: var(--grad-accent);
    box-shadow: 0 10px 24px -10px rgba(35, 169, 204, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -12px rgba(35, 169, 204, .85), inset 0 1px 0 rgba(255, 255, 255, .28);
}

.btn--light {
    color: var(--navy);
    background: #fff;
    box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .6);
}

.btn--light:hover {
    transform: translateY(-2px);
}

.btn--outline-light {
    color: #fff;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .3);
}

.btn--outline-light:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .5);
}

.btn--soft {
    color: var(--accent-strong);
    background: var(--accent-soft);
}

.btn--soft:hover {
    background: #d4eff5;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
    transition: background-color .2s, color .2s;
}

.icon-button:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

/* ---------- Шапка ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background-color .3s, box-shadow .3s;
}

.site-header.is-scrolled {
    background: rgba(247, 251, 253, .88);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    box-shadow: 0 1px 0 rgba(13, 37, 52, .06), 0 10px 30px -22px rgba(13, 37, 52, .45);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    height: var(--header-h);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
}

.logo__mark {
    width: 38px;
    height: 38px;
}

.logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo__name {
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.02em;
}

.logo__by {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a:not(.btn) {
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 550;
    color: var(--ink-2);
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.site-nav a:not(.btn):hover {
    color: var(--accent-strong);
    background: rgba(8, 127, 152, .08);
}

.site-nav__cta {
    display: none;
}

.site-header__cta {
    margin-left: 8px;
}

.site-header__toggle {
    display: none;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, .75);
    cursor: pointer;
}

.site-header__toggle .icon--close,
.site-header__toggle.is-open .icon--open {
    display: none;
}

.site-header__toggle.is-open .icon--close {
    display: block;
}

@media (max-width: 959px) {
    .site-header__cta {
        display: none;
    }

    .site-header__toggle {
        display: grid;
    }

    .site-nav {
        position: fixed;
        top: calc(var(--header-h) - 4px);
        right: 12px;
        left: 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(255, 255, 255, .97);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        box-shadow: var(--shadow-md);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    }

    .site-nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .site-nav ul {
        flex-direction: column;
    }

    .site-nav a:not(.btn) {
        padding: 14px 16px;
        font-size: 17px;
    }

    .site-nav__cta {
        display: inline-flex;
        min-height: 52px;
    }
}

/* ---------- Первый экран ---------- */

.hero {
    position: relative;
    padding: clamp(16px, 4vw, 40px) 0 clamp(48px, 7vw, 96px);
    overflow-x: clip;
}

.hero__glow {
    position: absolute;
    inset: -30% -10% auto;
    height: 130%;
    background:
        radial-gradient(36% 46% at 76% 38%, rgba(41, 185, 213, .26), transparent 70%),
        radial-gradient(26% 34% at 92% 72%, rgba(245, 139, 152, .2), transparent 70%),
        radial-gradient(32% 40% at 12% 8%, rgba(105, 215, 232, .2), transparent 70%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
    min-height: min(760px, calc(100svh - var(--header-h)));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 10px;
    border: 1px solid rgba(220, 231, 238, .9);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-strong);
    background: rgba(255, 255, 255, .7);
    box-shadow: var(--shadow-sm);
}

.eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 0 4px rgba(41, 185, 213, .18);
}

.hero__title {
    margin-top: 20px;
    font-size: clamp(44px, 5.4vw, 80px);
    font-weight: 800;
    line-height: .98;
    letter-spacing: -.045em;
}

.text-gradient {
    color: var(--accent);
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__lead {
    max-width: 30ch;
    margin-top: 22px;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.45;
    color: var(--muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.hero__perks {
    display: grid;
    gap: 14px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.hero__perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 550;
    color: var(--ink-2);
}

.perk-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(220, 231, 238, .9);
    border-radius: 13px;
    color: var(--accent);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.hero__visual {
    --mx: 0;
    --my: 0;
    position: relative;
    height: clamp(480px, 50vw, 660px);
}

.hero__layer {
    position: absolute;
    inset: 0;
    transform: translate3d(calc(var(--mx) * var(--depth) * 1px), calc(var(--my) * var(--depth) * 1px), 0);
    transition: transform .7s var(--ease);
}

.hero__phone {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(228px, 21vw, 292px);
    transform: translate(-50%, -50%);
    animation: phone-in 1s var(--ease) .1s both;
}

.hero__fan {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(168px, 15.5vw, 224px);
    transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
    animation: fan-in 1.2s var(--ease) var(--delay) both;
}

.hero__fan--1 { --x: -84%; --y: -24%; --r: -13deg; --delay: .35s; }
.hero__fan--2 { --x: 82%; --y: -32%; --r: 10deg; --delay: .45s; }
.hero__fan--3 { --x: -74%; --y: 30%; --r: -5deg; --delay: .55s; }
.hero__fan--4 { --x: 88%; --y: 22%; --r: 14deg; --delay: .65s; }

@keyframes phone-in {
    from {
        opacity: 0;
        transform: translate(-50%, -42%) scale(.96);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fan-in {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.86);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) translate(var(--x), var(--y)) rotate(var(--r));
    }
}

/* ---------- Смартфон ---------- */

.phone {
    position: relative;
    display: block;
    aspect-ratio: 9 / 19;
    filter: drop-shadow(0 40px 50px rgba(6, 15, 26, .28)) drop-shadow(0 12px 16px rgba(6, 15, 26, .18));
}

.phone__body {
    position: absolute;
    inset: 0;
    display: block;
    padding: 3.4%;
    border-radius: 15% / 7.2%;
    background: linear-gradient(145deg, #34444f, #0b141c 42%, #1d2a33 100%);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2), inset 0 0 0 5px #091016;
}

.phone__button {
    position: absolute;
    right: -1.1%;
    width: 1.6%;
    border-radius: 0 3px 3px 0;
    background: #202c35;
}

.phone__button--power {
    top: 21%;
    height: 9%;
}

.phone__button--volume {
    top: 33%;
    height: 13%;
}

.phone__screen {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 12.5% / 5.9%;
    background: linear-gradient(180deg, #eaf4f8 0%, #f6fafc 45%, #eaf2f5 100%);
    container-type: inline-size;
}

.phone__camera {
    position: absolute;
    top: 2.4%;
    left: 50%;
    z-index: 2;
    width: 3.8%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #091016;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
    transform: translateX(-50%);
}

.phone__status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4.4cqw 8cqw 0;
    font-size: 4.4cqw;
    font-weight: 650;
    color: var(--ink);
}

.phone__system {
    display: flex;
    gap: 1.2cqw;
}

.phone__system i {
    display: block;
    width: 3.6cqw;
    height: 2.6cqw;
    border-radius: .8cqw;
    background: currentColor;
    opacity: .78;
}

.phone__system i:last-child {
    width: 6cqw;
}

.wscreen {
    display: flex;
    flex-direction: column;
    gap: 4.4cqw;
    padding: 5cqw 5.5cqw;
}

.wscreen__bar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    font-size: 8.4cqw;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--ink);
}

.wscreen__action {
    font-size: 4.2cqw;
    font-weight: 650;
    letter-spacing: 0;
    color: var(--accent);
}

.wscreen .wcard__surface {
    box-shadow: 0 18px 30px -18px rgba(6, 15, 26, .55);
}

.wscreen__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.8cqw;
    font-size: 3.8cqw;
    font-weight: 550;
    color: var(--muted);
}

.wscreen__hint .icon {
    width: 4.6cqw;
    height: 4.6cqw;
}

.wscreen__peek {
    display: block;
    height: 12cqw;
    margin-top: -1cqw;
    border-radius: 5cqw 5cqw 0 0;
}

.wscreen__peek--1 {
    background: linear-gradient(155deg, #7c5cd6, #26145e);
}

.wscreen__peek--2 {
    margin-top: -7cqw;
    background: linear-gradient(155deg, #2a9bf5, #0a2a74);
}

/* ---------- Цифровая карта ---------- */

.wcard {
    --c-from: #22d3b4;
    --c-to: #0a8a84;
    --c-ink: #fff;
    --c-label: rgba(255, 255, 255, .74);
    --c-accent: #fff;
    display: block;
    width: 100%;
    container-type: inline-size;
    text-align: left;
}

.wcard__surface {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    aspect-ratio: 5 / 6.9;
    overflow: hidden;
    padding: 6cqw;
    border-radius: 6cqw;
    color: var(--c-ink);
    background: linear-gradient(155deg, var(--c-from) 0%, var(--c-to) 100%);
    box-shadow: var(--shadow-card);
}

.wcard__surface::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, 0) 36%),
        radial-gradient(120% 60% at 100% 0%, rgba(255, 255, 255, .16), transparent 60%);
    pointer-events: none;
}

.wcard__surface::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
    pointer-events: none;
}

.wcard__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4cqw;
}

.wcard__logo {
    display: flex;
    align-items: center;
    height: 14cqw;
    max-width: 58cqw;
    padding: 2.2cqw 3.2cqw;
    border-radius: 3.6cqw;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.wcard__logo img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.wcard__brand {
    display: flex;
    align-items: center;
    gap: 2.6cqw;
    min-width: 0;
}

.wcard__mark {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 12cqw;
    height: 12cqw;
    border-radius: 50%;
    font-size: 6.2cqw;
    font-weight: 800;
    color: var(--c-to);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.wcard__name {
    font-size: 5.6cqw;
    font-weight: 750;
    line-height: 1.1;
    letter-spacing: -.01em;
}

.wcard__balance {
    flex-shrink: 0;
    text-align: right;
}

.wcard__label {
    display: block;
    font-size: 3.1cqw;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-label);
}

.wcard__value {
    display: block;
    font-size: 9cqw;
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.wcard__value.is-bumped {
    animation: bump .6s var(--ease);
}

@keyframes bump {
    40% {
        transform: scale(1.12);
    }
}

.wcard__art {
    display: block;
    flex: 1;
    min-height: 16cqw;
    margin: 2cqw -6cqw;
    color: var(--c-accent);
}

.wcard__art svg {
    width: 100%;
    height: 100%;
}

.wcard__fields {
    display: flex;
    justify-content: space-between;
    gap: 4cqw;
    margin-bottom: 4.2cqw;
}

.wcard__group {
    display: block;
    min-width: 0;
}

.wcard__group--end {
    text-align: right;
}

.wcard__field {
    display: block;
    margin-top: .6cqw;
    overflow: hidden;
    font-size: 4.6cqw;
    font-weight: 650;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wcard__code {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.6cqw;
    padding: 3.6cqw 4cqw 2.6cqw;
    border-radius: 3.8cqw;
    color: #0b1620;
    background: #fff;
}

.wcard__barcode {
    width: 100%;
    height: 13cqw;
    fill: currentColor;
}

.wcard__qr {
    width: 28cqw;
    height: 28cqw;
}

.wcard__number {
    font-size: 3.4cqw;
    font-weight: 600;
    letter-spacing: .14em;
    font-variant-numeric: tabular-nums;
}

/* Обратная сторона */

.wback {
    display: block;
    container-type: inline-size;
}

.wback__surface {
    display: flex;
    flex-direction: column;
    aspect-ratio: 5 / 6.9;
    overflow: hidden;
    border-radius: 6cqw;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.wback__head {
    display: flex;
    align-items: center;
    gap: 3cqw;
    min-height: 24cqw;
    padding: 5cqw 6cqw;
    color: var(--c-ink);
    background: linear-gradient(155deg, var(--c-from), var(--c-to));
}

.wback__name {
    font-size: 5.6cqw;
    font-weight: 750;
}

.wback__list {
    flex: 1;
    margin: 0;
    padding: 1cqw 6cqw;
    overflow: auto;
}

.wback__list div {
    padding: 2.8cqw 0;
    border-bottom: 1px solid #e6eef2;
}

.wback__list dt {
    font-size: 3cqw;
    font-weight: 650;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
}

.wback__list dd {
    margin: .8cqw 0 0;
    font-size: 4.2cqw;
    font-weight: 550;
    line-height: 1.35;
    color: var(--ink);
}

.wback__note {
    padding: 3cqw 6cqw 4.5cqw;
    font-size: 3.2cqw;
    color: var(--muted);
}

/* ---------- Секции ---------- */

.section {
    position: relative;
}

.section__head {
    max-width: 780px;
    margin: 0 auto clamp(24px, 3.5vw, 44px);
    text-align: center;
}

.section__title {
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.section__lead {
    max-width: 52ch;
    margin: 16px auto 0;
    font-size: clamp(17px, 1.4vw, 19px);
    color: var(--muted);
}

/* ---------- Карусель ---------- */

.carousel-section {
    padding-block: clamp(56px, 8vw, 112px) clamp(32px, 5vw, 72px);
}

.carousel {
    --slide-w: clamp(236px, 21vw, 290px);
    --gap: clamp(16px, 2.2vw, 30px);
    position: relative;
}

.carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    padding-block: 26px 46px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
    cursor: grab;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.carousel__viewport::-webkit-scrollbar {
    display: none;
}

.carousel__viewport:focus-visible {
    outline-offset: -4px;
}

.carousel__viewport.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.carousel__track {
    display: flex;
    gap: var(--gap);
    width: max-content;
    margin: 0;
    padding: 0 calc(50vw - var(--slide-w) / 2);
    list-style: none;
}

.carousel__slide {
    flex: 0 0 var(--slide-w);
    scroll-snap-align: center;
}

.carousel__card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 18px;
    font: inherit;
    color: inherit;
    background: none;
    cursor: pointer;
    transform-origin: 50% 80%;
    transition: transform .5s var(--ease);
}

.carousel__card .wcard__surface {
    transition: box-shadow .5s var(--ease);
}

.carousel__card:hover,
.carousel__card:focus-visible {
    transform: translateY(-10px) scale(1.035);
}

.carousel__card:hover .wcard__surface,
.carousel__card:focus-visible .wcard__surface {
    box-shadow: 0 42px 70px -30px rgba(6, 15, 26, .6), 0 16px 28px -16px rgba(6, 15, 26, .35);
}

.carousel__viewport.is-dragging .carousel__card {
    transform: none;
    pointer-events: none;
}

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

.carousel__arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: #fff;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform .25s var(--ease), color .2s, border-color .2s;
}

.carousel__arrow:hover {
    color: var(--accent);
    border-color: #bfe2ea;
    transform: translateY(-2px);
}

.carousel__dots {
    display: flex;
    align-items: center;
}

.carousel__dot {
    position: relative;
    width: 22px;
    height: 32px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.carousel__dot::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #c4d8e1;
    transform: translate(-50%, -50%);
    transition: width .35s var(--ease), background-color .35s;
}

.carousel__dot[aria-current="true"] {
    width: 38px;
}

.carousel__dot[aria-current="true"]::before {
    width: 26px;
    background: var(--accent);
}

/* ---------- Интеграция ---------- */

.integration {
    padding-block: clamp(56px, 8vw, 112px);
}

.flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 980px;
    margin: clamp(28px, 4vw, 56px) auto 0;
}

.flow__node {
    flex: 0 1 240px;
    min-width: 0;
    text-align: center;
}

.flow__tile {
    position: relative;
    display: grid;
    place-items: center;
    width: 136px;
    height: 136px;
    margin: 0 auto 20px;
    border: 1px solid rgba(220, 231, 238, .95);
    border-radius: 38px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 26px 50px -30px rgba(13, 37, 52, .4), inset 0 1px 0 #fff;
    transition: transform .5s var(--ease);
}

.flow__node:hover .flow__tile {
    transform: translateY(-6px);
}

.flow__tile img {
    width: 76px;
    height: auto;
}

.flow__tile--accent {
    width: 156px;
    height: 156px;
    margin-top: -10px;
    margin-bottom: 10px;
    border: 0;
    background: linear-gradient(150deg, #37c6da, #087f98);
    box-shadow: 0 30px 60px -26px rgba(8, 127, 152, .7), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.flow__mark {
    width: 74px;
    height: 74px;
}

.flow__wallets {
    position: relative;
    display: block;
    width: 74px;
    height: 76px;
}

.flow__wallets span {
    position: absolute;
    left: 50%;
    width: 50px;
    height: 68px;
    border-radius: 10px;
    box-shadow: 0 8px 16px -8px rgba(6, 15, 26, .45);
}

.flow__wallets span:nth-child(1) {
    background: linear-gradient(155deg, #7c5cd6, #26145e);
    transform: translateX(-50%) translateX(-16px) rotate(-12deg);
}

.flow__wallets span:nth-child(2) {
    background: linear-gradient(155deg, #2a9bf5, #0a2a74);
    transform: translateX(-50%) translateX(16px) rotate(12deg);
}

.flow__wallets span:nth-child(3) {
    background: linear-gradient(155deg, #22d3b4, #0a8a84);
    transform: translateX(-50%) translateY(4px);
}

.flow__title {
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.01em;
}

.flow__text {
    margin-top: 6px;
    font-size: 15px;
    color: var(--muted);
}

.flow__link {
    position: relative;
    flex: 1 1 auto;
    min-width: 24px;
    height: 2px;
    margin-top: 68px;
    border-radius: 2px;
    background: linear-gradient(90deg, rgba(8, 127, 152, .15), rgba(41, 185, 213, .75), rgba(8, 127, 152, .15));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1s var(--ease);
}

.flow__link + .flow__node + .flow__link {
    transition-delay: .35s;
}

.flow__link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 10px;
    height: 10px;
    margin-top: -5px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 0 6px rgba(41, 185, 213, .18);
    opacity: 0;
}

.flow.is-visible .flow__link,
.no-js .flow__link {
    transform: none;
}

.flow.is-visible .flow__link::after {
    animation: flow-dot 2.6s var(--ease) 1.1s infinite;
}

.flow.is-visible .flow__link + .flow__node + .flow__link::after {
    animation-delay: 2.4s;
}

@keyframes flow-dot {
    0% {
        left: 0;
        opacity: 0;
    }

    15%,
    85% {
        opacity: 1;
    }

    100% {
        left: calc(100% - 10px);
        opacity: 0;
    }
}

.integration__text {
    max-width: 640px;
    margin: clamp(28px, 4vw, 48px) auto 0;
    font-size: clamp(17px, 1.4vw, 19px);
    text-align: center;
    color: var(--muted);
}

/* ---------- Возможности ---------- */

.features {
    padding-block: clamp(56px, 8vw, 112px);
    background: linear-gradient(180deg, transparent, rgba(228, 245, 249, .7) 35%, rgba(228, 245, 249, .7) 65%, transparent);
}

.features__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 96px);
}

.features__title {
    font-size: clamp(36px, 5vw, 64px);
}

.features__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 36px 0 0;
    padding: 0;
    list-style: none;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    border: 1px solid rgba(220, 231, 238, .95);
    border-radius: 22px;
    background: rgba(255, 255, 255, .78);
    box-shadow: var(--shadow-sm);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-radius: 15px;
    color: #fff;
    background: var(--grad-accent);
    box-shadow: 0 10px 20px -12px rgba(35, 169, 204, .9);
}

.feature--2 .feature__icon {
    background: linear-gradient(135deg, #ffa3ae, #f2697d);
    box-shadow: 0 10px 20px -12px rgba(242, 105, 125, .9);
}

.feature--3 .feature__icon {
    background: linear-gradient(135deg, #9b82e8, #5b3fbf);
    box-shadow: 0 10px 20px -12px rgba(91, 63, 191, .9);
}

.feature--4 .feature__icon {
    background: linear-gradient(135deg, #4fb2f5, #1a6fd1);
    box-shadow: 0 10px 20px -12px rgba(26, 111, 209, .9);
}

.feature__title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.01em;
}

.feature__text {
    font-size: 14.5px;
    color: var(--muted);
}

.features__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 600px;
}

.features__visual::before {
    content: "";
    position: absolute;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(41, 185, 213, .3), rgba(41, 185, 213, 0) 68%);
}

.features__phone {
    width: clamp(240px, 23vw, 300px);
}

.features__chip {
    position: absolute;
    top: 22%;
    right: max(0px, calc(50% - 250px));
    z-index: 3;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 750;
    color: #fff;
    background: var(--grad-accent);
    box-shadow: 0 16px 30px -14px rgba(35, 169, 204, .9);
    opacity: 0;
    transform: translateY(12px) scale(.9);
    transition: opacity .5s var(--ease) .9s, transform .5s var(--ease) .9s;
}

.features__visual.is-notified .features__chip,
.no-js .features__chip {
    opacity: 1;
    transform: none;
}

.notice {
    position: absolute;
    top: 9cqw;
    right: 4cqw;
    left: 4cqw;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 3cqw;
    padding: 3.4cqw 3.8cqw;
    border-radius: 6cqw;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 30px -14px rgba(6, 15, 26, .4);
    opacity: 0;
    transform: translateY(-140%);
    transition: transform .65s var(--ease), opacity .65s var(--ease);
}

.is-notified .notice,
.no-js .notice {
    opacity: 1;
    transform: none;
}

.notice__icon {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 10cqw;
    height: 10cqw;
    border-radius: 2.8cqw;
    color: #fff;
    background: var(--grad-accent);
}

.notice__icon .icon {
    width: 6cqw;
    height: 6cqw;
}

.notice__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: .6cqw;
}

.notice__title {
    display: flex;
    justify-content: space-between;
    gap: 2cqw;
    font-size: 3.9cqw;
    font-weight: 700;
    color: var(--ink);
}

.notice__time {
    font-weight: 500;
    color: var(--muted);
}

.notice__text {
    font-size: 3.8cqw;
    color: var(--ink-2);
}

/* ---------- Призыв ---------- */

.cta {
    position: relative;
    overflow: hidden;
    padding-block: clamp(64px, 9vw, 120px);
    color: #fff;
    background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 72%);
}

.cta__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(46% 70% at 82% 30%, rgba(41, 185, 213, .36), transparent 62%),
        radial-gradient(40% 60% at 6% 100%, rgba(245, 139, 152, .2), transparent 62%),
        radial-gradient(30% 50% at 40% 0%, rgba(18, 54, 75, .9), transparent 70%);
    pointer-events: none;
}

.cta__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
}

.cta__title {
    font-size: clamp(32px, 4.4vw, 56px);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.035em;
}

.cta__lead {
    max-width: 46ch;
    margin-top: 20px;
    font-size: clamp(17px, 1.4vw, 19px);
    color: #b4c7d7;
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.cta__contacts {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.cta__contacts-title {
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.cta__contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.cta__contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 550;
    color: #dbe7ef;
}

.cta__contact-list .icon {
    width: 18px;
    height: 18px;
    color: var(--accent-cyan);
}

.cta__contact-list a {
    color: #fff;
    text-decoration: none;
}

.cta__contact-list a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cta__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 460px;
}

.cta__ring {
    position: absolute;
    width: 380px;
    aspect-ratio: 1;
    border: 1px solid rgba(105, 215, 232, .25);
    border-radius: 50%;
    box-shadow: 0 0 0 40px rgba(105, 215, 232, .04), 0 0 0 90px rgba(105, 215, 232, .025);
}

.cta__card {
    position: relative;
    display: block;
    width: clamp(220px, 22vw, 290px);
    transform: rotate(-7deg);
    animation: float 7s ease-in-out infinite;
}

.cta__card .wcard__surface {
    box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
}

@keyframes float {
    50% {
        transform: rotate(-4deg) translateY(-12px);
    }
}

/* ---------- Подвал ---------- */

.site-footer {
    padding: 48px 0 28px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px 48px;
}

.site-footer__by {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--muted);
}

.site-footer__by img {
    width: auto;
    height: 36px;
}

.site-footer__nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    max-width: 680px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__nav a {
    font-size: 15px;
    font-weight: 550;
    color: var(--ink-2);
    text-decoration: none;
}

.site-footer__nav a:hover {
    color: var(--accent);
}

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Увеличенная карта ---------- */

.card-dialog {
    width: min(420px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100dvh - 24px);
    padding: 0;
    overflow: visible auto;
    border: 0;
    color: var(--ink);
    background: transparent;
}

.card-dialog::backdrop {
    background: rgba(6, 15, 26, .58);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.card-dialog[open] {
    animation: dialog-in .4s var(--ease);
}

@keyframes dialog-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.97);
    }
}

.card-dialog__panel {
    display: grid;
    gap: 16px;
    padding: 18px 18px 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 40px 80px -30px rgba(6, 15, 26, .7);
}

.card-dialog__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-dialog__title {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: -.01em;
}

.card-dialog__toggle {
    justify-self: center;
}

.flip {
    width: min(100%, calc((100dvh - 200px) * 5 / 6.9));
    margin-inline: auto;
    perspective: 1400px;
    cursor: pointer;
}

.flip__inner {
    display: grid;
    transform-style: preserve-3d;
    transition: transform .8s var(--ease);
}

.flip.is-flipped .flip__inner {
    transform: rotateY(180deg);
}

.flip__face {
    grid-area: 1 / 1;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.flip__face--back {
    transform: rotateY(180deg);
}

/* ---------- Появление при прокрутке ---------- */

.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

.js .feature[data-reveal].is-visible:hover {
    transform: translateY(-4px);
    transition-delay: 0s;
}

/* ---------- Адаптивность ---------- */

@media (max-width: 1080px) {
    .hero__fan--1 { --x: -72%; }
    .hero__fan--2 { --x: 70%; }
    .hero__fan--3 { --x: -64%; }
    .hero__fan--4 { --x: 76%; }
}

@media (max-width: 900px) {
    .hero__inner,
    .features__inner,
    .cta__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero__inner {
        min-height: 0;
        text-align: center;
    }

    .hero__lead {
        margin-inline: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__perks {
        width: fit-content;
        max-width: 100%;
        margin-inline: auto;
        gap: 10px;
        text-align: left;
    }

    .hero__visual {
        height: clamp(460px, 110vw, 600px);
    }

    .features__copy {
        text-align: center;
    }

    .features__list {
        text-align: left;
    }

    .features__visual {
        min-height: 560px;
    }

    .cta__visual {
        min-height: 380px;
    }
}

@media (max-width: 720px) {
    .flow {
        flex-direction: column;
        align-items: center;
    }

    .flow__link {
        flex: 0 0 auto;
        width: 2px;
        min-width: 0;
        height: 44px;
        margin: 4px 0 16px;
        background: linear-gradient(180deg, rgba(8, 127, 152, .15), rgba(41, 185, 213, .75), rgba(8, 127, 152, .15));
        transform: scaleY(0);
        transform-origin: center top;
    }

    .flow__link::after {
        top: 0;
        left: 50%;
        margin: 0 0 0 -5px;
    }

    .flow.is-visible .flow__link::after {
        animation-name: flow-dot-vertical;
    }

    .flow__tile--accent {
        margin-top: 0;
    }
}

@keyframes flow-dot-vertical {
    0% {
        top: 0;
        opacity: 0;
    }

    15%,
    85% {
        opacity: 1;
    }

    100% {
        top: calc(100% - 10px);
        opacity: 0;
    }
}

@media (max-width: 640px) {
    .carousel {
        --slide-w: min(76vw, 300px);
        --gap: 16px;
    }

    .carousel__viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero__phone {
        width: min(58vw, 236px);
    }

    .hero__fan {
        width: min(40vw, 168px);
    }

    .hero__fan--1 { --x: -66%; --y: -26%; }
    .hero__fan--2 { --x: 64%; --y: -32%; }
    .hero__fan--3 { --x: -60%; --y: 28%; }
    .hero__fan--4 { --x: 68%; --y: 22%; }

    .features__chip {
        right: 4px;
    }

    .cta__actions .btn {
        flex: 1 1 100%;
    }

    .site-footer__bottom {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .features__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .feature {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 14px;
    }

    .feature__icon {
        margin-bottom: 0;
    }

    .feature__text {
        flex-basis: 100%;
        padding-left: 60px;
        margin-top: -14px;
    }
}

/* ---------- Без анимаций ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }

    .flow__link::after {
        display: none;
    }
}
