/* Middleway — сайт-визитка. Токены — из дизайн-системы приложения (app-src/docs/DESIGN.md, §2–4):
   серый «сгруппированный» фон iOS, белые группы ячеек, индиго-акцент, спокойная сине-зелёная гамма для кризиса.
   Размеры — в rem от корня, корень растёт с шириной экрана (на 4K не мельчит). Без внешних шрифтов и скриптов. */

@font-face { font-family: "Brand Display"; src: url("fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Brand Display"; src: url("fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light dark;
  --bg: #f2f2f7;
  --card: #fff;
  --card2: #f2f2f7;
  --fill: rgba(120, 120, 128, .12);
  --fg: #000;
  --fg2: #6c6c70;
  --fg3: #aeaeb2;
  --line: rgba(60, 60, 67, .29);
  --bar: rgba(249, 249, 249, .86);
  --accent: #5856d6;
  --accent-ink: #5856d6;
  --accent-soft: rgba(88, 86, 214, .12);
  --tint-ink: #4b49c6;
  --accent-press: #4644b8;
  --calm-bg: #e3edeb;
  --calm-fg: #16322f;
  --calm-fg2: #4d6663;
  --calm-ink: #2f6b66;
  --sos: #c2405f;
  --shade: 0 1.5rem 3rem -1.5rem rgba(30, 30, 60, .28), 0 .25rem .75rem -.25rem rgba(30, 30, 60, .12);
  /* заливки квадратов-иконок (белый знак поверх): цвета модулей карточки — «чернильные» варианты */
  --i-emo: #5856d6; --i-urge: #c93400; --i-act: #8944ab; --i-mode: #007d91; --i-skill: #d30f45;
  --i-calm: #2f6b66; --i-tg: #1c78c0; --i-ok: #1f7a36; --i-gray: #6c6c70;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --font-d: "Brand Display", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-num: ui-rounded, "SF Pro Rounded", var(--font-d);
  --r-s: .5rem;
  --r: .75rem;
  --r-l: 1.125rem;
  --gut: max(1rem, env(safe-area-inset-left));
  --head: 3.25rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --card: #1c1c1e;
    --card2: #2c2c2e;
    --fill: rgba(120, 120, 128, .36);
    --fg: #fff;
    --fg2: #98989f;
    --fg3: #636366;
    --line: rgba(84, 84, 88, .6);
    --bar: rgba(22, 22, 24, .86);
    --accent: #5e5ce6;
    --accent-ink: #8e8cff;
    --accent-soft: rgba(94, 92, 230, .26);
    --tint-ink: #8e8cff;
    --accent-press: #4d4bd0;
    --calm-bg: #0f1d1b;
    --calm-fg: #e6f0ee;
    --calm-fg2: #9bb5b1;
    --calm-ink: #7cc4bb;
    --sos: #ff7a95;
    --shade: 0 0 0 1px rgba(255, 255, 255, .08);
  }
}
@media (prefers-contrast: more) {
  :root { --fg2: #3a3a3c; --line: rgba(60, 60, 67, .6); }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root { --fg2: #c7c7cc; --line: rgba(140, 140, 146, .8); }
}

/* ---------------------------------------------------------------- основа */
*, *::before, *::after { box-sizing: border-box; }
html {
  font-size: clamp(1rem, .4vw + .6875rem, 1.625rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head) + 1rem);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.47 var(--font);
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { text-decoration-thickness: .1em; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: .25rem; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: var(--gut); }
@media (min-width: 48rem) { :root { --gut: 2rem; } }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: .5rem; top: -4rem; z-index: 20; background: var(--card); color: var(--fg); padding: .75rem 1rem; border-radius: var(--r); }
.skip:focus { top: .5rem; }

/* ---------------------------------------------------------------- шапка: стекло, как навбар iOS */
.head {
  position: sticky; top: 0; z-index: 10;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: .5px solid var(--line);
}
.head .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: var(--head); }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--fg); text-decoration: none; min-height: 2.75rem; }
.brand img { width: 1.875rem; height: 1.875rem; border-radius: 22.5%; }
.word { font: 700 1.25rem/1 var(--font-d); letter-spacing: -.015em; }
.nav { display: none; gap: .25rem; margin-left: auto; }
.nav a { color: var(--fg); text-decoration: none; font-size: .9375rem; padding: .7rem .7rem; border-radius: var(--r-s); }
.nav a:hover { background: var(--fill); }
.nav a[aria-current="page"] { color: var(--accent-ink); font-weight: 600; }
.head .btn { margin-left: auto; }
@media (min-width: 60rem) {
  .nav { display: flex; }
  .head .btn { margin-left: .5rem; }
}

/* ---------------------------------------------------------------- кнопки (DESIGN §5.3: 50 / 44 pt) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3.125rem; padding: .75rem 1.375rem;
  border-radius: var(--r); border: 0;
  font: 600 1.0625rem/1.2 var(--font); text-decoration: none; text-align: center;
  background: var(--accent); color: #fff;
}
.btn:hover { background: var(--accent-press); text-decoration: none; }
.btn--tint { background: var(--accent-soft); color: var(--tint-ink); }
.btn--tint:hover { background: var(--accent-soft); box-shadow: inset 0 0 0 100vmax rgba(88, 86, 214, .08); }
.btn--sm { min-height: 2.75rem; padding: .5rem 1rem; font-size: .9375rem; border-radius: 999px; }
.btn--tg { background: #1c78c0; }
.btn--tg:hover { background: #17649f; }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn .short { display: none; }
@media (max-width: 26rem) {
  .head .btn .long { display: none; }
  .head .btn .short { display: inline; }
}

/* ---------------------------------------------------------------- типографика разделов */
.sec { padding-block: clamp(3.5rem, 7vw, 7rem); }
.sec + .sec { padding-top: 0; }
.h2 { font: 700 clamp(1.875rem, 1.1rem + 2.2vw, 3.25rem)/1.08 var(--font-d); letter-spacing: -.022em; max-width: 22ch; text-wrap: balance; }
.lead { margin-top: 1rem; font-size: clamp(1.0625rem, .95rem + .45vw, 1.3125rem); line-height: 1.45; color: var(--fg2); max-width: 36em; text-wrap: pretty; }
.h3 { font: 600 1.25rem/1.25 var(--font); letter-spacing: -.01em; }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.note { font-size: .9375rem; color: var(--fg2); }

/* ---------------------------------------------------------------- первый экран */
.hero { padding-top: clamp(2.5rem, 6vw, 6rem); padding-bottom: clamp(1rem, 3vw, 2.5rem); }
.hero .wrap { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero h1 {
  font: 700 clamp(2.375rem, 1.1rem + 4vw, 4.75rem)/1.02 var(--font-d);
  letter-spacing: -.03em; max-width: 16ch; text-wrap: balance;
}
.hero .lead { margin-top: 1.25rem; max-width: 30em; }
.hero .btns { margin-top: 2rem; }
.hero .fine { margin-top: 1.25rem; font-size: .9375rem; color: var(--fg2); max-width: 32em; }
@media (min-width: 60rem) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

/* пара телефонов: карточка дня клиента → неделя у психолога */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.75rem, 2.5vw, 1.75rem); align-items: start; max-width: 36rem; margin-inline: auto; width: 100%; }
.pair figure:last-child { margin-top: clamp(2rem, 7vw, 4.5rem); }
.screen { margin: 0; }
.screen picture, .screen img { border-radius: clamp(1.1rem, 3.2vw, 2rem); }
.screen img { width: 100%; aspect-ratio: 390 / 844; box-shadow: var(--shade); outline: .5px solid var(--line); outline-offset: -.5px; background: var(--card); }
.screen figcaption { margin-top: .875rem; font-size: .9375rem; line-height: 1.35; color: var(--fg2); padding-inline: .25rem; }
.screen figcaption b { display: block; color: var(--fg); font-weight: 600; }

/* ---------------------------------------------------------------- для кого */
.who { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .who { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--card); border-radius: var(--r-l); padding: clamp(1.25rem, 2.5vw, 2rem); }
.panel .h3 { margin-bottom: .5rem; }
.panel > p { color: var(--fg2); }
.ticks { list-style: none; margin-top: 1.25rem; border-top: .5px solid var(--line); }
.ticks li { position: relative; padding: .75rem 0 .75rem 1.75rem; border-bottom: .5px solid var(--line); }
.ticks li:last-child { border-bottom: 0; padding-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: .1rem; top: 1.05rem; width: .9rem; height: .5rem;
  border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- как это работает (последовательность) */
.steps { list-style: none; display: grid; gap: 1rem; counter-reset: st; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 72rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: st; background: var(--card); border-radius: var(--r-l); padding: 1.5rem 1.5rem 1.75rem; }
.steps li::before {
  content: counter(st); display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font: 700 1.0625rem/1 var(--font-num); margin-bottom: 1.25rem;
}
.steps b { display: block; font-weight: 600; font-size: 1.125rem; line-height: 1.3; margin-bottom: .4rem; }
.steps span { color: var(--fg2); }

/* ---------------------------------------------------------------- возможности: группы ячеек, как «Настройки» iOS */
.groups { display: grid; gap: 2rem 1.25rem; align-items: start; }
@media (min-width: 52rem) { .groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 80rem) { .groups { grid-template-columns: repeat(3, 1fr); } }
.gh { font-size: .8125rem; line-height: 1.35; color: var(--fg2); padding: 0 1rem .45rem; }
.list { list-style: none; background: var(--card); border-radius: var(--r); overflow: hidden; }
.cell { display: flex; gap: .875rem; align-items: flex-start; padding: .75rem 1rem; position: relative; }
.cell + .cell::before { content: ""; position: absolute; top: 0; left: 3.625rem; right: 0; border-top: .5px solid var(--line); }
.ic { flex: none; width: 1.875rem; height: 1.875rem; border-radius: .45rem; display: grid; place-items: center; background: var(--i-gray); margin-top: .1rem; }
.ic svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--emo { background: var(--i-emo); } .ic--urge { background: var(--i-urge); } .ic--act { background: var(--i-act); }
.ic--mode { background: var(--i-mode); } .ic--skill { background: var(--i-skill); } .ic--calm { background: var(--i-calm); }
.ic--tg { background: var(--i-tg); } .ic--ok { background: var(--i-ok); }
.cell b { display: block; font-weight: 600; line-height: 1.3; }
.cell span { display: block; font-size: .9375rem; line-height: 1.4; color: var(--fg2); margin-top: .15rem; }
.cell span a { color: var(--accent-ink); }

/* ---------------------------------------------------------------- снимки экрана */
.shots-h { font: 600 1.25rem/1.3 var(--font); margin: 0 0 1.25rem; }
.shots-h + p { margin: -.75rem 0 1.25rem; color: var(--fg2); }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem clamp(.75rem, 2vw, 1.5rem); align-items: start; }
.shots + .shots-h { margin-top: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 48rem) { .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcs { grid-column: 1 / -1; display: grid; gap: 2rem; }
@media (min-width: 48rem) { .pcs { grid-column: span 2; } }
.pc { margin: 0; }
.pc img { width: 100%; aspect-ratio: 1280 / 800; border-radius: var(--r); box-shadow: var(--shade); outline: .5px solid var(--line); outline-offset: -.5px; background: var(--card); }
.pc picture { border-radius: var(--r); }
.pc figcaption { margin-top: .875rem; font-size: .9375rem; color: var(--fg2); }
.pc figcaption b { color: var(--fg); font-weight: 600; }
.shots-note { margin-top: 2.5rem; font-size: .9375rem; color: var(--fg2); }

/* ---------------------------------------------------------------- приватность */
.priv { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .priv { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.facts { list-style: none; display: grid; gap: 1.5rem; }
.facts li { display: grid; grid-template-columns: auto 1fr; gap: .25rem .875rem; }
.facts .ic { grid-row: span 2; }
.facts b { font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.facts span { color: var(--fg2); }
.seen { background: var(--card); border-radius: var(--r-l); padding: clamp(1.25rem, 2.5vw, 1.75rem); }
.seen .h3 { margin-bottom: .35rem; }
.seen > p { color: var(--fg2); font-size: .9375rem; }
table.who-sees { width: 100%; border-collapse: collapse; margin-top: 1.25rem; font-size: .9375rem; }
.who-sees th, .who-sees td { text-align: left; padding: .7rem .5rem .7rem 0; border-bottom: .5px solid var(--line); vertical-align: top; }
.who-sees thead th { font-size: .8125rem; color: var(--fg2); font-weight: 400; padding-top: 0; }
.who-sees tbody th { font-weight: 400; }
.who-sees td { width: 30%; }
@media (max-width: 26rem) { table.who-sees { font-size: .875rem; } .who-sees td { width: 29%; } }
.who-sees tr:last-child > * { border-bottom: 0; }
.y, .n, .m { display: inline-flex; align-items: flex-start; gap: .4rem; }
.y { color: var(--fg); }
.y::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--i-ok); flex: none; margin-top: .45em; }
.m { color: var(--fg2); }
.m::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; border: 1.5px solid var(--fg2); flex: none; margin-top: .45em; }
.n { color: var(--fg2); }
.seen .after { margin-top: 1rem; font-size: .9375rem; color: var(--fg2); }

/* ---------------------------------------------------------------- тарифы */
.plans { display: grid; gap: 1.25rem; align-items: stretch; }
@media (min-width: 44rem) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 80rem) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { background: var(--card); border-radius: var(--r-l); padding: clamp(1.25rem, 2.5vw, 2rem); display: flex; flex-direction: column; }
.plan .h3 { font-size: 1.125rem; }
.plan .who-for { color: var(--fg2); font-size: .9375rem; margin-top: .25rem; }
.price { margin: 1.25rem 0 0; }
.price b { display: block; font: 700 clamp(2.5rem, 1.9rem + 1.2vw, 3.25rem)/1 var(--font-d); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price span { display: block; margin-top: .35rem; color: var(--fg2); }
.plan .ticks { margin-top: 1.25rem; margin-bottom: 1.75rem; flex: 1; }
.plan .btn { width: 100%; padding-inline: .75rem; }
@media (min-width: 80rem) { .plan { padding: 1.5rem 1.25rem; } }
.yearly { font-size: .875rem; line-height: 1.4; color: var(--fg2); margin-top: .35rem; }
.always { margin-top: 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: .875rem; align-items: start; background: var(--calm-bg); color: var(--calm-fg); border-radius: var(--r-l); padding: 1.25rem clamp(1.25rem, 2.5vw, 2rem); }
.always p { color: var(--calm-fg2); }
.always b { color: var(--calm-fg); }
.always .ic { background: var(--i-calm); }
.more-link { margin-top: 1.25rem; }

table.compare { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--r-l); overflow: hidden; font-size: .9375rem; }
.compare th, .compare td { padding: .8rem 1rem; text-align: left; border-bottom: .5px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 600; background: var(--card); border-bottom: .5px solid var(--line); }
.compare tbody th { font-weight: 400; }
.compare tr:last-child > * { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; border-radius: var(--r-l); }
@media (max-width: 34rem) {
  .compare th, .compare td { padding: .7rem .6rem; font-size: .875rem; }
}

/* ---------------------------------------------------------------- вопросы */
.faq { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .faq { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.qa-list { background: var(--card); border-radius: var(--r-l); overflow: hidden; }
details.qa + details.qa { border-top: .5px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; justify-content: space-between;
  min-height: 3.25rem; padding: .85rem 1.25rem; font-weight: 600; line-height: 1.35;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: .55rem; height: .55rem; margin-right: .2rem;
  border-right: 2px solid var(--fg3); border-bottom: 2px solid var(--fg3); transform: rotate(45deg) translate(-2px, -2px);
}
.qa[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
@media (prefers-reduced-motion: no-preference) { .qa summary::after { transition: transform .2s ease; } }
.qa summary:hover { background: var(--fill); }
.qa summary:focus-visible { outline-offset: -2px; border-radius: 0; }
.qa .a { padding: 0 1.25rem 1.25rem; color: var(--fg2); max-width: 44em; }
.qa .a p + p { margin-top: .6rem; }

/* ---------------------------------------------------------------- финальный призыв */
.cta { background: var(--card); border-radius: var(--r-l); padding: clamp(1.5rem, 4vw, 3.5rem); display: grid; gap: 2rem; align-items: center; }
@media (min-width: 60rem) { .cta { grid-template-columns: minmax(0, 1.3fr) auto; } }
.cta .lead { margin-top: .75rem; }
.cta .btns { justify-content: flex-start; }
.contact { margin-top: 1.25rem; font-size: .9375rem; color: var(--fg2); }

/* ---------------------------------------------------------------- подвал */
.sos-line { background: var(--calm-bg); color: var(--calm-fg); }
.sos-line .wrap { display: flex; gap: .75rem; align-items: center; padding-block: 1rem; flex-wrap: wrap; }
.sos-line p { flex: 1 1 18rem; }
.sos-line a { color: var(--calm-ink); font-weight: 600; white-space: nowrap; }
.sos-line .ic { background: var(--i-calm); margin-top: 0; }
.foot { padding-block: 2.5rem 3rem; font-size: .9375rem; color: var(--fg2); border-top: .5px solid var(--line); }
.foot .cols { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .foot .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot h2 { font: 600 .9375rem/1.3 var(--font); color: var(--fg); margin-bottom: .5rem; }
.foot ul { list-style: none; }
.foot li a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--fg2); text-decoration: none; }
.foot li a:hover { color: var(--fg); text-decoration: underline; }
.foot .brand { margin-bottom: .5rem; }
.foot p + p { margin-top: .5rem; }
.foot ul + p { margin-top: .5rem; }
.foot .legal p { margin: 0; }
.foot .legal { margin-top: 2rem; padding-top: 1.25rem; border-top: .5px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: space-between; }

/* ---------------------------------------------------------------- документы и служебные страницы */
.page { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.crumbs { font-size: .9375rem; margin-bottom: 1rem; }
.crumbs a { display: inline-block; padding: .6rem 0; }
.doc { max-width: 46rem; }
.doc h1, .page-h1 { font: 700 clamp(2rem, 1.2rem + 2.4vw, 3.25rem)/1.08 var(--font-d); letter-spacing: -.022em; text-wrap: balance; }
.doc .meta { margin-top: .75rem; color: var(--fg2); font-size: .9375rem; }
.doc .body { margin-top: 2rem; }
.doc .body h2 { font: 600 1.375rem/1.3 var(--font); margin: 2.25rem 0 .75rem; letter-spacing: -.01em; }
.doc .body h3 { font: 600 1.125rem/1.35 var(--font); margin: 1.75rem 0 .5rem; }
.doc .body h4 { font: 600 1rem/1.4 var(--font); margin: 1.5rem 0 .5rem; }
.doc .body p { margin: 0 0 .9rem; }
.doc .body ul, .doc .body ol { margin: 0 0 .9rem; padding-left: 1.5rem; }
.doc .body li { margin: .3rem 0; }
.doc .body li > ul, .doc .body li > ol { margin: .3rem 0; }
.doc .body blockquote { margin: 0 0 .9rem; padding: .75rem 1rem; background: var(--card); border-radius: var(--r); color: var(--fg2); }
.doc .body hr { border: 0; border-top: .5px solid var(--line); margin: 2rem 0; }
.doc .body code { font-size: .9em; background: var(--fill); padding: .1em .3em; border-radius: .3em; }
.doc .body table { width: 100%; border-collapse: collapse; margin: 0 0 1.25rem; font-size: .9375rem; display: block; overflow-x: auto; }
.doc .body th, .doc .body td { border: .5px solid var(--line); padding: .5rem .65rem; text-align: left; vertical-align: top; }
.doc .body th { background: var(--card); font-weight: 600; }
.toc { background: var(--card); border-radius: var(--r); padding: 1rem 1.25rem; margin-top: 2rem; font-size: .9375rem; }
.toc b { display: block; margin-bottom: .35rem; }
.toc ul { list-style: none; padding: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.stub { margin-top: 2rem; background: var(--card); border-radius: var(--r-l); padding: clamp(1.25rem, 3vw, 2rem); max-width: 40rem; }
.stub .h3 { margin-bottom: .5rem; }
.stub p { color: var(--fg2); }
.stub .btns { margin-top: 1.5rem; }
.doclist { list-style: none; margin-top: 2rem; max-width: 46rem; }
.doclist a { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 3.5rem; padding: .75rem 1.25rem; color: var(--fg); text-decoration: none; }
.doclist a:hover { background: var(--fill); }
.doclist small { color: var(--fg2); font-size: .875rem; white-space: nowrap; }
@media (max-width: 30rem) { .doclist a { flex-direction: column; align-items: flex-start; gap: .25rem; } }
.nf { max-width: 36rem; }
.nf .lead { margin-top: 1rem; }
.nf .btns { margin-top: 2rem; }

@media print {
  .head, .sos-line .ic, .btn, .skip { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------------- страница тарифов */
.sec-gap { margin-top: clamp(2rem, 4vw, 3rem); }
.sub { margin-top: clamp(3.5rem, 7vw, 5.5rem); }
.h2--sm { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); margin-bottom: 1.25rem; }
.sub .lead { margin: -.5rem 0 1.5rem; }
.ticks--cols { background: var(--card); border-radius: var(--r-l); padding: .25rem 1.5rem; border-top: 0; margin-top: 0; display: grid; column-gap: 3rem; }
.ticks--cols li:last-child { padding-bottom: .75rem; }
@media (min-width: 52rem) { .ticks--cols { grid-template-columns: 1fr 1fr; } .ticks--cols li:nth-last-child(2) { border-bottom: 0; } }
.compare td .note { display: block; font-size: .8125rem; }
.ph { color: var(--fg2); }
.support { margin-top: 1.5rem; max-width: 44em; color: var(--fg2); }
.support b { color: var(--fg); font-weight: 600; }

/* ---------------------------------------------------------------- период оплаты (переключатель без JS) */
:root { --seg-on: #fff; }
@media (prefers-color-scheme: dark) { :root { --seg-on: #636366; } }
.period { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.25rem; }
.period__t { color: var(--fg2); font-size: .9375rem; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 2px; background: var(--fill); border-radius: .625rem; width: min(100%, 30rem); }
.seg label {
  display: flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0 .4rem;
  border-radius: .5rem; font-size: .9375rem; line-height: 1.2; text-align: center; color: var(--fg); cursor: pointer;
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.seg label:hover { background: var(--fill); }
@media (max-width: 26rem) { .seg label { font-size: .875rem; padding: 0 .15rem; } }
@media (max-width: 23rem) { .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) { .seg label { transition: background-color .15s ease; } }
.price .pv { display: none; margin: 0; color: inherit; }
.price .pv__n { margin: 0; color: var(--fg); display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; }
.price .pv__n b { display: inline-block; }
.price .off { margin: 0; display: inline-block; padding: .2rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--tint-ink); font: 600 .875rem/1.2 var(--font); font-variant-numeric: tabular-nums; }
.price .pv__c { display: block; margin-top: .35rem; color: var(--fg2); font-size: .9375rem; line-height: 1.35; }
.compare tr.grp th { font-weight: 600; background: var(--card2); }

/* ---- переключатель периода: сгенерировано build.py из site.json "periods" ---- */
#per-1:checked ~ .plans .pv--1,
#per-3:checked ~ .plans .pv--3,
#per-6:checked ~ .plans .pv--6,
#per-12:checked ~ .plans .pv--12 { display: block; }
#per-1:checked ~ .period label[for=per-1],
#per-3:checked ~ .period label[for=per-3],
#per-6:checked ~ .period label[for=per-6],
#per-12:checked ~ .period label[for=per-12] { background: var(--seg-on); color: var(--fg); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); }
#per-1:focus-visible ~ .period label[for=per-1],
#per-3:focus-visible ~ .period label[for=per-3],
#per-6:focus-visible ~ .period label[for=per-6],
#per-12:focus-visible ~ .period label[for=per-12] { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
