/* «Точка расчёта» — общие стили */
:root {
  --ink: #16202b;
  --muted: #5a6573;
  --line: #d9dee4;
  --paper: #ffffff;
  --soft: #f3f5f8;
  --accent: #1f4e9e;
  --accent-ink: #ffffff;
  --accent-soft: #e6edf8;
  --warn-bg: #fff4d6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6ebf0; --muted: #9aa6b2; --line: #2c3743; --paper: #121820; --soft: #19212b;
    --accent: #7ea6ea; --accent-ink: #0d1520; --accent-soft: #1c2a40; --warn-bg: #3a2f14;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* шапка */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; }
.logo svg { width: 28px; height: 28px; flex: none; }
.nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }

/* первый экран */
.hero { padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: clamp(28px, 4.5vw, 42px); line-height: 1.15; margin: 0 0 16px; max-width: 760px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 680px; margin: 0 0 24px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 6px; background: var(--accent); color: var(--accent-ink);
  text-decoration: none; font-weight: 600; border: 1px solid var(--accent);
}
.btn.ghost { background: transparent; color: var(--accent); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* разделы */
section { padding: 44px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h2 { font-size: 26px; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 24px; max-width: 720px; }
h3 { font-size: 18px; margin: 0 0 6px; }

/* таблица цен */
.prices { width: 100%; border-collapse: collapse; }
.prices th, .prices td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices th { font-size: 14px; color: var(--muted); font-weight: 600; }
.prices td.price { white-space: nowrap; font-weight: 700; text-align: right; }
.prices th.price { text-align: right; }
.prices .note { display: block; color: var(--muted); font-size: 14px; }
/* На телефоне — только услуга и цена, чтобы цена не уходила за край экрана */
@media (max-width: 560px) {
  .prices th:nth-child(2), .prices td:nth-child(2) { display: none; }
  .prices td.price { white-space: normal; min-width: 92px; }
}
.scroll { overflow-x: auto; }

/* карточки тарифов */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 20px; background: var(--soft); }
.card .sum { font-size: 26px; font-weight: 700; margin: 6px 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.badge { display: inline-block; font-size: 13px; padding: 3px 9px; border-radius: 4px; background: var(--warn-bg); color: var(--ink); margin-bottom: 14px; }

/* шаги */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; padding-left: 44px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center;
}

/* реквизиты */
.req { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.req dt { color: var(--muted); }
.req dd { margin: 0; }
@media (max-width: 560px) { .req { grid-template-columns: 1fr; } .req dt { margin-top: 8px; } }

/* текстовые страницы */
.doc { padding: 36px 0 56px; max-width: 820px; }
.doc h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
.doc .meta { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc p, .doc li { margin: 0 0 10px; }

/* подвал */
.foot { border-top: 1px solid var(--line); background: var(--soft); padding: 28px 0; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }
