/* ============================================================================
   Tewris Voice — лендинг. Единственный CSS-файл сайта.
   Токены взяты из макета Claude Design; вёрстка переведена с инлайновых
   стилей на классы и логические свойства (margin-inline и т. п.).
   ========================================================================== */

/* Шрифты подключены отдельным <link> в <head> — см. страницы. */

/* ── Токены ──────────────────────────────────────────────────────────────── */
:root {
  --pg-display: "Raleway", system-ui, sans-serif;
  --pg-body: "Inter", system-ui, sans-serif;
  --pg-mono: "JetBrains Mono", ui-monospace, monospace;

  --pg-h1-lh: 1.06;
  --pg-h2-lh: 1.15;

  /* трекинг вынесен в переменные: в арабском он обнуляется */
  --pg-tr-20: 0.2em;  --pg-tr-18: 0.18em; --pg-tr-16: 0.16em; --pg-tr-14: 0.14em;
  --pg-tr-10: 0.1em;  --pg-tr-08: 0.08em; --pg-tr-06: 0.06em;
  --pg-tr-035: 0.035em; --pg-tr-02: 0.02em; --pg-tr-01: 0.01em;

  --pg-bg: rgb(19, 22, 43);
  --pg-bg-deep: rgb(13, 15, 32);
  --pg-surface: rgb(32, 36, 68);
  --pg-surface-2: rgb(38, 44, 73);
  --pg-surface-3: rgb(50, 63, 97);
  --pg-border: rgb(55, 62, 110);
  --pg-hairline: rgba(255, 255, 255, 0.10);
  --pg-hairline-2: rgba(255, 255, 255, 0.05);
  --pg-text: rgb(233, 237, 247);
  --pg-muted: rgb(138, 144, 184);
  --pg-faint: rgba(255, 255, 255, 0.45);

  /* Акцент для текста и границ */
  --pg-accent: rgb(46, 154, 253);
  --pg-accent-hi: rgb(74, 173, 255);
  --pg-accent-quiet: rgba(46, 154, 253, 0.14);
  /* Заливка кнопок: белый текст на rgb(46,154,253) даёт 2,93:1 — недоступно.
     #1B6FD1 даёт ≈4,95:1, наведение #1560BC ≈6,2:1. */
  --pg-accent-fill: #1B6FD1;
  --pg-accent-fill-hi: #1560BC;

  --pg-lift: 0 18px 40px -10px rgba(0, 0, 0, 0.55);
  --pg-glow: 0 8px 30px -10px rgba(36, 143, 255, 0.6);

  /* Предупреждение и подтверждение (кабинет) */
  --pg-warn: rgb(255, 138, 128);
  --pg-warn-quiet: rgba(255, 138, 128, 0.12);
  --pg-ok: rgb(94, 214, 160);
  --pg-ok-quiet: rgba(94, 214, 160, 0.12);

  color-scheme: dark;
}

/* Светлая тема: авто (системная) и принудительная. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --pg-bg: rgb(244, 246, 251);
    --pg-bg-deep: rgb(238, 241, 248);
    --pg-surface: rgb(255, 255, 255);
    --pg-surface-2: rgb(238, 241, 248);
    --pg-surface-3: rgb(214, 220, 234);
    --pg-border: rgb(214, 220, 234);
    --pg-hairline: rgba(19, 22, 43, 0.10);
    --pg-hairline-2: rgba(19, 22, 43, 0.06);
    --pg-text: rgb(20, 24, 38);
    --pg-muted: rgb(84, 93, 120);
    --pg-faint: rgb(105, 113, 136);
    --pg-accent: rgb(19, 105, 196);
    --pg-accent-hi: rgb(13, 84, 160);
    --pg-accent-quiet: rgba(46, 154, 253, 0.10);
    --pg-accent-fill: rgb(19, 105, 196);
    --pg-accent-fill-hi: rgb(13, 84, 160);
    --pg-lift: 0 18px 40px -18px rgba(20, 24, 38, 0.20);
    --pg-glow: 0 8px 26px -12px rgba(28, 128, 232, 0.5);
    --pg-warn: rgb(176, 42, 33);
    --pg-warn-quiet: rgba(176, 42, 33, 0.08);
    --pg-ok: rgb(20, 122, 82);
    --pg-ok-quiet: rgba(20, 122, 82, 0.10);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --pg-bg: rgb(244, 246, 251);
  --pg-bg-deep: rgb(238, 241, 248);
  --pg-surface: rgb(255, 255, 255);
  --pg-surface-2: rgb(238, 241, 248);
  --pg-surface-3: rgb(214, 220, 234);
  --pg-border: rgb(214, 220, 234);
  --pg-hairline: rgba(19, 22, 43, 0.10);
  --pg-hairline-2: rgba(19, 22, 43, 0.06);
  --pg-text: rgb(20, 24, 38);
  --pg-muted: rgb(84, 93, 120);
  --pg-faint: rgb(105, 113, 136);
  --pg-accent: rgb(19, 105, 196);
  --pg-accent-hi: rgb(13, 84, 160);
  --pg-accent-quiet: rgba(46, 154, 253, 0.10);
  --pg-accent-fill: rgb(19, 105, 196);
  --pg-accent-fill-hi: rgb(13, 84, 160);
  --pg-lift: 0 18px 40px -18px rgba(20, 24, 38, 0.20);
  --pg-glow: 0 8px 26px -12px rgba(28, 128, 232, 0.5);
  --pg-warn: rgb(176, 42, 33);
  --pg-warn-quiet: rgba(176, 42, 33, 0.08);
  --pg-ok: rgb(20, 122, 82);
  --pg-ok-quiet: rgba(20, 122, 82, 0.10);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --pg-bg: rgb(19, 22, 43);
  --pg-bg-deep: rgb(13, 15, 32);
  --pg-surface: rgb(32, 36, 68);
  --pg-surface-2: rgb(38, 44, 73);
  --pg-surface-3: rgb(50, 63, 97);
  --pg-border: rgb(55, 62, 110);
  --pg-hairline: rgba(255, 255, 255, 0.10);
  --pg-hairline-2: rgba(255, 255, 255, 0.05);
  --pg-text: rgb(233, 237, 247);
  --pg-muted: rgb(138, 144, 184);
  --pg-faint: rgba(255, 255, 255, 0.45);
  --pg-accent: rgb(46, 154, 253);
  --pg-accent-hi: rgb(74, 173, 255);
  --pg-accent-quiet: rgba(46, 154, 253, 0.14);
  --pg-accent-fill: #1B6FD1;
  --pg-accent-fill-hi: #1560BC;
  --pg-lift: 0 18px 40px -10px rgba(0, 0, 0, 0.55);
  --pg-glow: 0 8px 30px -10px rgba(36, 143, 255, 0.6);
  --pg-warn: rgb(255, 138, 128);
  --pg-warn-quiet: rgba(255, 138, 128, 0.12);
  --pg-ok: rgb(94, 214, 160);
  --pg-ok-quiet: rgba(94, 214, 160, 0.12);
  color-scheme: dark;
}

/* Арабский: другая гарнитура, увеличенный интерлиньяж, трекинг обнулён. */
[dir="rtl"] {
  --pg-display: "Noto Kufi Arabic", "Geeza Pro", "Segoe UI", system-ui, sans-serif;
  --pg-body: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", system-ui, sans-serif;
  --pg-h1-lh: 1.4;
  --pg-h2-lh: 1.45;
  --pg-tr-20: normal; --pg-tr-18: normal; --pg-tr-16: normal; --pg-tr-14: normal;
  --pg-tr-10: normal; --pg-tr-08: normal; --pg-tr-06: normal;
  --pg-tr-035: normal; --pg-tr-02: normal; --pg-tr-01: normal;
}
/* Латинские врезки внутри RTL возвращают себе трекинг. */
[dir="rtl"] [dir="ltr"] {
  --pg-tr-20: 0.2em;  --pg-tr-18: 0.18em; --pg-tr-16: 0.16em; --pg-tr-14: 0.14em;
  --pg-tr-10: 0.1em;  --pg-tr-08: 0.08em; --pg-tr-06: 0.06em;
  --pg-tr-035: 0.035em; --pg-tr-02: 0.02em; --pg-tr-01: 0.01em;
}

/* ── База ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100dvh;
  background: var(--pg-bg);
  color: var(--pg-text);
  font-family: var(--pg-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pg-accent); text-decoration: none; }
a:hover { color: var(--pg-accent-hi); }
img, svg { max-width: 100%; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--pg-accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(16px, 5vw, 56px); }
.wrap--mid { max-width: 900px; }
.wrap--doc { max-width: 760px; padding-inline: clamp(16px, 5vw, 40px); }

/* Ссылка «к содержимому» для клавиатуры */
.skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  inset-block-start: 0;
  z-index: 10;
  padding: 10px 16px;
  background: var(--pg-surface);
  color: var(--pg-text);
  border: 1px solid var(--pg-border);
  border-radius: 10px;
}
.skip-link:focus { inset-inline-start: 12px; inset-block-start: 12px; }

/* ── Плашка приглашения ──────────────────────────────────────────────────── */
.ref-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: baseline;
  justify-content: center;
  padding: 12px 20px;
  background: var(--pg-accent-quiet);
  border-block-end: 1px solid var(--pg-hairline);
  font-size: 13px;
  line-height: 1.55;
}
.ref-banner[hidden] { display: none; }
.ref-banner__kicker {
  font-family: var(--pg-mono);
  font-size: 11px;
  letter-spacing: var(--pg-tr-18);
  text-transform: uppercase;
  color: var(--pg-accent);
}
.ref-banner__text { max-width: 62em; }
.ref-note { max-width: 34em; font-size: 13px; line-height: 1.6; color: var(--pg-accent); }
.ref-note[hidden] { display: none; }

/* ── Шапка ───────────────────────────────────────────────────────────────── */
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  padding-block: 22px;
  border-block-end: 1px solid var(--pg-hairline-2);
}
.site-header--split { justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--pg-text); }
.brand:hover { color: var(--pg-text); }
.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--pg-hairline);
  background: var(--pg-surface);
  border-radius: 12px;
}
.brand__name {
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 300;
  font-size: 19px;
  letter-spacing: var(--pg-tr-06);
}
.brand__name b { font-weight: 700; }

.site-nav { display: flex; flex: 1 1 240px; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pg-muted);
}
.site-nav a:hover { color: var(--pg-text); background: var(--pg-surface); }

.header-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }

.langs {
  display: flex;
  padding: 3px;
  gap: 2px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 11px;
}
.langs button {
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pg-muted);
  font-family: var(--pg-mono);
  font-size: 11px;
  letter-spacing: var(--pg-tr-08);
  text-transform: uppercase;
  cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--pg-surface-3); color: var(--pg-text); }

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--pg-hairline);
  border-radius: 10px;
  color: var(--pg-muted);
  font-family: var(--pg-mono);
  font-size: 11px;
  letter-spacing: var(--pg-tr-06);
  cursor: pointer;
}
.theme-btn:hover { color: var(--pg-text); border-color: var(--pg-border); }
.theme-btn__swatch {
  width: 12px; height: 12px;
  border-radius: 4px;
  border: 1px solid var(--pg-border);
  background: linear-gradient(135deg, rgb(244, 246, 251) 0 50%, rgb(19, 22, 43) 50% 100%);
}
:root[data-theme="light"] .theme-btn__swatch { background: rgb(244, 246, 251); }
:root[data-theme="dark"] .theme-btn__swatch { background: rgb(19, 22, 43); }

/* ── Типографика секций ──────────────────────────────────────────────────── */
.kicker {
  font-family: var(--pg-mono);
  font-size: 11px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-accent);
  margin-block-end: 22px;
}
.section { margin-block-end: clamp(64px, 10vw, 128px); }
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  align-items: baseline;
  justify-content: space-between;
  padding-block-end: 20px;
  margin-block-end: 40px;
  border-block-end: 1px solid var(--pg-hairline-2);
}
.section-head--stack { display: block; margin-block-end: 24px; }
.section-head__kicker {
  font-family: var(--pg-mono);
  font-size: 11px;
  letter-spacing: var(--pg-tr-20);
  color: var(--pg-faint);
  margin-block-end: 12px;
}
.section-head h2 {
  font-family: var(--pg-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 42px);
  line-height: var(--pg-h2-lh);
  letter-spacing: var(--pg-tr-035);
  margin: 0;
}
.section-head__lead { max-width: 34em; font-size: 15px; line-height: 1.65; color: var(--pg-muted); }

/* ── Первый экран ────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px);
}
.hero__title {
  font-family: var(--pg-display);
  font-weight: 300;
  font-size: clamp(38px, 6.6vw, 74px);
  line-height: var(--pg-h1-lh);
  letter-spacing: var(--pg-tr-01);
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero__lead {
  max-width: 30em;
  margin: 0 0 36px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--pg-muted);
}
.hero__cta,
.hero__cta-main { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 21px clamp(24px, 4vw, 42px);
  background: var(--pg-accent-fill);
  color: #fff;
  border-radius: 18px;
  font-family: var(--pg-display);
  font-weight: 700;
  font-size: clamp(17px, 2vw, 20px);
  letter-spacing: var(--pg-tr-035);
}
.btn-download:hover { background: var(--pg-accent-fill-hi); box-shadow: var(--pg-glow); color: #fff; }

.meta-line {
  font-family: var(--pg-mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--pg-faint);
}
.note { max-width: 34em; font-size: 13px; line-height: 1.6; color: var(--pg-muted); }
.note[hidden] { display: none; }

.link-btn {
  padding: 2px 0;
  background: transparent;
  border: 0;
  border-block-end: 1px solid var(--pg-hairline);
  color: var(--pg-muted);
  font-family: var(--pg-body);
  font-size: 13px;
  cursor: pointer;
}
.link-btn:hover { color: var(--pg-text); border-color: var(--pg-accent); }
.link-btn--sm { font-size: 12.5px; }

.mobile-card {
  max-width: 34em;
  padding: 22px 24px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
}
.mobile-card[hidden] { display: none; }
.mobile-card__title {
  font-family: var(--pg-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: var(--pg-tr-02);
  margin-block-end: 10px;
}
.mobile-card p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--pg-muted); }

/* ── Демо-окно ───────────────────────────────────────────────────────────── */
.demo {
  position: relative;
  border: 1px solid var(--pg-border);
  border-radius: 16px;
  background: var(--pg-surface);
  box-shadow: var(--pg-lift);
  overflow: hidden;
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 30px;
  padding: 0 14px;
  background: var(--pg-surface-2);
  border-block-end: 1px solid var(--pg-hairline-2);
  font-family: var(--pg-mono);
  font-size: 10.5px;
  color: var(--pg-faint);
}
.demo__app { font-weight: 500; color: var(--pg-muted); }
.demo__menu {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--pg-accent-quiet);
  color: var(--pg-accent);
  opacity: 0.45;
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.demo__body {
  position: relative;
  padding: clamp(20px, 3vw, 30px) clamp(18px, 3vw, 30px) 84px;
  min-height: 300px;
}
.demo__doc {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-18);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 12px;
}
.demo__skeleton { display: flex; flex-direction: column; gap: 9px; margin-block-end: 16px; }
.demo__skeleton span { height: 8px; border-radius: 4px; background: var(--pg-surface-3); opacity: 0.5; }
.demo__skeleton span:nth-child(1) { width: 92%; }
.demo__skeleton span:nth-child(2) { width: 78%; }
.demo__skeleton span:nth-child(3) { width: 86%; }
.demo__text { margin: 0; font-size: clamp(14px, 1.5vw, 16px); line-height: 1.7; min-height: 3.4em; }
.demo__caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  margin-inline-start: 1px;
  vertical-align: -0.16em;
  background: var(--pg-accent);
  animation: tvCaret 1s steps(1) infinite;
}
.demo__pill {
  position: absolute;
  inset-inline-start: 50%;
  inset-block-end: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  background: var(--pg-bg-deep);
  border: 1px solid var(--pg-border);
  border-radius: 999px;
  box-shadow: var(--pg-lift);
  white-space: nowrap;
  opacity: 1;
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
[dir="rtl"] .demo__pill { transform: translateX(50%); }
.demo__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pg-accent);
  animation: tvDot 1.2s ease-in-out infinite;
}
.demo__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  opacity: 0.22;
  transition: opacity 240ms cubic-bezier(0.4, 0, 0.2, 1);
}
.demo__bars span {
  width: 3px; height: 20px;
  border-radius: 2px;
  background: var(--pg-accent);
  transform-origin: center;
  animation: tvBar 780ms ease-in-out infinite;
}
.demo__bars span:nth-child(2) { animation-duration: 640ms; animation-delay: 90ms; }
.demo__bars span:nth-child(3) { animation-duration: 900ms; animation-delay: 180ms; }
.demo__bars span:nth-child(4) { animation-duration: 700ms; animation-delay: 40ms; }
.demo__bars span:nth-child(5) { animation-duration: 820ms; animation-delay: 260ms; }
.demo__bars span:nth-child(6) { animation-duration: 600ms; animation-delay: 140ms; }
.demo__bars span:nth-child(7) { animation-duration: 860ms; animation-delay: 320ms; }
.demo__bars span:nth-child(8) { animation-duration: 720ms; animation-delay: 60ms; }
.demo__bars span:nth-child(9) { animation-duration: 940ms; animation-delay: 210ms; }
.demo__bars span:nth-child(10) { animation-duration: 660ms; animation-delay: 300ms; }
.demo__label { font-family: var(--pg-mono); font-size: 11px; color: var(--pg-text); }

/* Состояния демо задаёт JS через data-phase на корне демо. */
.demo-wrap[data-phase="idle"] .demo__pill { opacity: 0; }
.demo-wrap[data-phase="rec"] .demo__bars { opacity: 1; }
.demo-wrap[data-phase="rec"] .demo__menu,
.demo-wrap[data-phase="clean"] .demo__menu,
.demo-wrap[data-phase="type"] .demo__menu { opacity: 1; }
.demo-wrap[data-motion="off"] .demo__dot,
.demo-wrap[data-motion="off"] .demo__caret,
.demo-wrap[data-motion="off"] .demo__bars span { animation-play-state: paused; }

.demo__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: baseline;
  justify-content: space-between;
  margin-block-start: 14px;
}
.demo__caption {
  font-family: var(--pg-mono);
  font-size: 11px;
  letter-spacing: var(--pg-tr-06);
  color: var(--pg-faint);
}

@keyframes tvBar { 0%, 100% { transform: scaleY(0.16); } 50% { transform: scaleY(1); } }
@keyframes tvCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes tvDot { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .demo__dot, .demo__caret, .demo__bars span { animation: none; }
  * { transition-duration: 0.001ms !important; }
}

/* ── Три отличия ─────────────────────────────────────────────────────────── */
.diffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1px;
  background: var(--pg-hairline-2);
  border: 1px solid var(--pg-hairline-2);
  border-radius: 16px;
  overflow: hidden;
  margin-block-end: clamp(64px, 10vw, 128px);
}
.diff { padding: 26px; background: var(--pg-bg); }
.diff__k {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 12px;
}
.diff__t {
  font-family: var(--pg-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: var(--pg-tr-02);
  margin-block-end: 8px;
}
.diff p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--pg-muted); }

/* ── Шаги ────────────────────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}
.cards--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.cards--mid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.step {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
}
.step__n {
  font-family: var(--pg-mono);
  font-size: 12px;
  letter-spacing: var(--pg-tr-20);
  color: var(--pg-accent);
  margin-block-end: 18px;
}
.step__t {
  font-family: var(--pg-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: var(--pg-tr-02);
  margin-block-end: 10px;
}
.step p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--pg-muted); }
.step__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block-start: 16px; }
.kbd {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  font-family: var(--pg-mono);
  font-size: 12px;
  color: var(--pg-text);
  background: var(--pg-surface-2);
  border: 1px solid var(--pg-border);
  border-block-end-width: 2px;
  border-radius: 6px;
}
.step__chip-note { font-family: var(--pg-mono); font-size: 11px; color: var(--pg-faint); }
.step__hint { margin-block-start: 14px; font-size: 13.5px; line-height: 1.6; color: var(--pg-faint); }

/* ── Что вставится ───────────────────────────────────────────────────────── */
.quote-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-block-end: 24px;
}
.quote {
  padding: 26px 28px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
}
.quote--out { border-color: var(--pg-accent); }
.quote__label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 16px;
}
.quote--out .quote__label { color: var(--pg-accent); }
.quote p { margin: 0; font-size: clamp(15px, 1.6vw, 17px); line-height: 1.8; }
.quote--in p { color: var(--pg-muted); }
.quote__cut { text-decoration: line-through; text-decoration-color: var(--pg-faint); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 7px 13px;
  border: 1px solid var(--pg-hairline);
  border-radius: 999px;
  font-size: 13px;
  color: var(--pg-muted);
}

/* ── Приватность ─────────────────────────────────────────────────────────── */
.privacy-box {
  padding: clamp(28px, 5vw, 56px);
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
}
.privacy-box__kicker {
  font-family: var(--pg-mono);
  font-size: 11px;
  letter-spacing: var(--pg-tr-20);
  color: var(--pg-faint);
  margin-block-end: 18px;
}
.privacy-box__statement {
  max-width: 26em;
  margin: 0 0 40px;
  font-family: var(--pg-display);
  font-weight: 300;
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.4;
  letter-spacing: var(--pg-tr-02);
}
.flow {
  padding: 22px 24px;
  background: var(--pg-bg);
  border: 1px solid var(--pg-hairline-2);
  border-radius: 12px;
}
.flow__label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-muted);
  margin-block-end: 16px;
}
.flow--local .flow__label { color: var(--pg-accent); }
.flow__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--pg-mono);
  font-size: 12px;
  color: var(--pg-text);
}
.flow__node { padding: 6px 10px; background: var(--pg-surface-2); border-radius: 8px; }
.flow__node--dashed { border: 1px dashed var(--pg-border); }
.flow__arrow { color: var(--pg-faint); }
.flow p { margin: 16px 0 0; font-size: 13.5px; line-height: 1.65; color: var(--pg-muted); }

/* ── Языки ───────────────────────────────────────────────────────────────── */
.lang-card {
  padding: 26px 28px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
}
.lang-card__label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 14px;
}
.lang-card p { margin: 0; font-size: 17px; line-height: 1.6; }
.lang-card p[dir="rtl"] { line-height: 1.8; }
.lang-card p[dir="ltr"] { font-family: "Inter", system-ui, sans-serif; }

/* ── Сравнение ───────────────────────────────────────────────────────────── */
.cmp-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px clamp(12px, 2vw, 24px);
  padding-block-end: 14px;
  border-block-end: 1px solid var(--pg-hairline-2);
  font-family: var(--pg-mono);
  font-size: 10.5px;
  letter-spacing: var(--pg-tr-16);
  text-transform: uppercase;
}
.cmp-head__a { color: var(--pg-faint); }
.cmp-head__b { color: var(--pg-accent); }
.cmp-row { padding-block: 22px; border-block-end: 1px solid var(--pg-hairline-2); }
.cmp-row__label { font-size: 13px; font-weight: 600; margin-block-end: 12px; }
.cmp-row__cells {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
  font-size: 14px;
  line-height: 1.6;
}
.cmp-row__a { color: var(--pg-muted); }
.cmp-row__cell-label {
  display: block;
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-16);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 6px;
}
.cmp-row__b .cmp-row__cell-label { color: var(--pg-accent); }
/* До 560px — одна колонка, шапка прячется, подписи переезжают в ячейки. */
@media (max-width: 560px) {
  .cmp-head { display: none; }
  .cmp-row__cells { grid-template-columns: 1fr; gap: 16px; }
}
@media (min-width: 561px) {
  .cmp-row__cell-label {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ── Цены ────────────────────────────────────────────────────────────────── */
.plan {
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3vw, 34px);
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
}
.plan--paid { border-color: var(--pg-accent); }
.plan__label {
  font-family: var(--pg-mono);
  font-size: 10.5px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 20px;
}
.plan__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block-end: 20px; }
.plan__head .plan__label { margin-block-end: 0; color: var(--pg-accent); }
.plan__badge {
  padding: 3px 9px;
  background: var(--pg-accent-quiet);
  border-radius: 999px;
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-10);
  color: var(--pg-accent);
}
.plan__price {
  font-family: var(--pg-display);
  font-weight: 300;
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1;
  margin-block-end: 28px;
}
.plan__price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-block-end: 14px; }
.plan__price-row .plan__price { margin-block-end: 0; }
.plan__per { font-size: 14px; color: var(--pg-muted); }
.plan__renew {
  margin: 0 0 24px;
  padding: 12px 14px;
  background: var(--pg-bg);
  border: 1px solid var(--pg-hairline-2);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--pg-text);
}
.plan__bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--pg-muted);
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.plan__bullets--tight { margin-block-end: 20px; }
.plan__refund { margin: 0 0 28px; font-size: 13px; line-height: 1.6; color: var(--pg-faint); }
.plan__after { margin: 0 0 24px; font-size: 13.5px; line-height: 1.65; color: var(--pg-muted); }
.plan__ctas { margin-block-start: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.plan__ctas .plan__cta { flex: 1 1 10em; margin-block-start: 0; padding-inline: 20px; }
.plan__cta {
  margin-block-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: transparent;
  border: 1px solid var(--pg-border);
  border-radius: 14px;
  font-family: var(--pg-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: var(--pg-tr-035);
  color: var(--pg-text);
}
.plan__cta:hover { border-color: var(--pg-accent); color: var(--pg-text); }
.plan__cta--fill { background: var(--pg-accent-fill); border-color: transparent; color: #fff; }
.plan__cta--fill:hover { background: var(--pg-accent-fill-hi); color: #fff; }

/* ── Вопросы ─────────────────────────────────────────────────────────────── */
.faq-item { border-block-end: 1px solid var(--pg-hairline-2); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 22px;
  font-family: var(--pg-display);
  font-weight: 700;
  font-size: clamp(16px, 1.8vw, 19px);
  letter-spacing: var(--pg-tr-02);
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item__chev {
  flex-shrink: 0;
  color: var(--pg-muted);
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item[open] .faq-item__chev { transform: rotate(180deg); }
.faq-item p { max-width: 64em; margin: 0 0 24px; font-size: 15px; line-height: 1.75; color: var(--pg-muted); }

/* ── Финальный призыв ────────────────────────────────────────────────────── */
.final-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 44px);
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
  margin-block-end: clamp(56px, 8vw, 96px);
}
.final-cta__title {
  font-family: var(--pg-display);
  font-weight: 300;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: var(--pg-tr-02);
  margin-block-end: 10px;
}
.btn-download--sm { padding: 19px 34px; border-radius: 16px; font-size: 17px; }

/* ── Подвал ──────────────────────────────────────────────────────────────── */
.site-footer { padding-block: 40px 56px; border-block-start: 1px solid var(--pg-hairline-2); }
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 32px;
  margin-block-end: 40px;
}
.site-footer__label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 14px;
}
.site-footer__list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__list a { color: var(--pg-muted); }
.site-footer__list a:hover { color: var(--pg-text); }
.site-footer__list span { color: var(--pg-faint); }
.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pg-muted);
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-family: var(--pg-mono);
  font-size: 10.5px;
  letter-spacing: var(--pg-tr-14);
  text-transform: uppercase;
  color: var(--pg-faint);
}
.doc-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block: 28px 56px;
  border-block-start: 1px solid var(--pg-hairline-2);
  font-family: var(--pg-mono);
  font-size: 10.5px;
  letter-spacing: var(--pg-tr-14);
  text-transform: uppercase;
  color: var(--pg-faint);
}
.doc-footer a { color: var(--pg-muted); letter-spacing: var(--pg-tr-14); }
.doc-footer a:hover { color: var(--pg-text); }

/* ── Страница «Скачано» ──────────────────────────────────────────────────── */
.dl-hero { padding-block: clamp(44px, 8vw, 88px) clamp(28px, 4vw, 48px); }
.dl-hero__file {
  font-family: var(--pg-mono);
  font-size: 11px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-accent);
  margin-block-end: 22px;
}
.dl-hero h1 {
  font-family: var(--pg-display);
  font-weight: 300;
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.08;
  letter-spacing: var(--pg-tr-01);
  margin: 0 0 22px;
  text-wrap: balance;
}
.dl-hero__lead {
  max-width: 32em;
  margin: 0 0 24px;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--pg-muted);
}
.dl-hero__again { margin: 0 0 24px; font-size: 14px; line-height: 1.7; color: var(--pg-muted); }
.tabs {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: 12px;
}
.tabs button {
  height: 32px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--pg-muted);
  font-family: var(--pg-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tabs button[aria-pressed="true"] { background: var(--pg-surface-3); color: var(--pg-text); }

.dl-steps {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--pg-hairline-2);
  border: 1px solid var(--pg-hairline-2);
  border-radius: 16px;
  overflow: hidden;
  margin-block-end: clamp(32px, 5vw, 56px);
}
.dl-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 8px 32px;
  padding: clamp(22px, 3vw, 30px);
  background: var(--pg-bg);
}
.dl-step__head { display: flex; align-items: baseline; gap: 16px; }
.dl-step__n { font-family: var(--pg-mono); font-size: 12px; letter-spacing: var(--pg-tr-20); color: var(--pg-accent); }
.dl-step__t { font-family: var(--pg-display); font-weight: 700; font-size: 19px; letter-spacing: var(--pg-tr-02); }
.dl-step p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--pg-muted); }

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
  margin-block-end: clamp(40px, 6vw, 72px);
}
.info-card {
  padding: 26px 28px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
}
.info-card__label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 14px;
}
.info-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--pg-muted); }

/* ── Документы (оферта, политика) ────────────────────────────────────────── */
.doc { padding-block: clamp(40px, 7vw, 72px) clamp(32px, 5vw, 56px); }
.doc__meta {
  font-family: var(--pg-mono);
  font-size: 11px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 20px;
}
.doc h1 {
  font-family: var(--pg-display);
  font-weight: 300;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: var(--pg-tr-01);
  margin: 0 0 24px;
}
.doc__lead { margin: 0 0 32px; font-size: 16px; line-height: 1.75; color: var(--pg-muted); }
.doc section { margin-block-end: 40px; }
.doc h2 {
  font-family: var(--pg-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: var(--pg-tr-02);
  margin: 0 0 16px;
  padding-block-end: 12px;
  border-block-end: 1px solid var(--pg-hairline-2);
}
.doc p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.8; color: var(--pg-muted); }
.doc p:last-child { margin-block-end: 0; }
.doc p.is-key { color: var(--pg-text); }
.doc b { color: var(--pg-text); font-weight: 600; }
.doc__party {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 8px 24px;
  padding: 18px 20px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 12px;
}
.doc__party + .doc__party { margin-block-start: 12px; }
.doc__party-name { font-size: 15px; font-weight: 600; }
.doc__party-what { font-size: 14.5px; line-height: 1.6; color: var(--pg-muted); }
.doc__after-list { margin-block-start: 16px; }
.doc__req {
  padding: 26px 28px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
}
.doc__req-label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 18px;
}
.doc__req-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.6; }
.doc__req-list span:not(:first-child) { color: var(--pg-muted); }

/* ── Служебное ───────────────────────────────────────────────────────────── */
.noscript-note {
  display: block;
  max-width: 34em;
  margin-block: 16px;
  padding: 12px 14px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--pg-muted);
}

/* ── Оплата в подвале: знак ЮKassa и способы (Правила ЮKassa, п. 11.2.1) ──── */
.pay-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
  justify-content: space-between;
  padding-block-end: 24px;
  margin-block-end: 24px;
  border-block-end: 1px solid var(--pg-hairline-2);
}
.pay-strip__left { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.pay-strip__label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
}
.pay-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 10px;
  color: var(--pg-text);
  font-family: var(--pg-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: var(--pg-tr-02);
}
.pay-mark:hover { border-color: var(--pg-accent); color: var(--pg-text); }
.pay-cards { display: inline-flex; gap: 8px; }
.pay-cards span {
  display: grid;
  place-items: center;
  width: 40px; height: 26px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 6px;
  font-family: var(--pg-mono);
  font-size: 8.5px;
  letter-spacing: var(--pg-tr-08);
  color: var(--pg-muted);
}
.pay-strip__note { max-width: 26em; font-size: 12.5px; line-height: 1.6; color: var(--pg-faint); }

/* ── Кабинет ─────────────────────────────────────────────────────────────── */
.wrap--acc { max-width: 880px; padding-inline: clamp(16px, 5vw, 40px); }

.acc { padding-block: clamp(36px, 6vw, 64px) clamp(40px, 6vw, 72px); }
.acc--narrow { max-width: 620px; }
.acc--form { max-width: 460px; padding-block-start: clamp(40px, 8vw, 88px); }
.acc__path {
  font-family: var(--pg-mono);
  font-size: 11px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 20px;
}
.acc h1 {
  font-family: var(--pg-display);
  font-weight: 300;
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1.18;
  letter-spacing: var(--pg-tr-01);
  margin: 0 0 16px;
}
.acc__lead { margin: 0 0 32px; font-size: 15px; line-height: 1.7; color: var(--pg-muted); }
/* Единое правило скрытия: [hidden] должен побеждать display у компонентов. */
[hidden] { display: none !important; }

.acc-user { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.acc-user__mail { max-inline-size: 100%; font-family: var(--pg-mono); font-size: 11px; color: var(--pg-faint); overflow-wrap: anywhere; }

.acc-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-block-end: 36px; }
.acc-tabs a {
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pg-muted);
}
.acc-tabs a:hover { background: var(--pg-surface); color: var(--pg-text); }
.acc-tabs a[aria-current="page"] { background: var(--pg-surface-3); color: var(--pg-text); font-weight: 600; }

/* Формы */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-18);
  text-transform: uppercase;
  color: var(--pg-faint);
}
.input {
  height: 52px;
  padding-inline: 16px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-border);
  border-radius: 12px;
  color: var(--pg-text);
  font-family: var(--pg-body);
  font-size: 16px;
}
.input:focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 2px; }
.input--code {
  height: 60px;
  font-family: var(--pg-mono);
  font-size: 26px;
  letter-spacing: var(--pg-tr-20);
}
.input.is-bad { border-color: var(--pg-warn); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input {
  inline-size: 20px; block-size: 20px;
  margin: 1px 0 0;
  accent-color: var(--pg-accent-fill);
  flex-shrink: 0;
}
.check span { font-size: 13.5px; line-height: 1.6; color: var(--pg-muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 26px;
  background: var(--pg-accent-fill);
  border: 1px solid transparent;
  border-radius: 14px;
  color: #fff;
  font-family: var(--pg-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: var(--pg-tr-035);
  cursor: pointer;
}
.btn:hover { background: var(--pg-accent-fill-hi); color: #fff; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.65; cursor: default; }
.btn--ghost {
  background: transparent;
  border-color: var(--pg-border);
  color: var(--pg-text);
}
.btn--ghost:hover { background: transparent; border-color: var(--pg-accent); color: var(--pg-text); }
.btn--sm { min-height: 44px; padding-inline: 18px; font-family: var(--pg-body); font-size: 14px; font-weight: 600; }
.btn--xs { min-height: 36px; padding-inline: 14px; font-family: var(--pg-body); font-size: 13px; font-weight: 500; }
.btn--danger { background: transparent; border-color: var(--pg-warn); color: var(--pg-warn); }
.btn--danger:hover { background: var(--pg-warn-quiet); color: var(--pg-warn); }
.btn--quiet { background: transparent; border-color: var(--pg-hairline); color: var(--pg-muted); }
.btn--quiet:hover { background: transparent; border-color: var(--pg-warn); color: var(--pg-warn); }

.spinner {
  inline-size: 15px; block-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-block-start-color: #fff;
  border-radius: 50%;
  animation: tvSpin 700ms linear infinite;
}
.spinner[hidden] { display: none; }
@keyframes tvSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

.msg {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.6;
  background: var(--pg-accent-quiet);
  color: var(--pg-text);
}
.msg--warn { background: var(--pg-warn-quiet); color: var(--pg-warn); }
.msg--ok { background: var(--pg-ok-quiet); color: var(--pg-ok); }
.msg[hidden] { display: none; }

.hint-line { font-size: 13.5px; line-height: 1.6; color: var(--pg-muted); }
.hint-line b { color: var(--pg-text); font-weight: 500; }

/* Карточка тарифа в кабинете */
.plan-box {
  padding: clamp(26px, 4vw, 40px);
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
  margin-block-end: clamp(16px, 2.5vw, 24px);
}
.plan-box--live { border-color: var(--pg-accent); }
.plan-box__head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-block-end: 18px; }
.plan-box__kicker {
  font-family: var(--pg-mono);
  font-size: 10.5px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
}
.plan-box--live .plan-box__kicker { color: var(--pg-accent); }
.plan-box__title {
  font-family: var(--pg-display);
  font-weight: 300;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.2;
  letter-spacing: var(--pg-tr-01);
  margin-block-end: 14px;
}
.plan-box__note { max-width: 42em; margin: 0 0 28px; font-size: 15px; line-height: 1.7; color: var(--pg-muted); }

.meter { max-width: 520px; margin-block-end: 28px; }
.meter__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: baseline;
  justify-content: space-between;
  margin-block-end: 10px;
}
.meter__label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-18);
  text-transform: uppercase;
  color: var(--pg-faint);
}
.meter__value { font-family: var(--pg-mono); font-size: 12.5px; color: var(--pg-text); }
.meter__track { block-size: 8px; background: var(--pg-surface-2); border-radius: 999px; overflow: hidden; }
.meter__bar { block-size: 100%; inline-size: 0; background: var(--pg-accent); border-radius: 999px; }
.meter__note { margin-block-start: 10px; font-size: 13px; line-height: 1.6; color: var(--pg-muted); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-row__note { font-size: 13px; line-height: 1.6; color: var(--pg-muted); }

/* Карточки и списки строк */
.card {
  padding: 24px 26px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
}
.card__label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 14px;
}
.card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: baseline;
  justify-content: space-between;
  margin-block-end: 18px;
}
.card__count { font-family: var(--pg-mono); font-size: 11px; color: var(--pg-faint); }
.card p { margin: 0 0 16px; font-size: 14.5px; line-height: 1.7; color: var(--pg-muted); }
.card p:last-child { margin-block-end: 0; }
.card__links { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
/* Состояние способа оплаты: читается с первого взгляда, словами, без иконок. */
.card .card-state {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  margin-block-end: 14px;
  font-size: 15px;
  color: var(--pg-text);
}
.card-state__num { font-family: var(--pg-mono); font-size: 13.5px; font-weight: 500; color: var(--pg-muted); }
.card-state__num[hidden] { display: none; }
/* Внутри карточки .card p перебивал цвет .msg, и ошибка выглядела как обычный
   текст. Возвращаем сообщениям их цвет: состояние должно читаться сразу. */
.card p.msg { font-size: 13.5px; }
.card p.msg--ok { color: var(--pg-ok); }
.card p.msg--warn { color: var(--pg-warn); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(16px, 2.5vw, 24px);
}
.stack { display: flex; flex-direction: column; gap: clamp(16px, 2.5vw, 24px); }

.terms {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--pg-hairline-2);
  border: 1px solid var(--pg-hairline-2);
  border-radius: 16px;
  overflow: hidden;
}
.terms__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 6px 24px;
  padding: 18px 22px;
  background: var(--pg-bg);
}
.terms__k { font-size: 14px; font-weight: 600; }
.terms__v { font-size: 14px; line-height: 1.6; color: var(--pg-muted); }

.sum-card {
  padding: 26px 28px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
  margin-block-end: 20px;
}
.sum-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: baseline;
  justify-content: space-between;
  padding-block-end: 18px;
  border-block-end: 1px solid var(--pg-hairline-2);
}
.sum-card__name { font-family: var(--pg-display); font-weight: 700; font-size: 18px; letter-spacing: var(--pg-tr-02); }
.sum-card__price { font-family: var(--pg-display); font-weight: 300; font-size: 30px; line-height: 1; }
.sum-card__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  padding-block-start: 16px;
  font-size: 14px;
  color: var(--pg-muted);
}

.list-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
  border-block-end: 1px solid var(--pg-hairline-2);
}
.list-row:last-child { border-block-end: 0; }
.list-row__name { font-size: 14.5px; }
.list-row__meta { margin-block-start: 4px; font-size: 12.5px; color: var(--pg-faint); }
.list-row__tag { font-family: var(--pg-mono); font-size: 11px; color: var(--pg-ok); }
.list-empty { font-size: 14px; line-height: 1.65; color: var(--pg-muted); }

.copy-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-block-end: 20px; }
.copy-row__link {
  flex: 1 1 18em;
  padding: 12px 14px;
  background: var(--pg-bg);
  border: 1px solid var(--pg-border);
  border-radius: 12px;
  font-family: var(--pg-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 16px; }
.stat__n { font-family: var(--pg-display); font-weight: 300; font-size: 28px; line-height: 1; }
.stat__t { margin-block-start: 6px; font-size: 12.5px; color: var(--pg-muted); }

.confirm { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.confirm__q { font-size: 13.5px; line-height: 1.6; color: var(--pg-muted); }

/* ── Реквизиты (страница компании) ───────────────────────────────────────── */
.reqs { display: flex; flex-direction: column; gap: 1px; }
.reqs__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 4px 24px;
  padding-block: 12px;
  border-block-end: 1px solid var(--pg-hairline-2);
}
.reqs__row:last-child { border-block-end: 0; }
.reqs__k { font-size: 13.5px; color: var(--pg-muted); }
.reqs__v { font-size: 15px; line-height: 1.6; }
.reqs__v--mono { font-family: var(--pg-mono); }

.offer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 34px);
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
}
.offer-cta__title {
  font-family: var(--pg-display);
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
  letter-spacing: var(--pg-tr-02);
  margin-block-end: 8px;
}
.offer-cta__note { font-size: 14px; line-height: 1.6; color: var(--pg-muted); }

/* ── Документы: дополнения для длинных юридических текстов ───────────────── */
.doc h3 {
  font-family: var(--pg-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: var(--pg-tr-02);
  margin: 24px 0 12px;
}
.doc__note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: baseline;
  padding: 16px 20px;
  margin-block-end: 40px;
  background: var(--pg-accent-quiet);
  border-radius: 12px;
}
.doc__note-label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-18);
  text-transform: uppercase;
  color: var(--pg-accent);
}
.doc__note-text { flex: 1 1 20em; margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--pg-text); }
.doc__toc {
  padding: 22px 24px;
  margin-block-end: 44px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 16px;
}
.doc__toc-label {
  font-family: var(--pg-mono);
  font-size: 10px;
  letter-spacing: var(--pg-tr-20);
  text-transform: uppercase;
  color: var(--pg-faint);
  margin-block-end: 14px;
}
.doc__toc ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 8px 24px;
  margin: 0;
  padding-inline-start: 20px;
  font-size: 14px;
  line-height: 1.5;
}
.doc ul, .doc ol.doc__list {
  margin: 0 0 14px;
  padding-inline-start: 22px;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--pg-muted);
}
.doc li { margin-block-end: 8px; }
.doc__formula {
  margin: 0 0 14px;
  padding: 16px 20px;
  background: var(--pg-surface);
  border: 1px solid var(--pg-hairline);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--pg-text);
}
.doc__todo {
  padding: 2px 7px;
  border: 1px dashed var(--pg-warn);
  border-radius: 6px;
  font-family: var(--pg-mono);
  font-size: 12px;
  color: var(--pg-warn);
}
.table-scroll { overflow-x: auto; margin-block-end: 20px; }
.doc-table {
  inline-size: 100%;
  min-inline-size: 520px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}
.doc-table th, .doc-table td {
  padding: 12px 14px;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid var(--pg-hairline-2);
  color: var(--pg-muted);
}
.doc-table th {
  font-family: var(--pg-mono);
  font-size: 10.5px;
  letter-spacing: var(--pg-tr-14);
  text-transform: uppercase;
  color: var(--pg-faint);
  white-space: nowrap;
}
.doc-table td:first-child { color: var(--pg-text); }
.doc-table--narrow { min-inline-size: 380px; }
.doc-footer__links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
