/*
 * Главная страница ligaup.ru. Цвета и шрифты — из дизайн-системы приложения
 * (LigaApp/Resources/Raw/wwwroot/design-system/tokens.css), тёмная тема.
 * Анимации и параллакс — landing.js; без JS и при «уменьшить движение» страница статична.
 */
@font-face {
    font-family: "Liga Manrope";
    src: url("/fonts/manrope.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "Liga Unbounded";
    src: url("/fonts/unbounded.woff2") format("woff2");
    font-weight: 200 900;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --bg: #0f141f;
    --bg-deep: #0a0e17;
    --surface: #171d2b;
    --surface-raised: #1f2738;
    --line: #2b3447;
    --line-soft: rgba(255, 255, 255, 0.08);
    --ink: #ecf0f7;
    --ink-muted: #a3adc2;
    --ink-faint: rgba(236, 240, 247, 0.5);
    --accent: #d2f34c;
    --accent-press: #bbdc35;
    --on-accent: #192104;
    --accent-soft: #283120;
    --coral: #ff9473;
    --award: #f4c352;
    --on-award: #2b1c00;
    --success: #5fd8a0;
    --focus: #8fb8ff;
    --av-1: #34466e;
    --av-2: #5a4370;
    --av-3: #2f5e5a;
    --av-4: #6e5434;
    --map-land: #121926;
    --map-road: #222b3d;
    --map-park: #15241f;
    --map-water: #13213a;

    --font-display: "Liga Unbounded", "Arial Black", sans-serif;
    --font-body: "Liga Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
    --wrap: min(1200px, calc(100% - 48px));
    --radius-card: 28px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
    width: 1.1em;
    height: 1.1em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--on-accent);
    background: var(--accent);
    font-weight: 800;
    transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Общие элементы ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(210, 243, 76, 0.16);
}

.section-head { width: var(--wrap); margin: 0 auto 56px; }
.section-head--split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: end;
    gap: 48px;
}
.section-title {
    max-width: 820px;
    margin-top: 18px;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.5vw, 48px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
}
.section-lead { color: var(--ink-muted); font-size: 18px; }
.section-head .section-lead { margin-top: 16px; font-size: 20px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 200ms var(--ease-out), background 200ms, box-shadow 200ms;
}
.button--compact { min-height: 42px; padding: 0 16px; font-size: 15px; }
.button--accent { color: var(--on-accent); background: var(--accent); box-shadow: 0 8px 22px rgba(210, 243, 76, 0.22); }
.button--accent:hover { background: #defa68; transform: translateY(-1px); }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 0 24px 0 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    transition: transform 220ms var(--ease-out), background 220ms, box-shadow 220ms, border-color 220ms;
}
.store-button .icon { width: 28px; height: 28px; stroke-width: 1.7; }
.store-button small { display: block; font-size: 12px; font-weight: 700; opacity: 0.72; }
.store-button--primary {
    border-color: transparent;
    color: var(--on-accent);
    background: var(--accent);
    box-shadow: 0 14px 34px rgba(210, 243, 76, 0.22), inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}
.store-button--primary:hover { background: #defa68; transform: translateY(-2px); box-shadow: 0 20px 44px rgba(210, 243, 76, 0.3); }
.store-button--primary:active { transform: translateY(0); background: var(--accent-press); }
.store-button--soon { color: var(--ink-muted); background: rgba(255, 255, 255, 0.03); cursor: default; }
.store-button--soon small { color: var(--accent); opacity: 1; }

/* Аватары-инициалы, как в приложении */
.ava {
    position: relative;
    display: inline-grid;
    width: 26px;
    height: 26px;
    flex: none;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.ava--1 { background: var(--av-1); }
.ava--2 { background: var(--av-2); }
.ava--3 { background: var(--av-3); }
.ava--4 { background: var(--av-4); }
.ava--me { color: var(--on-accent); background: var(--accent); }
.ava--more { color: var(--ink-muted); background: var(--surface-raised); }
.ava--lg { width: 44px; height: 44px; font-size: 13px; }
.ava--gk .icon {
    position: absolute;
    right: -4px;
    bottom: -3px;
    width: 13px;
    height: 13px;
    padding: 1.5px;
    border-radius: 50%;
    color: var(--on-accent);
    background: var(--accent);
    stroke-width: 2.4;
}

/* Иллюстрация поля вместо фото */
.pitch-art {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(to bottom, rgba(6, 14, 24, 0) 40%, rgba(6, 14, 24, 0.35)),
        repeating-linear-gradient(96deg, #2f7b3d 0 34px, #286c35 34px 68px);
}
.pitch-art::before {
    content: "";
    position: absolute;
    inset: 0 0 58%;
    background: linear-gradient(#08131f, #1b3a4a);
}
.pitch-art::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 46%;
    bottom: -20%;
    border: 1.5px solid rgba(240, 248, 236, 0.75);
    border-radius: 4px;
    background:
        linear-gradient(90deg, transparent calc(50% - 0.75px), rgba(240, 248, 236, 0.75) calc(50% - 0.75px) calc(50% + 0.75px), transparent calc(50% + 0.75px)),
        radial-gradient(ellipse 18% 22% at 50% 30%, transparent 92%, rgba(240, 248, 236, 0.75) 94% 100%, transparent 102%);
    transform: perspective(120px) rotateX(22deg);
    transform-origin: top;
}
.pitch-art--night { background-color: #286c35; }
.pitch-art--night::before {
    background:
        radial-gradient(circle at 14% 30%, rgba(255, 246, 196, 0.95), rgba(255, 246, 196, 0) 22%),
        radial-gradient(circle at 86% 30%, rgba(255, 246, 196, 0.95), rgba(255, 246, 196, 0) 22%),
        linear-gradient(#060f1a, #1a3547);
}
.pitch-art--day { background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.18)), repeating-linear-gradient(96deg, #45a24f 0 34px, #3b9145 34px 68px); }
.pitch-art--day::before { background: linear-gradient(#7fb4de, #c7def0); }
.pitch-art--dusk { background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.3)), repeating-linear-gradient(96deg, #3b7a3a 0 34px, #336d33 34px 68px); }
.pitch-art--dusk::before { background: linear-gradient(#2c2346, #d9825c); }

/* ---------- Шапка ---------- */

.site-header {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    padding-top: env(safe-area-inset-top);
    transition: background 300ms, border-color 300ms, backdrop-filter 300ms;
    border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
    border-color: var(--line-soft);
    background: rgba(15, 20, 31, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 32px;
    width: var(--wrap);
    min-height: 76px;
    margin: 0 auto;
}
.brand { display: inline-flex; text-decoration: none; }
.brand__logo { width: auto; height: 30px; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a {
    position: relative;
    color: var(--ink-muted);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: color 200ms;
}
.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 260ms var(--ease-out);
}
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

/* ---------- Первый экран ---------- */

.hero {
    position: relative;
    display: flex;
    min-height: max(760px, 100svh);
    align-items: center;
    overflow: hidden;
    padding: 120px 0 90px;
    isolation: isolate;
}
.hero__backdrop { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.floodlight {
    position: absolute;
    top: -260px;
    width: 760px;
    height: 760px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 246, 205, 0.16), rgba(210, 243, 76, 0.05) 38%, transparent 66%);
    filter: blur(6px);
}
.floodlight::after {
    content: "";
    position: absolute;
    top: 46%;
    left: 50%;
    width: 220px;
    height: 900px;
    background: linear-gradient(to bottom, rgba(255, 246, 205, 0.09), transparent 80%);
    filter: blur(28px);
    transform-origin: top center;
}
.floodlight--left { left: -260px; }
.floodlight--left::after { transform: translateX(-50%) rotate(-32deg); }
.floodlight--right { right: -300px; top: -320px; }
.floodlight--right::after { transform: translateX(-50%) rotate(30deg); }
.hero__pitch {
    position: absolute;
    left: 50%;
    bottom: -12%;
    width: 1500px;
    max-width: none;
    color: rgba(236, 240, 247, 0.075);
    transform: translateX(-50%) perspective(900px) rotateX(var(--pitch-tilt, 62deg)) scale(var(--pitch-scale, 1));
    transform-origin: 50% 100%;
}
.hero__pitch svg { width: 100%; height: auto; }
.hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 220px;
    background: linear-gradient(transparent, var(--bg));
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    align-items: center;
    gap: 40px;
    width: var(--wrap);
    margin: 0 auto;
}

.invite-note {
    display: flex;
    max-width: 520px;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 26px;
    padding: 14px 16px;
    border: 1px solid rgba(210, 243, 76, 0.35);
    border-radius: 16px;
    background: var(--accent-soft);
    font-size: 15px;
    font-weight: 700;
}
.invite-note .icon { width: 22px; height: 22px; color: var(--accent); }
.invite-note[hidden] { display: none; }

.hero__title {
    margin: 22px 0 26px;
    font-family: var(--font-display);
    font-size: clamp(42px, 5.1vw, 76px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title em {
    position: relative;
    color: var(--accent);
    font-style: normal;
}
.hero__title em::after {
    content: "";
    position: absolute;
    left: 0.04em;
    right: -0.1em;
    bottom: 0.02em;
    height: 0.12em;
    border-radius: 99px;
    background: var(--accent);
    opacity: 0.35;
    transform-origin: left;
}
.hero__lead { max-width: 540px; color: var(--ink-muted); font-size: clamp(18px, 1.6vw, 21px); }
.hero__actions { margin-top: 36px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 44px; }
.hero__facts li { color: var(--ink-muted); font-size: 14px; line-height: 1.35; }
.hero__facts b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

.hero__stage {
    position: relative;
    display: grid;
    height: 680px;
    place-items: center;
    perspective: 1400px;
}

/* Телефон */
.phone {
    position: relative;
    width: 300px;
    aspect-ratio: 300 / 630;
    padding: 9px;
    border-radius: 48px;
    background: linear-gradient(145deg, #2a3142, #0b0e15 40%, #1d2230);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.09),
        inset 0 0 0 1.5px rgba(255, 255, 255, 0.06),
        0 50px 90px -20px rgba(0, 0, 0, 0.7),
        0 30px 60px -30px rgba(210, 243, 76, 0.18);
}
.phone::before {
    content: "";
    position: absolute;
    z-index: 5;
    top: 19px;
    left: 50%;
    width: 86px;
    height: 24px;
    border-radius: 20px;
    background: #05070b;
    transform: translateX(-50%);
}
.phone__screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 40px;
    background: var(--bg);
    font-size: 12px;
    line-height: 1.35;
}
.phone--hero {
    transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg)) translate3d(var(--px, 0), var(--py, 0), 0);
    transform-style: preserve-3d;
}

.app-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 46px;
    padding: 6px 26px 0 30px;
    font-size: 12px;
    font-weight: 800;
}
.app-status__icons { display: flex; gap: 4px; }
.app-status__icons i { width: 14px; height: 9px; border-radius: 2px; background: var(--ink); opacity: 0.85; }
.app-status__icons i:first-child { width: 10px; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: 0; }
.app-status__icons i:nth-child(2) { width: 12px; border-radius: 50% 50% 2px 2px; clip-path: polygon(50% 100%, 0 20%, 100% 20%); }

.feed { padding: 4px 14px 0; }
.feed__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.feed__head b { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.feed__icons { display: flex; gap: 12px; color: var(--ink-muted); }
.feed__icons .icon { width: 19px; height: 19px; }
.feed__note { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; color: var(--ink-muted); font-size: 11px; font-weight: 700; }
.feed__note .icon { width: 14px; height: 14px; color: var(--accent); }

.chips { display: flex; gap: 6px; margin-bottom: 12px; overflow: hidden; }
.chip {
    flex: none;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 99px;
    color: var(--ink-muted);
    font-size: 11px;
    font-weight: 700;
}
.chip--on { border-color: transparent; color: var(--on-accent); background: var(--accent); }

.g-card {
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.g-card__photo { height: 96px; }
.g-card__badge {
    position: absolute;
    z-index: 2;
    top: 9px;
    left: 9px;
    padding: 3px 8px;
    border-radius: 99px;
    color: var(--on-accent);
    background: var(--accent);
    font-size: 9.5px;
    font-weight: 800;
}
.g-card__body { display: grid; gap: 3px; padding: 11px 13px 12px; }
.g-card__time { color: var(--accent); font-size: 10.5px; font-weight: 800; }
.g-card__title { font-size: 14.5px; font-weight: 800; }
.g-card__place { display: flex; align-items: center; gap: 5px; color: var(--ink-muted); font-size: 11px; }
.g-card__place .icon { width: 12px; height: 12px; }
.g-card__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.g-card__facts span { padding: 6px 4px; border-radius: 10px; color: var(--ink-muted); background: var(--surface-raised); font-size: 9px; text-align: center; }
.g-card__facts b { display: block; color: var(--ink); font-size: 11.5px; }
.g-card__org { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line-soft); font-size: 11px; font-weight: 800; }
.g-card__org small { display: block; color: var(--ink-muted); font-size: 9.5px; font-weight: 600; }
.g-card__org .fill { flex: 1; height: 5px; margin-left: 6px; border-radius: 9px; background: var(--surface-raised); overflow: hidden; }
.g-card__org .fill i { display: block; height: 100%; width: calc(var(--f) * 100%); border-radius: inherit; background: var(--accent); }
.g-card--compact { display: grid; grid-template-columns: 74px 1fr; }
.g-card--compact .g-card__photo { height: auto; min-height: 70px; }

.tabbar {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    padding-bottom: 8px;
    border-top: 1px solid var(--line-soft);
    background: rgba(15, 20, 31, 0.92);
    color: var(--ink-faint);
}
.tabbar .icon { width: 21px; height: 21px; }
.tabbar .on { color: var(--accent); }
.tabbar__plus {
    display: grid;
    width: 46px;
    height: 46px;
    margin-top: -22px;
    place-items: center;
    border-radius: 50%;
    color: var(--on-accent);
    background: var(--accent);
    box-shadow: 0 8px 20px rgba(210, 243, 76, 0.35);
}

/* Плавающие метки вокруг телефона */
.float-tag {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 15px;
    border-radius: 99px;
    color: var(--bg);
    background: var(--ink);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transform: translate3d(var(--px, 0), var(--py, 0), 0);
}
.float-tag .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.float-tag--distance { top: 9%; left: -4%; rotate: -5deg; }
.float-tag--distance .icon { color: #4a6900; }
.float-tag--level { top: 30%; right: -2%; rotate: 5deg; color: var(--ink); background: var(--surface-raised); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4), inset 0 0 0 1px var(--line); }
.float-tag--joined { bottom: 17%; right: 0; rotate: -3deg; color: var(--on-accent); background: var(--accent); }
.float-tag--award { bottom: 8%; left: 0; rotate: 3deg; color: var(--on-award); background: var(--award); }
.hero__ball {
    position: absolute;
    z-index: 4;
    top: 4%;
    right: 14%;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    color: var(--bg);
    background: radial-gradient(circle at 35% 30%, #fff, #cfd6e2);
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.45);
    transform: translate3d(var(--px, 0), var(--py, 0), 0);
}
.hero__ball .icon { width: 44px; height: 44px; stroke-width: 1.5; }

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    width: 26px;
    height: 42px;
    border: 2px solid var(--line);
    border-radius: 99px;
    transform: translateX(-50%);
}
.scroll-cue span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: var(--accent);
    transform: translateX(-50%);
    animation: cue 1.8s var(--ease-out) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, -4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* Анимация первого экрана (только с JS: класс .js на html) */
.js .hero__title .line > span { transform: translateY(105%); }
.js .is-loaded .hero__title .line > span { transform: none; transition: transform 1000ms var(--ease-out); }
.js .is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 90ms; }
.js .is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 180ms; }
.js .hero__title em::after { scale: 0 1; }
.js .is-loaded .hero__title em::after { scale: 1 1; transition: scale 700ms var(--ease-out) 900ms; }
.js .hero__eyebrow, .js .hero__lead, .js .hero__actions, .js .hero__facts, .js .invite-note { opacity: 0; translate: 0 16px; }
.js .is-loaded :is(.hero__eyebrow, .hero__lead, .hero__actions, .hero__facts, .invite-note) { opacity: 1; translate: 0 0; transition: opacity 800ms var(--ease-out), translate 800ms var(--ease-out); }
.js .is-loaded .hero__lead { transition-delay: 350ms; }
.js .is-loaded .hero__actions { transition-delay: 450ms; }
.js .is-loaded .hero__facts { transition-delay: 550ms; }
.js .hero__stage { opacity: 0; scale: 0.94; }
.js .is-loaded .hero__stage { opacity: 1; scale: 1; transition: opacity 1100ms var(--ease-out) 150ms, scale 1100ms var(--ease-out) 150ms; }
.js .float-tag, .js .hero__ball { scale: 0; }
.js .is-loaded .float-tag, .js .is-loaded .hero__ball { scale: 1; transition: scale 650ms var(--ease-spring); }
.js .is-loaded .float-tag--distance { transition-delay: 700ms; }
.js .is-loaded .float-tag--level { transition-delay: 820ms; }
.js .is-loaded .float-tag--joined { transition-delay: 940ms; }
.js .is-loaded .float-tag--award { transition-delay: 1060ms; }
.js .is-loaded .hero__ball { transition-delay: 1180ms; }
.js .hero__pitch .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-loaded .hero__pitch .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2400ms cubic-bezier(.45, .05, .2, 1); }
.js .is-loaded .hero__pitch .draw:nth-child(2) { transition-delay: 250ms; }
.js .is-loaded .hero__pitch .draw:nth-child(3) { transition-delay: 450ms; }
.js .is-loaded .hero__pitch .draw:nth-child(n+4) { transition-delay: 650ms; }

/* ---------- Бегущая строка ---------- */

.ticker {
    position: relative;
    z-index: 2;
    overflow: hidden;
    margin: -10px 0 0;
    padding: 18px 0;
    background: var(--accent);
    color: var(--on-accent);
    transform: rotate(-1.6deg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.ticker__track { display: flex; width: max-content; align-items: center; gap: 28px; will-change: transform; }
.ticker span { font-family: var(--font-display); font-size: clamp(18px, 2vw, 26px); font-weight: 700; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; }
.ticker i { width: 14px; height: 14px; flex: none; border: 3px solid currentColor; border-radius: 50%; }

/* ---------- Как это работает ---------- */

.how { padding: 150px 0 80px; }
.how__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    width: var(--wrap);
    margin: 0 auto;
}
.how__sticky {
    position: sticky;
    top: calc(50vh - 330px);
    display: grid;
    height: 660px;
    justify-items: center;
    align-content: center;
    gap: 24px;
}
.how__sticky::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 12% 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(210, 243, 76, 0.16), transparent 65%);
    filter: blur(10px);
}
.how__progress { width: 160px; height: 3px; overflow: hidden; border-radius: 3px; background: var(--line); }
.how__progress i { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(var(--p, 0.25)); transform-origin: left; transition: transform 500ms var(--ease-out); }

.screen {
    position: absolute;
    inset: 46px 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.98);
    transition: opacity 450ms var(--ease-out), transform 600ms var(--ease-out), visibility 0s 600ms;
}
.screen.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 450ms var(--ease-out), transform 600ms var(--ease-out), visibility 0s; }

.steps { display: grid; }
.step {
    display: flex;
    min-height: 82vh;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
    opacity: 0.28;
    transition: opacity 500ms var(--ease-out);
}
.step.is-active { opacity: 1; }
.step__num {
    display: inline-grid;
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    place-items: center;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    transition: background 400ms, color 400ms, border-color 400ms;
}
.step.is-active .step__num { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.step h3 { margin-bottom: 16px; font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.step p { max-width: 520px; color: var(--ink-muted); font-size: 18px; }
.step__media { display: none; }

/* Экран: карта */
.map { position: absolute; inset: 0 0 112px; overflow: hidden; background: var(--map-land); }
.map__park { position: absolute; border-radius: 30px; background: var(--map-park); }
.map__park--a { left: -20px; top: 40px; width: 150px; height: 120px; }
.map__park--b { right: -10px; bottom: 50px; width: 130px; height: 150px; border-radius: 40px; }
.map__water { position: absolute; left: -30px; bottom: -40px; width: 200px; height: 140px; border-radius: 50%; background: var(--map-water); }
.map__road { position: absolute; background: var(--map-road); }
.map__road--a { left: -10%; top: 46%; width: 120%; height: 10px; transform: rotate(-12deg); }
.map__road--b { left: 40%; top: -10%; width: 9px; height: 120%; transform: rotate(14deg); }
.map__road--c { left: -10%; top: 22%; width: 120%; height: 6px; transform: rotate(8deg); }
.map__road--d { left: 72%; top: -10%; width: 6px; height: 120%; transform: rotate(-6deg); }
.map__pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    padding: 5px 9px;
    border-radius: 10px;
    color: var(--ink);
    background: var(--surface-raised);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), inset 0 0 0 1px var(--line);
    font-size: 10.5px;
    font-weight: 800;
    transform: translate(-50%, -100%);
}
.map__pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; background: inherit; transform: translateX(-50%) rotate(45deg); box-shadow: 1px 1px 0 var(--line); }
.map__pin--hot { color: var(--on-accent); background: var(--accent); box-shadow: 0 8px 20px rgba(210, 243, 76, 0.4); }
.map__pin--hot::after { box-shadow: none; }
.map__me {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 14px;
    height: 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #4c8dff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 0 rgba(76, 141, 255, 0.5);
    animation: me 2s infinite;
}
@keyframes me { to { box-shadow: 0 0 0 22px rgba(76, 141, 255, 0); } }
.map__search {
    position: absolute;
    top: 8px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(23, 29, 43, 0.94);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    font-size: 11.5px;
    font-weight: 800;
}
.map__search .icon { color: var(--accent); width: 14px; height: 14px; }
.sheet {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: 4px;
    padding: 10px 16px 22px;
    border-radius: 22px 22px 0 0;
    background: var(--surface);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
}
.sheet__grip { width: 36px; height: 4px; margin: 0 auto 8px; border-radius: 4px; background: var(--line); }
.sheet__row { display: flex; gap: 6px; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 8px; background: var(--surface-raised); color: var(--ink-muted); font-size: 10px; font-weight: 800; }
.tag .icon { width: 11px; height: 11px; }

/* Экран: игра */
.game-top { height: 150px; }
.game-body { display: grid; gap: 4px; padding: 14px 16px; }
.game-body__title { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.roster { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--surface); }
.roster__head { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-muted); font-size: 11px; font-weight: 700; }
.roster__head b { color: var(--ink); }
.roster__bar { height: 6px; overflow: hidden; border-radius: 9px; background: var(--surface-raised); }
.roster__bar i { display: block; width: calc(var(--f) * 100%); height: 100%; border-radius: inherit; background: var(--accent); }
.roster__avatars { display: flex; margin-top: 10px; }
.roster__avatars .ava { margin-right: -6px; box-shadow: 0 0 0 2px var(--surface); }
.price-line { margin-top: 10px; color: var(--ink-muted); font-size: 10.5px; }
.price-line b { color: var(--ink); font-size: 13px; }
.app-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    margin-top: 12px;
    border-radius: 14px;
    color: var(--on-accent);
    background: var(--accent);
    font-size: 13px;
    font-weight: 800;
}
.toast {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 13px;
    border-radius: 14px;
    color: var(--bg);
    background: var(--ink);
    font-size: 11.5px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
    transform: translateY(140%);
    transition: transform 600ms var(--ease-spring) 500ms;
}
.toast .icon { color: #0f7a49; stroke-width: 2.6; }
.screen.is-active .toast { transform: none; }

/* Экран: команды */
.teams { display: grid; gap: 4px; padding: 10px 16px; }
.odds { margin: 10px 0 6px; }
.odds__labels { margin-bottom: 6px; color: var(--ink-muted); font-size: 10.5px; font-weight: 700; }
.odds__bar { display: flex; gap: 3px; height: 26px; }
.odds__bar i {
    display: flex;
    flex: var(--f) 1 0;
    align-items: center;
    padding: 0 10px;
    border-radius: 8px 3px 3px 8px;
    color: var(--on-accent);
    background: var(--accent);
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}
.odds__bar i + i { justify-content: flex-end; border-radius: 3px 8px 8px 3px; color: #2b0e05; background: var(--coral); }
.teams__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.team { display: grid; gap: 7px; padding: 10px; border-radius: 14px; background: var(--surface); }
.team li { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; }
.team li em { margin-left: auto; color: var(--ink-muted); font-size: 10px; font-style: normal; font-variant-numeric: tabular-nums; }
.team .ava { width: 22px; height: 22px; font-size: 8px; }
.team__name { margin-bottom: 2px; color: var(--accent); font-size: 10px !important; font-weight: 800 !important; letter-spacing: 0.08em; text-transform: uppercase; }
.team--b .team__name { color: var(--coral); }
.team li.me { margin: 0 -5px; padding: 3px 5px; border-radius: 8px; background: var(--accent-soft); }
.chat-peek {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 14px 14px 14px 4px;
    background: #0e1820;
    box-shadow: inset 0 0 0 1px var(--line);
    font-size: 10.5px;
}
.chat-peek .icon { width: 14px; height: 14px; color: var(--accent); }

/* Экран: после матча */
.result { display: grid; gap: 10px; padding: 10px 16px; }
.score {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 10px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1f2738, #171d2b);
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--ink-muted);
}
.score b { color: var(--ink); font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.delta-card { padding: 12px; border-radius: 16px; background: var(--surface); }
.delta-card > span { color: var(--ink-muted); font-size: 10.5px; font-weight: 700; }
.delta-card__row { display: flex; align-items: center; gap: 7px; margin: 4px 0; }
.delta-card .num { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.delta-card .num:first-child { color: var(--ink-muted); }
.delta-card .icon { width: 15px; height: 15px; color: var(--ink-muted); }
.num--up { color: var(--coral); }
.plus { margin-left: auto; padding: 3px 8px; border-radius: 8px; color: #06281a; background: var(--success); font-size: 11px; font-weight: 800; }
.delta-card small { color: var(--ink-muted); font-size: 9.5px; }
.vote { display: grid; padding: 12px; border-radius: 16px; background: var(--surface); }
.vote__title { margin-bottom: 4px; font-size: 11.5px; font-weight: 800; }
.vote__row { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-top: 1px solid var(--line-soft); font-size: 11px; font-weight: 700; }
.vote__row .ava { width: 22px; height: 22px; font-size: 8px; }
.blocks { display: flex; gap: 2px; margin-left: auto; }
.blocks i { width: 11px; height: 5px; border-radius: 2px; background: var(--ink-faint); }
.vote__row.is-lead .blocks i { background: var(--coral); }
.award {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 99px;
    color: var(--on-award);
    background: var(--award);
    font-size: 11.5px;
    font-weight: 800;
}
.award .icon { width: 15px; height: 15px; }

/* ---------- Организаторам ---------- */

.org { padding: 110px 0; }
.bento {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    width: var(--wrap);
    margin: 0 auto;
}
.tile {
    position: relative;
    display: flex;
    min-height: 330px;
    flex-direction: column;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-card);
    background: linear-gradient(160deg, #1a2131, #141a27);
    isolation: isolate;
    transition: border-color 300ms, transform 400ms var(--ease-out);
}
.tile::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: radial-gradient(380px circle at var(--x, 50%) var(--y, -20%), rgba(210, 243, 76, 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 300ms;
}
.tile:hover { border-color: rgba(210, 243, 76, 0.25); transform: translateY(-4px); }
.tile:hover::before { opacity: 1; }
.tile--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.tile__icon {
    display: grid;
    width: 46px;
    height: 46px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 14px;
    color: var(--accent);
    background: var(--accent-soft);
}
.tile__icon .icon { width: 22px; height: 22px; }
.tile h3 { margin-bottom: 10px; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.tile p { color: var(--ink-muted); font-size: 15px; }
.tile__art { margin-top: auto; padding-top: 22px; font-size: 13px; }
.tile--wide .tile__art { margin: 0; padding: 0; }

.art-share { display: grid; gap: 10px; padding: 18px !important; border-radius: 22px; background: #0e1820; box-shadow: inset 0 0 0 1px var(--line); }
.msg { max-width: 92%; padding: 10px 13px; border-radius: 16px 16px 16px 4px; background: var(--surface-raised); font-size: 13px; }
.msg > b { display: block; margin-bottom: 2px; color: var(--coral); font-size: 11.5px; }
.msg--out { justify-self: end; border-radius: 16px 16px 4px 16px; color: var(--on-accent); background: var(--accent); font-weight: 700; }
.link-card { display: grid; grid-template-columns: 54px 1fr; gap: 10px; margin-top: 8px; padding: 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); font-size: 11.5px; line-height: 1.35; }
.link-card__thumb { height: 54px; border-radius: 8px; }
.link-card b { display: block; font-size: 12.5px; }
.link-card small { display: block; color: var(--ink-muted); }
.joined { display: flex; align-items: center; }
.joined .ava { margin-right: -6px; box-shadow: 0 0 0 2px #0e1820; }
.joined b { margin-left: 14px; color: var(--accent); font-size: 12.5px; }

.req { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-weight: 700; }
.req small { display: block; color: var(--ink-muted); font-size: 11.5px; font-weight: 600; }
.req i { display: grid; width: 30px; height: 30px; margin-left: auto; place-items: center; border-radius: 10px; }
.req .ok { color: var(--on-accent); background: var(--accent); }
.req .no { color: var(--ink-muted); background: var(--surface-raised); }
.req .icon { width: 15px; height: 15px; stroke-width: 2.6; }

.art-spares { display: grid; gap: 8px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.dots i.sp { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.art-spares b { margin-top: 6px; font-family: var(--font-display); font-size: 22px; }
.art-spares small { color: var(--ink-muted); font-size: 13px; }

.art-odds { display: grid; gap: 14px; }
.art-odds .odds__bar { height: 34px; }
.art-odds .odds__bar i { font-size: 13px; }
.mini-button { display: inline-flex; width: max-content; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-weight: 800; }
.mini-button .icon { color: var(--accent); }

.paid__head { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--ink-muted); font-weight: 700; }
.paid__head b { color: var(--ink); font-family: var(--font-display); font-size: 20px; }
.art-paid .roster__bar { height: 10px; }

.art-queue { display: grid; gap: 10px; }
.q-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-raised); font-weight: 700; }
.q-row--out { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: rgba(255, 148, 115, 0.8); }
.q-row--in { box-shadow: inset 0 0 0 1.5px var(--accent); }
.q-row--in .icon { margin-left: auto; color: var(--accent); stroke-width: 2.6; }
.notif { display: flex; gap: 12px; padding: 14px; border-radius: 18px; color: var(--bg); background: var(--ink); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35); font-size: 13px; line-height: 1.35; }
.notif b { display: block; }
.notif .icon { width: 20px; height: 20px; color: #4a6900; }

/* ---------- Рейтинг ---------- */

.rating { padding: 110px 0 120px; overflow: hidden; }
.rating__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
    width: var(--wrap);
    margin: 0 auto;
}
.rating__copy .section-lead { margin-top: 22px; }
.rating__points { display: grid; gap: 16px; margin-top: 32px; }
.rating__points li { position: relative; padding-left: 30px; color: var(--ink-muted); }
.rating__points li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 3px var(--accent); }
.rating__points b { color: var(--ink); }

.rating__visual { position: relative; padding: 0 0 120px 0; }
.r-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--line-soft);
    border-radius: 32px;
    background: linear-gradient(160deg, #1c2334, #141a27);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
.r-card__top { display: flex; align-items: center; gap: 12px; }
.r-card__top b { display: block; font-size: 16px; }
.r-card__top small { color: var(--ink-muted); font-size: 13px; }
.r-card__badge { margin-left: auto; padding: 6px 10px; border-radius: 10px; color: var(--coral); background: rgba(255, 148, 115, 0.14); font-size: 13px; font-weight: 800; white-space: nowrap; }
.r-card__num { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 8px; }
.r-card__num b { color: var(--coral); font-family: var(--font-display); font-size: clamp(64px, 7vw, 96px); font-weight: 800; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.r-card__num span { color: var(--ink-muted); font-weight: 700; }
.r-card__chart { width: 100%; height: auto; overflow: visible; }
.js .r-card__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .is-visible .r-card__line { stroke-dashoffset: 0; transition: stroke-dashoffset 1800ms cubic-bezier(.45, .05, .2, 1) 200ms; }
.js .r-card__area, .js .r-card__chart circle { opacity: 0; }
.js .is-visible .r-card__area, .js .is-visible .r-card__chart circle { opacity: 1; transition: opacity 800ms 1400ms; }
.scale { margin-top: 20px; }
.scale__track { height: 8px; overflow: hidden; border-radius: 9px; background: var(--surface-raised); }
.scale__track i { display: block; width: calc(var(--f) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5c7a12, var(--accent)); transform-origin: left; }
.js .scale__track i { transform: scaleX(0); }
.js .is-visible .scale__track i { transform: scaleX(1); transition: transform 1600ms var(--ease-out) 300ms; }
.scale__ticks { display: flex; justify-content: space-between; margin-top: 8px; color: var(--ink-faint); font-size: 12px; font-weight: 700; }
.r-card__awards { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.r-card__awards .award { font-size: 13px; }
.pill { padding: 7px 12px; border-radius: 99px; background: var(--surface-raised); color: var(--ink-muted); font-size: 13px; font-weight: 700; }

.leader {
    position: absolute;
    right: -24px;
    bottom: 0;
    width: 280px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(23, 29, 43, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    rotate: 3deg;
    transform: translate3d(0, var(--sy, 0), 0);
}
.leader__title { display: block; margin-bottom: 10px; font-size: 13px; }
.leader li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 14px; font-weight: 700; }
.leader li em { margin-left: auto; font-family: var(--font-display); font-size: 14px; font-style: normal; }
.leader .pos { width: 16px; color: var(--accent); font-family: var(--font-display); font-size: 13px; }

.calibration {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: var(--wrap);
    margin: 70px auto 0;
    counter-reset: c;
}
.calibration::before {
    content: "";
    position: absolute;
    top: 27px;
    left: 28px;
    right: 28px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.calibration li { position: relative; display: grid; align-content: start; gap: 6px; padding-right: 20px; color: var(--ink-muted); font-size: 15px; }
.calibration li span {
    display: grid;
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
    place-items: center;
    border: 1.5px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-display);
    font-weight: 700;
}
.calibration li:last-child span { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
.calibration b { color: var(--ink); font-size: 18px; }

/* ---------- Поля ---------- */

.fields { padding: 90px 0 120px; overflow: hidden; }
.fields__rail { display: flex; gap: 18px; width: max-content; padding-left: max(24px, calc((100% - 1200px) / 2)); will-change: transform; transform: translate3d(var(--rail, 0), 0, 0); }
.field-card {
    position: relative;
    display: grid;
    width: 280px;
    gap: 4px;
    padding: 10px 10px 18px;
    border: 1px solid var(--line-soft);
    border-radius: 26px;
    background: var(--surface);
}
.field-card__photo { height: 170px; margin-bottom: 10px; border-radius: 18px; }
.field-card b, .field-card span, .field-card em { padding: 0 8px; }
.field-card b { font-size: 17px; }
.field-card span { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: 14px; }
.field-card span .icon { width: 15px; height: 15px; }
.field-card em { color: var(--accent); font-size: 13px; font-style: normal; font-weight: 800; }
.field-card__star { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; padding: 7px; border-radius: 50%; color: var(--ink); background: rgba(10, 14, 23, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.field-card__star.on { color: var(--accent); fill: var(--accent); }

/* ---------- Вопросы ---------- */

.faq { padding: 60px 0 120px; }
.faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: var(--wrap); margin: 0 auto; align-items: start; }
.faq details { border: 1px solid var(--line-soft); border-radius: 22px; background: var(--surface); transition: border-color 250ms, background 250ms; }
.faq details[open] { border-color: rgba(210, 243, 76, 0.3); background: #1a2131; }
.faq summary {
    position: relative;
    padding: 22px 64px 22px 24px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 26px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transition: transform 300ms var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-muted); font-size: 16px; }

/* ---------- Скачать ---------- */

.final { width: var(--wrap); margin: 0 auto; padding-bottom: 40px; }
.final__card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 56px;
    overflow: hidden;
    padding: clamp(36px, 5vw, 72px);
    border: 1px solid rgba(210, 243, 76, 0.22);
    border-radius: 40px;
    background: linear-gradient(150deg, #19221f, #121824 60%);
    isolation: isolate;
}
.final__glow {
    position: absolute;
    z-index: -1;
    left: -10%;
    top: -60%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(210, 243, 76, 0.2), transparent 60%);
}
.final__card::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.05) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
        radial-gradient(circle at 50% 50%, transparent 140px, rgba(255, 255, 255, 0.05) 141px 143px, transparent 144px);
}
.final__logo { width: clamp(200px, 22vw, 290px); }
.final__logo img, .final__logo svg { width: 100%; height: auto; overflow: visible; }
.final__title { font-family: var(--font-display); font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.final__copy p { margin: 18px 0 30px; color: var(--ink-muted); font-size: 18px; }
.final__qr { display: grid; width: 150px; gap: 12px; justify-items: center; color: var(--ink-muted); font-size: 12.5px; line-height: 1.4; text-align: center; }
.final__qr svg { width: 150px; height: 150px; border-radius: 16px; }

/* ---------- Подвал ---------- */

.site-footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); color: var(--ink-muted); font-size: 14px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; width: var(--wrap); margin: 0 auto; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.site-footer .brand__logo { height: 26px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-left: auto; }
.site-footer nav a { text-decoration: none; transition: color 200ms; }
.site-footer nav a:hover { color: var(--ink); }

/* ---------- Появление при прокрутке ---------- */

.js [data-reveal] { opacity: 0; translate: 0 36px; }
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; transition: opacity 900ms var(--ease-out), translate 900ms var(--ease-out); transition-delay: var(--d, 0ms); }

/* ---------- Адаптив ---------- */

@media (max-width: 1080px) {
    .site-nav { gap: 20px; }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile--wide { grid-column: span 2; }
    .final__card { grid-template-columns: auto minmax(0, 1fr); }
    .final__qr { display: none; }
}

@media (max-width: 920px) {
    .site-nav { display: none; }
    .site-header__inner { justify-content: space-between; }
    .hero { min-height: 0; padding: 110px 0 70px; }
    .hero__inner { grid-template-columns: 1fr; gap: 20px; }
    .hero__copy { text-align: center; }
    .hero__copy .invite-note { margin-inline: auto; text-align: left; }
    .hero__lead { margin-inline: auto; }
    .hero__actions, .hero__facts { justify-content: center; }
    .hero__stage { height: 600px; }
    .scroll-cue { display: none; }
    .section-head--split { grid-template-columns: 1fr; gap: 20px; }

    .how { padding-top: 110px; }
    .how__layout { grid-template-columns: 1fr; gap: 0; }
    .how__sticky { display: none; }
    .step { min-height: 0; padding: 30px 0 50px; opacity: 1; }
    .step__num { border-color: var(--accent); color: var(--on-accent); background: var(--accent); }
    .step__media { display: flex; justify-content: center; margin-top: 30px; }
    .step__media .phone { width: 270px; }
    .step__media .screen { opacity: 1; visibility: visible; transform: none; }
    .step__media .toast { transform: none; }

    .rating__layout { grid-template-columns: 1fr; gap: 50px; }
    .rating__visual { padding-bottom: 0; }
    .leader { position: relative; right: auto; bottom: auto; width: min(300px, 90%); margin: -36px 0 0 auto; }
    .calibration { grid-template-columns: 1fr; gap: 26px; }
    .calibration::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 16px); }
    .calibration li { grid-template-columns: 56px 1fr; column-gap: 18px; }
    .calibration li span { grid-row: span 2; margin: 0; }
    .calibration li b { align-self: end; }
    .faq__list { grid-template-columns: 1fr; }
    .final__card { grid-template-columns: 1fr; justify-items: center; gap: 30px; text-align: center; }
    .final__copy .store-buttons { justify-content: center; }
}

@media (max-width: 600px) {
    :root { --wrap: calc(100% - 32px); }
    body { font-size: 16px; }
    .site-header__inner { min-height: 64px; }
    .brand__logo { height: 26px; }
    .hero { padding-top: 96px; }
    .hero__title { font-size: clamp(38px, 11.4vw, 54px); }
    .store-buttons { flex-direction: column; align-items: stretch; }
    .store-button { justify-content: center; }
    .hero__facts { gap: 12px 22px; }
    .hero__facts li { flex: 1 1 28%; min-width: 92px; }
    .hero__facts b { font-size: 15px; }
    .hero__stage { height: 540px; margin-inline: -16px; }
    .phone { width: 260px; border-radius: 42px; }
    .phone__screen { border-radius: 34px; }
    .float-tag { padding: 8px 12px; font-size: 12px; }
    .float-tag--distance { left: 3%; }
    .float-tag--level { right: 2%; }
    .float-tag--joined { right: 3%; }
    .float-tag--award { left: 3%; }
    .hero__ball { width: 42px; height: 42px; right: 8%; }
    .hero__ball .icon { width: 36px; height: 36px; }
    .ticker { padding: 14px 0; }
    .section-head { margin-bottom: 36px; }
    .bento { grid-template-columns: 1fr; }
    .tile, .tile--wide { grid-column: auto; grid-template-columns: 1fr; min-height: 0; padding: 24px; }
    .tile--wide .tile__art { margin-top: 10px; }
    .r-card { padding: 22px; }
    .leader { margin-right: 6px; }
    .field-card { width: 240px; }
    .field-card__photo { height: 140px; }
    .final__card { border-radius: 30px; }
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
    .site-footer nav { flex-direction: column; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
    .fields__rail { width: auto; overflow-x: auto; padding-right: 24px; transform: none !important; }
}
