/* Прайс-помощник. Один файл: токены, база, компоненты, страницы. Светлая и тёмная тема. */

/* ---------- 1. Токены ---------- */
:root {
  color-scheme: light dark;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-15: 15px; --fs-17: 17px;
  --fs-21: 21px; --fs-28: 28px; --fs-40: 40px; --fs-56: 56px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px;
  --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-20: 80px;

  --bg: #f5f5f7;
  --surface: #ffffff;
  --fill: #f2f2f4;
  --fill-hover: #e8e8ed;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #737378;
  --sep: rgba(0, 0, 0, .08);
  --sep-strong: rgba(0, 0, 0, .14);
  --nav-bg: rgba(251, 251, 253, .74);

  /* акцент «вода»: спокойный бирюзовый, контраст с белым около 5:1 */
  --accent: #0f7b8a;
  --accent-hover: #0d6c79;
  --accent-text: #0f7b8a;
  --accent-soft: rgba(15, 123, 138, .09);
  --accent-ring: rgba(15, 123, 138, .24);
  --on-accent: #ffffff;

  --green: #248a3d; --green-soft: rgba(52, 199, 89, .14);
  --orange: #b25000; --orange-soft: rgba(255, 159, 10, .16);
  --red: #d70015; --red-soft: rgba(255, 59, 48, .09);
  --yellow-soft: #fff4cc;

  --r-xl: 28px; --r-card: 22px; --r-tile: 18px; --r-field: 12px; --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .04);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .04), 0 10px 30px rgba(0, 0, 0, .07);
  --sh-3: 0 2px 6px rgba(0, 0, 0, .05), 0 24px 60px rgba(0, 0, 0, .12);

  --ease: cubic-bezier(.25, .1, .25, 1);
  --t: 180ms;
  --container: 1120px;
  --gutter: 24px;
  --nav-h: 56px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --fill: #2c2c2e;
    --fill-hover: #3a3a3c;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --text-3: #8e8e93;
    --sep: rgba(255, 255, 255, .1);
    --sep-strong: rgba(255, 255, 255, .18);
    --nav-bg: rgba(22, 22, 23, .74);
    --accent: #4cc3d1;
    --accent-hover: #6fd0db;
    --accent-text: #4cc3d1;
    --accent-soft: rgba(76, 195, 209, .14);
    --accent-ring: rgba(76, 195, 209, .32);
    --on-accent: #00262b;
    --green: #30d158; --green-soft: rgba(48, 209, 88, .16);
    --orange: #ffb340; --orange-soft: rgba(255, 159, 10, .18);
    --red: #ff6961; --red-soft: rgba(255, 69, 58, .16);
    --yellow-soft: #3a3110;
    --sh-1: none; --sh-2: 0 0 0 1px var(--sep); --sh-3: 0 0 0 1px var(--sep), 0 24px 60px rgba(0, 0, 0, .5);
  }
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: var(--fs-17); line-height: 1.47; letter-spacing: -0.022em;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-variant-numeric: tabular-nums;
}
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.03em; }
p { text-wrap: pretty; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-ring); }
img, svg { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.icon { width: 20px; height: 20px; flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.muted { color: var(--text-2); }
.small { font-size: var(--fs-13); }
.tiny { font-size: var(--fs-12); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.main { flex: 1; padding-bottom: var(--s-16); }
.stack > * + * { margin-top: var(--s-4); }
.stack-sm > * + * { margin-top: var(--s-2); }
.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt-2 { margin-top: var(--s-2); } .mt-4 { margin-top: var(--s-4); } .mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }

/* ---------- 3. Шапка и подвал ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--sep);
}
.nav__row { height: var(--nav-h); display: flex; align-items: center; gap: var(--s-4); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: var(--fs-17); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand__sub { display: block; font-size: var(--fs-11); color: var(--text-2); font-weight: 400; letter-spacing: 0; }
.nav__links { display: flex; gap: var(--s-1); margin-left: auto; align-items: center; }
.nav__links a, .nav__links button.linklike {
  padding: 6px 12px; border-radius: var(--r-pill); font-size: var(--fs-13); color: var(--text-2);
  transition: color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.nav__links a:hover { color: var(--text); text-decoration: none; background: var(--fill); }
.nav__links a[aria-current="page"] { color: var(--text); background: var(--fill); font-weight: 500; }
.foot { border-top: 1px solid var(--sep); }
.foot__row { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; padding: var(--s-5) var(--gutter); font-size: var(--fs-12); color: var(--text-2); }
.foot a { color: var(--text-2); }
.demo-strip { background: var(--orange-soft); color: var(--text); text-align: center; font-size: var(--fs-13); padding: 6px var(--gutter); }
.imp-bar { background: #ffd60a; color: #1d1d1f; font-size: var(--fs-13); padding: 8px var(--gutter); display: flex; gap: var(--s-3); justify-content: center; align-items: center; flex-wrap: wrap; }
.imp-bar button { font: inherit; font-weight: 600; background: #1d1d1f; color: #fff; border: 0; border-radius: var(--r-pill); padding: 4px 12px; cursor: pointer; }

/* ---------- 4. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: 44px; padding: 0 var(--s-5); border: 0; border-radius: var(--r-pill); cursor: pointer;
  font: inherit; font-size: var(--fs-15); font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn .icon { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--fill); color: var(--text); }
.btn--secondary:hover { background: var(--fill-hover); }
.btn--ghost { background: transparent; color: var(--accent-text); }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--danger { background: var(--red-soft); color: var(--red); }
.btn--sm { height: 34px; padding: 0 var(--s-4); font-size: var(--fs-13); }
.btn--lg { height: 52px; padding: 0 var(--s-8); font-size: var(--fs-17); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.linklike { background: none; border: 0; font: inherit; color: var(--accent-text); cursor: pointer; padding: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--text-2); cursor: pointer; }
.icon-btn:hover { background: var(--fill); color: var(--text); }

/* ---------- 5. Карточки, плитки, значки ---------- */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-1); padding: var(--s-6); min-width: 0; }
.card--flat { box-shadow: none; border: 1px solid var(--sep); }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.card__title { font-size: var(--fs-21); font-weight: 600; letter-spacing: -0.02em; }
.card__sub { font-size: var(--fs-13); color: var(--text-2); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; margin: var(--s-8) 0 var(--s-6); }
.page-head h1 { font-size: var(--fs-40); line-height: 1.1; font-weight: 600; }
.page-head p { color: var(--text-2); margin-top: var(--s-2); max-width: 640px; }
.stat { background: var(--surface); border-radius: var(--r-tile); padding: var(--s-5); box-shadow: var(--sh-1); min-width: 0; }
.stat__label { font-size: var(--fs-13); color: var(--text-2); }
.stat__value { font-size: var(--fs-28); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; margin-top: 2px; }
.stat__note { font-size: var(--fs-12); color: var(--text-3); margin-top: 2px; }
.stat--accent { background: var(--accent); color: var(--on-accent); }
.stat--accent .stat__label, .stat--accent .stat__note { color: inherit; opacity: .85; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: 500; background: var(--fill); color: var(--text-2); letter-spacing: 0; white-space: nowrap; }
.pill--green { background: var(--green-soft); color: var(--green); }
.pill--orange { background: var(--orange-soft); color: var(--orange); }
.pill--red { background: var(--red-soft); color: var(--red); }
.pill--accent { background: var(--accent-soft); color: var(--accent-text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.meter { height: 8px; border-radius: var(--r-pill); background: var(--fill); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.meter--warn > span { background: var(--orange); }
.meter--full > span { background: var(--red); }

/* ---------- 6. Плашки и сообщения ---------- */
.banner { display: flex; gap: var(--s-3); align-items: center; justify-content: space-between; flex-wrap: wrap; padding: var(--s-3) var(--s-5); border-radius: var(--r-tile); font-size: var(--fs-15); }
.banner--error { background: var(--red-soft); }
.banner--warn { background: var(--orange-soft); }
.banner--info { background: var(--accent-soft); }
.banner--ok { background: var(--green-soft); }
.banners { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-4); }
.flash { margin-top: var(--s-4); }

/* ---------- 7. Формы ---------- */
.field { display: block; min-width: 0; }
.field + .field { margin-top: var(--s-4); }
.label { display: block; margin-bottom: 6px; font-size: var(--fs-13); font-weight: 600; color: var(--text); }
.label .opt { font-weight: 400; color: var(--text-3); }
.input, select.input, textarea.input {
  display: block; width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; font-size: var(--fs-15);
  color: var(--text); background: var(--fill); border: 1px solid transparent; border-radius: var(--r-field);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), background-color var(--t) var(--ease);
}
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: var(--sep-strong); }
.input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ring); }
.input--search { height: 52px; font-size: var(--fs-17); padding-left: 46px; border-radius: var(--r-pill); }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.hint { margin-top: 6px; font-size: var(--fs-12); color: var(--text-2); }
.check { display: flex; gap: var(--s-3); align-items: flex-start; cursor: pointer; font-size: var(--fs-13); color: var(--text-2); line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.form-row { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row + .form-row, .form-row + .field, .field + .form-row { margin-top: var(--s-4); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-pill); background: var(--fill); font-size: var(--fs-13); color: var(--text); cursor: pointer; border: 0; font-family: inherit; }
.chip:hover { background: var(--fill-hover); text-decoration: none; }
.chip[aria-current="page"], .chip.is-on { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }
.chip input { accent-color: var(--accent); }
.segmented { display: inline-flex; padding: 3px; background: var(--fill); border-radius: var(--r-pill); gap: 2px; flex-wrap: wrap; }
.segmented a { padding: 6px 14px; border-radius: var(--r-pill); color: var(--text-2); font-size: var(--fs-13); }
.segmented a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); font-weight: 500; }
.segmented a:hover { text-decoration: none; color: var(--text); }

/* ---------- 8. Таблицы (на телефоне превращаются в карточки) ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-15); }
.table th { text-align: left; font-size: var(--fs-12); font-weight: 600; color: var(--text-2); padding: 0 var(--s-3) var(--s-2); white-space: nowrap; }
.table td { padding: var(--s-3); border-top: 1px solid var(--sep); vertical-align: top; }
.table tr:hover td { background: var(--fill); }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table .bad { background: var(--red-soft); color: var(--red); border-radius: 6px; }
.table a { font-weight: 500; }

/* ---------- 9. Кабинет ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: var(--s-8); align-items: start; }
.side { position: sticky; top: calc(var(--nav-h) + var(--s-6)); margin-top: var(--s-8); }
.side__title { font-size: var(--fs-12); color: var(--text-2); margin: 0 0 var(--s-2) 12px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; color: var(--text); font-size: var(--fs-15); }
.side a .icon { color: var(--text-2); width: 18px; height: 18px; }
.side a:hover { background: var(--fill); text-decoration: none; }
.side a[aria-current="page"] { background: var(--surface); box-shadow: var(--sh-1); font-weight: 600; }
.side a[aria-current="page"] .icon { color: var(--accent-text); }
.role { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); color: var(--text-2); padding: 4px 10px; background: var(--fill); border-radius: var(--r-pill); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) 0; border-top: 1px solid var(--sep); }
.checklist li:first-child { border-top: 0; }
.checkmark { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--text-3); font-size: 13px; font-weight: 700; }
.is-done .checkmark { background: var(--green); color: #fff; }
.is-done .check-title { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--sep-strong); }
.check-title { font-weight: 500; font-size: var(--fs-15); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--sep); font-size: var(--fs-15); }
.list li:first-child { border-top: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); font-size: var(--fs-15); }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.code { font-family: var(--mono); font-size: var(--fs-13); background: var(--fill); border-radius: var(--r-field); padding: var(--s-3) var(--s-4); overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.formula { font-size: var(--fs-12); color: var(--text-2); margin-top: var(--s-2); }
.chart { width: 100%; height: auto; display: block; }
.chart .bar-q { fill: var(--accent); opacity: .85; }
.chart .bar-o { fill: var(--orange); }
.chart text { fill: var(--text-3); font-size: 10px; font-family: var(--font); }
.legend { display: flex; gap: var(--s-4); font-size: var(--fs-12); color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.big-number { font-size: var(--fs-56); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.empty { text-align: center; padding: var(--s-10) var(--s-6); color: var(--text-2); border: 1px dashed var(--sep-strong); border-radius: var(--r-tile); }
.secret { font-family: var(--mono); font-size: var(--fs-21); background: var(--yellow-soft); padding: var(--s-3) var(--s-4); border-radius: var(--r-field); display: inline-block; }

/* поиск в кабинете */
.results { display: flex; flex-direction: column; gap: var(--s-2); }
.result { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: var(--s-4); align-items: center; background: var(--surface); border-radius: var(--r-tile); padding: var(--s-3) var(--s-4); box-shadow: var(--sh-1); }
.result img { width: 48px; height: 48px; border-radius: 12px; background: var(--fill); object-fit: contain; }
.result__name { font-weight: 600; font-size: var(--fs-15); }
.result__meta { font-size: var(--fs-12); color: var(--text-2); margin-top: 2px; }
.result__prices { display: flex; gap: var(--s-3); flex-wrap: wrap; font-size: var(--fs-13); margin-top: 4px; }
.result__prices b { font-weight: 600; }
.kp-panel { position: sticky; top: calc(var(--nav-h) + var(--s-6)); }
.kp-items { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow-y: auto; }
.kp-items li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 28px; gap: var(--s-2); align-items: center; padding: var(--s-2) 0; border-top: 1px solid var(--sep); font-size: var(--fs-13); }
.kp-items input { width: 64px; min-height: 32px; padding: 4px 8px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-6); align-items: start; }
.chat-host { min-height: 560px; }

/* ---------- 10. Лендинг ---------- */
.hero { padding: var(--s-16) 0 var(--s-12); text-align: center; }
.eyebrow { font-size: var(--fs-15); font-weight: 600; color: var(--accent-text); margin-bottom: var(--s-3); }
.hero h1 { font-size: 64px; line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; max-width: 860px; margin: 0 auto; }
.hero__lead { font-size: var(--fs-21); color: var(--text-2); max-width: 680px; margin: var(--s-5) auto 0; line-height: 1.4; }
.hero__cta { display: flex; gap: var(--s-3); justify-content: center; margin-top: var(--s-8); flex-wrap: wrap; }
.section { padding: var(--s-12) 0; }
.section__title { font-size: var(--fs-40); font-weight: 700; letter-spacing: -0.035em; text-align: center; }
.section__lead { color: var(--text-2); text-align: center; max-width: 640px; margin: var(--s-3) auto var(--s-8); font-size: var(--fs-17); }
.steps { counter-reset: step; }
.step { position: relative; padding-top: var(--s-12); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 700; }
.step h3 { font-size: var(--fs-21); margin-bottom: var(--s-2); }
.step p { color: var(--text-2); font-size: var(--fs-15); }
.feature h3 { font-size: var(--fs-17); margin: var(--s-3) 0 var(--s-1); letter-spacing: -0.02em; }
.feature p { color: var(--text-2); font-size: var(--fs-15); }
.feature__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.mock-chat { max-width: 440px; margin: 0 auto; background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-3); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 20px; font-size: var(--fs-15); line-height: 1.4; }
.bubble--me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.bubble--bot { align-self: flex-start; background: var(--fill); border-bottom-left-radius: 6px; }
.mock-card { background: var(--bg); border-radius: 16px; padding: 12px 14px; margin-top: 8px; font-size: var(--fs-13); }
.mock-card b { font-size: var(--fs-15); }
.mock-card .price { font-size: var(--fs-21); font-weight: 700; color: var(--text); margin-top: 4px; letter-spacing: -0.02em; }
.mock-btns { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mock-btns span { font-size: var(--fs-12); padding: 4px 10px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent-text); }
.calc { text-align: center; }
.calc__note { font-size: var(--fs-12); color: var(--text-3); margin-top: var(--s-3); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); padding: var(--s-6); box-shadow: var(--sh-1); position: relative; }
.plan--popular { box-shadow: 0 0 0 2px var(--accent), var(--sh-2); }
.plan__badge { position: absolute; top: -12px; left: var(--s-6); background: var(--accent); color: var(--on-accent); font-size: var(--fs-12); font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); }
.plan__title { font-size: var(--fs-21); font-weight: 600; }
.plan__price { font-size: var(--fs-40); font-weight: 700; letter-spacing: -0.04em; margin-top: var(--s-2); line-height: 1.1; }
.plan__price small { font-size: var(--fs-15); font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.plan__note { font-size: var(--fs-13); color: var(--text-2); margin-top: var(--s-1); }
.plan ul { list-style: none; padding: 0; margin: var(--s-5) 0; flex: 1; font-size: var(--fs-15); }
.plan li { padding: 6px 0; border-top: 1px solid var(--sep); }
.plan li:first-child { border-top: 0; }
.faq details { background: var(--surface); border-radius: var(--r-tile); padding: var(--s-4) var(--s-5); box-shadow: var(--sh-1); }
.faq details + details { margin-top: var(--s-2); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--s-3); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-2); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--text-2); margin-top: var(--s-2); font-size: var(--fs-15); }
.signup { max-width: 640px; margin: 0 auto; }
.narrow { max-width: 520px; margin: var(--s-12) auto 0; }
.prose { max-width: 760px; }
.prose h2 { font-size: var(--fs-21); margin: var(--s-8) 0 var(--s-2); }
.prose p, .prose li { color: var(--text); font-size: var(--fs-15); line-height: 1.6; }
.prose ul { padding-left: 1.2em; }

/* демо-сайт оптовика */
.fake-site { background: var(--surface); }
.fake-hero { padding: var(--s-12) 0; background: linear-gradient(180deg, var(--accent-soft), transparent); }
.fake-hero h1 { font-size: var(--fs-40); }
.cats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s-3); }
.cat { background: var(--bg); border-radius: var(--r-tile); padding: var(--s-4); text-align: center; font-size: var(--fs-13); }
.cat img { width: 44px; height: 44px; display: block; margin: 0 auto var(--s-2); }
.page-chat { max-width: 720px; margin: 0 auto; padding-top: var(--s-6); }

/* ---------- 11. Адаптив ---------- */
@media (max-width: 1060px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .side { position: static; margin-top: var(--s-4); }
  .side__title { display: none; }
  .side nav { flex-direction: row; overflow-x: auto; gap: var(--s-1); padding-bottom: 4px; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side a { white-space: nowrap; font-size: var(--fs-13); padding: 6px 12px; background: var(--fill); border-radius: var(--r-pill); }
  .side a .icon { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .kp-panel { position: static; }
  .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: var(--fs-15); }
  .grid-2, .grid-3, .grid-4, .form-row, .plans { grid-template-columns: minmax(0, 1fr); }
  .grid-4.keep-2, .grid-3.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding: var(--s-10) 0 var(--s-8); }
  .hero h1 { font-size: 38px; }
  .hero__lead { font-size: var(--fs-17); }
  .section__title { font-size: var(--fs-28); }
  .page-head h1 { font-size: var(--fs-28); }
  .card { padding: var(--s-4); border-radius: var(--r-tile); }
  .nav__links .hide-sm { display: none; }
  .brand__sub { display: none; }
  .stat__value { font-size: var(--fs-21); }
  .big-number { font-size: var(--fs-40); }
  .result { grid-template-columns: 40px minmax(0, 1fr); }
  .result img { width: 40px; height: 40px; }
  .result > .result__act { grid-column: 1 / -1; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dt { margin-top: var(--s-2); }
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr { background: var(--surface); border-radius: var(--r-tile); padding: var(--s-2) var(--s-3); margin-bottom: var(--s-2); border: 1px solid var(--sep); }
  .table--cards td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: var(--s-3); text-align: right; }
  .table--cards td::before { content: attr(data-label); color: var(--text-2); font-size: var(--fs-12); text-align: left; flex: none; }
  .table--cards td.num { text-align: right; }
  .table--cards tr:hover td { background: none; }
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
