/* Кабинет разработчика O. Message. Всё своё: без внешних шрифтов и скриптов. Цвета — те же, что в O. Admin. */

@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("/assets/onest-400.ttf") format("truetype"); }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("/assets/onest-600.ttf") format("truetype"); }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap; src: url("/assets/onest-800.ttf") format("truetype"); }

:root {
  --bg: #f2f4f9; --surface: #ffffff; --surface-2: #f6f8fc; --ink: #0f1626; --ink-2: #364053; --muted: #5d6779;
  --line: #e1e5ee; --line-2: #ecf0f6;
  --accent: #2563eb; --accent-ink: #1c4fd6; --accent-soft: #e7eefe; --on-accent: #ffffff;
  --violet: #6a4df0; --violet-soft: #eeeaff;
  --good: #0b8a47; --good-soft: #e1f5ea; --warn: #9a5b06; --warn-soft: #fcefd8; --bad: #c8281c; --bad-soft: #fde7e5;
  --logo: #2660e0;
  --code-bg: #0f1626; --code-ink: #e6ebf5; --code-line: #232c40; --code-muted: #96a1b6;
  --radius: 14px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 22, 38, .05), 0 10px 28px -14px rgba(15, 22, 38, .16);
  --shadow-pop: 0 2px 6px rgba(15, 22, 38, .08), 0 24px 60px -20px rgba(15, 22, 38, .35);
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090d15; --surface: #111724; --surface-2: #161d2c; --ink: #e9edf5; --ink-2: #c5ccd9; --muted: #8e99ad;
    --line: #222b3c; --line-2: #1a2231;
    --accent: #5d8dff; --accent-ink: #84a9ff; --accent-soft: #162140; --on-accent: #06102a;
    --violet: #9783ff; --violet-soft: #211b43;
    --good: #3fcd82; --good-soft: #0f2a1d; --warn: #f1a93f; --warn-soft: #2d210f; --bad: #ff7366; --bad-soft: #34161a;
    --logo: #5d8dff;
    --code-bg: #0b101a; --code-line: #222b3c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -18px rgba(0, 0, 0, .8);
    --shadow-pop: 0 2px 8px rgba(0, 0, 0, .5), 0 30px 70px -20px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
code, .mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.grow { flex: 1 1 auto; min-width: 0; }
.ellipsis { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.err { color: var(--bad); font-weight: 600; }
.offscreen { position: fixed; left: -999px; top: 0; opacity: 0; }
svg.i { width: 18px; height: 18px; flex: none; display: block; }
svg.mark { fill: var(--logo); display: block; flex: none; }

#root { min-height: 100vh; display: flex; flex-direction: column; }
.splash { flex: 1; display: grid; place-items: center; min-height: 100vh; }
.splash svg { width: 56px; height: 56px; fill: var(--logo); animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

/* ---------- Шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px);
}
.top-in { max-width: 1120px; margin: 0 auto; height: 60px; padding: 0 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 30px; height: 30px; }
.brand-t { display: flex; flex-direction: column; line-height: 1.1; }
.brand-t b { font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.brand-t small { font-size: 11.5px; color: var(--muted); }
.nav { display: flex; gap: 4px; margin-right: auto; min-width: 0; }
.nav-link { padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); white-space: nowrap; }
.nav-link:hover { background: var(--surface); text-decoration: none; color: var(--ink); }
.nav-link.on { background: var(--accent-soft); color: var(--accent-ink); }
.who { display: flex; align-items: center; gap: 9px; min-width: 0; }
.who-name { font-weight: 600; font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ava {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; object-fit: cover;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 14px;
}

.main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 24px 64px; min-width: 0; }
.foot {
  max-width: 1120px; width: 100%; margin: 0 auto; padding: 18px 24px 28px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; font-size: 13px; color: var(--muted);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 11px;
  border: 1px solid transparent; font-weight: 600; font-size: 15px; white-space: nowrap; text-decoration: none; flex: none;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover:not(:disabled) { background: var(--accent-ink); }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { background: var(--bad); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.danger { color: #2a0906; } }
.btn.danger-ghost { background: none; border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: var(--bad); }
.btn.danger-ghost:hover { background: var(--bad-soft); }
.btn.big { height: 50px; padding: 0 24px; font-size: 16px; border-radius: 13px; }
.btn.small { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; gap: 6px; }
.btn.small svg.i { width: 16px; height: 16px; }
.btn.tiny { height: 28px; padding: 0 9px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn.tiny svg.i { width: 14px; height: 14px; }
.btn.block { display: flex; width: 100%; white-space: normal; text-align: center; height: auto; min-height: 42px; padding: 8px 14px; }
.btn.done { border-color: var(--good); color: var(--good); }
.btn.primary.done { background: var(--good); color: #fff; }

/* ---------- Карточки ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card.pad { padding: 20px 22px; }
.card h2 { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.skeleton { position: relative; overflow: hidden; min-height: 108px; }
.skeleton.tall { min-height: 320px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ink) 5%, transparent), transparent); animation: sheen 1.3s infinite;
}
@keyframes sheen { to { transform: translateX(100%); } }

.page-head { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.page-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.page-head .sub { color: var(--muted); margin-top: 3px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.back svg.i { width: 16px; height: 16px; }

/* ---------- Витрина ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 28px 0 56px; }
.kicker { color: var(--accent-ink); font-weight: 600; font-size: 14px; margin-bottom: 12px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -.04em; text-wrap: balance; }
.lead { font-size: 17.5px; line-height: 1.55; color: var(--ink-2); margin-top: 18px; max-width: 56ch; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-side { min-width: 0; display: flex; justify-content: center; }

.demo { position: relative; width: 100%; max-width: 420px; padding: 0 0 78px; }
.demo-site { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.demo-bar span { margin-left: 10px; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.demo-body { padding: 26px 24px 96px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.demo-line { height: 12px; border-radius: 6px; background: var(--line-2); }
.w60 { width: 60%; } .w40 { width: 40%; margin-bottom: 10px; }
.demo-ask {
  position: absolute; right: -8px; bottom: 0; width: min(270px, 78%); padding: 16px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 6px; transform: rotate(-2deg);
}
.demo-ask-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.demo-ask-h .mark { width: 16px; height: 16px; }
.demo-ask b { font-size: 15.5px; line-height: 1.25; letter-spacing: -.01em; }
.demo-ask-t { font-size: 12.5px; color: var(--muted); }
.demo-ask-acts { display: flex; gap: 8px; margin-top: 8px; }
.pill { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; font-size: 13.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); }
.pill.on { background: var(--accent); color: var(--on-accent); }

/* Кнопка «Войти через O. Message» — образец */
.omsg-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px; border-radius: 12px;
  background: #2563eb; color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.omsg-btn .mark { width: 22px; height: 22px; fill: #fff; }
.omsg-btn.light { background: #fff; color: #0f1626; box-shadow: inset 0 0 0 1px #d5dbe7; }
.omsg-btn.light .mark { fill: #2660e0; }
.btn-samples { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

.band { padding: 36px 0; border-top: 1px solid var(--line); }
.band > h2 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 18px; }
.steps3 { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: st; }
.steps3 li { counter-increment: st; padding: 18px 20px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.steps3 li::before { content: counter(st); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.04em; color: var(--accent); margin-bottom: 6px; }
.steps3 b { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.steps3 span { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.fact { padding: 16px 18px; border-radius: var(--radius); display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--surface); }
.fact b { font-weight: 800; }
.fact span { color: var(--ink-2); font-size: 14.5px; }
.fact.yes { border-left: 3px solid var(--good); }
.fact.no { border-left: 3px solid var(--muted); background: var(--surface-2); }

/* ---------- Вход ---------- */
.login {
  width: 100%; max-width: 360px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 14px; text-align: center;
}
.login h2 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.qr { width: 100%; max-width: 232px; aspect-ratio: 1; margin: 0 auto; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.qr svg { display: block; width: 100%; height: 100%; }
.qr.skeleton { min-height: 0; background: var(--surface-2); }
.wait { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: breathe 1.4s ease-in-out infinite; flex: none; }

/* ---------- Список приложений ---------- */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.app-card { display: flex; flex-direction: column; gap: 16px; padding: 18px; color: var(--ink); transition: border-color .15s, transform .15s; }
.app-card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-2px); }
.app-card-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.app-card-h b { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.app-card-h .muted { font-size: 13.5px; }
.app-letter { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; font-size: 19px; }
.app-card-f { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.app-card-f .muted { margin-left: auto; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge svg.i { width: 13px; height: 13px; }
.badge.st-test { background: var(--violet-soft); color: var(--violet); }
.badge.st-review { background: var(--warn-soft); color: var(--warn); }
.badge.st-active, .badge.st-verified { background: var(--good-soft); color: var(--good); }
.badge.st-blocked { background: var(--bad-soft); color: var(--bad); }

.empty { padding: 44px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty h2 { font-size: 20px; margin: 0; }
.empty p { color: var(--ink-2); max-width: 46ch; }
.empty-mark { width: 64px; height: 64px; border-radius: 20px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 6px; }
.empty-mark .mark { width: 32px; height: 32px; }
.empty-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }

/* ---------- Страница приложения ---------- */
.app-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.state { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.state-h { display: flex; align-items: center; gap: 9px; font-size: 16px; }
.state-h b { font-weight: 800; }
.state-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--violet); }
.state.st-review .state-dot { background: var(--warn); }
.state.st-active .state-dot { background: var(--good); }
.state.st-blocked .state-dot { background: var(--bad); }
.state p { margin-top: 6px; font-size: 14.5px; }
.verified { display: flex; align-items: center; gap: 6px; color: var(--good); font-weight: 600; }
.admin-note { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); overflow-wrap: anywhere; }
.kv { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.kv:first-of-type { border-top: 0; padding-top: 2px; }
.kv-l { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.kv-v { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; min-width: 0; }
.kv-v code { font-size: 14.5px; overflow-wrap: anywhere; min-width: 0; }
.meta { border-top: 1px solid var(--line-2); padding-top: 12px; }
.danger-zone { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.danger-zone h2 { margin-bottom: 4px; }
.step-t { font-weight: 600; margin: 16px 0 -4px; }

/* ---------- Формы ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-l { font-weight: 600; font-size: 14px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; outline: none;
  font-size: 15px; line-height: 1.45; resize: vertical; min-width: 0;
}
.field textarea.mono { font-family: var(--mono); font-size: 13.5px; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); background: var(--surface); }
.field ::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.4; }
.form-acts { display: flex; justify-content: flex-end; }

/* ---------- Вкладки и код ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; margin-top: 12px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted); white-space: nowrap; flex: none; }
.tab:hover { color: var(--ink); }
.tab.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(15, 22, 38, .12); }
.tab-body { min-width: 0; }
.code { margin-top: 12px; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--code-line); overflow: hidden; min-width: 0; }
.code figcaption { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--code-line); color: var(--code-muted); font-size: 12.5px; font-weight: 600; }
.code .btn.ghost { background: none; border-color: var(--code-line); color: var(--code-ink); }
.code .btn.ghost:hover { border-color: var(--code-muted); color: #fff; }
.code .btn.done { border-color: #3fcd82; color: #3fcd82; }
.code pre { margin: 0; padding: 14px; overflow-x: auto; color: var(--code-ink); font: 13px/1.6 var(--mono); tab-size: 2; }
.code pre:focus-visible { outline-offset: -2px; }
.code code { font-size: inherit; }

.note { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink-2); font-size: 14.5px; }
.note b { color: var(--ink); }
.note.warn { background: var(--warn-soft); }

/* ---------- Окна ---------- */
.modal {
  width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 24px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop);
}
.modal.wide { width: min(540px, calc(100vw - 24px)); }
.modal::backdrop { background: rgba(8, 12, 22, .55); backdrop-filter: blur(3px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
.modal h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 14px; overflow-wrap: anywhere; }
.modal-text { color: var(--ink-2); }
.modal-acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.modal-acts .btn { white-space: normal; height: auto; min-height: 42px; padding-top: 8px; padding-bottom: 8px; text-align: center; }
.secret { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--accent); }
.secret code { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; user-select: all; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 100; max-width: calc(100vw - 32px); padding: 11px 16px;
  border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; box-shadow: var(--shadow-pop); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Документация ---------- */
.docs { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 40px; align-items: start; }
.toc { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.toc b { font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 0 10px 6px; }
.toc a { padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.toc a:hover { background: var(--surface); color: var(--accent-ink); text-decoration: none; }
.doc { min-width: 0; max-width: 780px; }
.doc-head h1 { font-size: 36px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.doc-head .lead { margin-top: 10px; font-size: 16.5px; }
.doc-sec { padding-top: 36px; }
.doc-sec > h2 { font-size: 24px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.doc-sec h3 { font-size: 17px; font-weight: 800; margin: 26px 0 10px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 10px; }
.doc ul, .doc ol { padding-left: 20px; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.doc :not(pre) > code { padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); overflow-wrap: anywhere; }
.num-list li::marker { font-weight: 800; color: var(--accent); }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.way { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.way:hover { border-color: var(--accent); text-decoration: none; }
.way b { font-weight: 800; color: var(--accent-ink); }
.way span { font-size: 14px; color: var(--ink-2); }
.ep { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.ep-h { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.ep-path { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; background: none !important; padding: 0 !important; }
.verb { flex: none; font: 700 11.5px/1 var(--mono); padding: 5px 7px; border-radius: 6px; background: var(--good-soft); color: var(--good); }
.verb.post { background: var(--accent-soft); color: var(--accent-ink); }
.ep-b { padding: 12px 14px 14px; min-width: 0; }
.ep-b > :first-child { margin-top: 0; }
.ep-b > .code:first-child { margin-top: 2px; }
.doc .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Телефон ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 12px 0 40px; }
  .app-grid { grid-template-columns: minmax(0, 1fr); }
  .docs { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc b { display: none; }
  .toc a { background: var(--surface); border: 1px solid var(--line); padding: 5px 10px; font-size: 13px; }
}
@media (max-width: 640px) {
  .top-in { padding: 0 16px; gap: 8px; height: 56px; }
  .brand-t, .who-name, .out span { display: none; }
  .out { width: 34px; padding: 0; }
  .nav-link { padding: 7px 9px; font-size: 14px; }
  .main { padding: 20px 16px 48px; }
  .foot { padding: 16px 16px 24px; }
  .page-head h1 { font-size: 24px; }
  .lead { font-size: 16px; }
  .hero-acts .btn { flex: 1 1 auto; }
  .steps3, .facts, .ways, .doc .facts { grid-template-columns: minmax(0, 1fr); }
  .card.pad { padding: 16px; }
  .apps { grid-template-columns: minmax(0, 1fr); }
  .demo-ask { right: 0; }
  .doc-head h1 { font-size: 28px; }
  .doc-sec > h2, .band > h2 { font-size: 21px; }
  .modal { padding: 20px 16px; }
  .modal-acts .btn { flex: 1 1 auto; }
  .state .btn, .danger-zone .btn { width: 100%; }
  .code pre { font-size: 12.5px; padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.tab-body > div > .small { margin-top: 12px; }
