@font-face {
  font-family: "Golos Text";
  src: url(/site/fonts/golos-cyrillic.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Golos Text";
  src: url(/site/fonts/golos-latin.woff2) format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/site/fonts/jbmono-cyrillic.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url(/site/fonts/jbmono-latin.woff2) format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Спокойный стиль Stripe на палитре FazerCards: много белого, чёткая типографика, кнопки-таблетки со стрелкой,
   за 3D-пулом — мягкое переливающееся свечение цветов логотипа. Смелость — только в первом экране. */
:root {
  --paper: #fafbfc;
  --card: #ffffff;
  --mist: #f4f2fd;
  --ink: #1a1d24;
  --ink-2: #4b5563;
  --ink-3: #8b909c;
  --rule: #e9e6f4;
  --accent: #7e5bff;
  --accent-hover: #6a46f5;
  --accent-deep: #5d22f3;
  --glow: #ad97ff;
  --success: #1ca54f;
  --success-soft: #def6e7;
  /* Предупреждения на экране оплаты: янтарный, отдельно от фиолетового бренда. */
  --warn: #e39b10;
  --warn-ink: #8a5a00;
  --warn-soft: #fff7e6;
  --warn-rule: #f5dfae;
  /* Цвета мягкого свечения за пулом: светлые оттенки логотипа FazerCards (фиолетовый → маджента). */
  --g0: #d9ceff;
  --g1: #a68aff;
  --g2: #f0b2ff;
  --g3: #fff1fb;
  --text: "Golos Text", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --header: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--ink-2); font: 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
svg { flex: none; }
h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }
::selection { background: rgba(126, 91, 255, .18); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

/* Шапка: прозрачная над первым экраном, при прокрутке — матовая и чуть ниже. Подсветка под ссылкой плавно
   переезжает за курсором, у раздела на экране — точка. На узких экранах — меню. */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease); }
.top.scrolled, .top.menu-open { background: rgba(250, 251, 252, .86); box-shadow: 0 1px 0 var(--rule);
  -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); }
.top-row { display: flex; align-items: center; gap: 36px; height: var(--header); transition: height .35s var(--ease); }
.top.scrolled .top-row { height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 700 20px/1 var(--text); letter-spacing: -.02em; }
.brand em { color: var(--accent); font-style: normal; font-weight: 500; }
.mark { width: 24px; height: 24px; }
.mark-lit { animation: lit 4.8s var(--ease) infinite; }
@keyframes lit { 0%, 70%, 100% { fill: #7e5bff; } 80% { fill: #ad97ff; } }
/* Логотип: при наведении по квадратам пробегает волна — от яркого квадрата к дальним. */
.brand:hover .mark g rect { animation: mark-wave .8s var(--ease) both; }
.brand:hover .mark g rect:is(:nth-child(1), :nth-child(4), :nth-child(8)) { animation-delay: .08s; }
.brand:hover .mark g rect:is(:nth-child(3), :nth-child(7)) { animation-delay: .16s; }
.brand:hover .mark g rect:nth-child(6) { animation-delay: .24s; }
@keyframes mark-wave { 40% { fill: #a690ff; } }
.links { position: relative; display: flex; gap: 2px; }
.links a { position: relative; z-index: 1; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 500;
  text-decoration: none; transition: color .2s var(--ease); }
.links a:hover, .links a.is-current, .links a[aria-current="page"] { color: var(--ink); }
.links a.is-current::after, .links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px;
  height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.links-pill { position: absolute; left: 0; top: 50%; width: var(--w, 0px); height: 36px; border-radius: 8px; pointer-events: none;
  background: rgba(126, 91, 255, .08); opacity: 0; transform: translate(var(--x, 0px), -50%);
  transition: transform .35s var(--ease), width .35s var(--ease), opacity .25s var(--ease); }
.links.is-hovering .links-pill { opacity: 1; }
.links-pill.is-placing { transition: opacity .25s var(--ease); }
/* Меню: кнопка из двух полосок превращается в крестик; панель выезжает под шапкой. */
.menu-toggle { display: none; position: relative; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px;
  color: var(--ink); background: none; cursor: pointer; }
.menu-toggle span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .35s var(--ease); }
.menu-toggle span:first-child { top: 15px; }
.menu-toggle span:last-child { top: 23px; }
.menu-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { display: none; }
.menu-inner { display: grid; padding-block: 4px 24px; }
.menu-inner > a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--rule); color: var(--ink); font: 600 19px/1.3 var(--text);
  letter-spacing: -.01em; text-decoration: none; }
.menu-inner > a[aria-current="page"] { color: var(--accent-deep); }
.menu-docs { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 16px 0 4px; }
.menu-docs a { color: var(--ink-3); font-size: 14.5px; text-decoration: none; }
.menu-cta { justify-content: center; margin-top: 18px; }

/* Кнопка: обычная, с небольшим скруглением; стрелка выезжает при наведении (как у Stripe). */
.btn { display: inline-flex; align-items: center; height: 40px; padding: 0 16px 0 18px; border-radius: 8px; color: #fff;
  background: var(--accent); font: 600 15px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease); }
.btn:hover { background: var(--accent-hover); }
.btn-lg { height: 50px; padding: 0 22px 0 24px; border-radius: 10px; font-size: 17px; }
.arrow { width: 10px; height: 10px; margin-left: 9px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.arrow-line { opacity: 0; transition: opacity .15s var(--ease); }
.arrow-tip { transition: transform .15s var(--ease); }
.btn:hover .arrow-line { opacity: 1; }
.btn:hover .arrow-tip { transform: translateX(3px); }
.btn-light { color: var(--accent-deep); background: #fff; }
.btn-light:hover { background: #f1edff; }
.btn-top { margin-left: auto; }
/* Первый экран: слева заголовок, справа 3D-пул на мягком переливающемся свечении. */
.hero { position: relative; display: flex; align-items: center; min-height: clamp(640px, 88vh, 880px); overflow: hidden; isolation: isolate; }
.hero-wave { position: absolute; inset: 0; z-index: -2; overflow: hidden; opacity: .9;
  background: radial-gradient(40% 55% at 73% 48%, var(--g1), var(--g0) 45%, transparent 80%);
  -webkit-mask-image: radial-gradient(42% 58% at 73% 48%, #000 22%, transparent 80%);
  mask-image: radial-gradient(42% 58% at 73% 48%, #000 22%, transparent 80%); }
.hero-gradient { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.hero-gradient.ready { opacity: 1; }
.hero-canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-canvas.ready { opacity: 1; }
/* Пул можно взять и покрутить: над ним курсор — «рука»; на телефоне вертикальный жест остаётся прокруткой. */
.hero-canvas { touch-action: pan-y; }
.hero-canvas.grab { cursor: grab; }
.hero-canvas.dragging { cursor: grabbing; }
.hero-fallback { display: none; position: absolute; z-index: -1; left: 75%; top: 50%; width: min(42vw, 560px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12) 45%, rgba(255, 255, 255, 0) 70%); }
.no-webgl .hero-fallback { display: block; }

.hero-copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start;
  padding-block: calc(var(--header) + 24px) 56px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
h1 { font: 700 clamp(44px, 5.2vw, 80px)/1.04 var(--text); letter-spacing: -.035em; }
.h1-line { display: block; }
.h1-brand { color: var(--accent); text-shadow: 0 .14em .5em rgba(126, 91, 255, .35); }
/* Одна строка под заголовком: для кого и как работает. Не абзац. */
.hero-sub { max-width: 34em; margin-top: 22px; color: var(--ink-3); font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.5; }
.hero-copy .btn { margin-top: 34px; box-shadow: 0 8px 18px -10px rgba(126, 91, 255, .6); }

.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .1s; }
.hero-copy > :nth-child(3) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.still .hero-copy > *, .still .hero-canvas, .still .hero-gradient, .still .pin * { animation: none; transition: none; }

/* Метки оплат над плитками пула */
.pins { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.pin { position: absolute; left: 0; top: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0); }
.pin-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(126, 91, 255, .16); opacity: 0; transition: opacity .3s var(--ease); }
.pin-stalk { position: absolute; left: -.5px; bottom: 3px; width: 1px; height: 22px; transform: scaleY(0); transform-origin: bottom;
  background: linear-gradient(rgba(126, 91, 255, 0), rgba(126, 91, 255, .6)); transition: transform .45s var(--ease) .05s; }
.pin-card { position: absolute; left: 0; bottom: 25px; display: flex; align-items: center; gap: 11px; padding: 9px 15px 9px 9px;
  border-radius: 14px; white-space: nowrap; background: rgba(255, 255, 255, .9);
  box-shadow: 0 0 0 1px rgba(126, 91, 255, .13), 0 14px 34px -14px rgba(40, 30, 90, .38);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  opacity: 0; filter: blur(6px); transform: translate(-50%, 10px) scale(.96);
  transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s var(--ease); }
.pin.in .pin-card { opacity: 1; filter: none; transform: translate(-50%, 0) scale(1); }
.pin.in .pin-stalk { transform: scaleY(1); }
.pin.in .pin-dot { opacity: 1; }
.pin.out .pin-card { opacity: 0; filter: blur(4px); transform: translate(-50%, -8px) scale(.98); }
.pin.out .pin-stalk { transform: scaleY(0); }
.pin.out .pin-dot { opacity: 0; }
.pin-net { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); }
.pin-net img { width: 21px; height: 21px; }
.pin-ok { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 16px; height: 16px;
  border-radius: 50%; color: #fff; background: var(--success); box-shadow: 0 0 0 2px var(--card); }
.pin-ok svg { width: 10px; height: 10px; }
.pin-body b { display: block; color: var(--ink); font: 700 15px/1.25 var(--text); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.pin-body span { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.3; }

/* Заголовки секций, как у Stripe: короткая цветная строка над заголовком. */
.kicker { color: var(--accent); font: 600 16px/1.3 var(--text); }
h2 { margin-top: 14px; font: 700 clamp(32px, 3.6vw, 50px)/1.08 var(--text); letter-spacing: -.03em; }

/* Условия: одна белая панель, четыре ячейки через тонкие линии; подпись сверху, цифра под ней. */
.terms { position: relative; padding-block: 8px clamp(80px, 9vw, 120px); }
.terms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.term { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.term dt { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: var(--ink-3); font-size: 14.5px; font-weight: 500; }
.term dt a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
.term dt a:hover { color: var(--accent); }
.term dd { display: flex; align-items: baseline; margin: 0; color: var(--ink); font: 600 clamp(40px, 4vw, 56px)/1 var(--text);
  letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.term dd small { margin-right: .22em; color: var(--ink-3); font-size: .34em; font-weight: 500; letter-spacing: 0; }
.term .count { display: inline-block; text-align: right; }
.term .unit { margin-left: .12em; color: var(--accent); font-size: .5em; font-weight: 500; letter-spacing: -.01em; }
.term .dd-nets { align-items: center; height: 1em; }
.net-stack { display: flex; align-items: center; }
/* Ячейка стоит на месте и ловит наведение; поднимается только картинка — поэтому без дрожания. */
.net-chip { position: relative; display: block; flex: none; width: 34px; height: 34px; margin-left: -10px; border-radius: 50%; }
.net-chip:first-child { margin-left: 0; }
.net-chip:hover { z-index: 2; }
.net-chip img { display: block; width: 100%; height: 100%; padding: 6px; border-radius: 50%; background: var(--card);
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--rule), 0 6px 14px -8px rgba(40, 30, 90, .35);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.net-chip:hover img { transform: translateY(-5px) scale(1.1);
  box-shadow: 0 0 0 2px var(--card), 0 0 0 3px #d8cefd, 0 12px 20px -10px rgba(40, 30, 90, .45); }

.terms .terms-grid { border-radius: 18px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule), 0 30px 60px -44px rgba(40, 30, 90, .4); }
.terms .term { padding: 28px 30px 32px; }
.terms .term + .term { box-shadow: inset 1px 0 0 var(--rule); }

/* Сети: заголовок сверху, под ним семь равных карточек в ряд; под логотипом — мягкая тень цвета сети. */
.nets { position: relative; isolation: isolate; padding-block: 8px clamp(40px, 5vw, 80px); }
.nets-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; }
.nets-head > p { max-width: 27em; }
.nets-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; margin: 48px 0 0; padding: 0; list-style: none; }
.net { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 20px 18px 18px;
  border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rule), 0 24px 48px -38px rgba(40, 30, 90, .45); }
/* Тень наведения — отдельным слоем: меняется только его прозрачность, карточка стоит на месте. */
.net::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 1px #d8cefd, 0 30px 56px -34px rgba(40, 30, 90, .5); transition: opacity .4s var(--ease); }
.net:hover::after { opacity: 1; }
.net-logo { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule), 0 10px 22px -10px var(--tint, rgba(40, 30, 90, .45)); }
.net-logo img { width: 28px; height: 28px; transition: transform .5s var(--ease); }
.net:hover .net-logo img { transform: scale(1.1); }
.net-name { max-width: 100%; margin-top: 26px; color: var(--ink); font: 700 17px/1.2 var(--text); letter-spacing: -.015em; white-space: nowrap; }
.net-std { margin-top: 4px; color: var(--ink-3); font: 500 12.5px/1.4 var(--mono); }
.net[data-net="tron"] { --tint: rgba(196, 52, 43, .38); }
.net[data-net="binance-smart-chain"] { --tint: rgba(240, 185, 11, .5); }
.net[data-net="ethereum"] { --tint: rgba(98, 126, 234, .42); }
.net[data-net="ton"] { --tint: rgba(0, 152, 234, .4); }
.net[data-net="solana"] { --tint: rgba(170, 80, 226, .38); }
.net[data-net="aptos"] { --tint: rgba(26, 29, 36, .3); }
.net[data-net="polygon"] { --tint: rgba(128, 59, 223, .4); }

/* Как проходит оплата: слева три шага (активный раскрыт, полоска внизу — время до следующего); справа экран оплаты,
   каким его видит покупатель, а над ним — событие, которое в этот момент получает витрина. */
.flow-section { position: relative; padding-block: clamp(72px, 8vw, 112px); }
.flow-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "side stage";
  gap: 32px clamp(32px, 6vw, 96px); align-items: center; }
/* Слева заголовок и шаги — по центру высоты экрана оплаты. */
.flow-side { grid-area: side; }
.flow-head { grid-area: head; }
.flow-steps { grid-area: steps; margin: 40px 0 0; padding: 0; list-style: none; }
.flow-step { position: relative; border-top: 1px solid var(--rule); }
.flow-step:last-child { border-bottom: 1px solid var(--rule); }
.flow-tab { display: flex; align-items: center; gap: 14px; width: 100%; padding: 18px 0; border: 0; background: none; color: var(--ink-3);
  font: 600 19px/1.3 var(--text); letter-spacing: -.01em; text-align: left; cursor: pointer; transition: color .3s var(--ease); }
.flow-tab:hover, .is-active .flow-tab { color: var(--ink); }
.flow-num { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: var(--ink-3);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--rule); font: 600 13px/1 var(--mono);
  transition: color .4s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease); }
.is-active .flow-num { color: #fff; background: var(--accent); box-shadow: 0 0 0 5px rgba(126, 91, 255, .12); }
/* Описание раскрывается плавно: строка сетки 0fr → 1fr. */
.flow-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.flow-more > p { min-height: 0; overflow: hidden; max-width: 30em; padding-left: 44px; font-size: 16px; opacity: 0;
  transition: opacity .3s var(--ease), padding-bottom .5s var(--ease); }
.is-active .flow-more { grid-template-rows: 1fr; }
.is-active .flow-more > p { padding-bottom: 20px; opacity: 1; transition-delay: .12s; }
.flow-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; }
.flow-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--glow), var(--accent)); transform: scaleX(0); transform-origin: left; }
.flow-step.is-running .flow-bar i { transform: scaleX(1); transition: transform var(--step, 5s) linear; }

.flow-stage { position: relative; grid-area: stage; align-self: center; display: flex; flex-direction: column; align-items: center;
  padding: 40px 28px 52px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: radial-gradient(60% 55% at 50% 62%, #fff, rgba(255, 255, 255, 0) 75%), var(--mist); box-shadow: inset 0 0 0 1px var(--rule); }
/* Событие для витрины: карточка в стиле меток над пулом; меняется вместе с шагом. */
.flow-events { position: relative; z-index: 2; width: 100%; height: 56px; margin-bottom: -16px; }
.flow-event { position: absolute; left: 50%; top: 0; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px;
  border-radius: 14px; white-space: nowrap; background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 1px rgba(126, 91, 255, .13), 0 16px 36px -16px rgba(40, 30, 90, .38);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
  opacity: 0; filter: blur(6px); transform: translate(-50%, 10px) scale(.96);
  transition: opacity .45s var(--ease), transform .55s var(--ease), filter .45s var(--ease); }
[data-state="1"] .ev-1, [data-state="2"] .ev-2, [data-state="3"] .ev-3 { opacity: 1; filter: none; transform: translate(-50%, 0); transition-delay: .2s; }
.ev-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--accent); background: var(--mist); }
.ev-icon.is-ok { color: #fff; background: var(--success); }
.ev-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ev-text b { display: block; color: var(--ink); font: 700 14.5px/1.3 var(--text); }
.ev-text code { display: block; color: var(--ink-3); font: 500 12px/1.4 var(--mono); }

/* Экран оплаты у покупателя. */
.pay { position: relative; width: min(100%, 384px); padding: 30px 24px 22px; border-radius: 20px; background: var(--card);
  box-shadow: 0 0 0 1px rgba(126, 91, 255, .1), 0 30px 60px -32px rgba(40, 30, 90, .42); transition: box-shadow .6s var(--ease); }
[data-state="3"] .pay { box-shadow: 0 0 0 1px rgba(28, 165, 79, .4), 0 0 0 6px rgba(28, 165, 79, .08), 0 30px 60px -32px rgba(20, 90, 50, .4); }
.pay-head { display: flex; align-items: center; justify-content: space-between; color: var(--ink-3); font-size: 13.5px; font-weight: 500; }
.pay-timer { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; color: var(--ink-2);
  background: var(--mist); font: 500 13px/1 var(--mono); font-variant-numeric: tabular-nums; transition: opacity .4s var(--ease); }
.pay-timer svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.pay-timer b { font-weight: 600; }
[data-state="3"] .pay-timer { opacity: 0; }
.pay-amount { margin-top: 6px; color: var(--ink); font: 700 36px/1.1 var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.pay-amount span { color: var(--ink-3); font-size: .45em; font-weight: 600; letter-spacing: 0; }
.pay-hint { margin-top: 4px; color: var(--ink-3); font-size: 12.5px; transition: opacity .5s var(--ease); }
/* Сеть — главное предупреждение: другая монета или сеть, и деньги можно потерять. */
.pay-net { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; margin-top: 16px;
  padding: 11px 14px 11px 11px; border-radius: 12px; background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--warn-rule);
  transition: opacity .5s var(--ease); }
.pay-net-logo { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: inset 0 0 0 1px var(--warn-rule); }
.pay-net-logo img { width: 20px; height: 20px; }
.pay-net-logo i { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 16px; height: 16px;
  border-radius: 50%; color: #fff; background: var(--warn); box-shadow: 0 0 0 2px var(--warn-soft); font: 800 10.5px/1 var(--text); font-style: normal; }
.pay-net-text { min-width: 0; }
.pay-net-text b { display: block; color: var(--ink); font: 700 13.5px/1.3 var(--text); text-wrap: balance; }
.pay-net-text span { display: block; margin-top: 2px; color: var(--warn-ink); font-size: 12.5px; line-height: 1.4; text-wrap: balance; }
.pay-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 20px; padding-top: 20px;
  border-top: 1px solid var(--rule); transition: opacity .5s var(--ease); }
/* После оплаты подсказки уже не нужны — приглушаем. */
[data-state="3"] :is(.pay-hint, .pay-net, .pay-body, .pay-note) { opacity: .4; }
.pay-qr { position: relative; display: block; width: 104px; height: 104px; padding: 7px; border-radius: 12px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--rule); }
.pay-qr svg { display: block; width: 100%; height: 100%; fill: var(--ink); shape-rendering: crispEdges; }
.pay-qr img { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 3px; border-radius: 6px; background: #fff; }
.pay-addr { min-width: 0; color: var(--ink-3); font-size: 13px; }
.pay-addr code { display: block; margin-top: 3px; color: var(--ink); font: 500 15px/1.35 var(--mono); }
.pay-copy { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 10px; border-radius: 8px; color: var(--accent);
  background: var(--mist); font-size: 13px; font-weight: 600; }
.pay-copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.pay-status { position: relative; height: 46px; margin-top: 20px; }
.st { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 11px; font-size: 14.5px; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .45s var(--ease); }
[data-state="1"] .st-wait, [data-state="2"] .st-confirm, [data-state="3"] .st-paid { opacity: 1; transform: none; transition-delay: .15s; }
.st-wait { color: var(--ink-2); background: var(--mist); }
.st-wait i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.st-wait i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: wait-ping 2s var(--ease) infinite; }
@keyframes wait-ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(3); opacity: 0; } }
.st-confirm { color: var(--accent-deep); background: #efeaff; }
.st-bar { flex: 1; height: 5px; border-radius: 99px; overflow: hidden; background: rgba(126, 91, 255, .16); }
.st-bar b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--glow), var(--accent));
  transform: scaleX(0); transform-origin: left; }
[data-state="2"] .st-bar b { transform: scaleX(1); transition: transform 4.2s cubic-bezier(.35, .1, .25, 1) .3s; }
[data-state="3"] .st-bar b { transform: scaleX(1); }
.st-paid { color: #168a42; background: var(--success-soft); }
.st-paid svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Галочка «оплачено» рисуется линией. */
.st-paid path { stroke-dasharray: 14; stroke-dashoffset: 14; }
[data-state="3"] .st-paid path { stroke-dashoffset: 0; transition: stroke-dashoffset .5s var(--ease) .4s; }
.pay-note { display: flex; gap: 8px; margin-top: 14px; color: var(--ink-3); font-size: 12px; line-height: 1.45; text-wrap: balance; transition: opacity .5s var(--ease); }
.pay-terms { margin-top: 6px; padding-left: 22px; color: var(--ink-3); font-size: 12px; transition: opacity .5s var(--ease); }
.pay-terms u { text-decoration-color: rgba(139, 144, 156, .5); text-underline-offset: 2px; }
[data-state="3"] .pay-terms { opacity: .4; }
.pay-note svg { flex: none; width: 14px; height: 14px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.still [data-state="2"] .st-bar b { transform: scaleX(.62); transition: none; }
.still .st-paid path { stroke-dashoffset: 0; }

/* Надёжность: четыре карточки «бенто» (широкая и узкая через ряд): сверху живая картинка правила, снизу короткий текст. */
.rules { position: relative; isolation: isolate; padding-block: clamp(72px, 8vw, 112px); }
.rules-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.rule { position: relative; grid-column: span 5; display: flex; flex-direction: column; min-width: 0; padding: 10px; border-radius: 20px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--rule), 0 24px 48px -38px rgba(40, 30, 90, .45); }
.rule-wide { grid-column: span 7; }
/* Тень наведения — отдельным слоем, карточка стоит на месте. */
.rule::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 1px #d8cefd, 0 30px 56px -34px rgba(40, 30, 90, .5); transition: opacity .4s var(--ease); }
.rule:hover::after { opacity: 1; }
.rule-text { padding: 20px 16px 16px; }
.rule h3 { font: 700 19px/1.3 var(--text); letter-spacing: -.015em; }
.rule p { max-width: 36em; margin-top: 8px; font-size: 15.5px; }

.vis { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; height: 188px; padding: 16px 18px;
  border-radius: 13px; overflow: hidden; background: var(--mist); box-shadow: inset 0 0 0 1px var(--rule); }
.vis-row { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 12px 8px 8px; border-radius: 11px; background: var(--card);
  box-shadow: 0 0 0 1px rgba(126, 91, 255, .08), 0 8px 18px -14px rgba(40, 30, 90, .35);
  transition: opacity .6s var(--ease) .2s, transform .6s var(--ease) .2s; }
.vis-row:nth-child(2) { transition-delay: .32s; }
.vis-row:nth-child(3), .vis-row:nth-child(4) { transition-delay: .44s; }
/* Пока карточка не появилась, строки внутри спрятаны — потом выезжают по очереди. */
.rule.pre .vis-row { opacity: 0; transform: translateY(10px); }
.tag { display: inline-flex; flex: none; align-items: center; gap: 5px; margin-left: auto; padding: 4px 9px; border-radius: 7px;
  font: 600 12.5px/1.2 var(--text); white-space: nowrap; }
.tag svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tag-ok { color: #168a42; background: var(--success-soft); }
.tag-warn { color: var(--warn-ink); background: var(--warn-soft); }
.tag-soft { color: var(--accent); background: #efeaff; }

/* 1 — точная сумма */
.vis-coin { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule); }
.vis-coin img { width: 20px; height: 20px; }
.vis-main { min-width: 0; }
.vis-main b { display: block; color: var(--ink); font: 700 14.5px/1.25 var(--text); font-variant-numeric: tabular-nums; }
.vis-main small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.3; }

/* 2 — уведомления: попытки отправки */
.hooks-head { display: flex; align-items: center; padding: 0 2px 2px; }
.hooks-head code { color: var(--ink); font: 600 13px/1 var(--mono); }
.vis-hooks .vis-row { padding: 9px 12px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.vis-hooks .vis-row code { margin-left: auto; color: var(--ink-3); font: 600 12.5px/1 var(--mono); }
.vis-hooks .vis-row code.is-ok { color: #168a42; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot.is-bad { background: #e5484d; box-shadow: 0 0 0 3px rgba(229, 72, 77, .14); }
.dot.is-ok { background: var(--success); box-shadow: 0 0 0 3px rgba(28, 165, 79, .16); }

/* 3 — сверка: учёт = блокчейн, столбики сверок за сутки */
.recon-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.recon-sum small { display: block; color: var(--ink-3); font-size: 12px; }
.recon-sum b { display: block; color: var(--ink); font: 700 20px/1.2 var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.recon-sum > span:last-child { text-align: right; }
.recon-eq { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--success);
  box-shadow: 0 0 0 5px rgba(28, 165, 79, .14); }
.recon-eq svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.recon-bars { display: flex; gap: 3px; height: 30px; margin-top: 14px; }
.recon-bars i { flex: 1; border-radius: 3px; background: rgba(28, 165, 79, .75); transform-origin: bottom;
  transition: transform .5s var(--ease); }
.recon-bars i:last-child { background: var(--success); animation: recon-now 2.4s var(--ease) infinite; }
@keyframes recon-now { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.rule.pre .recon-bars i { transform: scaleY(.15); }
.recon-cap { display: flex; justify-content: space-between; margin-top: 6px; color: var(--ink-3); font-size: 11.5px; }

/* 4 — казна: адреса оплаты сходятся в казну, ветка к чужому адресу перечёркнута */
.vis-vault { display: grid; grid-template-columns: auto 140px 236px; justify-content: center; align-items: center; gap: 0; }
.vault-from { display: grid; gap: 12px; }
.vault-from code { display: block; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--ink); background: var(--card);
  box-shadow: 0 0 0 1px rgba(126, 91, 255, .08), 0 8px 18px -14px rgba(40, 30, 90, .35); font: 500 12.5px/36px var(--mono); white-space: nowrap; }
.vault-lines { display: block; overflow: visible; }
.vault-lines path { fill: none; stroke: #c9bcfb; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.vault-lines .vault-deny { stroke: #f1a9ab; stroke-dasharray: 3 4; }
.vault-dot { fill: var(--accent); }
.vault-to { display: grid; gap: 24px; align-self: start; padding-top: 18px; min-width: 0; }
.vault-ok { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 14px 0 10px; border-radius: 12px; background: var(--card);
  box-shadow: 0 0 0 1px rgba(28, 165, 79, .35), 0 0 0 5px rgba(28, 165, 79, .07), 0 10px 22px -14px rgba(40, 30, 90, .4); }
.vault-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #168a42; background: var(--success-soft); }
.vault-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vault-ok b { display: block; color: var(--ink); font: 700 14.5px/1.25 var(--text); white-space: nowrap; }
.vault-ok small { display: block; color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.vault-no { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 10px 0 14px; border-radius: 10px;
  color: var(--ink-3); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .35); font-size: 12.5px; white-space: nowrap; }
.vault-no i { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; background: #e5484d; }
.vault-no svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Отдельные страницы — «О сервисе» и документы. Шапка и подвал те же, что на главной. */
.page { padding-top: var(--header); }
.card-surface, .money-node, .who, .doc-card, .doc-summary { background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule), 0 24px 48px -38px rgba(40, 30, 90, .45); }

/* «О сервисе» */
.about-hero { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 5vw, 72px); }
.about-hero h1 { max-width: 13em; margin-top: 14px; font: 700 clamp(40px, 5vw, 72px)/1.05 var(--text); letter-spacing: -.035em; }
.about-lead { max-width: 36em; margin-top: 22px; font-size: clamp(17px, 1.3vw, 19.5px); }
.about-block { padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--rule); }
.about-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 48px; }
.about-head h2 { margin: 0; }
.about-head p { max-width: 30em; }

/* Кто кому платит: три участника, стрелки с подписями; по стрелкам бегут точки. */
.money { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 1.1fr) minmax(0, 1fr) minmax(130px, .9fr) minmax(0, 1fr);
  align-items: center; margin-top: 44px; }
.money-node { display: grid; justify-items: center; gap: 4px; padding: 26px 18px 22px; border-radius: 18px; text-align: center; }
.money-node.is-main { box-shadow: inset 0 0 0 1px #d8cefd, 0 0 0 6px rgba(126, 91, 255, .07), 0 30px 56px -34px rgba(40, 30, 90, .5); }
.money-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--accent); background: var(--mist); }
.money-node .money-icon { margin-bottom: 8px; }
.money-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.money-icon.is-brand svg { width: 22px; height: 22px; }
.money-icon.is-brand rect { fill: #cfc3fd; stroke: none; }
.money-icon.is-brand .lit { fill: var(--accent); }
.money-node b { color: var(--ink); font: 700 18px/1.25 var(--text); }
.money-node small { color: var(--ink-3); font-size: 13.5px; line-height: 1.4; }
.money-arrows { display: grid; gap: 20px; padding-inline: 14px; }
.money-arrow { display: grid; justify-items: center; gap: 7px; color: var(--accent); }
.money-arrow em { color: var(--ink-2); font-size: 13.5px; font-style: normal; font-weight: 500; line-height: 1.3; text-align: center; }
.money-arrow .tag { margin: 0; }
.money-arrow i { position: relative; display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; }
.money-arrow i::after { content: ""; position: absolute; right: 0; top: 50%; width: 8px; height: 8px; border: solid currentColor;
  border-width: 2px 2px 0 0; transform: translateY(-50%) rotate(45deg); }
.money-arrow.is-back { color: #c3b5f7; }
.money-arrow.is-back i::after { right: auto; left: 0; transform: translateY(-50%) rotate(-135deg); }
.money-arrow i::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(126, 91, 255, .14); animation: money-dot 2.8s var(--ease) infinite; }
.money-arrow.is-back i::before { animation-direction: reverse; }
.money-arrow.is-fee i::before { animation-delay: 1.4s; }
@keyframes money-dot { 0% { left: 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes money-dot-y { 0% { top: 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.money-note { max-width: 46em; margin-top: 28px; }

.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.who { padding: 24px 24px 26px; border-radius: 18px; }
.who.is-no { background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.who.is-no .money-icon { color: #e5484d; background: rgba(229, 72, 77, .08); }
.who h3 { margin-top: 18px; font: 700 18px/1.3 var(--text); letter-spacing: -.01em; }
.who p { margin-top: 8px; font-size: 15.5px; }

.about-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; margin-top: 40px; }
.about-col h3 { padding-bottom: 14px; border-bottom: 1px solid #ddd6f7; color: var(--ink); font: 700 16px/1.3 var(--text); }
.about-col ul { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.about-col li { position: relative; padding-left: 24px; }
.about-col li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px; }
.about-col.is li::before { background: var(--accent); }
.about-col.is-not li::before { top: .9em; height: 2px; border-radius: 1px; background: var(--ink-3); }

.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.doc-card { position: relative; display: grid; gap: 6px; padding: 24px 60px 24px 24px; border-radius: 18px; color: inherit; text-decoration: none; }
.doc-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 1px #d8cefd, 0 30px 56px -34px rgba(40, 30, 90, .5); transition: opacity .4s var(--ease); }
.doc-card:hover::after { opacity: 1; }
.doc-card b { color: var(--ink); font: 700 18px/1.3 var(--text); }
.doc-card span { color: var(--ink-2); font-size: 15.5px; }
.doc-card .arrow { position: absolute; right: 26px; top: 30px; width: 12px; height: 12px; color: var(--accent); }
.doc-card:hover .arrow-line { opacity: 1; }
.doc-card:hover .arrow-tip { transform: translateX(3px); }

/* Документы: слева список документов и разделы (текущий подсвечен), справа текст с номерами пунктов. */
.doc-grid { display: grid; grid-template-columns: 236px minmax(0, 740px); gap: clamp(32px, 6vw, 96px); align-items: start;
  padding-block: clamp(48px, 6vw, 80px) clamp(72px, 8vw, 112px); }
.doc-side { position: sticky; top: calc(var(--header) + 32px); display: grid; gap: 30px; }
.doc-label { margin-bottom: 10px; color: var(--ink-3); font: 600 12px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; }
.doc-docs { display: grid; gap: 2px; }
.doc-docs a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease); }
.doc-docs a:hover { color: var(--ink); background: rgba(126, 91, 255, .06); }
.doc-docs a[aria-current="page"] { color: var(--accent-deep); background: var(--mist); font-weight: 600; }
.doc-toc { display: grid; }
.doc-toc a { padding: 5px 0 5px 14px; border-left: 2px solid var(--rule); color: var(--ink-3); font-size: 13.5px; line-height: 1.4;
  text-decoration: none; transition: color .2s var(--ease), border-color .2s var(--ease); }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a.is-current { color: var(--ink); border-left-color: var(--accent); }
.doc h1 { margin-top: 14px; font: 700 clamp(32px, 3.8vw, 50px)/1.1 var(--text); letter-spacing: -.03em; }
.doc-meta { margin-top: 14px; color: var(--ink-3); font-size: 14.5px; }
.doc-summary { margin-top: 32px; padding: 22px 26px 20px; border-radius: 16px; }
.doc-summary-title { color: var(--ink); font: 700 16px/1.3 var(--text); }
.doc-summary ul { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.doc-summary li { position: relative; padding-left: 22px; font-size: 15.5px; }
.doc-summary li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.doc-summary-note { margin-top: 14px; color: var(--ink-3); font-size: 13px; }
.doc section { margin-top: 48px; scroll-margin-top: calc(var(--header) + 24px); }
.doc h2 { margin: 0; font: 700 21px/1.3 var(--text); letter-spacing: -.015em; }
.clauses { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.clauses > li { display: grid; grid-template-columns: 46px minmax(0, 1fr); font-size: 16px; line-height: 1.7; }
.clauses .n { color: var(--ink-3); font: 500 13.5px/1.7 var(--mono); padding-top: .15em; }
.clauses ul { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.clauses ul li { position: relative; padding-left: 22px; }
.clauses ul li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.clauses b { color: var(--ink); font-weight: 600; }
.doc p, .doc li { text-wrap: pretty; }
.doc a, .connect-note a, .foot-fine a { color: var(--accent-deep); text-underline-offset: 3px; }

/* Подключение */
/* Подключение: мягкая панель с лёгким свечением — слева призыв и одна кнопка, справа коротко, что получает партнёр. */
.connect { padding-block: clamp(8px, 2vw, 32px) clamp(72px, 8vw, 120px); }
.connect-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); align-items: center;
  gap: 40px clamp(32px, 5vw, 80px); padding: clamp(28px, 5vw, 64px); border-radius: 28px; overflow: hidden; isolation: isolate;
  background: var(--mist); box-shadow: inset 0 0 0 1px var(--rule); }
.connect-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 85% at 0% 100%, rgba(166, 138, 255, .3), transparent 70%),
    radial-gradient(45% 65% at 100% 0%, rgba(240, 178, 255, .22), transparent 70%); }
.connect-copy h2 { margin: 0; font-size: clamp(34px, 4vw, 56px); }
.connect-copy > p:not(.connect-note) { max-width: 22em; margin-top: 16px; font-size: clamp(16px, 1.25vw, 18.5px); }
.connect-copy .btn { margin-top: 30px; box-shadow: 0 8px 18px -10px rgba(126, 91, 255, .6); }
.connect-note { margin-top: 14px; color: var(--ink-3); font-size: 14px; }
.connect-facts { margin: 0; padding: 6px 24px; border-radius: 20px; list-style: none; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule), 0 30px 60px -40px rgba(40, 30, 90, .45); }
.connect-facts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 18px 0; }
.connect-facts li + li { border-top: 1px solid var(--rule); }
.fact-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--accent); background: var(--mist); }
.fact-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.connect-facts b { display: block; color: var(--ink); font: 700 16.5px/1.3 var(--text); }
.connect-facts div > span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 14.5px; line-height: 1.45; }

/* Подвал */
.foot { padding-block: 32px 40px; border-top: 1px solid var(--rule); font-size: 14.5px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.brand-sm { font-size: 17px; }
.brand-sm .mark { width: 20px; height: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-left: auto; }
.foot-links a { color: var(--ink-2); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }
.foot-copy { color: var(--ink-3); }
.foot-fine { margin-top: 20px; color: var(--ink-3); font-size: 13px; }

/* Появление при прокрутке: только то, что ниже первого экрана, и только при включённом JS. */
.pre { opacity: 0; transform: translateY(24px); }
[data-reveal] { transition: opacity .8s var(--ease), transform .8s var(--ease); }

@media (max-width: 1080px) {
  .links { display: none; }
  .top-row { gap: 12px; }
  .menu-toggle { display: block; }
  .menu { display: block; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 100%); overflow-y: auto;
    background: var(--paper); box-shadow: 0 1px 0 var(--rule), 0 30px 60px -30px rgba(40, 30, 90, .35);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s linear .35s; }
  .menu-open .menu { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .35s var(--ease); }
  /* Пока меню открыто, кнопка в шапке не дублирует большую кнопку в меню. */
  .btn-top { transition: opacity .25s var(--ease), background-color .2s var(--ease); }
  .menu-open .btn-top { opacity: 0; pointer-events: none; }
  /* Один столбец: заголовок, экран оплаты, под ним шаги. */
  .flow-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "stage" "steps"; row-gap: 32px; }
  .flow-side { display: contents; }
  .flow-steps { margin-top: 0; }

  /* Схема «кто кому платит» — сверху вниз. */
  .money { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin-inline: auto; }
  .money-arrows { display: flex; justify-content: center; gap: 36px; padding: 14px 0; }
  .money-arrow { display: flex; flex-direction: column; align-items: center; gap: 6px; }
  .money-arrow i { width: 2px; height: 40px; }
  .money-arrow i::after { right: auto; left: 50%; top: auto; bottom: 0; transform: translateX(-50%) rotate(135deg); }
  .money-arrow.is-back i::after { left: 50%; top: 0; bottom: auto; transform: translateX(-50%) rotate(-45deg); }
  .money-arrow i::before { left: 50%; top: 0; margin: -3.5px 0 0 -3.5px; animation-name: money-dot-y; }
  .money-arrow.is-back { flex-direction: column-reverse; }
  /* Документы: оглавление прячем, документы — строкой сверху. */
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .doc-side { position: static; }
  .doc-toc { display: none; }
  .doc-docs { display: flex; gap: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .doc-docs .doc-label { display: none; }
  .doc-docs a { flex: none; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--rule); }
  .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule, .rule-wide { grid-column: auto; }
  .connect-panel { grid-template-columns: minmax(0, 1fr); }
  .connect-facts { max-width: 560px; }
  .vis-vault { grid-template-columns: auto 96px minmax(0, 1fr); justify-content: stretch; }
  .vault-lines { width: 96px; }
  .nets-list { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 36px; border-radius: 16px; background: var(--card);
    box-shadow: inset 0 0 0 1px var(--rule), 0 24px 48px -38px rgba(40, 30, 90, .45); }
  .net { flex-direction: row; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 0; background: none; box-shadow: none; }
  .net + .net { box-shadow: inset 0 1px 0 var(--rule); }
  .net::after { display: none; }
  .net-logo { width: 42px; height: 42px; }
  .net-logo img { width: 24px; height: 24px; }
  .net-name { margin-top: 0; font-size: 16.5px; }
  .net-std { margin: 0 0 0 auto; }
}
@media (max-width: 900px) {
  .hero { display: block; min-height: 0; padding-bottom: 24px; }
  .hero-wave { bottom: auto; height: min(112vw, 620px);
    -webkit-mask-image: radial-gradient(60% 50% at 50% 50%, #000 25%, transparent 80%);
    mask-image: radial-gradient(60% 50% at 50% 50%, #000 25%, transparent 80%); }
  .hero-canvas, .pins, .hero-fallback { height: min(112vw, 620px); bottom: auto; }
  .hero-fallback { left: 50%; top: calc(min(112vw, 620px) / 2); width: min(80vw, 440px); }
  .hero-copy { padding-top: calc(min(112vw, 620px) + 8px); padding-bottom: 40px; }
  .terms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms .term { padding: 22px 20px 24px; }
  .terms .term:nth-child(odd) { box-shadow: none; }
  .terms .term:nth-child(3) { box-shadow: inset 0 1px 0 var(--rule); }
  .terms .term:nth-child(4) { box-shadow: inset 1px 0 0 var(--rule), inset 0 1px 0 var(--rule); }
}
@media (max-width: 640px) {
  .btn-top { height: 36px; padding: 0 12px 0 14px; font-size: 14px; }
  .btn-top .arrow { display: none; }
  .sub-br { display: none; }
  body { font-size: 16px; }
  h1 { font-size: 10vw; }
  .rules-grid { grid-template-columns: minmax(0, 1fr); margin-top: 36px; }
  .rule-text { padding: 18px 12px 12px; }
  .vis { padding: 14px; }
  .vis-vault { grid-template-columns: auto 52px minmax(0, 1fr); }
  .vault-lines { width: 52px; }
  .vault-dot { display: none; }
  .vault-from code { padding: 0 9px; font-size: 11px; }
  .vault-ok { padding: 0 10px 0 8px; gap: 8px; }
  .vault-ok small { display: none; }
  .vault-no { padding: 0 8px 0 10px; font-size: 11.5px; }
  .vault-no span { overflow: hidden; text-overflow: ellipsis; }
  .about-cols, .docs-grid, .who-grid { grid-template-columns: minmax(0, 1fr); }
  .connect-panel { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .connect-facts { padding: 4px 18px; }
  .clauses > li { grid-template-columns: 40px minmax(0, 1fr); font-size: 15.5px; }
  .doc-summary { padding: 18px 18px 16px; }
  .flow-stage { padding: 30px 14px 36px; border-radius: 20px; }
  .flow-tab { padding: 16px 0; font-size: 17.5px; }
  .flow-more > p { font-size: 15.5px; }
  .flow-event { gap: 10px; padding: 8px 14px 8px 8px; }
  .ev-icon { width: 30px; height: 30px; }
  .pay { padding: 26px 18px 18px; }
  .pay-amount { font-size: 31px; }
  .pay-body { gap: 14px; }
  .pay-qr { width: 90px; height: 90px; padding: 6px; }
  .pay-net { padding: 10px 12px 10px 10px; }
  .net-chip { width: 24px; height: 24px; margin-left: -9px; }
  .net-chip img { padding: 4px; }
  .net { padding: 12px 16px; gap: 14px; }
  .net-logo { width: 38px; height: 38px; }
  .net-logo img { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .vault-dot { display: none; }
}
