/*
  Оформление сайта POSitive.

  Один файл на весь сайт: страниц около восьмидесяти, но типов блоков
  полтора десятка, и разносить их по файлам значит получить каскад,
  который никто не удержит в голове. Порядок разделов ниже = порядок
  сверху вниз по странице.

  По умолчанию тема светлая — одинаковая у всех, кому дали ссылку.
  Тёмная включается кнопкой в шапке, и выбор запоминается на устройстве.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── переменные ──────────────────────────────────────────────────── */

:root {
  --accent: #2563eb;
  --accent-dark: #1b4fd0;
  --accent-soft: #eaf1ff;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e8ef;
  --bg: #ffffff;
  --tint: #f6f8fc;
  --ok: #17935a;
  --warn: #b7791f;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.06);
  --radius: 16px;
  --wrap: 1180px;
  color-scheme: light;
}

/*
  Тёмная тема включается ТОЛЬКО явным выбором — `data-theme="dark"`.

  Системную настройку сознательно не слушаем. Владелец 23.09.2026: «по
  умолчанию светлый пусть будет включён». Причина не в оформлении: сайт
  показывают с чужих ноутбуков и телефонов, и продукт должен выглядеть
  одинаково у всех, кому дали ссылку, — а не так, как настроен браузер
  смотрящего. Кому нужна тёмная, переключит кнопкой в шапке, и выбор
  запомнится.
*/
:root[data-theme='dark'] {
  --accent: #6aa0ff;
  --accent-dark: #4d86f0;
  --accent-soft: #16233d;
  --ink: #eef2f8;
  --ink-2: #c3ccda;
  --muted: #97a3b6;
  --line: #262f3d;
  --bg: #0e1319;
  --tint: #131a23;
  --ok: #3fbf83;
  --warn: #e0a74a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

/* ── база ────────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, 'Noto Sans Thai', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 5px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 780px; }

/* ── шапка ───────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 750; letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), #7c3aed);
  color: #fff; font-weight: 800; font-size: 18px;
  display: grid; place-items: center;
}
.logo-text { font-size: 19px; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; flex: 1; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 8px 11px; border-radius: 10px;
  color: var(--ink-2); font-size: 15.5px; font-weight: 550;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover { background: var(--tint); color: var(--ink); text-decoration: none; }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.55; }

.nav-group { position: relative; }
.menu {
  position: absolute; top: calc(100% + 8px); left: -8px;
  min-width: 320px; padding: 8px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.14s, transform 0.14s, visibility 0.14s;
}
.menu-right { left: auto; right: -8px; min-width: 180px; }
.nav-group.is-open .menu { opacity: 1; visibility: visible; transform: none; }
.menu-inner { display: grid; gap: 2px; max-height: min(70vh, 560px); overflow: auto; }
.menu-item { display: block; padding: 9px 11px; border-radius: 10px; color: var(--ink); }
.menu-item:hover { background: var(--tint); text-decoration: none; }
.menu-item-title { display: block; font-weight: 600; font-size: 15px; }
.menu-item-hint { display: block; color: var(--muted); font-size: 13.5px; }
/* Длинный список возможностей — в две колонки, внизу ссылка на оглавление */
.menu-cols-2 { min-width: 600px; }
.menu-cols-2 .menu-inner { grid-template-columns: 1fr 1fr; }
.menu-all { display: block; margin-top: 6px; padding: 10px 11px 4px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; color: var(--accent); }
.menu-all:hover { text-decoration: none; color: var(--accent-2, var(--accent)); }
.lang-list { grid-template-columns: 1fr; }
.lang-item { padding: 8px 11px; border-radius: 9px; color: var(--ink); font-size: 15px; }
.lang-item:hover { background: var(--tint); text-decoration: none; }
.lang-item.is-active { color: var(--accent); font-weight: 650; }

.header-actions { display: flex; align-items: center; gap: 8px; }

/*
  Переключатель темы. Иконка показывает НЕ текущее состояние, а то, куда
  переключишься: на светлой теме — луна, на тёмной — солнце. Проверено
  много раз в чужих интерфейсах: «что будет, если нажму» читается лучше,
  чем «что сейчас».
*/
.theme-toggle {
  width: 38px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 10px;
  background: none; color: var(--ink-2); cursor: pointer; padding: 0;
}
.theme-toggle:hover { background: var(--tint); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
:root[data-theme='dark'] .theme-toggle .icon-moon { display: none; }

.burger { display: none; width: 40px; height: 36px; border: 1px solid var(--line); background: none; border-radius: 10px; cursor: pointer; padding: 9px 9px; }
.burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; margin-bottom: 4px; }
.burger span:last-child { margin: 0; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); max-height: 70vh; overflow: auto; }
.mobile-nav.is-open { display: block; }
.mobile-nav-inner { padding: 12px 20px 20px; display: grid; gap: 4px; }
.mobile-nav .m-group-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 14px 0 4px; }
.mobile-nav a { display: block; padding: 9px 2px; color: var(--ink); border-bottom: 1px solid var(--line); }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 16px; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--tint); }
.btn-sm { padding: 9px 15px; font-size: 15px; border-radius: 10px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ── секции ──────────────────────────────────────────────────────── */

.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-title { text-align: center; max-width: 780px; margin: 0 auto 14px; }
.section-lead { text-align: center; max-width: 720px; margin: 0 auto 36px; color: var(--muted); font-size: 18px; }
.kicker {
  display: inline-block; margin-bottom: 14px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}

/* ── герой ───────────────────────────────────────────────────────── */

.hero {
  padding: 68px 0 56px;
  background: radial-gradient(1200px 420px at 15% -10%, var(--accent-soft), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.hero-art img { border-radius: var(--radius); }

.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 16px; height: 9px;
  border-left: 2.4px solid var(--ok); border-bottom: 2.4px solid var(--ok);
  transform: rotate(-45deg);
}

/* ── сетки карточек ──────────────────────────────────────────────── */

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
.card-icon { font-size: 26px; line-height: 1; margin-bottom: 14px; }
.card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15.5px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tile {
  display: grid; gap: 5px; padding: 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink);
}
.tile:hover { border-color: var(--accent); text-decoration: none; }
.tile-icon { font-size: 22px; }
.tile-title { font-weight: 620; }
.tile-text { color: var(--muted); font-size: 14.5px; }

/* ── кадры программы ─────────────────────────────────────────────── */

/*
  Настоящие экраны сидят в рамке своего устройства: касса и кухня — в
  планшете, бэк-офис — в окне браузера, «Плюс» — в телефоне. Рамка — чистый
  CSS: картинка остаётся честным снимком экрана, без дорисовки.
*/
.shot { margin: 0; position: relative; }
.shot img { display: block; width: 100%; height: auto; }
.hero-art .shot img, .split-art .shot img { border-radius: 0; }

.shot-browser {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #eef1f6;
  padding-top: 30px;
  box-shadow: var(--shadow);
}
.shot-browser::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: 15px 0 #febc2e, 30px 0 #28c840;
}
:root[data-theme='dark'] .shot-browser { background: #1b222c; }

.shot-tablet {
  border-radius: 26px;
  padding: 14px;
  background: #15181d;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.12), 0 22px 48px rgba(16, 24, 40, 0.22);
}
.hero-art .shot-tablet img, .split-art .shot-tablet img { border-radius: 12px; }

.shot-phone {
  width: min(300px, 100%);
  margin: 0 auto;
  border-radius: 44px;
  padding: 11px;
  background: #15181d;
  box-shadow: 0 2px 4px rgba(16, 24, 40, 0.12), 0 22px 48px rgba(16, 24, 40, 0.24);
}
.hero-art .shot-phone img, .split-art .shot-phone img { border-radius: 34px; }

/* Один довод крупно (блок spotlight): кадр почти в натуральную величину */
.spotlight { text-align: center; }
.spotlight .section-lead { margin-bottom: 30px; }
.spotlight-art { max-width: 900px; margin: 0 auto; text-align: left; }
.spotlight-points {
  max-width: 900px; margin: 30px auto 0; text-align: left;
  grid-template-columns: 1fr 1fr; gap: 12px 40px;
}
@media (max-width: 720px) { .spotlight-points { grid-template-columns: 1fr; } }
/* Три устройства на трёх языках рядом (spotlight с shots) */
.spotlight-trio {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  max-width: 1120px; margin: 0 auto; align-items: end; text-align: left;
}
.spotlight-item { margin: 0; }
.spotlight-item figcaption { margin-top: 14px; text-align: center; font-weight: 600; font-size: 15px; color: var(--ink); }
.spotlight-item .shot-tablet { padding: 8px; border-radius: 16px; }
.spotlight-item .shot-tablet img { border-radius: 8px; }
@media (max-width: 760px) {
  .spotlight-trio { grid-template-columns: minmax(0, 1fr); max-width: 440px; gap: 22px; }
}

/* Видеопрезентация: ролик почти во всю ширину, под ним главы-перемотка */
.video-block { text-align: center; }
.video-block .section-lead { margin-bottom: 30px; }
.video-frame {
  margin: 0 auto; max-width: 1080px; border-radius: 18px; overflow: hidden;
  background: #15110e; box-shadow: 0 2px 4px rgba(16, 24, 40, 0.12), 0 26px 60px rgba(16, 24, 40, 0.26);
}
.video-frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #15110e; }
.video-chapters {
  list-style: none; padding: 0; margin: 22px auto 0; max-width: 1080px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; text-align: left;
}
.video-chapters button {
  width: 100%; height: 100%; display: flex; gap: 10px; align-items: baseline; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink-2);
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.35; text-align: left; cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.video-chapters button:hover { border-color: var(--accent); color: var(--ink); }
.video-chapters button.is-now { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.video-chapters time { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--accent); }
@media (max-width: 960px) { .video-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .video-chapters { grid-template-columns: 1fr; } }

/* Фрагмент экрана крупно, без устройства: карточка заказа с «Заказ увидел» */
.shot-plain {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #e8edf3;
  box-shadow: var(--shadow);
}

@media (max-width: 560px) {
  .shot-tablet { border-radius: 18px; padding: 8px; }
  .hero-art .shot-tablet img, .split-art .shot-tablet img { border-radius: 9px; }
  .shot-browser { padding-top: 24px; }
  .shot-browser::before { top: 8px; left: 11px; width: 8px; height: 8px; box-shadow: 13px 0 #febc2e, 26px 0 #28c840; }
}

/* ── витрина: превью экранов на страницах-оглавлениях ─────────────── */

.showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
@media (min-width: 900px) { .showcase-3 { grid-template-columns: repeat(3, 1fr); } }
.show-card {
  display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--bg); color: var(--ink);
  transition: border-color 0.14s, box-shadow 0.14s, transform 0.14s;
}
.show-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
/* Превью — верхняя часть экрана: в ней шапка и главное, низ всё равно мелкий */
.show-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #eef1f6; border-bottom: 1px solid var(--line); }
.show-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/*
  Кадр бэк-офиса без бокового меню: у всех разделов оно одинаковое, и
  превью превращались в ряд похожих друг на друга полос. Увеличиваем на 20%
  и сдвигаем влево ровно на ширину меню (240 из 1440 пикселей кадра).
*/
.show-thumb.show-browser img { width: 120%; height: auto; max-width: none; margin-left: -20%; }
/* Телефонный кадр узкий и высокий: показываем его по центру на тёмном фоне */
.show-thumb.show-phone { background: #15181d; display: grid; place-items: start center; padding-top: 14px; }
.show-thumb.show-phone img { width: 46%; height: auto; border-radius: 18px 18px 0 0; object-fit: initial; }
:root[data-theme='dark'] .show-thumb { background: #1b222c; }
.show-body { display: grid; gap: 4px; padding: 14px 16px 16px; align-content: start; }
.show-title { font-weight: 650; font-size: 16.5px; }
.show-text { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* ── блок «текст + картинка» ─────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split-solo { grid-template-columns: minmax(0, 760px); }
.split-reverse .split-text { order: 2; }
.split h2 { margin-bottom: 14px; }
.split p { color: var(--ink-2); }

/* ── шаги ────────────────────────────────────────────────────────── */

.flow { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 860px; margin-inline: auto; }
.flow li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.flow-n {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700;
}
.flow h3 { margin-bottom: 4px; }
.flow p { color: var(--muted); margin: 0; }

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

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 16px; background: var(--bg); }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--tint); font-weight: 650; font-size: 14.5px; }
tr:last-child td { border-bottom: 0; }
.note { color: var(--muted); font-size: 15px; margin-top: 14px; text-align: center; }

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

.plans .plan { display: flex; flex-direction: column; position: relative; }
.plan-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 650;
  padding: 4px 10px; border-radius: 999px;
}
.plan-price { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin: 6px 0 2px; }
.plan-per { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.plan-year { color: var(--ok); font-size: 14px; font-weight: 600; margin: -8px 0 14px; }
.plan .checks { margin-bottom: 22px; }
.plan .btn { margin-top: auto; }

/* ── калькулятор подписки ────────────────────────────────────────── */

.calc { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.calc-form { display: grid; gap: 22px; }
.calc-label { font-weight: 650; font-size: 15px; margin-bottom: 10px; }
.calc-mods { display: grid; gap: 8px; }
.calc-mod {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  cursor: pointer; position: relative; transition: border-color 0.12s, background 0.12s;
}
.calc-mod:hover { border-color: var(--accent); }
.calc-mod input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.calc-mod:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.calc-mod.is-always { cursor: default; }
.calc-mod.is-soon { opacity: 0.6; cursor: default; }
.calc-mod.is-soon:hover { border-color: var(--line); }
/* модуль, который достаётся подобранным набором без отметки */
.calc-mod.is-bonus { border-style: dashed; border-color: var(--ok); }
.calc-mod.is-bonus::after {
  content: attr(data-bonus); position: absolute; top: -9px; right: 12px;
  background: var(--ok); color: #fff; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 999px;
}
.calc-mod-body { display: grid; gap: 2px; min-width: 0; }
.calc-mod-name { font-weight: 620; }
.calc-mod-text { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.calc-mod-price { font-weight: 650; white-space: nowrap; font-size: 15px; }
.calc-row { display: flex; flex-wrap: wrap; gap: 22px 32px; }
.calc-venues { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.calc-btn { width: 42px; height: 42px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--ink); }
.calc-btn:hover { background: var(--tint); }
.calc-venues-input {
  width: 56px; height: 42px; border: 0; border-inline: 1px solid var(--line); text-align: center;
  font: inherit; font-weight: 650; background: var(--bg); color: var(--ink); -moz-appearance: textfield;
}
.calc-venues-input::-webkit-inner-spin-button, .calc-venues-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.calc-period { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); }
.calc-period label { cursor: pointer; }
.calc-period input { position: absolute; opacity: 0; pointer-events: none; }
.calc-period span { display: block; padding: 10px 14px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.calc-period input:checked + span { background: var(--accent); color: #fff; }
.calc-period input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.calc-result {
  position: sticky; top: 84px; padding: 24px; border-radius: 18px;
  background: var(--bg); border: 1px solid var(--accent); box-shadow: var(--shadow);
  display: grid; gap: 10px;
}
.calc-plan { font-weight: 650; color: var(--accent); font-size: 15px; }
.calc-amount { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; }
.calc-per { color: var(--muted); font-size: 14.5px; }
.calc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--ink-2); font-size: 15px; }
.calc-save { color: var(--ok); font-weight: 600; font-size: 14.5px; }
.calc-save:empty, .calc-upgrade:empty { display: none; }
.calc-upgrade { background: var(--tint); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--ink-2); }
.calc-cta { margin-top: 6px; text-align: center; }
.calc-note { color: var(--muted); font-size: 13px; margin: 2px 0 0; }
@media (max-width: 860px) {
  .calc { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .calc-mod { grid-template-columns: auto 1fr; }
  .calc-mod-price { grid-column: 2; }
}

/* ── сравнение с другими кассами ─────────────────────────────────── */

.compare-table td:nth-child(2), .compare-table th:nth-child(2) { background: var(--accent-soft); }
.compare-table td:first-child { font-weight: 600; }

/* ── цитата, цифры, FAQ, CTA ─────────────────────────────────────── */

.quote { margin: 0; max-width: 860px; margin-inline: auto; text-align: center; }
.quote blockquote { margin: 0 0 14px; font-size: clamp(20px, 2.4vw, 27px); font-weight: 600; line-height: 1.35; letter-spacing: -0.02em; }
.quote figcaption { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; text-align: center; }
.stat-v { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); }
.stat-l { color: var(--muted); }

.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 4px 18px; margin-bottom: 10px; background: var(--bg); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq-a { padding-bottom: 12px; color: var(--ink-2); }

.cta { padding: 64px 0; background: linear-gradient(135deg, var(--accent), #6d28d9); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.86); max-width: 620px; margin: 0 auto; font-size: 18px; }
.cta .actions { justify-content: center; }
.cta .btn-primary { background: #fff; color: var(--accent-dark); }
.cta .btn-primary:hover { background: #f1f5ff; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

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

.site-footer { border-top: 1px solid var(--line); background: var(--tint); padding: 52px 0 28px; margin-top: 10px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot-brand p { color: var(--muted); font-size: 15px; margin-top: 12px; max-width: 320px; }
.foot-title { font-weight: 650; margin-bottom: 12px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-col a { color: var(--ink-2); font-size: 15.5px; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14.5px;
}

/* ── справка ─────────────────────────────────────────────────────── */

.translate-note { background: #fff7e6; color: #7a5b13; padding: 10px 0; font-size: 15px; }
.translate-note-inline { border-radius: 12px; padding: 10px 14px; margin-bottom: 18px; }
:root[data-theme='dark'] .translate-note { background: #2c2413; color: #e5c88a; }

.help-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr) 210px; gap: 36px; padding-top: 28px; padding-bottom: 60px; align-items: start; }

.side { position: sticky; top: 84px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.side-head { font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.side-search {
  width: 100%; padding: 9px 12px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
  font: inherit; font-size: 15px;
}
.side-section { margin-bottom: 18px; }
.side-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 7px; }
.side-section ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; }
.side-section a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--ink-2); font-size: 15px; }
.side-section a:hover { background: var(--tint); text-decoration: none; }
.side-section a.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-section.is-hidden { display: none; }
.side-section li.is-hidden { display: none; }

.help-body { min-width: 0; }
.crumbs { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.crumbs span { margin: 0 6px; }

.toc { position: sticky; top: 84px; font-size: 14.5px; }
.toc-title { text-transform: uppercase; letter-spacing: 0.06em; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; border-left: 2px solid var(--line); }
.toc a { color: var(--muted); padding-left: 12px; display: block; }
.toc a:hover { color: var(--accent); text-decoration: none; }

.prose h1 { margin-bottom: 12px; }
.prose h2 { margin-top: 38px; padding-top: 6px; }
.prose h3 { margin-top: 26px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose img { border: 1px solid var(--line); border-radius: 12px; margin: 18px 0; }
.prose .shot-inline { margin: 22px 0 26px; }
.prose .shot-inline img { border: 0; border-radius: 0; margin: 0; }
.prose .shot-tablet.shot-inline img { border-radius: 10px; }
.prose .shot-phone.shot-inline { width: min(280px, 100%); }
.prose .shot-phone.shot-inline img { border-radius: 32px; }
.prose blockquote { margin: 18px 0; padding: 2px 18px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.prose .table-wrap { margin: 18px 0; }

.callout { border-radius: 14px; padding: 16px 18px; margin: 20px 0; border: 1px solid var(--line); background: var(--tint); }
.callout-title { font-weight: 650; margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }
.callout-note { border-left: 3px solid var(--accent); }
.callout-tip { border-left: 3px solid var(--ok); }
.callout-warn { border-left: 3px solid var(--warn); }

.steps { counter-reset: step; margin: 20px 0; }
.steps ol { list-style: none; padding: 0; counter-reset: step; }
.steps ol li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 14px; }
.steps ol li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}

.related { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.related-head { font-weight: 650; margin-bottom: 12px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.related-card { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); }
.related-card:hover { border-color: var(--accent); text-decoration: none; }
.related-title { font-weight: 620; }
.related-text { color: var(--muted); font-size: 14.5px; }

.help-hero { padding: 48px 0 24px; background: var(--tint); border-bottom: 1px solid var(--line); text-align: center; }
.help-search-big {
  width: min(560px, 100%); padding: 14px 18px; margin-top: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink);
  font: inherit; font-size: 16px;
}
.help-index { padding: 40px 20px 70px; }
.help-sec { margin-bottom: 40px; }
.help-sec h2 { font-size: 24px; margin-bottom: 16px; }
.help-sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.help-card { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--bg); }
.help-card:hover { border-color: var(--accent); text-decoration: none; }
.help-card-title { font-weight: 620; }
.help-card-text { color: var(--muted); font-size: 14.5px; }
.help-card.is-hidden, .help-sec.is-hidden { display: none; }

/* ── адаптация ───────────────────────────────────────────────────── */

@media (max-width: 1080px) {
  .help-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .toc { display: none; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: block; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 28px; }
  .split-reverse .split-text { order: 0; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .help-layout { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 8px; }
  .section { padding: 48px 0; }
  body { font-size: 16.5px; }
}

@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .header-actions .btn { display: none; }
  /*
    «Попробовать» — единственная дорога к регистрации на всём сайте. На узком
    экране кнопки шапки прятались все, а в мобильное меню скрипт копирует
    только навигацию: владелец кафе с телефона читал «14 дней бесплатно» и
    не находил, где начать. Демо можно спрятать, эту — нельзя.
  */
  .header-actions .btn.header-try { display: inline-flex; padding: 6px 12px; font-size: 13.5px; }
  .header-actions { gap: 4px; }
}

/*
  Телефон 390 px: «Попробовать» по-русски длинное, и шапка вылезала за край
  на 39 px — страница ездила вбок. Имя рядом со знаком «P» уступает место
  кнопке регистрации: знак остаётся, кнопка важнее.
*/
@media (max-width: 420px) {
  .logo-text { display: none; }
}

/* 404: два языка одной страницей — разделитель с воздухом, иначе блоки слипаются */
.notfound hr { margin: 44px 0 30px; border: 0; border-top: 1px solid var(--line); }

/*
 * «Скачать»: карточки приложений с QR-кодом.
 * Код всегда тёмный на белом — и в тёмной теме: камера телефона не читает
 * светлый код на тёмном фоне.
 */
.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.app-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}
.app-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-head h3 {
  margin: 0;
  font-size: 20px;
}
.app-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 26px;
  flex: none;
}
.app-platform {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.app-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}
.app-get {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: auto;
}
.app-qr {
  margin: 0;
  flex: none;
  text-align: center;
}
.app-qr img {
  display: block;
  width: 160px;
  height: 160px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.app-qr figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  max-width: 160px;
}
.app-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.app-link {
  color: var(--muted);
  font-size: 14px;
  word-break: break-all;
}
.app-alt {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 860px) {
  .apps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .app-get {
    flex-direction: column;
    align-items: stretch;
  }
  .app-qr {
    align-self: center;
  }
  .app-actions .btn {
    text-align: center;
  }
}

/* ── увеличение картинок (site.js → initZoom) ─────────────────────── */

.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
html.zoom-lock { overflow: hidden; }
.zoom {
  position: fixed; inset: 0; z-index: 1000;
  display: none; flex-direction: column;
  background: rgba(9, 12, 18, 0.94);
}
.zoom.open { display: flex; }
.zoom-stage {
  flex: 1; min-height: 0; overflow: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 72px 8px; overscroll-behavior: contain;
}
.zoom-img {
  display: block; max-width: 100%; max-height: 100%; object-fit: contain;
  border-radius: 10px; background: #fff; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
  cursor: zoom-in;
}
.zoom.full .zoom-stage { display: block; padding: 64px 16px 16px; }
.zoom.full .zoom-img { max-width: none; max-height: none; margin: 0 auto; cursor: zoom-out; }
.zoom-bar {
  display: flex; gap: 16px; align-items: baseline;
  padding: 10px 24px 18px; color: #e6eaf0; font-size: 14px; line-height: 1.45;
}
.zoom-cap { flex: 1; min-width: 0; }
.zoom-count { color: #9aa4b2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.zoom-btn {
  position: absolute; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 28px; line-height: 1; cursor: pointer;
}
.zoom-btn:hover { background: rgba(255, 255, 255, 0.22); }
.zoom-btn:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 2px; }
.zoom-btn[hidden] { display: none; }
.zoom-close { top: 12px; right: 14px; }
.zoom-prev, .zoom-next { top: 50%; transform: translateY(-50%); }
.zoom-prev { left: 14px; }
.zoom-next { right: 14px; }
.zoom.full .zoom-prev, .zoom.full .zoom-next { display: none; }
@media (max-width: 640px) {
  .zoom-stage { padding: 60px 8px 6px; }
  .zoom-prev, .zoom-next { display: none; }
  .zoom-bar { padding: 8px 14px 14px; font-size: 13px; }
}

/* ── «Скриншоты»: все кадры на одной странице (блок gallery) ──────── */

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px 26px; align-items: start;
}
.gallery-phones { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.gallery-item { margin: 0; }
.gallery-item .shot-phone { width: min(240px, 100%); }
.gallery-item .shot-tablet { padding: 10px; border-radius: 20px; }
.gallery-item .shot-tablet img { border-radius: 9px; }
.gallery-item .shot-phone img { border-radius: 30px; }
.gallery-item figcaption { margin-top: 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.gallery-phones .gallery-item figcaption { text-align: center; }
.gallery-more { margin: 22px 0 0; font-weight: 600; }
@media (max-width: 560px) {
  .gallery { grid-template-columns: 1fr; gap: 26px; }
  .gallery-phones { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
}
