/* ============================================================
   plopay — long-form pages (оферта, политика, документация)
   Same business palette as the landing.
   ============================================================ */
:root {
  --bg: #070a12;
  --bg-soft: #0d1220;
  --surface: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.020));
  --line: rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.18);
  --text: #eef1f7;
  --text-2: #c3cad8;
  --muted: #8b93a5;
  --muted-2: #7a8397;
  --blue-1: #33409a;
  --blue-2: #4681ff;
  --blue-3: #c4d7ff;
  --accent: #4681ff;
  --grad: linear-gradient(120deg, #4681ff 0%, #8aa8ff 50%, #c4d7ff 100%);
  --grad-fill: linear-gradient(135deg, #33409a 0%, #4258d8 55%, #5f4fd6 100%);
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --lacquer: inset 0 1px 0 rgba(255,255,255,0.07), 0 18px 38px -24px rgba(0,0,0,0.72);
  --ring: rgba(70,129,255,0.38);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% -6%, rgba(70,129,255,0.10) 0%, transparent 64%),
    radial-gradient(50% 40% at 50% 106%, rgba(114,91,255,0.08) 0%, transparent 62%);
}
a { color: inherit; text-decoration: none; }

/* header */
.dh {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7,10,18,0.78);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border-bottom: 1px solid var(--line);
}
.dh-in {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 68px; display: flex; align-items: center; gap: 18px;
}
.dh-logo { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dh-logo span { -webkit-text-fill-color: var(--muted); }
.dh-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.dh-nav a {
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  padding: 8px 13px; border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}
.dh-nav a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.dh-nav a.on { color: var(--blue-3); background: rgba(70,129,255,0.14); }
.dh-cta {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 12px;
  background: var(--grad-fill); color: #fff; font-size: 13.5px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 12px 28px -14px rgba(70,129,255,0.45);
}

/* layout */
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px 80px; }
.doc-head { padding: 46px 0 26px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.doc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--blue-3); background: rgba(70,129,255,0.12);
  border: 1px solid rgba(70,129,255,0.24); border-radius: 999px; padding: 5px 12px;
  margin-bottom: 16px;
}
.doc-head h1 { font-size: 38px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; text-wrap: balance; }
.doc-head p { margin-top: 12px; color: var(--text-2); max-width: 70ch; }
.doc-meta { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }

.doc-grid { display: grid; grid-template-columns: 246px minmax(0, 1fr); gap: 44px; align-items: start; }
.toc { position: sticky; top: 92px; }
.toc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 12px; }
.toc a {
  display: block; font-size: 13px; color: var(--muted);
  padding: 7px 11px; border-radius: 9px; line-height: 1.45;
  border-left: 2px solid transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.toc a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.toc a.on { color: var(--blue-3); background: rgba(70,129,255,0.10); border-left-color: var(--blue-2); }

/* content */
.doc { max-width: 78ch; }
.doc section { scroll-margin-top: 92px; padding-bottom: 34px; }
.doc h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.025em;
  margin: 10px 0 14px; padding-top: 10px; text-wrap: balance;
}
.doc h2 .num { color: var(--blue-2); margin-right: 9px; font-variant-numeric: tabular-nums; }
.doc h3 { font-size: 16px; font-weight: 700; margin: 22px 0 10px; letter-spacing: -0.01em; }
.doc p { color: var(--text-2); margin-bottom: 14px; }
.doc ul, .doc ol { margin: 0 0 16px 20px; color: var(--text-2); }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--text); font-weight: 700; }
.doc a.link { color: var(--blue-3); border-bottom: 1px solid rgba(196,215,255,0.3); }
.doc a.link:hover { border-bottom-color: var(--blue-3); }

.note {
  display: flex; gap: 12px; padding: 15px 17px; margin: 0 0 20px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: rgba(255,255,255,0.035);
  font-size: 14px; color: var(--text-2);
}
.note b { color: var(--text); }
.note.accent { border-color: rgba(70,129,255,0.28); background: rgba(70,129,255,0.07); }
.note.warn { border-color: rgba(251,191,36,0.3); background: rgba(251,191,36,0.07); }
.note-ic { flex: 0 0 20px; color: var(--blue-2); margin-top: 2px; }
.note.warn .note-ic { color: var(--warn); }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255,255,255,0.035);
  padding: 20px 22px; margin-bottom: 18px;
}
.card h3 { margin-top: 0; }

table.t { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 20px; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-2); font-weight: 700; }
table.t td { color: var(--text-2); }
table.t tr:last-child td { border-bottom: 0; }
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,0.025); margin-bottom: 20px; }
.tw table.t { margin: 0; min-width: 520px; }

code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
code.i { background: rgba(255,255,255,0.07); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--blue-3); }
pre {
  background: #0a0e1a; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 15px 17px; overflow-x: auto; margin: 0 0 20px; line-height: 1.6;
}
pre code { color: var(--text-2); font-size: 12.5px; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: 0.02em; }
.pill.ok { background: rgba(52,211,153,0.15); color: var(--ok); }
.pill.warn { background: rgba(251,191,36,0.15); color: var(--warn); }
.pill.bad { background: rgba(248,113,113,0.15); color: var(--bad); }
.pill.blue { background: rgba(70,129,255,0.16); color: var(--blue-3); }
.pill.soon { background: rgba(255,255,255,0.07); color: var(--muted); }

.flow { display: grid; gap: 0; margin-bottom: 22px; }
.flow-step { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.flow-step:first-child { border-top: 0; }
.flow-n {
  flex: 0 0 26px; height: 26px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(70,129,255,0.14); color: var(--blue-3); font-size: 12px; font-weight: 700;
}
.flow-step b { display: block; margin-bottom: 3px; }
.flow-step span { font-size: 14px; color: var(--text-2); }

.df { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 0; font-size: 13px; color: var(--muted); }
.df a { color: var(--muted); }
.df a:hover { color: var(--text); }
.df-row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }

@media (max-width: 900px) {
  .doc-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc {
    position: static; margin-bottom: 26px; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: rgba(255,255,255,0.03);
    max-height: 230px; overflow-y: auto;
  }
  .doc-head h1 { font-size: 28px; }
  .wrap { padding: 0 16px 60px; }
  .dh-in { padding: 0 16px; height: 60px; gap: 10px; }
  .dh-nav { gap: 0; }
  .dh-nav a { padding: 7px 9px; font-size: 12.5px; }
  .dh-cta { display: none; }
}
