/*
 * ДАРА ОТПЕЧАТОК — сайт и документация.
 * Дизайн-система общая с core.daratech.ru: те же токены, шрифты (Unbounded — заголовки, Onest — текст),
 * кнопки, шапка, секции, подвал и раскладка документации. Шрифты подключает css/fonts.css.
 */

:root {
  --ink: #141210;
  --ink-soft: #3b3733;
  --muted: #6c665f;
  --faint: #9a938a;
  --line: #e8e3db;
  --line-strong: #d5cdc2;
  --paper: #f7f4ef;
  --white: #ffffff;
  --accent: #E8481C;
  --accent-dk: #c23a12;
  --accent-soft: #fdeee7;
  --dark: #121110;
  --dark-2: #1b1917;
  --dark-line: #2e2b28;
  --on-dark: #eee9e2;
  --on-dark-muted: #a8a197;
  --ok: #1f7a4d;
  --ok-soft: #e6f4ec;
  --error: #b42318;
  --error-soft: #fef0ee;
  --radius: 14px;
  --radius-sm: 8px;
  --hdr-h: 68px;
  --display: 'Unbounded', 'Onest', 'Segoe UI', Roboto, Arial, sans-serif;
  --text: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'Cascadia Mono', 'Segoe UI Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body { margin: 0; font-family: var(--text); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
code { font-family: var(--mono); font-size: .88em; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 200; background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--radius-sm); text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid transparent; font: 600 15px/1.2 var(--text); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s; white-space: nowrap; }
.btn--lg { min-height: 52px; padding: 13px 26px; font-size: 16px; }
.btn--accent { background: var(--accent); color: var(--white); }
.btn--accent:hover { background: var(--accent-dk); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost-light { background: transparent; color: var(--on-dark); border-color: var(--dark-line); }
.btn--ghost-light:hover { border-color: var(--on-dark-muted); }
.btn:active { transform: translateY(1px); }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); }
.hdr__in { display: flex; align-items: center; gap: 28px; min-height: var(--hdr-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand__logo { display: block; border-radius: 8px; }
.brand__name { font: 700 19px/1 var(--display); letter-spacing: .06em; }   /* как у core и analytics: знак 32 / 28, название 19 px */
.brand--light { color: var(--white); }
.hdr__menu { display: flex; align-items: center; gap: 24px; flex: 1; justify-content: space-between; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav__link { font-size: 15px; font-weight: 500; color: var(--ink-soft); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.nav__link--out::after { content: '↗'; margin-left: 3px; font-size: 12px; color: var(--faint); }
.hdr__cta { display: flex; gap: 10px; }
.menu-toggle { display: none; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle:focus-visible + .burger { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 1040px) {
  .hdr__in { flex-wrap: wrap; gap: 0; }
  .burger { display: flex; }
  .menu-toggle { display: block; }
  .hdr__menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 20px; }
  .menu-toggle:checked ~ .hdr__menu { display: flex; }
  .menu-toggle:checked + .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .burger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked + .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 12px 2px; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav__link.is-active { border-bottom-color: var(--line); color: var(--accent-dk); }
  .hdr__cta { padding-top: 12px; }
  .hdr__cta .btn { flex: 1; }
}

/* ---------- Первый экран ---------- */
.hero { position: relative; padding: 72px 0 88px; overflow: hidden; background:
  radial-gradient(circle at 1px 1px, rgba(20, 18, 16, .07) 1px, transparent 0) 0 0 / 22px 22px,
  linear-gradient(180deg, #fff 0%, #fbf9f6 100%); }
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.kicker__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero__title { font: 600 clamp(29px, 3.9vw, 48px)/1.12 var(--display); letter-spacing: -.02em; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 22px; max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 44px 0 0; padding: 22px 0 0; list-style: none; border-top: 1px dashed var(--line-strong); }
.hero__facts li { font-size: 14px; line-height: 1.45; color: var(--muted); }
.hero__facts strong { display: block; margin-bottom: 4px; font: 600 14px/1.3 var(--display); color: var(--ink); }

/* ---------- Живой отпечаток в первом экране ---------- */
.demo { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(20, 18, 16, .03), 0 18px 40px -26px rgba(20, 18, 16, .35); overflow: hidden; }
.demo__head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.demo__head-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.demo__body { padding: 20px; }
.demo__visitor { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-strong); }
.demo__visitor-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dk); font-size: 20px; }
.demo__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.demo__id { margin-top: 3px; font: 600 14px/1.3 var(--mono); color: var(--accent-dk); overflow-wrap: anywhere; }
.demo__id--loading { color: var(--faint); font-weight: 400; }
.demo__data-grid { margin-top: 4px; }
.demo__data-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); }
.demo__data-row:last-child { border-bottom: 0; }
.demo__data-key { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.demo__data-val { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); overflow-wrap: anywhere; }
.demo__data-val--geo { color: var(--accent-dk); }
.demo__vpn--detected { color: var(--error); font-weight: 600; }
.demo__vpn--clean { color: var(--ok); font-weight: 600; }
.demo__history { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.demo__history-title { margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.demo__history-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.demo__history-row:last-child { border-bottom: 0; }
.demo__history-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--accent); }
.demo__history-dot--past { background: var(--line-strong); }
.demo__history-date { min-width: 52px; color: var(--muted); }
.demo__history-info { flex: 1; font-weight: 600; }
.demo__history-device { font-size: 12px; color: var(--muted); }
.demo__signals { display: flex; flex-wrap: wrap; gap: 6px; }
.demo__signal { display: inline-block; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 12px; color: var(--muted); }
.demo__signal.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dk); font-weight: 600; }

/* ---------- Секции ---------- */
.section { padding: 96px 0; border-bottom: 1px solid var(--line); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--dark); color: var(--on-dark); border-bottom-color: var(--dark); }
.section__head { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; margin-bottom: 48px; max-width: 900px; }
.section__num { font: 500 15px/1.9 var(--display); color: var(--accent); letter-spacing: .04em; }
.section__num::after { content: ''; display: block; width: 36px; height: 2px; margin-top: 8px; background: var(--accent); }
.section__num--light { margin-bottom: 18px; }
.section__title { font: 600 clamp(26px, 3.2vw, 40px)/1.15 var(--display); letter-spacing: -.02em; }
.section__title em { font-style: normal; color: var(--accent); }
.section__lead { margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 720px; }
.section--dark .section__lead { color: var(--on-dark-muted); }
.section__lead code { color: var(--accent-dk); }

/* ---------- Что получает сайт: карточки ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card__title { font: 600 18px/1.3 var(--display); letter-spacing: -.01em; }
.card__text { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); flex: 1; }

/* ---------- Применение: раскрывающиеся блоки ---------- */
.uses { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.uses__intro { position: sticky; top: calc(var(--hdr-h) + 32px); }
.uses__list { border-top: 1px solid var(--line-strong); }
.use { border-bottom: 1px solid var(--line); }
.use__btn { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 2px; background: none; border: 0; text-align: left; cursor: pointer; font: 600 17px/1.35 var(--display); color: var(--ink); list-style: none; }
.use__btn::-webkit-details-marker { display: none; }
.use__btn:hover { color: var(--accent-dk); }
.use__mark { display: inline-grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line-strong); color: var(--muted); font-size: 15px; line-height: 1; transition: transform .2s, border-color .15s, color .15s; }
.use[open] .use__mark { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.use__body { padding: 0 40px 22px 2px; font-size: 15px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- Как это работает ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.step { padding: 28px 24px 8px 0; border-right: 1px dashed var(--line-strong); }
.step + .step { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step__num { font: 600 46px/1 var(--display); color: var(--accent); letter-spacing: -.03em; }
.step__title { margin-top: 18px; font: 600 17px/1.3 var(--display); }
.step__text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.note { margin-top: 48px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 24px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.note__title { font: 600 16px/1.35 var(--display); }
.note p:last-child { color: var(--ink-soft); line-height: 1.65; }
.note a { color: var(--accent-dk); text-underline-offset: 3px; }

/* ---------- Для разработчика ---------- */
.dev { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.dev__intro { position: sticky; top: calc(var(--hdr-h) + 32px); }
.dev__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 30px 0 0; padding: 0; list-style: none; }
.dev__code { display: grid; gap: 16px; min-width: 0; }
.signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.signals li { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--dark-line); border-radius: 999px; font-size: 13.5px; color: var(--on-dark-muted); }
.signals li::before { content: '◈'; color: var(--accent); font-size: 10px; }
.term { border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--dark-2); overflow: hidden; }
.term__head { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--dark-line); font-size: 13px; font-weight: 600; color: var(--on-dark-muted); }
.term__step { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 10px/1 var(--display); }
.code { margin: 0; padding: 14px 16px 16px; overflow-x: auto; font: 13px/1.6 var(--mono); color: var(--on-dark-muted); white-space: pre; tab-size: 2; }
.code code { font: inherit; }
.t-key { color: #ffb38f; }
.t-str { color: #d9e7c1; }
.t-num, .t-lit { color: #9ec9ff; }
.t-com { color: #7f9c6f; }
.t-tag { color: #8c857b; }
.t-fn { color: #ffd68a; }

/* ---------- Подключение ---------- */
.join { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.join__steps { margin: 30px 0 0; padding: 0; list-style: none; counter-reset: join; display: grid; gap: 16px; }
.join__steps li { counter-increment: join; position: relative; padding-left: 44px; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }
.join__steps li::before { content: counter(join); position: absolute; left: 0; top: -1px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent-dk); font: 600 12px/1 var(--display); }
.join__steps strong { color: var(--ink); }
.join__steps a, .join__mail a { color: var(--accent-dk); text-underline-offset: 3px; }
.join__mail { margin-top: 28px; font-size: 15px; color: var(--muted); }
.join__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Подвал ---------- */
.ftr { background: var(--dark); color: var(--on-dark-muted); padding: 64px 0 28px; }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--dark-line); }
.ftr__tag { margin-top: 16px; max-width: 280px; font-size: 14.5px; line-height: 1.55; }
.ftr__mail { margin-top: 14px; }
.ftr__mail a { color: var(--on-dark); text-underline-offset: 3px; }
.ftr__col { display: flex; flex-direction: column; gap: 10px; }
.ftr__title { margin-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #6f685f; }
.ftr__col a { color: var(--on-dark-muted); text-decoration: none; font-size: 14.5px; }
.ftr__col a:hover { color: var(--white); }
.ftr__fund { display: inline-block; margin-top: 24px; }
.ftr__fund img { display: block; width: 168px; height: auto; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 13px; color: #7d766c; }

/* ---------- Документация ---------- */
.docs { display: grid; grid-template-columns: 280px minmax(0, 1fr); max-width: 1320px; margin: 0 auto; min-height: calc(100vh - var(--hdr-h)); }
.docs__side { position: sticky; top: var(--hdr-h); align-self: start; max-height: calc(100vh - var(--hdr-h)); overflow-y: auto; padding: 32px 20px 40px 24px; border-right: 1px solid var(--line); }
.docs__main { min-width: 0; padding: 44px 56px 72px; }
.toc__group { margin: 24px 0 8px; padding-left: 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.toc__group:first-child { margin-top: 0; }
.toc__list { margin: 0; padding: 0; list-style: none; }
.toc__link { display: block; padding: 6px 10px; border-radius: 7px; font-size: 14.5px; line-height: 1.35; color: var(--ink-soft); text-decoration: none; }
.toc__link:hover, .toc__link.is-active { color: var(--accent-dk); background: var(--accent-soft); }
.toc__link.is-active { font-weight: 600; }
.toc-mobile { display: none; }
.doc { max-width: 820px; }
.doc__crumbs { font-size: 13px; color: var(--faint); }
.doc__crumbs a { color: var(--muted); text-decoration: none; }
.doc__crumbs a:hover { color: var(--accent-dk); }
.doc__title { margin-top: 10px; font: 600 clamp(28px, 3.6vw, 40px)/1.15 var(--display); letter-spacing: -.02em; }
.doc__lead { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--muted); }

.prose { margin-top: 12px; font-size: 16px; line-height: 1.75; color: var(--ink-soft); }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); font: 700 24px/1.3 var(--text); color: var(--ink); letter-spacing: -.01em; scroll-margin-top: calc(var(--hdr-h) + 16px); }
.prose > h2:first-child { margin-top: 36px; padding-top: 0; border-top: 0; }
.prose h3 { margin-top: 32px; font: 700 19px/1.35 var(--text); color: var(--ink); scroll-margin-top: calc(var(--hdr-h) + 16px); }
.prose h4 { margin-top: 24px; font: 700 15px/1.4 var(--text); color: var(--ink); }
.prose h2 code, .prose h3 code { font-size: .82em; }
.prose a { color: var(--accent-dk); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose li > ul, .prose li > ol { margin-top: 6px; }
.prose :not(pre) > code { padding: 1px 6px; border-radius: 5px; background: #f2eee8; color: #7c2d12; font-size: .86em; overflow-wrap: anywhere; }
.prose pre { margin: 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #faf8f5; font: 13.5px/1.65 var(--mono); color: var(--ink); tab-size: 4; }
.prose pre code { font: inherit; color: inherit; padding: 0; background: none; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th { padding: 10px 14px; text-align: left; vertical-align: bottom; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.prose td { padding: 10px 14px; vertical-align: top; border-top: 1px solid var(--line); }
.prose td, .prose th { min-width: 7.5em; }
.prose tr:first-child td { border-top: 0; }
.prose td:first-child code { white-space: nowrap; }
.prose blockquote { margin: 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.callout { margin-top: 32px; padding: 16px 20px; border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; background: var(--accent-soft); color: var(--ink-soft); line-height: 1.6; }
.callout a { color: var(--accent-dk); }
.prose .callout { margin-top: 16px; }

.basics { margin: 28px 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.basics__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 12px 18px; }
.basics__row + .basics__row { border-top: 1px solid var(--line); }
.basics dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.basics dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.basics a { color: var(--accent-dk); }

.doc-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: docstep; }
.doc-step { counter-increment: docstep; position: relative; padding: 0 0 4px 52px; }
.doc-step + .doc-step { margin-top: 28px; }
.doc-step::before { content: counter(docstep); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 14px/1 var(--display); }
.doc-step__title { font: 700 19px/1.35 var(--text); color: var(--ink); }
.doc-step .prose { margin-top: 10px; }

.method { display: inline-block; margin-right: 6px; padding: 2px 7px; border-radius: 5px; font: 700 11px/1.5 var(--mono); letter-spacing: .03em; }
.method--get { background: #e7eff8; color: #1e4f86; }
.method--post { background: #e5f2e8; color: #22643a; }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager__link { display: flex; flex-direction: column; gap: 2px; max-width: 48%; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-weight: 600; color: var(--ink); }
.pager__link:hover { border-color: var(--accent); color: var(--accent-dk); }
.pager__link--next { margin-left: auto; text-align: right; }
.pager__dir { font-size: 12px; font-weight: 600; color: var(--faint); }

/* ---------- Адаптив ---------- */
@media (max-width: 1040px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .cards { grid-template-columns: 1fr; }
  .uses, .dev, .join { grid-template-columns: 1fr; gap: 40px; }
  .uses__intro, .dev__intro { position: static; }
  .ftr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .docs { grid-template-columns: 1fr; }
  .docs__side { display: none; }
  .docs__main { padding: 24px 24px 56px; }
  .toc-mobile { display: block; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
  .toc-mobile__summary { padding: 12px 16px; font-weight: 600; cursor: pointer; }
  .toc-mobile .toc { padding: 0 8px 12px; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .section__head { grid-template-columns: 1fr; gap: 6px; margin-bottom: 32px; }
  .hero { padding: 44px 0 56px; }
  .hero__facts { grid-template-columns: 1fr; gap: 12px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0 6px; border-right: 0; }
  .step + .step { border-top: 1px dashed var(--line-strong); }
  .note { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .signals { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Ссылки подвала на телефоне — цель касания 44 px (было 23 px; повторный прогон 31.10.2026) */
  .ftr__col { gap: 0; }
  .ftr__col a { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .docs__main { padding: 20px 16px 48px; }
  .hero__actions .btn, .join__actions .btn { flex: 1 1 100%; }
  .demo__body { padding: 16px; }
  .demo__data-row { grid-template-columns: 1fr; gap: 0; }
  .ftr__grid { grid-template-columns: 1fr; gap: 28px; }
  .pager { flex-direction: column; }
  .pager__link { max-width: none; }
  .pager__link--next { margin-left: 0; }
  .prose { font-size: 15.5px; }
}
