/* «Как деньги?» — сайт-визитка. Тёмная тема, родственник панели:
   токены из app/web/app/globals.css (тёмно-синие плашки со свечением в углу, Golos Text для цифр и заголовков,
   Inter для текста, скругления 8/14/20, пилюли). Одна тёплая акцентная краска — золото денег. */

:root {
  --page: #070b1c;
  --bg: #0b1230;
  --surface: #0f1733;
  --surface-2: rgba(255, 255, 255, .06);
  --navy: #101b3f;
  --navy-2: #16214d;
  --border: rgba(255, 255, 255, .09);
  --border-2: rgba(255, 255, 255, .17);
  --text: #f3f5fb;
  --muted: #aeb6cf;
  --faint: #8790ad;
  --gold: #f3b640;
  --gold-2: #ffd27a;
  --gold-weak: rgba(243, 182, 64, .14);
  --gold-ink: #1a1304;
  --income: #3dd68c;
  --expense: #ff7a2f;
  --income-weak: rgba(61, 214, 140, .14);
  --expense-weak: rgba(255, 122, 47, .16);
  --paper: #f3eee2;
  --paper-ink: #1a1710;
  --font-display: 'Golos Text', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-2: cubic-bezier(.77, 0, .175, 1);
  --hdr: 64px;
  --gutter: clamp(16px, 4vw, 56px);
  --row: 44px;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--page); }

body {
  margin: 0;
  min-height: 100svh;
  background:
    radial-gradient(1100px 560px at 8% -10%, rgba(243, 182, 64, .13), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, rgba(243, 182, 64, .06), transparent 60%),
    var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--gold); color: var(--gold-ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--page); }
::-webkit-scrollbar-thumb { background: #2a3350; border-radius: 6px; border: 2px solid var(--page); }

a { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
b, strong { font-weight: 600; }
p { margin: 0; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.03em;
  margin: 0;
  text-wrap: balance;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.wrap { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter); }

/* Переходы между страницами (cross-document View Transitions там, где браузер умеет; иначе — мягкий fade из script.js) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms ease-out both vt-out; }
::view-transition-new(root) { animation: 320ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(8px); } }
body.leaving { opacity: 0; transition: opacity .18s ease; }
body.js-enter { animation: vt-in .5s var(--ease) both; }

/* Полоска прокрутки: CSS scroll-driven animation; без поддержки — ширину ставит script.js */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--gold); z-index: 80; transform-origin: left; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* подпись в стиле панели: капс с точкой */
.lab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.lab::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--faint);
  white-space: nowrap;
  line-height: 1.3;
}
.tag.tag-yc { color: var(--text); background: rgba(255, 255, 255, .1); }
.tag.gold { color: var(--gold); background: var(--gold-weak); }

.pill { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; white-space: nowrap; }
.pill.up { background: var(--income-weak); color: var(--income); }
.pill.dn { background: var(--expense-weak); color: var(--expense); }
.pill.nt { background: var(--surface-2); color: var(--muted); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 13px;
  white-space: nowrap;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }

/* карточка и тёмная плашка со свечением — как на панели */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012)), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 20px 44px -24px rgba(0, 0, 0, .6);
  min-width: 0;
}
.tile { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); border-radius: 16px; }
.tile::after { content: ""; position: absolute; right: -44px; top: -44px; width: 150px; height: 150px; border-radius: 50%; pointer-events: none; z-index: -1; background: radial-gradient(circle, var(--glow, rgba(243, 182, 64, .28)), transparent 70%); }
.tile.in { --glow: rgba(61, 214, 140, .26); }
.tile.out { --glow: rgba(255, 122, 47, .28); }
.tile.lg::after { width: 300px; height: 300px; right: -80px; top: -100px; }

/* ---------------------------------------------------------------- шапка */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 28, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 64px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; line-height: 1; white-space: nowrap; }
.brand .q { color: var(--gold); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s, transform .25s var(--ease), box-shadow .25s;
  box-shadow: 0 10px 24px -14px rgba(243, 182, 64, .7);
}
.btn:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .3); }
.btn.lg { padding: 15px 26px; font-size: 16px; }
.btn.sm { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.link { font-weight: 600; font-size: 14.5px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; white-space: nowrap; }
.link:hover { color: var(--gold); }

/* ----------------------------------------------------------- первый экран */
.hero {
  position: relative;
  padding: clamp(40px, 7vh, 88px) 0 clamp(56px, 8vh, 96px);
  min-height: calc(100svh - var(--hdr));
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 96px); align-items: center; }

.hero-copy .lab { margin-bottom: clamp(18px, 3vh, 30px); }
.hero-title { font-size: clamp(64px, 11vw, 168px); line-height: .92; letter-spacing: -.045em; }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; transform: translateY(112%); animation: rise 1s var(--ease) .1s forwards; }
.hero-title .w:nth-child(2) > span { animation-delay: .22s; }
.hero-title .q { color: var(--gold); }
@keyframes rise { to { transform: none; } }

.hero-lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 36ch; margin: clamp(22px, 3.5vh, 36px) 0 0; color: var(--muted); opacity: 0; animation: fade 1s var(--ease) .55s forwards; }
.hero-lead b { color: var(--text); }
@keyframes fade { to { opacity: 1; } }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: clamp(26px, 4vh, 40px); opacity: 0; animation: fade 1s var(--ease) .75s forwards; }
.hero-note { margin-top: clamp(28px, 5vh, 56px); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); opacity: 0; animation: fade 1s var(--ease) 1s forwards; }
.hero-note b { color: var(--muted); font-weight: 600; }

/* сцена «касса считает»: табло, реестр, монета, купюры, чек */
.scene { position: relative; width: min(100%, 560px); justify-self: end; padding: 82px 0 72px; opacity: 0; animation: fade .9s var(--ease) .35s forwards; container-type: inline-size; }

.display {
  position: relative;
  z-index: 2;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.display .dl { font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.display .dl small { display: block; margin-top: 3px; font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }
.odo { display: flex; align-items: center; font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.02em; line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.odo .drum { height: 1em; overflow: hidden; width: .62em; text-align: center; }
.odo .strip { display: flex; flex-direction: column; transition: transform .75s var(--ease); will-change: transform; }
.odo .strip span { height: 1em; line-height: 1; display: block; }
.odo .gap { width: .28em; }
.odo .cur { margin-left: .2em; color: var(--gold); opacity: .8; }

.ledger-card { position: relative; z-index: 1; margin: 14px 10px 0; padding: 16px 18px 12px; overflow: hidden; }
.lc-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--border-2); }
.lc-head .clock { font-size: 12px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.lc-rows { height: calc(6 * var(--row)); overflow: hidden; position: relative; background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--row) - 1px), var(--border) calc(var(--row) - 1px) var(--row)); -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16px); mask-image: linear-gradient(to bottom, transparent 0, #000 16px); }
.lc-list { transition: transform .6s var(--ease); }
.lc-list.sweep { transition: transform .7s var(--ease-2), opacity .5s; opacity: 0; transform: translateY(-40px) !important; }

.lrow { height: var(--row); display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 13.5px; clip-path: inset(0 100% 0 0); animation: print .55s var(--ease-2) forwards; }
.lrow .t { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.lrow .w { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.lrow .w small { color: var(--faint); font-size: 12px; }
.lrow .amt { font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 14px; }
.lrow .amt.plus { color: var(--income); }
.lrow .amt.minus { color: var(--expense); }
.lrow .amt.tr { color: var(--muted); }
.lrow .tag { transform: scale(1.4); opacity: 0; animation: tagin .4s var(--ease) .3s forwards; }
@keyframes print { to { clip-path: inset(0 0 0 0); } }
@keyframes tagin { to { transform: scale(1); opacity: 1; } }

.receipt {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  background: var(--paper);
  color: var(--paper-ink);
  font-size: 13px;
  line-height: 1.5;
  padding: 18px 18px 22px;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .8);
  transform: translateY(104%);
  transition: transform .9s var(--ease);
  z-index: 3;
  font-variant-numeric: tabular-nums;
}
.receipt.in { transform: translateY(0); }
.receipt > * { opacity: 0; }
.receipt.in > * { animation: fade .5s ease forwards; animation-delay: calc(.5s + var(--i, 0) * .17s); }
.receipt .rh { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6f6753; }
.receipt .rbig { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.03em; margin: 8px 0 12px; color: #15713f; }
.receipt .rl { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px dashed #cfc6b2; }
.receipt .rfoot { margin-top: 10px; font-size: 12.5px; color: #4e4838; border-top: 1px dashed #cfc6b2; padding-top: 10px; }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; top: -11px; height: 11px; background: var(--paper); -webkit-mask: conic-gradient(from 315deg at bottom, #000 90deg, #0000 0) 0 0 / 22px 100%; mask: conic-gradient(from 315deg at bottom, #000 90deg, #0000 0) 0 0 / 22px 100%; }
.stamp { position: absolute; right: 18px; top: 44px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #1c3ed1; border: 2px solid #1c3ed1; border-radius: 6px; padding: 5px 9px 4px; transform: rotate(-8deg) scale(1.6); opacity: 0; }
.receipt.in .stamp { animation: stampbig .4s var(--ease) 1.5s forwards; }
@keyframes stampbig { to { transform: rotate(-8deg) scale(1); opacity: .9; } }

/* монета висит над карточкой «На счетах», касаясь её верхнего края; качается, а не крутится насквозь — иначе в момент ребра видна только тонкая полоска */
.coin { position: absolute; left: 10px; top: 10px; width: 78px; height: 78px; z-index: 4; transform-style: preserve-3d; transition: transform .5s var(--ease); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .5)); }
.coin.pop { transform: translateY(-10px) scale(1.08); }
.coin-inner { position: absolute; inset: 0; transform-style: preserve-3d; animation: swing 5.5s ease-in-out infinite; }
.coin .face { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe3a3, #e9a92c 60%, #c9881a); box-shadow: inset 0 0 0 4px #f6c45a, inset 0 0 0 5px #a86d12, inset 0 0 18px rgba(120, 70, 0, .35); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 36px; color: #7a4b08; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin .face { transform: translateZ(4px); }
.coin .face.back { transform: rotateY(180deg) translateZ(4px); }
.coin .edge { position: absolute; inset: 2px; border-radius: 50%; background: #b8791a; transform: translateZ(calc(var(--z) * 1px)); }
@keyframes swing { 0%, 100% { transform: rotateY(-56deg); } 50% { transform: rotateY(56deg); } }

.notes { position: absolute; left: -6px; bottom: -4px; width: 190px; height: 100px; z-index: 4; pointer-events: none; }
.note { position: absolute; left: 0; bottom: 0; width: 156px; height: 68px; border-radius: 4px; background: linear-gradient(135deg, #1b2a5c, #15204a); border: 1px solid rgba(243, 182, 64, .55); box-shadow: inset 0 0 0 4px #182552, inset 0 0 0 5px rgba(243, 182, 64, .45), 0 14px 24px -14px rgba(0, 0, 0, .8); transform-origin: 20% 90%; opacity: 0; transform: translate(160px, -60px) rotate(28deg); transition: transform .8s var(--ease), opacity .3s; }
.note::before { content: ""; position: absolute; left: 16px; top: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(243, 182, 64, .7); background: repeating-radial-gradient(circle at center, transparent 0 3px, rgba(243, 182, 64, .3) 3px 4px); }
.note::after { content: ""; position: absolute; left: 64px; right: 14px; top: 40px; height: 14px; background: repeating-linear-gradient(90deg, rgba(243, 182, 64, .35) 0 1px, transparent 1px 4px); }
.note span { position: absolute; right: 14px; top: 12px; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--gold-2); }
.note.in { opacity: 1; }
.note.in:nth-child(1) { transform: rotate(-9deg); }
.note.in:nth-child(2) { transform: translate(8px, -6px) rotate(-3deg); }
.note.in:nth-child(3) { transform: translate(16px, -12px) rotate(4deg); }
.note.in:nth-child(4) { transform: translate(24px, -18px) rotate(11deg); }

@container (max-width: 420px) {
  .lc-rows { height: calc(5 * var(--row)); }
  .lrow { font-size: 13px; gap: 8px; }
}

/* ------------------------------------------------------------- банки */
.banks-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.banks-note { display: flex; justify-content: space-between; gap: 10px 32px; flex-wrap: wrap; padding: 16px 0 4px; font-size: 13px; color: var(--muted); }
.banks-note b { color: var(--text); font-weight: 600; }
.banks { overflow: hidden; padding: 12px 0 20px; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.banks-track { display: flex; width: max-content; animation: marquee 46s linear infinite; will-change: transform; }
.banks-track:hover { animation-play-state: paused; }
.banks-group { display: flex; align-items: center; }
.bank { display: inline-flex; align-items: center; height: 44px; margin-right: clamp(36px, 5vw, 72px); font-family: var(--font-body); font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1; color: var(--c, var(--text)); white-space: nowrap; }
.bank.chip-bg b { background: var(--chip); color: var(--c); padding: 8px 12px 7px; border-radius: 8px; }
.bank svg { height: 30px; width: auto; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------- разделы-записи */
.entry { padding: clamp(72px, 11vh, 150px) 0 0; }
.entry-head { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: end; gap: 16px; border-top: 1px solid var(--border-2); padding-top: 18px; }
.idx { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--gold); padding-bottom: .3em; font-variant-numeric: tabular-nums; }
.entry-head h2 { font-size: clamp(36px, 5vw, 76px); letter-spacing: -.035em; }
.entry-head .meta { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding-bottom: .5em; text-align: right; }
.entry-body { display: grid; grid-template-columns: 72px minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(28px, 5vh, 56px); }
.entry-body > .col-idx { grid-column: 1; }
.entry-body > .col-text { grid-column: 2; }
.entry-body > .col-vis { grid-column: 3; min-width: 0; }
.entry-body.wide > .col-text { grid-column: 2 / -1; }

.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: var(--muted); max-width: 44ch; }
.lead + .lead { margin-top: 1.1em; }
.lead b { color: var(--text); font-weight: 600; }
.small-note { margin-top: 22px; font-size: 13px; line-height: 1.6; color: var(--faint); max-width: 44ch; }
.cmd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; color: var(--gold-2); white-space: nowrap; }

/* реестр-таблица */
.ledger { border-top: 1px solid var(--border-2); }
.ledger .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr) minmax(0, .9fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); align-items: start; }
.ledger .row.two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); }
.ledger .row.two strong { font-size: clamp(20px, 1.6vw, 24px); }
.ledger .rl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); display: block; margin-bottom: 8px; }
.ledger strong { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; display: block; letter-spacing: -.025em; line-height: 1.05; }
.ledger .how { font-size: 16px; line-height: 1.55; color: var(--muted); }
.ledger .ex { font-size: 13px; line-height: 1.6; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.ledger .ex .plus { color: var(--income); font-weight: 600; }
.ledger .ex .tag { animation: none; opacity: 1; transform: none; }

/* 01 — связка с YCLIENTS */
.yc { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); gap: 16px; align-items: center; }
.yc-card, .yc-reg { padding: 16px 18px 18px; position: relative; min-width: 0; }
.yc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.wordmark-yc { font-family: var(--font-body); font-weight: 800; font-size: 15px; letter-spacing: .08em; color: var(--text); text-transform: none; }
.yc-visit { display: grid; gap: 7px; font-size: 14.5px; }
.yc-visit .l { display: flex; justify-content: space-between; gap: 12px; }
.yc-visit .l span:last-child { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.yc-pay { margin-top: 14px; display: block; width: 100%; height: 42px; border-radius: 10px; background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13.5px; position: relative; overflow: hidden; transition: background .4s; }
.yc-pay .a, .yc-pay .b { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .5s var(--ease), opacity .4s; }
.yc-pay .b { transform: translateY(100%); opacity: 0; color: var(--income); }
.yc.s1 .yc-pay { background: var(--income-weak); }
.yc.s1 .yc-pay .a { transform: translateY(-100%); opacity: 0; }
.yc.s1 .yc-pay .b { transform: none; opacity: 1; }
.yc-link { position: relative; height: 2px; background: repeating-linear-gradient(90deg, var(--border-2) 0 6px, transparent 6px 12px); }
.yc-link::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); opacity: 0; transition: transform 1.1s var(--ease-2), opacity .3s; }
.yc.s2 .yc-link::before, .yc.s3 .yc-link::before { transform: translateX(54px); opacity: 1; }
.yc.s3 .yc-link::before { opacity: 0; transition-delay: 0s, .9s; }
.yc-link span { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.yc-reg .lrow { animation: none; clip-path: inset(0 100% 0 0); height: auto; padding: 9px 0; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 8px; border-bottom: 1px solid var(--border); }
.yc-reg .lrow.ghost { clip-path: none; color: var(--faint); }
.yc-reg .lrow.ghost .w, .yc-reg .lrow.ghost .amt { color: var(--faint); }
.yc.s3 .yc-reg .lrow.new { animation: print .6s var(--ease-2) forwards; }
.yc-reg .lrow .tag { animation: none; opacity: 0; transform: scale(1.4); }
.yc.s3 .yc-reg .lrow.new .tag { animation: tagin .4s var(--ease) .5s forwards; }
.yc-bal { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-2); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.yc-bal b { font-family: var(--font-display); color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -.01em; text-transform: none; font-variant-numeric: tabular-nums; }
.sources { margin-top: clamp(36px, 6vh, 64px); }

/* 02 — один день (sticky) */
.day-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: start; margin-top: clamp(16px, 3vh, 32px); }
.day-sticky { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--hdr) + 16px); height: calc(100vh - var(--hdr) - 32px); display: flex; align-items: center; }
.day-steps { grid-column: 1; grid-row: 1; padding: 6vh 0 14vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s; }
.step.is-active { opacity: 1; }
.step .time { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -.03em; font-weight: 700; }
.step p { margin-top: 14px; max-width: 40ch; color: var(--muted); font-size: 16.5px; }

.stage { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: end; }
.sheet { align-self: start; padding: 14px 16px 6px; min-width: 0; }
.sheet-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--border-2); }
.sheet-head .lab { font-size: 11px; }
.sheet-head small { font-size: 11.5px; color: var(--faint); font-weight: 600; }
.sheet-rows { position: relative; overflow: hidden; }
.sheet-list { transition: transform .6s var(--ease); }
.srow { height: 40px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 13px; border-bottom: 1px solid var(--border); opacity: 0; clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease-2), opacity .2s; }
.srow.on, .srow.base { opacity: 1; clip-path: inset(0 0 0 0); }
.srow .t { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.srow .w { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .amt { font-family: var(--font-display); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.srow .amt.plus { color: var(--income); }
.srow .amt.minus { color: var(--expense); }
.srow .amt.tr { color: var(--muted); }
.srow .tag { opacity: 0; transform: scale(1.4); transition: transform .4s var(--ease) .3s, opacity .3s .3s; }
.srow.on .tag, .srow.base .tag { opacity: 1; transform: none; }

/* телефон — как макет бота в панели */
.phone { background: #0b0f1c; border: 2px solid #2a3350; border-radius: 34px; padding: 10px; height: min(600px, calc(100vh - var(--hdr) - 60px)); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .9); display: flex; flex-direction: column; min-width: 0; }
.phone-screen { background: #17213a; border-radius: 25px; flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.phone-status { display: flex; justify-content: space-between; padding: 10px 18px 4px; font-size: 11px; font-weight: 600; color: var(--muted); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; background: #1d2848; color: #fff; }
.phone-top i { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-style: normal; font-size: 17px; flex: none; }
.phone-top b { display: block; font-size: 13.5px; line-height: 1.2; }
.phone-top small { display: block; color: #8fa0d0; font-size: 11px; }
.chat { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px 12px 12px; overflow: hidden; min-height: 0; color: #fff; }
.msg { max-width: 92%; padding: 8px 11px; border-radius: 14px; border-bottom-left-radius: 4px; font-size: 12.5px; line-height: 1.45; background: #26314f; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s var(--ease), transform .55s var(--ease); display: none; }
.msg.on, .msg.base { display: block; opacity: 1; transform: none; }
.msg.me { align-self: flex-end; background: var(--gold); color: var(--gold-ink); border-radius: 14px; border-bottom-right-radius: 4px; font-weight: 500; }
.msg b { font-weight: 700; }
.msg .n { font-variant-numeric: tabular-nums; }
.msg .ok { color: #6fe0a5; font-weight: 700; }
.msg .dim { color: #aeb6cf; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px 8px 10px; background: #1d2848; }
.keys span { border-radius: 8px; padding: 8px 4px; text-align: center; font-size: 11px; font-weight: 600; color: #e5e9f6; background: #26314f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 03 — панель */
.panel { padding: 20px 22px 22px; min-width: 0; }
.balance { padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 28px; color: #fff; }
.balance .bt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #aeb6cf; }
.balance .bsum { font-family: var(--font-display); font-size: clamp(32px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.03em; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.bar i { display: block; height: 100%; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease-2); transition-delay: calc(var(--d) * 90ms); }
.is-in .bar i { transform: scaleX(1); }
.balance .fc { margin-top: 12px; font-size: 13px; color: #aeb6cf; }
.balance .fc b { color: var(--income); font-size: 17px; font-family: var(--font-display); }
.balance h4 { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8f98b5; display: flex; justify-content: space-between; }
.balance h4 + h4, .balance ul + h4 { margin-top: 12px; }
.balance ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.balance li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 5px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.balance li span { color: #cfd5e6; display: flex; align-items: center; gap: 8px; }
.balance li i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.balance li .num { font-weight: 600; white-space: nowrap; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.kpi { padding: 12px 14px; color: #fff; }
.kpi .kl { font-size: 12px; font-weight: 600; color: #aeb6cf; }
.kpi .kv { font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 24px); font-weight: 700; margin-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi.in .kv { color: var(--income); }
.kpi.out .kv { color: var(--expense); }
.kpi .kc { display: flex; gap: 6px; align-items: center; margin-top: 5px; font-size: 11.5px; color: #8f98b5; flex-wrap: wrap; }

.cal { margin-top: 14px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 0 8px; font-size: 12px; color: var(--faint); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.cal .d { min-height: 60px; padding: 5px 6px; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 11px; }
.cal .d:first-child { border-left: 0; }
.cal .d .dn { font-weight: 600; color: var(--muted); width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 11.5px; }
.cal .d.today .dn { background: var(--gold); color: var(--gold-ink); }
.cal .d.sel { box-shadow: inset 0 0 0 2px var(--gold); }
.cal .mark { display: inline-flex; align-items: center; border-radius: 6px; padding: 0 5px; line-height: 17px; font-weight: 600; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal .mark.in { color: var(--income); background: var(--income-weak); }
.cal .mark.ou { color: var(--expense); background: var(--expense-weak); }
.cal .mark.bk { color: var(--faint); border: 1px dashed rgba(135, 144, 173, .7); line-height: 15px; font-weight: 500; }

.daywin { margin-top: 12px; border: 1px solid var(--border-2); border-radius: 14px; background: var(--navy-2); padding: 14px 16px 6px; transform-origin: 44% 0; transform: scale(.86); opacity: 0; transition: transform .9s var(--ease), opacity .6s; transition-delay: .55s; }
.is-in .daywin { transform: none; opacity: 1; }
.daywin-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--border-2); }
.daywin-head b { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.daywin-head span { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.daywin-head span .plus { color: var(--income); font-weight: 600; }
.daywin-head span .minus { color: var(--expense); font-weight: 600; }
.daywin table { width: 100%; border-collapse: collapse; font-size: 13px; }
.daywin td { padding: 7px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.daywin td:first-child { font-size: 12px; color: var(--faint); width: 46px; font-variant-numeric: tabular-nums; }
.daywin td.c { color: var(--faint); font-size: 12.5px; white-space: nowrap; padding-left: 8px; }
.daywin td.s { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.daywin tr:last-child td { border-bottom: 0; }

/* 04 — фонды */
.rules { border-top: 1px solid var(--border-2); }
.rule { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px 24px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: center; }
.rule .name { font-family: var(--font-display); font-size: clamp(19px, 1.9vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.rule .name small { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--faint); margin-top: 6px; letter-spacing: 0; }
.rule .track { height: 8px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.rule .track i { position: absolute; inset: 0; border-radius: 99px; background: var(--gold); transform-origin: left; transform: scaleX(calc(var(--p, 0) * var(--k, 1))); transition: transform .15s linear; }
.rule .track.full i { background: var(--income); }
.rule .val { font-size: 13px; color: var(--muted); margin-top: 7px; display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.rule .val b { color: var(--text); font-weight: 600; }
.whose { margin-top: 26px; border-top: 1px solid var(--border-2); }
.whose .l { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.whose .l span:last-child { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.whose .l.total { font-weight: 600; font-size: 17px; }
.whose .l.total span:last-child { color: var(--income); font-family: var(--font-display); font-size: 20px; }
.whose .l .minus { color: var(--expense); }
.whose .cap { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 12px 0 2px; }

/* 05 — для кого: пилюли */
.who { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.who .chip { font-size: 14.5px; padding: 10px 16px; }
.who .chip i { background: var(--gold); }

/* картинки-вставки */
.figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.figure img { width: 100%; height: auto; }
.figure figcaption { padding: 10px 14px; font-size: 12px; color: var(--faint); border-top: 1px solid var(--border); }

/* ----------------------------------------------------------- финал */
.cta { margin-top: clamp(80px, 12vh, 160px); border-top: 1px solid var(--border-2); padding: clamp(56px, 9vh, 120px) 0 clamp(56px, 9vh, 110px); position: relative; overflow: hidden; }
.cta-grid { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px clamp(24px, 4vw, 64px); }
.cta h2 { font-size: clamp(56px, 10vw, 150px); letter-spacing: -.045em; line-height: .92; }
.cta h2 .q { color: var(--gold); }
.cta .lead { margin-top: 28px; }
.cta .hero-actions { opacity: 1; animation: none; }
.cta .slogan { margin-top: clamp(36px, 6vh, 64px); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.foot { border-top: 1px solid var(--border); padding: 26px 0 40px; font-size: 13px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; color: var(--muted); border-bottom: 1px solid var(--border-2); }
.foot a:hover { color: var(--text); border-bottom-color: var(--gold); }

/* ------------------------------------------------- внутренние страницы */
.page-head { padding: clamp(40px, 7vh, 88px) 0 0; }
.page-head .lab { margin-bottom: 20px; }
.page-head h1 { font-size: clamp(44px, 8vw, 120px); letter-spacing: -.04em; line-height: .94; }
.page-head .lead { margin-top: 26px; max-width: 52ch; font-size: clamp(18px, 1.5vw, 22px); }
.doc { margin-top: clamp(40px, 7vh, 80px); border-top: 1px solid var(--border-2); }
.doc-row { display: grid; grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr); gap: 16px clamp(24px, 4vw, 64px); padding: clamp(32px, 5vh, 56px) 0; border-bottom: 1px solid var(--border); }
.doc-row h2 { font-size: clamp(26px, 3vw, 42px); letter-spacing: -.03em; font-weight: 700; }
.doc-row .text p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.doc-row .text p:first-of-type { margin-top: 18px; }
.doc-row .vis { min-width: 0; align-self: center; }

.mock { padding: 14px 16px; font-size: 13px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.mock .h { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding-bottom: 8px; border-bottom: 1px solid var(--border-2); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; }
.mock .l { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.mock .l:last-child { border-bottom: 0; }
.mock .l b { font-weight: 600; }
.mock .plus { color: var(--income); }
.mock .minus { color: var(--expense); }
.mock .tot { font-weight: 600; border-top: 1px solid var(--border-2); }
.mock-chat { display: flex; flex-direction: column; gap: 8px; color: #fff; }
.mock-chat .msg { display: block; opacity: 1; transform: none; }

.checklist { list-style: none; margin: 18px 0 0; padding: 0; }
.checklist li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--border); position: relative; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.checklist li b { color: var(--text); }
.roles { border-top: 1px solid var(--border-2); margin-top: 18px; }
.roles .r { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15.5px; }
.roles .r b { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.roles .r span { color: var(--muted); }

/* ------------------------------------------------------------- появление */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--d, 0) * 100ms); will-change: opacity, transform; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* «печать» слева направо: шторка цвета страницы уезжает вправо (clip-path нельзя — IntersectionObserver не видит полностью обрезанный элемент) */
.js [data-reveal="line"] { opacity: 1; transform: none; position: relative; }
.js [data-reveal="line"]::after { content: ""; position: absolute; inset: -3px -2px; background: var(--page); transform-origin: right; transition: transform 1s var(--ease-2); transition-delay: calc(var(--d, 0) * 100ms); pointer-events: none; z-index: 2; }
.js [data-reveal="line"].is-in::after { transform: scaleX(0); }
.js [data-reveal="scale"] { transform: scale(.96) translateY(10px); }

/* ------------------------------------------------------------- адаптив */
@media (max-width: 1100px) {
  .entry-body { grid-template-columns: 72px minmax(0, 1fr); }
  .entry-body > .col-vis { grid-column: 2; }
  .lead { max-width: 60ch; }
  .day-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .stage { grid-template-columns: minmax(0, 1fr) 260px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .top .wrap { min-height: 56px; padding-top: 8px; padding-bottom: 8px; row-gap: 4px; }
  .brand { font-size: 20px; }
  .top-actions { margin-left: auto; }

  .hero { min-height: 0; padding-top: 28px; padding-bottom: 44px; }
  .hero canvas { opacity: .6; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero-title { font-size: clamp(58px, 16.5vw, 92px); }
  .scene { width: 100%; justify-self: stretch; padding: 64px 0 56px; }
  .ledger-card { margin: 12px 0 0; padding: 14px 14px 10px; }
  .coin { width: 60px; height: 60px; left: 8px; top: 8px; }
  .coin .face { font-size: 28px; }
  .notes { left: -2px; bottom: -6px; width: 150px; height: 80px; }
  .note { width: 124px; height: 54px; }
  .note::before { width: 30px; height: 30px; left: 12px; top: 11px; }
  .note::after { left: 52px; top: 32px; height: 10px; }
  .note span { font-size: 15px; top: 10px; }
  .receipt { left: 0; right: 0; padding: 16px 14px 20px; font-size: 12.5px; }

  .bank { font-size: 21px; height: 40px; }
  .bank svg { height: 26px; }

  .entry { padding-top: 64px; }
  .entry-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .entry-head .meta { display: none; }
  .entry-body { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 22px; }
  .entry-body > .col-idx { display: none; }
  .entry-body > .col-text, .entry-body > .col-vis, .entry-body.wide > .col-text { grid-column: 1; }

  .ledger .row, .ledger .row.two { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 0; }
  .ledger .ex { text-align: left; }

  .yc { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .yc-link { height: 44px; width: 2px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--border-2) 0 6px, transparent 6px 12px); }
  .yc-link::before { left: -4px; top: 0; }
  .yc.s2 .yc-link::before, .yc.s3 .yc-link::before { transform: translateY(34px); }
  .yc-link span { left: 14px; top: 50%; transform: translateY(-50%); }

  .day-grid { display: block; }
  .day-sticky { position: sticky; top: var(--hdr); height: auto; z-index: 5; background: var(--page); padding: 10px 0 12px; border-bottom: 1px solid var(--border); display: block; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sheet { padding: 8px 12px 0; border-radius: 14px; }
  .sheet-head { padding-bottom: 6px; }
  .sheet-rows { height: 40px; }
  .sheet-list { transform: translateY(calc(var(--shift, 0) * -40px)); }
  .srow { border-bottom: 0; }
  .phone { height: min(44vh, 380px); border-radius: 22px; padding: 6px; }
  .phone-screen { border-radius: 15px; }
  .phone-status { display: none; }
  .phone-top { padding: 8px 12px; }
  .chat { padding: 10px 10px 10px; gap: 6px; }
  .msg { font-size: 12px; padding: 7px 10px; }
  .keys { padding: 4px 6px 8px; }
  .day-steps { padding: 20px 0 10vh; }
  .step { min-height: 0; padding: 34px 0; opacity: .45; }
  .step h3 { font-size: 26px; }

  .balance { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .kpi { padding: 10px; }
  .kpi .kv { font-size: 15px; }
  .cal .d { min-height: 50px; padding: 4px; font-size: 10px; }
  .cal .mark { font-size: 9.5px; padding: 0 3px; }
  .daywin td.c { display: none; }

  .rule { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  .cta-grid { grid-template-columns: minmax(0, 1fr); }
  .cta .idx { display: none; }
  .cta h2 { font-size: clamp(52px, 15vw, 88px); }

  .page-head h1 { font-size: clamp(40px, 12vw, 68px); }
  .doc-row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 30px 0; }
  .doc-row .idx { padding-bottom: 0; }
  .roles .r { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 420px) {
  .odo { font-size: 24px; }
  .display { padding: 12px 14px; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ----------------------------------------------------- меньше движения */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .hero-title .w > span { transform: none; }
  .hero-lead, .hero-actions, .hero-note, .scene { opacity: 1; }
  .hero canvas { display: none; }
  .banks-track { animation: none; }
  .banks { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .bar i { transform: none; }
  .daywin { transform: none; opacity: 1; }
  .coin-inner { animation: none; }
  .lrow .tag, .srow .tag, .stamp { opacity: 1; transform: none; animation: none; }
  .step { opacity: 1; }
  .msg, .srow { display: block; opacity: 1; transform: none; clip-path: none; }
  .srow { display: grid; }
  .rule .track i { transform: scaleX(var(--k, 1)); }
}
