/* kök — документы: цены, оферта, оплата, политика, реквизиты, удаление аккаунта.
   Тот же стиль, что у лендинга (landing.css): тёмная и светлая тема, акцент «туман». */
:root, [data-theme="dark"] {
  --bg: #0b0c0e;
  --card: #15171b;
  --card2: #1b1e23;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f1f2f4;
  --soft: #c9ccd2;
  --muted: #a4a9b2;
  --faint: #8d929b;
  --chip: rgba(255, 255, 255, 0.06);
  --head: rgba(11, 12, 14, 0.94);
  --fog: #cfe0ec;
  --fog2: #b9cfe0;
  --ink: #111318;
  --rose: #e8a39a;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f6f7f9;
  --card: #ffffff;
  --card2: #f0f2f5;
  --line: rgba(17, 19, 24, 0.09);
  --text: #111318;
  --soft: #2b3038;
  --muted: #555b66;
  --faint: #6b717c;
  --chip: rgba(17, 19, 24, 0.05);
  --head: rgba(246, 247, 249, 0.95);
  --rose: #9b4338;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }

/* Темы: какой логотип показывать */
[data-theme="dark"] .logo-l { display: none; }
[data-theme="light"] .logo-d { display: none; }

/* Шапка — как на лендинге */
.hdr { position: sticky; top: 0; z-index: 10; background: var(--head); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hdr .wrap { height: 64px; display: flex; align-items: center; gap: 10px; }
.logo-link { display: flex; margin-right: auto; text-decoration: none; }
.logo { height: 28px; width: auto; }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--chip); color: var(--text); display: grid; place-items: center; cursor: pointer; flex: none; }
.theme:focus-visible, .btn:focus-visible, .toc a:focus-visible { outline: 2px solid var(--fog); outline-offset: 2px; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }

/* Кнопки-капсулы */
.btn { height: 46px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--fog); color: var(--ink); font: 600 15px/1 Inter, Arial, sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
[data-theme="light"] .btn:not(.ghost) { background: var(--ink); color: #f1f2f4; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: var(--chip); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* Документ: оглавление слева, текст справа */
.doc .wrap { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: 72px; justify-content: center; padding-top: 64px; padding-bottom: 96px; }
.doc.wide .wrap { grid-template-columns: 220px minmax(0, 880px); gap: 56px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc-h { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 8px 12px; border-radius: 12px; text-decoration: none; font-size: 14px; color: var(--muted); line-height: 1.35; transition: background-color .15s, color .15s; }
.toc a.sub { padding-left: 26px; font-size: 13px; }
.toc a:hover { background: var(--chip); color: var(--text); }
.toc a.on { background: var(--chip); color: var(--text); font-weight: 600; }
.toc-m { display: none; }

.doc h1 { margin: 0; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.05; font-weight: 600; letter-spacing: -0.04em; text-wrap: balance; }
.upd { margin: 12px 0 0; font-size: 14px; color: var(--faint); }
.doc h2 { margin: 48px 0 14px; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; scroll-margin-top: 88px; text-wrap: balance; }
.doc h3 { margin: 0 0 10px; font-size: 17px; font-weight: 600; scroll-margin-top: 88px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: var(--soft); }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol:not(.toc ol) { margin: 0 0 12px; padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc b { color: var(--text); font-weight: 600; }
.doc article a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.doc article a:not(.btn):hover { text-decoration-color: var(--text); }
.boxed { border-radius: 24px; padding: 22px 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); margin: 20px 0 8px; }
.boxed p:last-child, .boxed ul:last-child { margin-bottom: 0; }
.contacts { display: flex; flex-direction: column; gap: 4px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.back { margin-top: 48px; }

/* Цены: карточки тарифов */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 20px; }
.plan { display: flex; flex-direction: column; gap: 14px; border-radius: 24px; padding: 24px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.plan-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-n { font-size: 17px; font-weight: 600; color: var(--text); }
.plan-tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #f1f2f4; white-space: nowrap; }
.plan-p { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan-p b { font-size: 32px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan-p span { font-size: 14px; color: var(--faint); }
.plan-team { align-self: flex-start; font-size: 13px; font-weight: 500; padding: 5px 12px; border-radius: 999px; background: var(--chip); color: var(--soft); }
.plan ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.plan li { position: relative; margin: 0; padding-left: 22px; font-size: 14px; line-height: 1.45; color: var(--soft); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 5px; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(-45deg); opacity: .7; }
.plan li.inh { color: var(--faint); }
.plan li.inh::before { display: none; }
.plan.hi { background: linear-gradient(160deg, var(--fog), var(--fog2)); box-shadow: none; }
.plan.hi, .plan.hi .plan-n, .plan.hi .plan-p b, .plan.hi li { color: var(--ink); }
.plan.hi .plan-p span, .plan.hi li.inh { color: #3a4654; }
.plan.hi .plan-team { background: rgba(17, 19, 24, 0.08); color: var(--ink); }
.plan.hi ul { border-top-color: rgba(17, 19, 24, 0.12); }
.plan.hi .plan-tag { background: var(--ink); color: #f1f2f4; }
.plan.one { max-width: 420px; }

.save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 20px; }
.save-l { font-size: 14px; color: var(--muted); margin-right: 4px; }
.save span:not(.save-l) { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--chip); color: var(--soft); font-variant-numeric: tabular-nums; }
.save span b { color: var(--text); }

/* Подвал */
.ftr { border-top: 1px solid var(--line); }
.ftr .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 28px; padding-bottom: 36px; font-size: 13px; color: var(--faint); }
.ftr a { color: var(--faint); text-decoration: none; }
.ftr a:hover { color: var(--text); }
.ftr .copy { margin-left: auto; }

@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; }
  .plan.one { max-width: none; }
}
@media (max-width: 760px) {
  .hdr .wrap { height: 58px; }
  .logo { height: 24px; }
  .doc .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 32px; padding-bottom: 56px; }
  .toc { display: none; }
  .toc-m { display: block; margin: 20px 0 8px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
  .toc-m summary { list-style: none; cursor: pointer; padding: 16px 20px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; align-items: center; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .toc-m[open] summary::after { transform: rotate(225deg) translateY(-3px); }
  .toc-m ol { list-style: none; margin: 0; padding: 0 8px 12px; }
  .toc-m a { display: block; padding: 8px 12px; font-size: 14px; color: var(--soft); text-decoration: none !important; }
  .toc-m a.sub { padding-left: 26px; font-size: 13px; }
  .doc h2 { font-size: 22px; margin-top: 40px; }
  .cta { flex-direction: column; align-items: stretch; }
  .ftr .copy { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .toc a { transition: none; }
}

/* Телефон: подвал ровными колонками, как на главной */
@media (max-width: 760px) {
  .ftr .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; align-items: start; font-size: 14px; }
  .ftr .copy { grid-column: 1 / -1; margin-top: 6px; }
}
