@font-face{font-family:'Unbounded';font-style:normal;font-display:swap;font-weight:600;src:url(/assets/unbounded-latin-600-normal.13d69a452e.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Unbounded';font-style:normal;font-display:swap;font-weight:600;src:url(/assets/unbounded-cyrillic-600-normal.59a9e6e092.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Unbounded';font-style:normal;font-display:swap;font-weight:700;src:url(/assets/unbounded-latin-700-normal.4c65a0c35d.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Unbounded';font-style:normal;font-display:swap;font-weight:700;src:url(/assets/unbounded-cyrillic-700-normal.717119a785.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Manrope Variable';font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/manrope-latin-wght-normal.14be4114dc.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Manrope Variable';font-style:normal;font-display:swap;font-weight:200 800;src:url(/assets/manrope-cyrillic-wght-normal.26287892a2.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:500;src:url(/assets/jetbrains-mono-latin-500-normal.cb182feeed.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-display:swap;font-weight:500;src:url(/assets/jetbrains-mono-cyrillic-500-normal.26c9ed511d.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
/* Тёмная тема WebApp (dark-night: slate-950/900). Цвет только у денег партнёра. */
:root {
  --bg: #020617;
  --surface: #0b1222;
  --surface-2: #111a2e;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.32);
  --text: #f1f5f9;
  --body: #cbd5e1;
  --muted: #94a3b8;
  --dim: #64748b;
  --money: #4ade80;
  --cta: #f8fafc;
  --cta-text: #020617;

  --font-display: 'Unbounded', 'Manrope Variable', system-ui, sans-serif;
  --font-body: 'Manrope Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: 16px;
  --radius: 14px;
  --space: clamp(64px, 10vw, 128px);
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* Китайский: латиница из своих шрифтов, иероглифы из системного CJK */
.lang-zh {
  --font-display: 'Unbounded', 'PingFang SC', 'Noto Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Manrope Variable', 'PingFang SC', 'Noto Sans SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif;
}
.lang-zh h1, .lang-zh h2 { letter-spacing: 0; }

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.money { color: var(--money); }

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

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--cta); color: var(--cta-text); padding: 8px 12px; border-radius: 8px; z-index: 20;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--cta); outline-offset: 3px; border-radius: 6px; }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.brand-name { font: 600 15px/1 var(--font-display); letter-spacing: -0.01em; }
.brand-sub { font: 500 12px/1 var(--font-mono); color: var(--dim); }
.topnav { display: none; gap: 24px; margin-left: auto; }
.topnav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.topnav a:hover { color: var(--text); }
.langs { display: flex; gap: 2px; margin-left: auto; font: 500 12px/1 var(--font-mono); text-transform: uppercase; }
.topnav + .langs { margin-left: 8px; }
.lang { padding: 8px 6px; color: var(--dim); text-decoration: none; border-radius: 6px; }
.lang:hover { color: var(--text); }
.lang.is-current { color: var(--text); box-shadow: inset 0 -1px 0 var(--text); border-radius: 0; }

@media (min-width: 900px) {
  .topnav { display: flex; }
}

/* Кнопки */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: 600 15px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: var(--cta-text); }
.btn-primary:hover { background: #e2e8f0; }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

/* Первый экран */
.hero {
  display: grid; gap: 40px;
  padding-top: clamp(40px, 8vw, 96px); padding-bottom: 48px;
  align-items: center;
}
.eyebrow { font: 500 12px/1.4 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 20px; }
h1 {
  font: 700 clamp(30px, 5.4vw, 52px)/1.1 var(--font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h1-a { color: var(--muted); }
.lead { margin: 24px 0 32px; max-width: 34em; font-size: clamp(16px, 2.1vw, 18px); color: var(--body); }
.hero-copy { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
.chronicle { animation: rise .7s .12s cubic-bezier(.2,.7,.2,1) both; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy, .chronicle { animation: none; }
}

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; }
}

/* Общая шапка карточек-макетов */
.card-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font: 500 12px/1.4 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.card-note { color: var(--dim); text-transform: none; letter-spacing: 0; text-align: right; }
.card-foot { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Хроника одного пользователя: лента событий с вертикальной осью */
.chronicle {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; width: 100%; max-width: 460px; justify-self: center;
}
.chr-cols, .chr-list li {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) 64px; gap: 12px; align-items: baseline;
}
.chr-cols { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 0 6px; }
.chr-cols span:last-child, .chr-you { text-align: right; }
.chr-list { list-style: none; margin: 0; padding: 0; position: relative; }
.chr-list::before { content: ''; position: absolute; left: 3px; top: 14px; bottom: 14px; width: 1px; background: var(--line-strong); }
.chr-list li { padding: 10px 0; font-size: 15px; position: relative; }
.chr-when { font-size: 12px; color: var(--muted); padding-left: 16px; position: relative; }
.chr-when::before {
  content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -4px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--muted);
}
.chr-list li:not(:first-child) .chr-when::before { background: var(--money); border-color: var(--money); }
.chr-what { color: var(--body); }
.chr-you { font-size: 15px; color: var(--dim); }
.chr-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600;
}
.chr-total .mono { font-size: 22px; }

/* Факты */
.facts { padding-bottom: 8px; }
.facts-row {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.fact { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { border-right: 1px solid var(--line); }
.fact:nth-child(even) { padding-left: 16px; }
.fact:last-child { border-bottom: 0; grid-column: 1 / -1; border-right: 0; }
.fact dt { font-size: clamp(24px, 4.4vw, 34px); font-weight: 500; line-height: 1.1; }
.fact:first-child dt { color: var(--money); }
.fact dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.35; }
.facts-asof { margin-top: 10px; font: 400 12px/1.4 var(--font-mono); color: var(--dim); }

@media (min-width: 720px) {
  .facts-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fact, .fact:nth-child(even) { padding: 24px 20px; border-bottom: 0; border-right: 1px solid var(--line); }
  .fact:nth-child(odd) { border-right: 1px solid var(--line); }
  .fact:first-child { padding-left: 0; }
  .fact:last-child { border-right: 0; grid-column: auto; }
}

/* Разделы */
.section { padding-top: var(--space); }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 500 12px/1 var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.kicker-no { color: var(--dim); padding-right: 12px; border-right: 1px solid var(--line-strong); }
h2 {
  font: 600 clamp(26px, 4.6vw, 44px)/1.12 var(--font-display);
  letter-spacing: -0.03em; max-width: 22em; text-wrap: balance;
}
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.section-lead { margin-top: 18px; max-width: 38em; color: var(--muted); font-size: 17px; }
.note { margin-top: 14px; font-size: 13px; color: var(--dim); }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-rev > :first-child { order: 2; }
}

/* Два варианта подключения */
.options { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 15px; }
.options thead th {
  text-align: left; padding: 0 16px 16px 0;
  font: 600 18px/1.2 var(--font-display); letter-spacing: -0.02em;
}
.options tbody tr { border-top: 1px solid var(--line); }
.options tbody tr:last-child { border-bottom: 1px solid var(--line); }
.options th[scope="row"] { text-align: left; font-weight: 500; color: var(--muted); padding: 16px 16px 16px 0; width: 24%; vertical-align: top; }
.options td { padding: 16px 16px 16px 0; vertical-align: top; color: var(--body); width: 38%; }
.options tfoot td { padding-top: 24px; }
@media (max-width: 719px) {
  .options thead, .options tfoot td:first-child { display: none; }
  .options, .options tbody, .options tfoot, .options tr, .options th, .options td { display: block; width: 100%; }
  .options tbody tr { padding: 14px 0; }
  .options th[scope="row"] { padding: 0 0 8px; width: 100%; font-size: 13px; }
  .options td { padding: 3px 0 3px 112px; position: relative; }
  .options td::before {
    content: attr(data-label); position: absolute; left: 0; top: 6px; width: 104px;
    font: 500 10px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim);
  }
  .options tfoot tr { display: flex; flex-direction: column-reverse; gap: 12px; padding-top: 20px; }
  .options tfoot td { padding: 0; }
  .options tfoot td::before { display: none; }
  .options tfoot .btn { width: 100%; }
}
.stars-how {
  margin-top: 32px; padding: 22px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); max-width: 640px;
}
.stars-how h3 { font-size: 16px; margin-bottom: 12px; }
.stars-how ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; color: var(--body); }
.stars-how li::marker { font-family: var(--font-mono); color: var(--dim); }

/* Куда попадает человек */
.targets { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 12px; }
.targets li { padding: 22px 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.targets li:first-child { border-color: var(--line-strong); background: var(--surface); }
.targets p { margin-top: 8px; color: var(--muted); }
@media (min-width: 900px) { .targets { grid-template-columns: 1.3fr 1fr 1fr; } }

/* Макет поста в Telegram */
.tg-post { margin: 0; max-width: 380px; width: 100%; justify-self: center; }
.tg-bubble {
  background: #182233; border-radius: 16px 16px 16px 4px; overflow: hidden; position: relative;
}
.tg-art {
  aspect-ratio: 4 / 3; display: grid; place-items: center;
  background:
    repeating-linear-gradient(135deg, rgba(148,163,184,.06) 0 10px, transparent 10px 20px),
    #0f1726;
  color: var(--dim); font-size: 12px;
}
.tg-text { padding: 12px 14px 22px; font-size: 15px; line-height: 1.45; color: var(--text); }
.tg-time { position: absolute; right: 10px; bottom: 6px; font-size: 11px; color: var(--muted); }
.tg-button {
  display: block; margin-top: 4px; padding: 11px; text-align: center; border-radius: 10px;
  background: #182233; font-size: 14px; font-weight: 600; color: var(--text);
}

/* Карточка ссылки в кабинете */
.dash { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.dash-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 14px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.dash-tiles div { background: var(--surface); padding: 14px; }
.dash-tiles dt { font-size: 12px; color: var(--muted); }
.dash-tiles dd { margin: 6px 0 0; font-size: 20px; }
.dash-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 14px; color: var(--muted); }
.dash-sum.is-accrued { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; color: var(--text); }
.dash-sum.is-accrued .mono { font-size: 22px; }

/* Блоки кабинета */
.cab-block { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.cab-block h3 { font: 600 22px/1.25 var(--font-display); letter-spacing: -0.02em; }
.cab-block h3 + p { margin-top: 14px; color: var(--muted); max-width: 34em; }
.cab-guides { display: grid; gap: 28px; }
@media (min-width: 900px) { .cab-guides { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.guide-list { list-style: none; counter-reset: g; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-list li {
  counter-increment: g; display: grid; grid-template-columns: 36px 1fr; gap: 8px;
  padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--body);
}
.guide-list li::before { content: counter(g, decimal-leading-zero); font: 500 12px/1.9 var(--font-mono); color: var(--dim); }

/* Доля партнёра по реальной выручке (src/stats.json) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 40px 0 0; border-top: 1px solid var(--line); }
.stats div { padding: 22px 16px 22px 0; border-bottom: 1px solid var(--line); }
.stats dt { font-size: clamp(26px, 4vw, 36px); line-height: 1.1; }
.stats dd { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
/* Продукт */
.grid-2 { display: grid; margin-top: 36px; border-top: 1px solid var(--line); }
.cell { padding: 24px 0; border-bottom: 1px solid var(--line); }
.cell p { margin-top: 8px; color: var(--muted); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .cell { padding: 28px 32px 28px 0; }
  .cell:nth-child(even) { padding-left: 32px; border-left: 1px solid var(--line); }
}

/* FAQ */
.faq { margin-top: 36px; border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 22px/1 var(--font-mono); color: var(--dim); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--muted); max-width: 46em; }

/* Финал */
.final {
  margin-top: var(--space); padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line);
}
.final h2 { font-size: clamp(28px, 5vw, 48px); }
.final p { margin: 18px 0 32px; color: var(--muted); max-width: 36em; font-size: 17px; }

/* Подвал */
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 13px; color: var(--dim); }
.footer-in { display: grid; gap: 12px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.adult { display: flex; align-items: center; gap: 10px; }
.badge-18 { border: 1px solid var(--line-strong); border-radius: 6px; padding: 3px 6px; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
@media (min-width: 900px) {
  .footer-in { grid-template-columns: 1fr auto auto; align-items: center; gap: 32px; }
}
