/* ---------- fonts (local variable woff2, latin + cyrillic subsets) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191-2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */
:root {
  --bg: #0a0b0d;
  --panel: #101214;
  --card: #15181c;
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.05);
  --sub-dim: rgba(255, 255, 255, 0.45);
  --text: #eef1f5;
  --text-body: #c3c9d2;
  --text-dim: #8b93a0;
  --hair: rgba(226, 234, 248, 0.09);
  --hair-strong: rgba(226, 234, 248, 0.18);
  --hair-faint: rgba(226, 234, 248, 0.04);
  --hair-ghost: rgba(226, 234, 248, 0.025);
  --accent: #4cc9e8;
  --accent-hover: #74d7ef;
  --accent-ink: #06161c; /* text on accent background */
  --font-head: "Onest", "Inter", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --pad-x: 20px;
  --max-w: 1080px;
  --ease-out: cubic-bezier(0.22, 0.7, 0.3, 1);
}
@media (min-width: 640px) { :root { --pad-x: 32px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.num, .value {
  font-variant-numeric: tabular-nums;
}

/* section kicker: index + label over each h2 */
.kicker {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
}
.kicker .num { color: var(--accent); }

section {
  position: relative;
  border-top: 1px solid var(--hair);
  padding-block: clamp(56px, 8vw, 104px);
}

/* huge ghost numeral in section corner */
.ghost {
  position: absolute;
  top: 8px;
  right: var(--pad-x);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(120px, 16vw, 200px);
  line-height: 1;
  color: var(--hair-faint);
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) { .ghost { display: none; } }

h2 {
  font-size: clamp(26px, 4.2vw, 38px);
  line-height: 1.15;
  max-width: 21em;
}
.lead {
  margin-top: 18px;
  max-width: 44em;
  color: var(--text-body);
}

/* ---------- motion primitives ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes float {
  from { transform: translateY(3px); }
  to   { transform: translateY(-3px); }
}
@keyframes pulse-ring {
  from { transform: scale(1); opacity: 0.9; }
  to   { transform: scale(2.6); opacity: 0; }
}

/* scroll-reveal: opacity is only suppressed when JS is present (html.js) */
.js .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.js .rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.tg-link {
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.tg-link:hover { border-color: var(--accent-hover); }
#progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- hero ---------- */
.hero {
  border-top: 0;
  padding-block: clamp(44px, 6vw, 80px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1000px) {
  .hero { min-height: min(90svh, 800px); }
  .hero .wrap { margin-block: auto; }
}
/* ruled ledger columns backdrop, barely visible */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, var(--hair-ghost) 0 1px, transparent 1px 140px);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero-copy > * { animation: rise 0.7s var(--ease-out) backwards; }
.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.14s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.23s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.32s; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.hero-tags span {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-tags span::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(33px, 4.6vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.hero h1 .hl { color: var(--accent); }
.hero-sub {
  margin-top: 18px;
  max-width: 34em;
}
.hero-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 3px;
  transition: background-color 0.2s;
}
.btn::after {
  content: "\2192";
  display: inline-block;
  margin-left: 10px;
  transition: transform 0.25s var(--ease-out);
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:hover::after { transform: translateX(4px); }
.fact-chip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--hair-strong);
  border-radius: 4px;
  padding: 8px 14px;
}
.fact-chip .value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  white-space: nowrap;
}
.fact-chip .label {
  font-size: 12.5px;
  color: var(--text-dim);
}

/* ---------- hero panel: bank-app widget ---------- */
.pay-scene {
  position: relative;
  animation: rise 0.8s var(--ease-out) 0.2s backwards;
}
/* soft accent glow seating the widget in space */
.pay-scene::before {
  content: "";
  position: absolute;
  inset: -18% -24%;
  background: radial-gradient(closest-side, rgba(76, 201, 232, 0.09), rgba(76, 201, 232, 0.035) 55%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
}
.panel {
  position: relative;
  max-width: 424px;
  margin-left: auto;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 20px 20px 24px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
}
.dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}
.dot::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  animation: pulse-ring 2.2s ease-out infinite;
}
.panel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hair-strong);
  flex: none;
}
.panel-note {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 13px 16px;
  text-align: center;
}
.panel-note .pn-1 {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
}
.panel-note .pn-2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin: 3px 0 2px;
}
.panel-note .pn-3 {
  font-size: 12.5px;
  color: var(--text-dim);
}
.bank-stack {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bank-note {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  animation:
    rise 0.55s var(--ease-out) var(--d, 0.5s) backwards,
    float 8s ease-in-out calc(var(--d, 0.5s) + 1.3s) infinite alternate;
}
.bank-note.n1 { --d: 0.5s; }
.bank-note.n2 { --d: 0.62s; }
.bank-note.n3 { --d: 0.74s; margin-left: 8px; margin-right: -8px; }
.bank-note.n4 { --d: 0.86s; }
.b-ico {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
}
.b-ico img { width: 100%; height: 100%; }
.b-ico svg { display: block; }
/* official-style bank marks: Т-Банк yellow/black, ВТБ blue wing, Альфа red А with underline on white */
.b-ico.t {
  background: #ffdd2d;
  color: #1a1a1e;
  font-weight: 700;
  font-size: 18px;
  font-family: var(--font-body);
}
.b-ico.v { background: #0a2896; }
.b-ico.a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #ef3124;
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-body);
  line-height: 1;
  padding-top: 3px;
}
.b-ico.a::after {
  content: "";
  width: 14px;
  height: 2.5px;
  border-radius: 1px;
  background: #ef3124;
  margin-top: 2px;
}
.b-name {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
}
.b-name small {
  font-size: 12px;
  font-weight: 400;
  color: var(--sub-dim);
}
.b-sum {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
}
.b-sum small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--sub-dim);
}

/* live stats strip fed by stats.json (hidden until data arrives) */
.panel-stats {
  margin-top: 16px;
  border-top: 1px solid var(--hair);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.stat-label {
  font-size: 12px;
  color: var(--sub-dim);
  letter-spacing: 0.02em;
}
.stat-avg {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* marquee of recent payouts with mini bank marks */
.stat-last {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}
.marquee {
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marq-track {
  display: flex;
  width: max-content;
  animation: marq var(--mdur, 26s) linear infinite;
}
.marquee:hover .marq-track { animation-play-state: paused; }
.marq-half {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
}
.marq-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@keyframes marq {
  to { transform: translateX(-50%); }
}
.m-ico {
  width: 18px;
  height: 18px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9.5px;
  line-height: 1;
}
.m-ico svg { display: block; }
.m-ico.sber { background: #21a038; }
.m-ico.tbank { background: #ffdd2d; color: #1a1a1e; }
.m-ico.vtb { background: #0a2896; }
.m-ico.alfa { background: #ffffff; color: #ef3124; font-size: 11px; }
.m-ico.ozon { background: #005bff; color: #ffffff; }
.m-ico.yandex { background: #fc3f1d; color: #ffffff; font-size: 10.5px; }
.m-ico.wb { background: #cb11ab; color: #ffffff; font-size: 8.5px; letter-spacing: 0.02em; }
.m-ico.other { background: var(--card); border: 1px solid var(--hair-strong); }

/* ---------- comparison ---------- */
.compare {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--hair-strong);
}
.compare-col { padding: 28px 0 8px; }
.compare-col:first-child { padding-right: clamp(24px, 4vw, 56px); }
.compare-col:last-child {
  border-left: 1px solid var(--hair);
  padding-left: clamp(24px, 4vw, 56px);
}
.compare-col .col-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.compare-col.ours .col-label { color: var(--accent); }
.compare-col.others .col-label { color: var(--text-dim); }
.compare-col h3 { font-size: 19px; margin-bottom: 18px; }
.compare-col ul { list-style: none; }
.compare-col li {
  display: flex;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--hair);
  font-size: 15px;
}
.compare-col li::before {
  font-family: var(--font-head);
  font-weight: 500;
  flex: none;
  width: 14px;
}
.compare-col.ours li { color: var(--text-body); }
.compare-col.ours li::before { content: "+"; color: var(--accent); }
.compare-col.others li { color: var(--text-dim); }
.compare-col.others li::before { content: "\2212"; }

/* ---------- process steps ---------- */
.steps { margin-top: 48px; }
.step {
  display: grid;
  grid-template-columns: 72px minmax(0, 320px) 1fr;
  gap: 8px clamp(20px, 3vw, 40px);
  padding: 24px 0;
  border-top: 1px solid var(--hair);
}
.step .num {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text-dim);
  font-size: 15px;
  padding-top: 2px;
}
.step h3 { font-size: 18px; line-height: 1.3; }
.step p { font-size: 15px; }

/* ---------- results table ---------- */
.results { margin-top: 48px; }
.result-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 280px) 1fr;
  gap: 8px clamp(20px, 3vw, 40px);
  padding: 22px 0;
  border-top: 1px solid var(--hair);
  align-items: baseline;
}
.result-row .value {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
/* accent rule that draws in under the value on reveal */
.result-row .value::after {
  content: "";
  display: block;
  width: 0;
  height: 2px;
  margin-top: 8px;
  background: var(--accent);
  transition: width 0.8s var(--ease-out) 0.25s;
}
.result-row.in .value::after,
html:not(.js) .result-row .value::after { width: 40px; }
.result-row h3 { font-size: 16px; font-weight: 500; }
.result-row p { font-size: 14.5px; color: var(--text-dim); }
.footnote {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-dim);
  max-width: 52em;
}

/* ---------- faq ---------- */
.faq { margin-top: 48px; }
.faq-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 4px clamp(20px, 3vw, 40px);
  padding: 24px 0;
  border-top: 1px solid var(--hair);
}
.faq-item .num {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text-dim);
  font-size: 15px;
  padding-top: 2px;
}
.faq-item h3 { font-size: 18px; margin-bottom: 8px; }
.faq-item p { max-width: 46em; font-size: 15px; }

/* ---------- final cta ---------- */
.cta-points {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  list-style: none;
  font-size: 14px;
  color: var(--text-dim);
}
.cta-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cta-points li::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  opacity: 0.7;
}
.cta-after {
  margin-top: 36px;
  border-top: 1px solid var(--hair);
  padding-top: 20px;
  max-width: 420px;
}
.cta-after .col-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.cta-after ol {
  list-style: none;
  counter-reset: n;
}
.cta-after li {
  counter-increment: n;
  display: flex;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--hair);
  font-size: 15px;
}
.cta-after li:first-child { border-top: 0; }
.cta-after li::before {
  content: counter(n, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  font-size: 13px;
  padding-top: 2px;
}
.cta .btn { margin-top: 36px; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--hair);
  padding-block: 28px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}
.site-footer .brand { font-size: 15px; }
.site-footer .brand img { width: 26px; height: 26px; }
.site-footer .tagline { font-size: 13px; color: var(--text-dim); }
.site-footer .tg-link { margin-left: auto; }

/* ---------- tablet / mobile ---------- */
@media (max-width: 900px) {
  .result-row { grid-template-columns: 160px 1fr; }
  .result-row p { grid-column: 2; }
}
@media (max-width: 840px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .pay-scene { margin-top: 10px; }
  .panel { margin-inline: auto; }
}
@media (max-width: 768px) {
  .panel { max-width: none; }
  .bank-note.n3 {
    margin-left: 0;
    margin-right: 0;
  }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .compare { grid-template-columns: 1fr; }
  .compare-col:first-child { padding-right: 0; }
  .compare-col:last-child {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--hair-strong);
    margin-top: 12px;
  }
  .step, .faq-item { grid-template-columns: 40px 1fr; }
  .step p { grid-column: 2; }
  .result-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .result-row p { grid-column: 1; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
  .site-footer .tg-link { margin-left: 0; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .pay-scene, .bank-note, .dot::after {
    animation: none;
  }
  .btn::after { transition: none; }
  .marq-track { animation: none; }
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .result-row .value::after { width: 40px; transition: none; }
}
