/* ============================================================
   YAS — промо-страница v4 «Ведомость».
   Бумага, антиква, волосяные линейки, ссылки на нормы на полях.
   Mobile-first: базовые правила — 390, дальше min-width.
   ============================================================ */

:root {
  --paper: #faf8f3;
  --paper-card: #fffdf7;
  --paper-sunk: #f1eee6;
  --ink: #16150f;
  --ink-86: rgba(22, 21, 15, 0.86);
  --ink-72: rgba(22, 21, 15, 0.72);
  --ink-65: rgba(22, 21, 15, 0.65);
  --ink-60: rgba(22, 21, 15, 0.6);
  --ink-55: rgba(22, 21, 15, 0.55);
  --ink-45: rgba(22, 21, 15, 0.45);
  --ink-25: rgba(22, 21, 15, 0.25);
  --rule: rgba(22, 21, 15, 0.14);
  --rule-soft: rgba(22, 21, 15, 0.1);
  --rule-strong: rgba(22, 21, 15, 0.2);
  --blue: #125afe;
  --blue-dark: #0e45c8;
  --blue-rule: rgba(18, 90, 254, 0.38);

  --font-body: Literata, "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: 20px;
  --band-gap: 48px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
sup { font-size: 0.62em; color: var(--blue); }
::selection { background: rgba(18, 90, 254, 0.16); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -100vw; top: 0; z-index: 20;
  background: var(--ink); color: var(--paper);
  padding: 0.8rem 1.4rem; font-weight: 500; text-decoration: none;
}
.skip-link:focus { left: 1rem; }

.sprite { position: absolute; }

.label { color: var(--ink-45); font-weight: 400; }
.label.accent, .accent { color: var(--blue); }
.muted { color: var(--ink-45); }

/* ---------- шапка ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 68px; height: 32px; color: var(--ink); flex: none; }
.brand-sub { display: none; color: var(--ink-45); border-left: 1px solid var(--rule); padding-left: 18px; }

.nav-toggle {
  width: 44px; height: 44px; margin-right: -10px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; color: var(--ink);
}

.site-nav { flex-basis: 100%; }
.site-nav ul { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.site-nav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--blue); }

/* ---------- первый экран ---------- */

.hero { padding: 36px var(--gutter) 44px; }
.eyebrow { color: var(--blue); margin-bottom: 18px; }

h1 {
  font-size: clamp(34px, 9vw, 38px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.022em;
  text-wrap: pretty;
}
h1 br { display: none; }

.lead { margin-top: 20px; color: var(--ink-72); }

.cta-row { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 16px 24px;
  font-size: 17px; font-weight: 500; text-decoration: none;
  border: 1px solid transparent;
}
.btn-ic { width: 19px; height: 19px; flex: none; display: block; }
.btn-primary { background: var(--blue); color: var(--paper); }
.btn-primary:hover { background: var(--blue-dark); color: var(--paper); }
.btn-ghost { color: var(--ink); border-color: rgba(22, 21, 15, 0.28); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn-invert { background: var(--paper); color: var(--ink); }
.btn-invert:hover { color: var(--ink); background: #fff; }
.btn-ghost-invert { color: var(--paper); border-color: rgba(250, 248, 243, 0.35); }
.btn-ghost-invert:hover { color: var(--paper); border-color: var(--paper); }

.cta-note { color: var(--ink-55); text-align: center; margin-top: 6px; letter-spacing: 0.14em; }

/* ---------- на чём стоит ответ ---------- */

.sources { margin-top: 44px; border-top: 1px solid var(--rule-strong); padding-top: 22px; }
.sources .label { display: block; margin-bottom: 6px; letter-spacing: 0.2em; }

.ruled > li { padding: 16px 0; border-bottom: 1px solid var(--rule-soft); }
.ruled > li:last-child { border-bottom: 0; }
.item-title { font-size: 16px; font-weight: 500; }
.item-note { margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--ink-60); }

/* ---------- пример разбора ---------- */

.demo-wrap { padding: 0 var(--gutter) var(--band-gap); }
.demo { margin: 0; background: var(--paper-card); border: 1px solid rgba(22, 21, 15, 0.16); padding: 24px 22px 26px; }

.demo-head {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule);
  color: var(--ink-45);
}
.demo-head span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; }

.demo-body { padding-top: 22px; }
.demo-kicker { font-size: 14px; font-style: italic; color: var(--ink-60); }
.demo-question { margin-top: 8px; font-size: clamp(19px, 5vw, 25px); line-height: 1.45; font-weight: 500; text-wrap: pretty; }
.demo-main .label { display: block; margin-top: 26px; letter-spacing: 0.2em; }
.demo-answer { margin-top: 10px; font-size: 16px; line-height: 1.65; color: var(--ink-86); }
.demo-gap { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-72); }

.demo-margin { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.demo-margin .label { display: block; margin-bottom: 16px; letter-spacing: 0.2em; }
.refs { display: flex; flex-direction: column; gap: 18px; }
.ref-n { display: block; font-size: 11px; color: var(--blue); letter-spacing: 0; text-transform: none; }
.refs .item-note { color: var(--ink-55); font-size: 13px; }
.refs .item-title { margin-top: 4px; font-size: 15px; }
.demo-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.55; color: var(--ink-55); font-style: italic; }

/* ---------- нумерованные полосы ---------- */

.band { padding: 0 var(--gutter) var(--band-gap); }
.band-head {
  display: flex; align-items: baseline; gap: 14px;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule-strong);
}
.num { font-size: 11px; color: var(--blue); letter-spacing: 0.12em; }
.band-head h2 { font-size: clamp(25px, 6.4vw, 27px); font-weight: 600; letter-spacing: -0.015em; }

.item-head { font-size: 18px; font-weight: 500; }
.item-body { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--ink-65); }

.grid-3 > li { padding: 20px 0; border-bottom: 1px solid rgba(22, 21, 15, 0.12); }
.grid-3 > li:last-child { border-bottom: 0; }

.rules > li {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 14px;
  padding: 22px 0; border-bottom: 1px solid rgba(22, 21, 15, 0.12);
}
.rules > li:last-child { border-bottom: 0; }
.roman { grid-row: span 2; font-size: 22px; color: var(--ink-25); }

.split > article { padding: 26px 0; border-bottom: 1px solid rgba(22, 21, 15, 0.12); }
.split > article:last-child { border-bottom: 0; padding-bottom: 0; }
.split h3 { margin-top: 12px; font-size: clamp(22px, 5.6vw, 27px); line-height: 1.32; font-weight: 500; text-wrap: pretty; }
.split .item-body { margin-top: 12px; font-size: 16px; line-height: 1.62; color: var(--ink-72); }
.split .label { display: block; letter-spacing: 0.2em; }

.link-cta {
  display: inline-block; margin-top: 8px; padding: 11px 0;
  font-size: 16px; text-decoration: none; border-bottom: 1px solid var(--blue-rule);
}

/* ---------- финальный призыв ---------- */

.cta-band {
  margin: 0 var(--gutter);
  background: var(--ink);
  color: var(--paper);
  padding: 40px 24px 34px;
}
.cta-band h2 { font-size: clamp(28px, 7.4vw, 30px); line-height: 1.18; font-weight: 600; letter-spacing: -0.02em; text-wrap: pretty; }
.cta-band .cta-text p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: rgba(250, 248, 243, 0.7); }
.cta-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.cta-actions .cta-note { color: rgba(250, 248, 243, 0.5); }

/* ---------- ограничение ответственности ---------- */

.disclaimer {
  margin: 44px var(--gutter) 0;
  background: var(--paper-sunk);
  border: 1px solid rgba(22, 21, 15, 0.16);
  padding: 26px 22px;
}
.disclaimer .label { display: block; letter-spacing: 0.2em; }
.disclaimer-lead { margin-top: 10px; font-size: clamp(18px, 4.6vw, 20px); line-height: 1.35; font-weight: 500; letter-spacing: -0.01em; text-wrap: pretty; }
.disclaimer-body { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.disclaimer-body p { font-size: 14px; line-height: 1.65; color: var(--ink-72); }

/* ============================================================
   Планшет
   ============================================================ */

@media (min-width: 768px) {
  :root { --gutter: 48px; --band-gap: 72px; }

  body { font-size: 17px; }

  .site-header { flex-wrap: nowrap; padding: 22px var(--gutter); }
  .brand-sub { display: inline; }
  .nav-toggle { display: none; }
  .site-nav { flex-basis: auto; }
  .site-nav ul { flex-direction: row; gap: 30px; padding-bottom: 0; }
  .site-nav a { padding: 4px 0; }

  .hero { padding: 60px var(--gutter) 56px; }
  h1 { font-size: clamp(46px, 6.6vw, 74px); line-height: 1.05; letter-spacing: -0.02em; }
  .lead { font-size: 20px; max-width: 34em; }

  .cta-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; }
  .btn { padding: 16px 28px; }
  .cta-note { margin-top: 0; text-align: left; }

  .sources { margin-top: 52px; }
  .sources .ruled { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .sources .ruled > li:nth-last-child(2) { border-bottom: 0; }

  .demo { padding: 40px 44px 44px; }
  .demo-head { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 24px; }
  .demo-head span { font-size: 10px; letter-spacing: 0.2em; }
  .demo-head span:first-child { order: 2; }
  .demo-body { padding-top: 30px; }

  .grid-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .grid-3 > li:nth-last-child(2) { border-bottom: 0; }

  .rules > li { grid-template-columns: 56px minmax(0, 260px) minmax(0, 1fr); gap: 0 32px; align-items: baseline; }
  .rules .item-head { grid-row: 1; }
  .rules .item-body { grid-row: 1; margin-top: 0; }
  .roman { grid-row: 1; font-size: 28px; }

  .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split > article { padding: 36px 40px 0 0; border-bottom: 0; }
  .split > article + article { padding: 36px 0 0 40px; border-left: 1px solid rgba(22, 21, 15, 0.12); }

  .cta-band { padding: 60px 48px; display: flex; align-items: center; justify-content: space-between; gap: 48px; }
  .cta-band h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.15; max-width: 16em; }
  .cta-actions { margin-top: 0; flex: none; }
  .cta-actions .cta-note { text-align: center; }

  .disclaimer { margin-top: 76px; padding: 38px 46px; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 52px; }
  .disclaimer-body { margin-top: 0; gap: 14px; }
  .disclaimer-body p { font-size: 15px; }
  .disclaimer-lead { font-size: 20px; }
}

/* ============================================================
   Десктоп — раскладка утверждённого макета
   ============================================================ */

@media (min-width: 1080px) {
  :root { --gutter: clamp(56px, 8.3vw, 120px); --band-gap: 96px; }

  .site-header { padding: 24px var(--gutter); }
  .site-nav ul { gap: 36px; }

  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 72px;
    align-items: start;
    padding: 84px var(--gutter) 64px;
  }
  h1 br { display: inline; }
  .eyebrow { margin-bottom: 26px; letter-spacing: 0.2em; font-size: 11px; }
  .lead { margin-top: 32px; font-size: 21px; }
  .cta-row { margin-top: 40px; gap: 14px; }
  .cta-note { padding-left: 10px; letter-spacing: 0.12em; font-size: 11px; }

  .sources { margin-top: 0; border-top: 0; border-left: 1px solid var(--rule); padding: 0 0 0 32px; }
  .sources .label { margin-bottom: 22px; }
  .sources .ruled { display: block; }
  .sources .ruled > li:nth-last-child(2) { border-bottom: 1px solid var(--rule-soft); }

  .demo { padding: 48px 56px; }
  .demo-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding-top: 34px; }
  .demo-kicker { font-size: 15px; }
  .demo-question { margin-top: 10px; }
  .demo-answer { font-size: 18px; }
  .demo-gap { font-size: 17px; line-height: 1.65; }
  .demo-main .label { margin-top: 34px; }
  .demo-margin { margin-top: 0; padding: 0 0 0 30px; border-top: 0; border-left: 1px solid var(--rule); }
  .demo-margin .label { margin-bottom: 20px; }
  .refs { gap: 22px; }
  .demo-foot { margin-top: 28px; padding-top: 20px; }

  .band-head { gap: 22px; padding-bottom: 28px; }
  .band-head h2 { font-size: 38px; }
  .num { font-size: 12px; }

  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 0; }
  .grid-3 > li { padding: 34px 42px; border-bottom: 1px solid rgba(22, 21, 15, 0.12); border-right: 1px solid rgba(22, 21, 15, 0.12); }
  .grid-3 > li:nth-child(3n) { border-right: 0; padding-right: 0; }
  .grid-3 > li:nth-child(3n + 1) { padding-left: 0; }
  .grid-3 > li:nth-last-child(-n + 3) { border-bottom: 0; }
  .item-head { font-size: 20px; }
  .item-body { font-size: 16px; }

  .rules > li { grid-template-columns: 64px minmax(0, 380px) minmax(0, 1fr); gap: 0 40px; padding: 30px 0; }
  .rules .item-head { font-size: 21px; }
  .roman { font-size: 30px; }

  .split > article { padding: 40px 56px 0 0; }
  .split > article + article { padding: 40px 0 0 56px; }
  .split h3 { font-size: 27px; line-height: 1.35; margin-top: 14px; }
  .split .item-body { margin-top: 16px; font-size: 17px; line-height: 1.65; }

  .cta-band { padding: 76px 72px; gap: 64px; }
  .cta-band .cta-text p { margin-top: 18px; font-size: 18px; max-width: 44ch; }
  .cta-actions { gap: 12px; }
  .cta-actions .btn { padding: 17px 32px; }

  .disclaimer { padding: 38px 46px; }
}

/* ============================================================
   Подвал: марка, разделы, документы, связь
   ============================================================ */

.site-footer {
  margin-top: 36px;
  padding: 28px var(--gutter) 32px;
  border-top: 1px solid var(--rule-strong);
}
.site-footer a { text-decoration: none; }

.footer-brand {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}
.footer-logo { display: block; width: 68px; height: 32px; flex: none; }
/* Цвет на самом знаке, а не на ссылке: иначе общий a:hover красит логотип в синий. */
.footer-logo svg, .footer-mark svg { display: block; width: 100%; height: 100%; }
.footer-logo svg { color: var(--ink); }
.footer-mark svg { color: rgba(22, 21, 15, 0.5); }
.footer-sub { color: var(--ink-45); white-space: nowrap; }
.footer-tagline { font-size: 16px; line-height: 1.5; color: var(--ink-72); text-wrap: pretty; }

/* На узком экране группы идут лентой: ярлык, строки по 44 px, линейка. */
.footer-col { display: flex; flex-direction: column; align-items: stretch; padding: 20px 0 12px; border-bottom: 1px solid var(--rule-soft); }
.footer-col:last-child { border-bottom: 0; }
.footer-col .label { display: block; margin-bottom: 4px; letter-spacing: 0.2em; }
.footer-col a {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 0;
  font-size: 15px; line-height: 1.5;
  color: var(--ink);
}
.footer-col a:hover { color: var(--blue); }
.footer-channel { font-weight: 500; }
.footer-ic { width: 16px; height: 16px; flex: none; display: block; color: var(--blue); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.footer-bottom p { font-size: 13px; line-height: 1.5; color: var(--ink-55); }
.footer-bottom p a { border-bottom: 1px solid rgba(18, 90, 254, 0.35); }
.footer-mark { display: block; width: 56px; height: 27px; flex: none; }

/* Планшет: две колонки — марка и «Сервис», под ними «Документы» и «Связь». */
@media (min-width: 768px) {
  .site-footer { margin-top: 60px; padding: 0 var(--gutter) 40px; }
  .footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 40px 0 36px; }
  .footer-brand { gap: 16px; padding: 0 36px 26px 0; border-bottom: 1px solid var(--rule-soft); }
  .footer-col { align-items: flex-start; gap: 12px; padding: 0; border-bottom: 0; }
  .footer-col:nth-child(2) { padding: 0 0 26px 36px; border-left: 1px solid rgba(22, 21, 15, 0.12); border-bottom: 1px solid var(--rule-soft); }
  .footer-col:nth-child(3) { padding: 26px 36px 0 0; }
  .footer-col:nth-child(4) { padding: 26px 0 0 36px; border-left: 1px solid rgba(22, 21, 15, 0.12); }
  .footer-col .label { margin-bottom: 6px; }
  .footer-col a { padding: 0; font-size: 14px; }
  .footer-bottom { gap: 28px; }
  .footer-bottom p { font-size: 14px; }
  .footer-mark { width: 64px; height: 30px; }
}

/* Десктоп: четыре колонки с вертикальными линейками, как сетка «С чем приходят». */
@media (min-width: 1080px) {
  .footer-grid { grid-template-columns: 232px repeat(3, minmax(0, 1fr)); padding: 44px 0 40px; }
  .footer-brand { padding: 0 20px 0 0; border-bottom: 0; }
  .footer-col:nth-child(2), .footer-col:nth-child(3), .footer-col:nth-child(4) { padding: 0 36px; border-left: 1px solid rgba(22, 21, 15, 0.12); border-bottom: 0; }
  .footer-col:nth-child(4) { padding-right: 0; }
}

/* ============================================================
   Баннер про cookie
   ============================================================ */

.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  background: var(--ink);
  color: var(--paper);
  padding: 18px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 -12px 40px rgba(22, 21, 15, 0.18);
}
.cookie-banner p { font-size: 14px; line-height: 1.55; color: rgba(250, 248, 243, 0.82); }
.cookie-banner a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner a:hover { color: #fff; }
.cookie-actions { display: flex; flex-direction: column; gap: 8px; }
.cookie-banner button {
  min-height: 44px;
  padding: 11px 22px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  background: var(--paper);
  color: var(--ink);
}
.cookie-banner button[data-cookie="reject"] {
  background: transparent;
  color: var(--paper);
  border-color: rgba(250, 248, 243, 0.4);
}
.cookie-banner :focus-visible { outline-color: var(--paper); }

/* ============================================================
   Правовые документы
   ============================================================ */

/* Поля входят в border-box: без calc на текст оставалось около 50 знаков в строке. */
.doc { padding: 36px var(--gutter) 56px; max-width: calc(78ch + 2 * var(--gutter)); }
.doc .label { display: block; letter-spacing: 0.2em; margin-bottom: 16px; }
.doc h1 { font-size: clamp(28px, 7vw, 34px); line-height: 1.15; letter-spacing: -0.02em; }
.doc-meta { margin-top: 16px; color: var(--ink-45); letter-spacing: 0.14em; }
.doc-intro { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule-strong); color: var(--ink-72); }

.doc section { margin-top: 34px; }
.doc h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.doc section > p, .doc li { margin-top: 12px; font-size: 16px; line-height: 1.65; color: var(--ink-72); }
.doc ul { margin-top: 6px; }
.doc ul:not(.plans) li { position: relative; padding-left: 20px; }
.doc ul:not(.plans) li::before { content: "—"; position: absolute; left: 0; color: var(--ink-25); }
.doc dl { margin: 12px 0 0; }
.doc dt { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--ink); }
.doc dd { margin: 4px 0 0; font-size: 16px; line-height: 1.6; color: var(--ink-72); }
.doc strong { font-weight: 600; color: var(--ink); }

/* Незаполненное место — видно издалека, чтобы не уехало в прод как есть. */
.fill {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: #ffe8a3;
  color: #6b4a00;
  border-bottom: 1px dashed #a1740b;
  padding: 1px 5px;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 20px var(--gutter); }
  .cookie-banner p { max-width: 74ch; }
  .cookie-actions { flex-direction: row; flex: none; }

  .doc { padding: 56px var(--gutter) 72px; }
  .doc h1 { font-size: clamp(32px, 4vw, 40px); }
  .doc section { margin-top: 42px; }
  .doc h2 { font-size: 21px; }
}

/* ============================================================
   Тарифы
   ============================================================ */

.pricing { max-width: none; }
.pricing-lead { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--rule-strong); font-size: 17px; line-height: 1.6; color: var(--ink-72); max-width: 62ch; }

.plans { margin-top: 8px; }
.plans > li { padding: 30px 0; border-bottom: 1px solid rgba(22, 21, 15, 0.12); }
.plans > li:first-child { border-top: 1px solid rgba(22, 21, 15, 0.12); }

.plan-term { color: var(--ink-45); letter-spacing: 0.2em; }
.plan-price { margin-top: 12px; font-size: 46px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.plan-price span { font-size: 0.5em; font-weight: 400; color: var(--ink-45); margin-left: 2px; }
.plan-rate { margin-top: 10px; font-size: 15px; color: var(--blue); }
.plan-note { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-60); }
.plans .btn { margin-top: 20px; }

.pricing-free {
  margin-top: 26px;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  background: var(--paper-sunk);
  color: var(--ink-72);
  letter-spacing: 0.14em;
  text-align: center;
}

.pricing-note {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-60);
}

@media (min-width: 768px) {
  .plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
  .plans > li { padding: 34px 36px 36px; border-top: 1px solid rgba(22, 21, 15, 0.12); border-right: 1px solid rgba(22, 21, 15, 0.12); display: flex; flex-direction: column; }
  .plans > li:first-child { padding-left: 0; }
  .plans > li:last-child { border-right: 0; padding-right: 0; }
  .plans .plan-note { flex: 1; }
  .plans .btn { align-self: flex-start; }
  .plan-price { font-size: 52px; }
  .pricing-free { text-align: left; }
}

/* ============================================================
   Страница оплаты
   ============================================================ */

/* Шире обычного документа: `.doc` держит ширину колонки для чтения (78ch),
   и три карточки тарифов в неё не влезают — цены переносились по слогам. */
.doc.pay { max-width: 64rem; }

.plan-price { white-space: nowrap; }

/* Выбранный тариф отмечается фоном и полосой слева. Padding при этом не
   трогаем: любой сдвиг наезжает текстом на саму полосу. */
.plan-choice { cursor: pointer; }
.plan-choice.is-picked {
  background: var(--paper-card);
  box-shadow: inset 3px 0 0 var(--blue);
}
.plan-choice:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }

.pay-email { margin-top: 28px; }
.pay-email .label { display: block; margin-bottom: 8px; letter-spacing: 0.16em; }
.pay-input {
  width: 100%;
  max-width: 32em;
  padding: 14px 16px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--paper-card);
  border: 1px solid rgba(22, 21, 15, 0.28);
}
.pay-input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pay-note { margin-top: 10px; font-size: 14px; line-height: 1.6; color: var(--ink-60); }
.pay-error {
  margin-top: 16px;
  padding: 12px 16px;
  font-size: 15px;
  color: #7a2412;
  background: #fbe9e3;
  border: 1px solid #e5c3b8;
}
#pay-submit { margin-top: 24px; display: inline-flex; }

/* На узком экране карточки идут стопкой: полоса слева, отступ у всех
   одинаковый, чтобы выбранная не прыгала. */
.doc.pay .plans > li { padding-left: 16px; }

@media (min-width: 768px) {
  .doc.pay .plans > li { padding: 30px 28px 32px; }
  /* Первой карточке левый отступ нужен — иначе полоса выбора наезжает на
     название тарифа. */
  .doc.pay .plans > li:first-child { padding-left: 28px; }
  .doc.pay .plans > li:last-child { padding-right: 28px; }
  .doc.pay .plan-price { font-size: 40px; }
}

/* Призыв на странице тарифов: канал выбирает человек, а не мы за него. */
.pricing-cta { margin-top: 32px; }
.pricing-cta-label { font-size: 16px; line-height: 1.6; color: var(--ink-72); }
.pricing-cta .cta-row { margin-top: 16px; }
