/* Публичный сайт «Ключ Онлайн»: главная, тарифы, статьи. Макет — docs/design/site-handoff-2026-10-30.
   Кабинет и страницы входа пока на cabinet.css — их перерисуем отдельно. */

/* IBM Plex Sans лежит у нас: с Google Fonts в России бывает медленно, и незачем отдавать Google адреса посетителей.
   Файлы переменные (100–700), поэтому одна запись на подмножество. ₽ — в latin-ext. */
@font-face { font-family:'IBM Plex Sans'; font-style:normal; font-weight:100 700; font-display:swap;
  src:url(fonts/plex-cyrillic.woff2) format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'IBM Plex Sans'; font-style:normal; font-weight:100 700; font-display:swap;
  src:url(fonts/plex-latin-ext.woff2) format('woff2'); unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family:'IBM Plex Sans'; font-style:normal; font-weight:100 700; font-display:swap;
  src:url(fonts/plex-latin.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; }

/* ---------------------------------------------------------------- токены */
:root {
  --bg:#f5f3ef; --card:#fffdf9; --text:#1f1d1a; --muted:#67625a; --line:#e6e1d8; --line-strong:#d3ccc0;
  --accent:#0e6b73; --accent-hover:#0a5960; --accent-soft:#e1efee; --on-accent:#fff;
  --ok:#2b8446; --ok-soft:#e4f1e7; --err:#c2462f; --err-soft:#f9e8e3; --warn:#8a5a00; --warn-soft:#f8eedb;
  --shadow:0 1px 2px rgba(40,30,20,.04),0 10px 30px rgba(40,30,20,.06);
  --pad:clamp(16px,4vw,32px);
  color-scheme:light;
}
@media (prefers-color-scheme:dark) { :root:not([data-theme=light]) {
  --bg:#151413; --card:#1e1c1a; --text:#ece8e1; --muted:#a39d93; --line:#2e2b27; --line-strong:#403b35;
  --accent:#4fc1c6; --accent-hover:#72d1d5; --accent-soft:#16302f; --on-accent:#0b1a1b;
  --ok:#5cc97c; --ok-soft:#18301f; --err:#f08a72; --err-soft:#3a221c; --warn:#e8b75a; --warn-soft:#33291a;
  --shadow:none; color-scheme:dark;
} }
:root[data-theme=dark] {
  --bg:#151413; --card:#1e1c1a; --text:#ece8e1; --muted:#a39d93; --line:#2e2b27; --line-strong:#403b35;
  --accent:#4fc1c6; --accent-hover:#72d1d5; --accent-soft:#16302f; --on-accent:#0b1a1b;
  --ok:#5cc97c; --ok-soft:#18301f; --err:#f08a72; --err-soft:#3a221c; --warn:#e8b75a; --warn-soft:#33291a;
  --shadow:none; color-scheme:dark;
}

/* ---------------------------------------------------------------- база */
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--bg); color:var(--text); font-family:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:16px; line-height:1.55; -webkit-font-smoothing:antialiased; }
a { color:var(--accent); } a:hover { color:var(--accent-hover); }
h1,h2,h3 { text-wrap:balance; margin:0; } p { text-wrap:pretty; margin:0; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
summary { list-style:none; cursor:pointer; } summary::-webkit-details-marker { display:none; }
svg { flex:none; }
.page { min-height:100vh; display:flex; flex-direction:column; }
.page > main { flex:1; }
.container { max-width:1200px; margin:0 auto; padding:0 var(--pad); }
.muted { color:var(--muted); }
.nolink { text-decoration:none; }

/* ---------------------------------------------------------------- кнопки */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border-radius:8px; text-decoration:none;
  font:inherit; font-weight:600; cursor:pointer; border:1px solid transparent; white-space:nowrap; }
.btn-primary { background:var(--accent); color:var(--on-accent); }
.btn-primary:hover { background:var(--accent-hover); color:var(--on-accent); }
.btn-secondary { background:var(--card); color:var(--text); border-color:var(--line-strong); font-weight:500; }
.btn-secondary:hover { border-color:var(--muted); color:var(--text); }
.btn-sm { height:40px; padding:0 16px; font-size:15px; }
.btn-lg { height:54px; padding:0 28px; font-size:17px; }
.btn-md { height:52px; padding:0 24px; font-size:16px; }
.btn-block { display:flex; width:100%; }

/* ---------------------------------------------------------------- шапка */
.site-header { position:sticky; top:0; z-index:30; background:color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter:saturate(1.4) blur(10px); -webkit-backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.site-header .bar { height:64px; display:flex; align-items:center; gap:28px; }
.logo { display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-weight:700; font-size:18px;
  letter-spacing:-0.01em; white-space:nowrap; }
.logo:hover { color:var(--text); }
.logo-mark { width:30px; height:30px; border-radius:8px; background:var(--accent); color:var(--on-accent); display:grid; place-items:center; }
.nav { display:flex; gap:4px; }
.nav a { padding:8px 12px; border-radius:8px; color:var(--text); text-decoration:none; font-size:15px; }
.nav a:hover { background:var(--card); }
.hdr-actions { margin-left:auto; display:flex; align-items:center; gap:8px; }
.hdr-short, .burger { display:none; }
.burger { width:44px; height:44px; border-radius:8px; border:1px solid var(--line-strong); background:var(--card); color:var(--text);
  place-items:center; cursor:pointer; padding:0; }
.mobile-menu { border-top:1px solid var(--line); background:var(--bg); padding:8px var(--pad) 16px; display:grid; gap:2px; }
.mobile-menu[hidden] { display:none; }
.mobile-menu a { padding:12px 4px; color:var(--text); text-decoration:none; font-size:17px; border-bottom:1px solid var(--line); }
.mobile-menu a.btn { margin-top:12px; height:48px; border:1px solid var(--line-strong); font-weight:500; }
@media (max-width:959px) {
  .site-header .bar { gap:12px; }
  .nav, .hdr-wide { display:none; }
  .hdr-short { display:inline-flex; height:44px; padding:0 16px; font-size:15px; }
  .burger { display:grid; }
}
@media (min-width:960px) { .mobile-menu { display:none !important; } }

/* ---------------------------------------------------------------- подвал */
.site-footer { border-top:1px solid var(--line); background:var(--card); }
.site-footer .container { padding-top:40px; padding-bottom:32px; display:grid; gap:28px; }
.foot-top { display:flex; flex-wrap:wrap; gap:24px 48px; justify-content:space-between; align-items:flex-start; }
.foot-about { display:grid; gap:8px; max-width:340px; }
.foot-name { font-weight:700; font-size:17px; }
.foot-about p { color:var(--muted); font-size:14px; line-height:1.5; }
.foot-nav { display:flex; flex-wrap:wrap; gap:12px 28px; font-size:15px; }
.foot-nav a { color:var(--text); text-decoration:none; } .foot-nav a:hover { color:var(--accent); }
.foot-nav a.mail { color:var(--accent); }
.foot-bottom { border-top:1px solid var(--line); padding-top:20px; color:var(--muted); font-size:13px; display:flex; flex-wrap:wrap;
  gap:8px 24px; justify-content:space-between; }

/* ---------------------------------------------------------------- секции и общие блоки */
.section { padding:clamp(56px,8vw,104px) 0; border-top:1px solid var(--line); scroll-margin-top:64px; }
.section.plain { border-top:0; }
.section.filled { background:var(--card); border-bottom:1px solid var(--line); }
.stack { display:grid; gap:40px; }
.stack-32 { display:grid; gap:32px; }
.h2 { font-size:clamp(26px,3.2vw,38px); line-height:1.15; letter-spacing:-0.02em; font-weight:700; }
.lead { color:var(--muted); font-size:17px; }
.grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,var(--min,250px)),1fr)); gap:16px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:24px; display:grid; gap:10px; align-content:start; }
.card h3 { font-size:18px; line-height:1.3; }
.card p { color:var(--muted); font-size:15px; }
.pill { display:inline-flex; align-items:center; gap:8px; font-size:15px; font-weight:500; background:var(--card);
  border:1px solid var(--line); border-radius:999px; padding:8px 14px; }
.icon-box { width:44px; height:44px; border-radius:10px; background:var(--accent-soft); color:var(--accent); display:grid; place-items:center; flex:none; }
.icon-box.sm { width:40px; height:40px; }
.note { color:var(--muted); font-size:15px; display:flex; gap:10px; align-items:flex-start; }
.note svg { margin-top:2px; }

/* ---------------------------------------------------------------- hero */
.hero { background:radial-gradient(70% 60% at 85% 10%, var(--accent-soft), transparent 70%); border-bottom:1px solid var(--line); }
.hero-grid { padding-top:clamp(40px,7vw,96px); padding-bottom:clamp(48px,7vw,96px); display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr)); gap:clamp(40px,5vw,64px); align-items:center; }
.hero-copy { display:grid; gap:24px; justify-items:start; }
.hero-badge { font-size:14px; font-weight:500; color:var(--accent); background:var(--card); border:1px solid var(--line); padding:6px 12px; border-radius:999px; }
.hero h1 { font-size:clamp(34px,5vw,56px); line-height:1.08; letter-spacing:-0.03em; font-weight:700; }
.hero-sub { font-size:clamp(17px,1.6vw,20px); line-height:1.5; color:var(--muted); max-width:34em; }
.cta-group { display:grid; gap:10px; justify-items:start; margin-top:4px; }
.cta-note { color:var(--muted); font-size:14px; }
.hero-more { font-weight:500; text-decoration:none; }

/* Схема в hero: два «компьютера» и связь между ними. Уже 600px — вертикально. */
.scheme { margin:0; display:grid; gap:18px; }
.scheme-row { display:flex; align-items:center; justify-content:center; }
.dev { flex:1 1 0; min-width:0; width:100%; max-width:250px; display:grid; gap:10px; }
.dev-label { font-size:13px; color:var(--muted); font-weight:500; }
.monitor { background:var(--card); border:1.5px solid var(--line-strong); border-radius:12px; padding:8px; box-shadow:var(--shadow); }
.laptop { border-radius:12px 12px 4px 4px; padding:8px 8px 10px; }
.screen { background:var(--bg); border-radius:6px; padding:12px; display:grid; gap:10px; font-size:12px; }
.screen.browser { padding:0; gap:0; overflow:hidden; }
.app-head { display:flex; justify-content:space-between; align-items:center; gap:6px; }
.app-head strong { font-size:13px; }
.online { display:flex; align-items:center; gap:5px; color:var(--ok); font-weight:500; }
.dot { width:7px; height:7px; border-radius:50%; background:var(--ok); }
.cert-box { background:var(--card); border:1px solid var(--line); border-radius:6px; padding:8px; display:grid; gap:2px; }
.cert-box span:first-child { color:var(--muted); }
.cert-box span:last-child { font-weight:500; }
.req { background:var(--accent-soft); color:var(--accent); border-radius:6px; padding:7px 8px; font-weight:500; }
.stand { display:flex; align-items:flex-end; justify-content:center; gap:14px; margin-top:-10px; }
.stand-foot { display:grid; justify-items:center; }
.stand-neck { width:14px; height:18px; background:var(--line-strong); }
.stand-base { width:80px; height:5px; border-radius:3px; background:var(--line-strong); }
.token { display:flex; align-items:center; margin-bottom:2px; }
.token-plug { width:10px; height:8px; background:var(--muted); border-radius:1px; }
.token-body { height:18px; padding:0 8px; border-radius:4px; background:var(--text); color:var(--bg); font-size:10px; font-weight:600; display:grid; place-items:center; }
.browser-bar { display:flex; align-items:center; gap:5px; padding:7px 8px; border-bottom:1px solid var(--line); }
.browser-bar i { width:6px; height:6px; border-radius:50%; background:var(--line-strong); }
.browser-bar b { flex:1; margin-left:4px; height:14px; border-radius:4px; background:var(--card); border:1px solid var(--line); }
.browser-body { padding:12px; display:grid; gap:10px; }
.skel { height:6px; border-radius:3px; background:var(--line-strong); width:60%; }
.skel.light { background:var(--line); width:85%; }
.fake-btn { justify-self:start; background:var(--accent); color:var(--on-accent); border-radius:5px; padding:6px 10px; font-weight:600; }
.signed { display:flex; align-items:center; gap:6px; background:var(--ok-soft); color:var(--ok); border-radius:6px; padding:7px 8px; font-weight:500; }
.laptop-base { height:8px; margin:-10px -14px 0; border-radius:0 0 10px 10px; background:var(--line-strong); }
.conn { flex:0 0 132px; position:relative; height:120px; display:grid; place-items:center; }
.conn-line { position:absolute; left:6px; right:6px; top:50%; border-top:2px dashed var(--accent); opacity:.6; }
.conn-req, .conn-sig { position:absolute; left:0; right:0; text-align:center; font-size:11px; color:var(--muted); }
.conn-req { top:18px; } .conn-sig { bottom:18px; }
.conn .v { display:none; }
.lock { position:relative; width:40px; height:40px; border-radius:50%; background:var(--card); border:1.5px solid var(--accent); color:var(--accent); display:grid; place-items:center; }
.scheme figcaption { justify-self:center; display:flex; align-items:center; gap:8px; font-size:14px; background:var(--card);
  border:1px solid var(--line); border-radius:999px; padding:8px 14px; text-align:center; }
@media (max-width:599px) {
  .scheme-row { flex-direction:column; }
  .conn { flex:none; width:100%; }
  .conn-line { left:50%; right:auto; top:6px; bottom:6px; border-top:0; border-left:2px dashed var(--accent); }
  .conn-req, .conn-sig { top:50%; bottom:auto; left:auto; right:auto; transform:translateY(-50%); font-size:12px; }
  .conn-req { right:calc(50% + 32px); text-align:right; }
  .conn-sig { left:calc(50% + 32px); text-align:left; }
  .conn .h { display:none; } .conn .v { display:inline; }
}

/* ---------------------------------------------------------------- блоки главной */
.summary-line { font-size:clamp(18px,2vw,22px); line-height:1.45; max-width:36em; }
.head-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:end; gap:16px; }
.steps { list-style:none; margin:0; padding:0; --min:300px; }
.steps .card { padding:28px 24px; gap:14px; }
.steps h3 { font-size:19px; }
.step-top { display:flex; justify-content:space-between; align-items:center; }
.step-num { font-size:40px; font-weight:700; color:var(--line-strong); line-height:1; }
.where .card { padding:28px 24px; gap:16px; }
.where h3 { font-size:19px; display:flex; align-items:center; gap:10px; }
.where .card > p { color:var(--text); font-size:16px; }
.mark { width:30px; height:30px; border-radius:50%; display:grid; place-items:center; }
.mark.yes { background:var(--ok-soft); color:var(--ok); } .mark.no { background:var(--err-soft); color:var(--err); }
.chips { list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.chips li { font-size:14px; padding:6px 12px; border-radius:999px; background:var(--bg); border:1px solid var(--line); }
.no-list { margin:0; padding:0 0 0 20px; display:grid; gap:8px; font-size:16px; }
.hint { background:var(--accent-soft); border-radius:12px; padding:20px 24px; display:flex; flex-wrap:wrap; align-items:center;
  justify-content:space-between; gap:16px; }
.hint p { font-size:17px; max-width:44em; display:flex; gap:12px; align-items:flex-start; }
.hint p svg { margin-top:1px; }
.hint a { font-weight:600; text-decoration:none; white-space:nowrap; }
.split { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,440px),1fr)); gap:clamp(40px,5vw,72px); align-items:start; }
.sec-list { list-style:none; margin:0; padding:0; display:grid; gap:20px; }
.sec-list li { display:flex; gap:16px; align-items:flex-start; }
.sec-list li span:last-child { padding-top:8px; }
.journal { background:var(--bg); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.journal-head { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; border-bottom:1px solid var(--line); }
.journal-head strong { font-size:15px; } .journal-head span { font-size:13px; color:var(--muted); }
.journal-row { display:grid; grid-template-columns:52px minmax(0,1fr) auto; gap:12px; padding:14px 18px; border-bottom:1px solid var(--line);
  font-size:14px; align-items:center; }
.journal-row:last-child { border-bottom:0; }
.journal-row .t { color:var(--muted); font-variant-numeric:tabular-nums; }
.journal-row .who { display:grid; min-width:0; }
.journal-row .who b { font-weight:500; } .journal-row .who span { color:var(--muted); font-size:13px; }
.journal-row .st { color:var(--ok); font-size:13px; font-weight:500; } .journal-row .st.login { color:var(--muted); }
.cmp-rows { display:grid; gap:8px; }
.cmp-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr)); gap:4px 32px; padding:18px 24px;
  background:var(--card); border:1px solid var(--line); border-radius:12px; }
.cmp-row [role=rowheader] { font-weight:600; } .cmp-row [role=cell] { color:var(--muted); }
.cmp-row.ours { padding:20px 24px; background:var(--accent-soft); border:1.5px solid var(--accent); }
.cmp-row.ours [role=rowheader] { font-weight:700; color:var(--accent); } .cmp-row.ours [role=cell] { color:var(--text); font-weight:500; }
.pricing { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr)); gap:clamp(32px,5vw,72px); align-items:start; }
.pricing-text { display:grid; gap:16px; } .pricing-text .lead { max-width:28em; }
.pricing-text a { font-weight:500; text-decoration:none; }
.pricing .price-card { max-width:520px; justify-self:end; }
.narrow { max-width:880px; }
.art-cards { --min:320px; }
a.card { text-decoration:none; color:var(--text); }
a.card:hover { border-color:var(--accent); color:var(--text); }
a.card h3 { line-height:1.35; }
.final { background:var(--accent); color:var(--on-accent); border-radius:12px; padding:clamp(32px,5vw,64px); display:grid; gap:20px; justify-items:start; }
.final h2 { font-size:clamp(26px,3.4vw,40px); line-height:1.15; letter-spacing:-0.02em; max-width:18em; }
.final .btn { background:var(--card); color:var(--text); }
.final .btn:hover { background:var(--bg); color:var(--text); }
.final span { font-size:14px; }
.section.cta-wrap { border-top:0; padding-top:0; }

/* ---------------------------------------------------------------- FAQ (главная и статьи) */
.faq { display:grid; border-top:1px solid var(--line); }
.faq details { border-bottom:1px solid var(--line); }
.faq summary { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:20px 0; font-weight:600; font-size:17px; }
.faq summary svg { transition:transform .2s; }
.faq details[open] > summary svg { transform:rotate(45deg); }
.faq details > :not(summary) { margin:0 0 20px; color:var(--muted); max-width:40em; }

/* ---------------------------------------------------------------- карточка тарифа */
.price-card { width:100%; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:clamp(20px,3vw,32px);
  display:flex; flex-direction:column; gap:22px; box-shadow:var(--shadow); }
.pc-head { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; }
.pc-head > div { font-weight:600; font-size:17px; }
.badge-ok { font-size:13px; font-weight:600; color:var(--ok); background:var(--ok-soft); padding:5px 10px; border-radius:999px; }
.pc-price { display:grid; gap:6px; }
.pc-amount { display:flex; align-items:baseline; gap:6px; }
.pc-amount b { font-size:clamp(40px,5vw,48px); font-weight:700; letter-spacing:-0.03em; line-height:1; }
.pc-amount span, .pc-price > div:last-child { color:var(--muted); }
.pc-amount span { font-size:17px; } .pc-price > div:last-child { font-size:15px; }
.pc-extra { display:flex; align-items:baseline; gap:10px; padding:14px 16px; background:var(--bg); border-radius:8px; font-size:15px; line-height:1.4; }
.pc-extra strong { white-space:nowrap; } .pc-extra span { color:var(--muted); }
.calc { border:1px solid var(--line); border-radius:8px; padding:16px; display:grid; gap:14px; }
.calc-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.calc-row label { font-size:15px; font-weight:500; }
.stepper { display:flex; align-items:center; border:1px solid var(--line-strong); border-radius:8px; overflow:hidden; }
.stepper button { width:44px; height:44px; border:0; background:var(--card); color:var(--text); font:inherit; font-size:20px; cursor:pointer; }
.stepper button:hover { background:var(--bg); }
.stepper output { min-width:44px; text-align:center; font-weight:600; font-size:17px; font-variant-numeric:tabular-nums; }
.calc-total { display:flex; justify-content:space-between; align-items:baseline; gap:12px; border-top:1px dashed var(--line); padding-top:14px; }
.calc-total > div { display:grid; gap:2px; } .calc-total > div span:first-child { font-size:15px; }
.calc-total > div span:last-child { color:var(--muted); font-size:13px; }
.calc-total strong { font-size:24px; letter-spacing:-0.02em; font-variant-numeric:tabular-nums; white-space:nowrap; }
.checks { list-style:none; margin:0; padding:0; display:grid; gap:10px; font-size:15px; }
.checks li { display:flex; gap:10px; align-items:flex-start; } .checks svg { margin-top:2px; }
.pc-cta { display:grid; gap:8px; } .pc-cta div { text-align:center; color:var(--muted); font-size:13px; }
.pc-foot { color:var(--muted); font-size:13px; line-height:1.5; }

/* ---------------------------------------------------------------- внутренние страницы */
.inner { padding:clamp(40px,6vw,80px) 0 clamp(56px,8vw,104px); }
.inner .container { display:grid; gap:clamp(32px,4vw,48px); }
.page-head { display:grid; gap:12px; }
.page-head h1 { font-size:clamp(32px,4.4vw,48px); line-height:1.1; letter-spacing:-0.03em; font-weight:700; }
.page-head p { max-width:36em; }
.two-col { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr)); gap:24px; align-items:start; }
.panel { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:clamp(20px,3vw,32px); display:grid; gap:12px; }
.panel h2 { font-size:20px; }
.panel .big-mail { font-size:clamp(18px,2vw,22px); font-weight:600; text-decoration:none; word-break:break-all; }
.req-list { margin:0; display:grid; }
.req-list > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr)); gap:2px 16px; padding:12px 0; border-top:1px solid var(--line); }
.req-list dt { color:var(--muted); } .req-list dd { margin:0; font-variant-numeric:tabular-nums; }
.links-row { display:flex; flex-wrap:wrap; gap:8px 20px; font-size:15px; } .links-row a { text-decoration:none; }

/* ---------------------------------------------------------------- статья */
.article-main { padding:clamp(32px,5vw,64px) var(--pad) clamp(56px,8vw,104px); }
.prose { max-width:680px; margin:0 auto; display:grid; gap:24px; font-size:18px; line-height:1.65; }
.crumbs { font-size:14px; color:var(--muted); display:flex; gap:8px; flex-wrap:wrap; }
.crumbs a { text-decoration:none; }
.prose > header { display:grid; gap:14px; }
.prose h1 { font-size:clamp(30px,4.4vw,44px); line-height:1.12; letter-spacing:-0.025em; font-weight:700; }
.meta { font-size:14px; color:var(--muted); display:flex; gap:8px 16px; flex-wrap:wrap; }
.toc { background:var(--card); border:1px solid var(--line); border-radius:12px; padding:20px 24px; font-size:16px; line-height:1.5; }
.prose .toc h2 { margin:0 0 10px; font-size:15px; font-weight:600; color:var(--muted); }
.toc ol { margin:0; padding-left:20px; display:grid; gap:6px; }
.toc a { text-decoration:none; }
.prose h2 { margin-top:16px; font-size:clamp(23px,2.6vw,28px); line-height:1.25; letter-spacing:-0.015em; scroll-margin-top:80px; }
.prose h3 { margin-top:4px; font-size:20px; }
.prose ul, .prose ol { margin:0; padding-left:24px; display:grid; gap:6px; }
.prose .toc ol { gap:6px; }
.callout { background:var(--warn-soft); border-radius:12px; padding:18px 20px; display:grid; gap:6px; font-size:16px; line-height:1.55; }
.callout strong { color:var(--warn); font-size:14px; letter-spacing:.02em; }
.verdict { background:var(--accent-soft); border-radius:12px; padding:14px 18px; font-size:16px; line-height:1.55; }
.table-box { overflow-x:auto; border:1px solid var(--line); border-radius:12px; background:var(--card); }
.table-box table { width:100%; border-collapse:collapse; font-size:15px; line-height:1.45; min-width:480px; }
.table-box th, .table-box td { padding:12px 16px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }
.table-box th { font-weight:600; }
.table-box tr:last-child td { border-bottom:0; }
/* Таблица «критерий × три способа»: на телефоне критерий — строкой на всю ширину, под ним три способа рядом. */
@media (max-width:560px) {
  .table-box table.stack-sm { min-width:0; }
  .table-box .stack-sm, .table-box .stack-sm tbody { display:block; }
  .table-box .stack-sm tr { display:grid; grid-template-columns:repeat(3,1fr); column-gap:10px; border-bottom:1px solid var(--line); padding:10px 14px; }
  .table-box .stack-sm tr:last-child { border-bottom:0; }
  .table-box .stack-sm th, .table-box .stack-sm td { border:0; padding:2px 0; font-size:14px; }
  .table-box .stack-sm tr:first-child th:first-child { display:none; }
  .table-box .stack-sm td:first-child { grid-column:1 / -1; font-weight:600; }
}
.prose .faq { font-size:16px; }
.prose .faq summary { padding:18px 0; }
.prose .faq details > :not(summary) { margin-bottom:18px; }
/* Инструкция по расширению (/extension.html): шаги, врезка-подсказка, сетка адресов. */
.prose.ext { font-size:17px; }
.prose code, .addr code { font-family:ui-monospace,'SF Mono',Menlo,Consolas,monospace; font-size:.85em; background:var(--card);
  border:1px solid var(--line); border-radius:6px; padding:1px 6px; overflow-wrap:anywhere; }
.ext-steps { list-style:none; margin:0; padding:0 !important; display:grid; gap:0 !important; }
.ext-steps li { display:flex; gap:14px; align-items:flex-start; padding:14px 0; border-top:1px solid var(--line); }
.ext-steps li:first-child { border-top:0; padding-top:0; }
.ext-steps li > span:first-child { width:32px; height:32px; border-radius:50%; background:var(--accent-soft); color:var(--accent);
  display:grid; place-items:center; font-weight:700; font-size:15px; flex:none; }
.ext-steps li > span:last-child { padding-top:3px; min-width:0; }
.info { background:var(--accent-soft); border-radius:12px; padding:16px 18px; display:flex; gap:12px; align-items:flex-start; font-size:16px; line-height:1.55; }
.info svg { color:var(--accent); margin-top:2px; }
.addr { border:1px solid var(--line); border-radius:12px; background:var(--card); overflow:hidden; font-size:15px; line-height:1.5; }
.addr > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:4px 24px; padding:14px 18px; border-top:1px solid var(--line); }
.addr > div:first-child { border-top:0; font-size:13px; font-weight:500; color:var(--muted); }
.addr > div > span:first-child { font-weight:600; }
.addr > div:first-child > span:first-child { font-weight:500; }
@media (max-width:519px) { .addr > div:first-child { display:none; } .addr > div:nth-child(2) { border-top:0; } }
.prose details.more { border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.prose details.more summary { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:16px 0; font-weight:600; }
.prose details.more summary svg { transition:transform .2s; }
.prose details.more[open] summary svg { transform:rotate(45deg); }
.prose details.more p { margin:0 0 16px; color:var(--muted); font-size:16px; }
.article-cta { margin-top:16px; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:clamp(24px,4vw,36px);
  display:grid; gap:14px; justify-items:start; box-shadow:var(--shadow); }
.article-cta h2 { margin:0; font-size:22px; line-height:1.3; }
.article-cta p { color:var(--muted); font-size:16px; }
.article-cta .row { display:flex; flex-wrap:wrap; gap:10px; }
.article-cta span { color:var(--muted); font-size:13px; }
