/* ЦентрСмет — единственный файл стилей.
   Основа: строгая сетка, математические отступы, один акцентный цвет,
   минимум украшений. Аудитория — сметчики; сайт должен читаться как
   рабочий инструмент, а не как витрина стартапа.

   Веб-шрифты НЕ подключаются намеренно: системный стек гарантированно
   покрывает кириллицу, не даёт скачка вёрстки при загрузке и не зависит
   от доступности внешних CDN из России. */

:root {
  --ink:        #0F172A;   /* основной текст и тёмные плашки */
  --ink-soft:   #334155;   /* вторичный текст */
  --muted:      #64748B;   /* подписи, сноски */
  --accent:     #0369A1;   /* единственный акцент: ссылки и кнопки */
  --accent-dark:#075985;
  --bg:         #FFFFFF;
  --bg-soft:    #F8FAFC;   /* фон чередующихся секций */
  --line:       #E2E8F0;
  --line-strong:#CBD5E1;
  --ok:         #15803D;
  --warn:       #B45309;

  --unit: 8px;
  --maxw: 1120px;
  --radius: 4px;          /* почти прямые углы: строгость, не «мягкий» продукт */

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── Типографика ─────────────────────────────────────────────────────── */

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 calc(var(--unit) * 2); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(30px, 4.2vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 32px); margin-top: calc(var(--unit) * 6); }
h3 { font-size: 20px; margin-top: calc(var(--unit) * 4); }
h4 { font-size: 17px; }
p  { margin: 0 0 calc(var(--unit) * 2); }
ul, ol { margin: 0 0 calc(var(--unit) * 2); padding-left: calc(var(--unit) * 3); }
li { margin-bottom: var(--unit); }

a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); }
.muted { color: var(--muted); font-size: 15px; }
.mono { font-family: var(--mono); }

/* ── Каркас ──────────────────────────────────────────────────────────── */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 calc(var(--unit) * 3); }
.section { padding: calc(var(--unit) * 8) 0; }
.section--soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: calc(var(--unit) * 5) 0; }

.grid { display: grid; gap: calc(var(--unit) * 3); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.prose { max-width: 46rem; }
.prose h2 { margin-top: calc(var(--unit) * 5); }

/* ── Шапка ───────────────────────────────────────────────────────────── */

.site-head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky; top: 0; z-index: 10;
}
.site-head__in { display: flex; align-items: center; gap: calc(var(--unit) * 3); min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px;
        color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.logo svg { display: block; }
.nav { display: flex; gap: calc(var(--unit) * 3); margin-left: auto; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 16px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* На узком экране меню переносится, а не прокручивается вбок: при прокрутке
   кнопка «Попробовать» уезжает за край, и главный призыв просто не виден. */
@media (max-width: 860px) {
  .site-head { position: static; }   /* липкая шапка съедала бы треть экрана телефона */
  /* Только вертикальные отступы: сокращённая запись padding обнулила бы
     боковые, которые задаёт .wrap — это один и тот же элемент. */
  .site-head__in { flex-wrap: wrap; padding-top: var(--unit); padding-bottom: var(--unit);
                   min-height: 0; row-gap: var(--unit); }
  .nav { width: 100%; margin-left: 0; flex-wrap: wrap; gap: calc(var(--unit) * 2); }
  .nav a { white-space: nowrap; }
  .nav .btn { padding: 9px 16px; min-height: 40px; }
}

/* ── Кнопки ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 22px;
  border: 1px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: calc(var(--unit) * 2); align-items: center; }

/* ── Карточки и списки возможностей ──────────────────────────────────── */

.card { border: 1px solid var(--line); border-radius: var(--radius); padding: calc(var(--unit) * 3); background: var(--bg); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.feature { display: flex; gap: calc(var(--unit) * 2); align-items: flex-start; }
.feature svg { flex: 0 0 auto; margin-top: 3px; color: var(--accent); }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* Шаги «как это работает» — нумерация, а не иконки: последовательность важнее. */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: calc(var(--unit) * 6); margin-bottom: calc(var(--unit) * 3); }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.steps h3 { margin: 3px 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ── Цифры нормативной базы ──────────────────────────────────────────── */

.stat { border-left: 3px solid var(--accent); padding-left: calc(var(--unit) * 2); }
.stat__num { display: block; font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.02em; }
.stat__cap { color: var(--muted); font-size: 15px; }

/* ── Таблицы ─────────────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--line-strong); font-size: 15px; color: var(--ink); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
td.yes { color: var(--ok); font-weight: 600; }
td.no  { color: var(--muted); }

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

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--unit) * 3); max-width: 760px; }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: calc(var(--unit) * 3); display: flex; flex-direction: column; }
.plan--main { border-color: var(--ink); border-width: 2px; }
.plan__name { font-weight: 700; font-size: 18px; margin: 0 0 4px; }
.plan__price { font-size: 32px; font-weight: 700; letter-spacing: -.02em; margin: calc(var(--unit) * 1) 0 2px; }
.plan__per { color: var(--muted); font-size: 15px; margin-bottom: calc(var(--unit) * 2); }
.plan ul { list-style: none; padding: 0; margin: 0 0 calc(var(--unit) * 3); }
.plan li { padding-left: 24px; position: relative; font-size: 16px; color: var(--ink-soft); }
.plan li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.plan .btn { margin-top: auto; }

/* ── Вопросы и ответы ────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: calc(var(--unit) * 2) 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; gap: var(--unit); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent); font-weight: 700; width: 16px; flex: 0 0 16px; }
.faq details[open] summary::before { content: "−"; }
.faq details > div { padding: 0 0 calc(var(--unit) * 2) 24px; color: var(--ink-soft); }
.faq p:last-child { margin-bottom: 0; }

/* ── Заметка/предупреждение ──────────────────────────────────────────── */

.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--warn);
  border-radius: var(--radius);
  padding: calc(var(--unit) * 2) calc(var(--unit) * 3);
  background: var(--bg-soft);
  font-size: 16px;
}
.note p:last-child { margin-bottom: 0; }

/* ── Подвал ──────────────────────────────────────────────────────────── */

.site-foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: calc(var(--unit) * 5) 0 calc(var(--unit) * 4); margin-top: calc(var(--unit) * 8); font-size: 15px; }
.site-foot a { color: var(--ink-soft); }
.site-foot__cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: calc(var(--unit) * 4); }
@media (max-width: 720px) { .site-foot__cols { grid-template-columns: 1fr; gap: calc(var(--unit) * 3); } }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot__legal { margin-top: calc(var(--unit) * 4); padding-top: calc(var(--unit) * 2); border-top: 1px solid var(--line); color: var(--muted); }

/* ── Хлебные крошки ──────────────────────────────────────────────────── */

.crumbs { font-size: 15px; color: var(--muted); padding-top: calc(var(--unit) * 3); }
.crumbs a { color: var(--muted); }
.crumbs span { padding: 0 6px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }
