/* Шрифты лежат рядом с сайтом, чтобы не зависеть от Google Fonts */
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/golos-text-cyrillic-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/golos-text-latin-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/golos-text-cyrillic-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/golos-text-latin-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/golos-text-cyrillic-2.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/golos-text-latin-3.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/pt-sans-narrow-cyrillic-4.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/pt-sans-narrow-latin-5.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/pt-sans-narrow-cyrillic-6.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'PT Sans Narrow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/pt-sans-narrow-latin-7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Основная тема сайта («Светлая»; «Океан» убран 2026-10-06, копия в /mnt/project-files/archive/site-unused-2026-10-06/themes/archive/ocean.css): фон #F4F6F9, белые карточки, чернильно-синий текст, цифровой синий для ссылок, оранжевый только для главных кнопок */
:root {
  --bg: #f4f6f9;
  --bg-2: #eef1f6;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --ink: #0f172a;
  --muted: #475569;
  --faint: #5b6b80;
  --accent: #2563eb;
  --accent-2: #2563eb;
  --accent-soft: #eff4ff;
  --grad: #2563eb;
  --cta: #f97316;
  --cta-hover: #ea580c;
  --navy: #0f172a;
  --surface: #ffffff;
  --glow: 0 1px 2px rgb(15 23 42 / .12);
  --shadow: 0 1px 2px rgb(15 23 42 / .04), 0 8px 24px -12px rgb(15 23 42 / .12);
  --radius: 12px;
  --font-display: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-body: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --margin-w: 56px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; position: relative; overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body > * { position: relative; }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: #cddcfd; color: var(--ink); }
html { scrollbar-color: #b7c3d4 var(--bg); accent-color: var(--accent); caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 1500px) { .wrap { max-width: min(1520px, 84vw); } }

/* Шапка */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-block: 22px;
}
.logo {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  font: 600 18px/1 var(--font-display); letter-spacing: -.01em;
}
.logo-mark {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: 8px; background: var(--navy); color: #fff;
  font: 600 13px/1 var(--font-display); letter-spacing: .02em;
  box-shadow: none;
}
.top-link {
  font: 500 15px/1 var(--font-body); text-decoration: none; padding: 11px 18px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface);
  white-space: nowrap; transition: border-color .2s, background .2s;
}
.top-link:hover { border-color: var(--accent); color: var(--accent); }

/* Стеклянная панель */
.sheet {
  position: relative; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.sheet::after {
  content: ""; position: absolute; inset: 0 20% auto; height: 1px; pointer-events: none;
  display: none;
}

/* Hero */
.hero { padding-block: 24px 80px; }
.sheet-head {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px 56px; align-items: end;
  padding: 56px 48px 48px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  font: 600 clamp(32px, 4.2vw, 56px)/1.08 var(--font-display);
  letter-spacing: -0.035em; margin: 0; text-wrap: balance;
  color: var(--ink);
}
.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 16px/1 var(--font-body); padding: 16px 24px;
  border-radius: 8px; background: var(--cta); color: var(--ink);
  box-shadow: var(--glow);
  transition: transform .2s, box-shadow .2s, filter .2s;
}
.btn:hover { background: var(--cta-hover); box-shadow: 0 6px 16px -8px rgb(249 115 22 / .7); }
.btn-ghost { background: var(--surface); color: var(--accent); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--surface); color: var(--accent); border-color: var(--accent); box-shadow: none; }

/* Живая CRM-таблица заявок */
.ledger { --cols: 76px 80px minmax(0, 1.1fr) minmax(0, 1.7fr) minmax(0, 1fr) 150px; }
.ledger-row {
  display: grid; grid-template-columns: var(--cols); align-items: center;
  min-height: 52px; border-bottom: 1px solid var(--line);
}
.ledger-row > span { padding: 6px 14px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: flex; align-items: center; }
.ledger-cols { min-height: 44px; background: #f8f9fb; }
.ledger-cols > span { font: 500 11.5px/1.2 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.ledger-cols > span:first-child { justify-content: center; }
.ledger-body { position: relative; height: calc(6 * 53px); overflow: hidden; }
.ledger-body .ledger-row { transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.ledger-body .ledger-row:last-child { background: #f5f8ff; }
.ledger-body .ledger-row.is-leaving { opacity: 0; transform: translateY(-14px); }
.ledger-body .num { font: 400 13px/1 var(--font-mono); color: var(--faint); justify-content: center; }
.ledger-body .hand {
  font: 400 15px/1.2 var(--font-body); color: var(--muted);
  opacity: 0; transform: translateY(4px); transition: opacity .35s ease-out, transform .35s ease-out;
}
.ledger-body .hand.is-written { opacity: 1; transform: none; }
.ledger-body .c-time { font: 400 13.5px/1 var(--font-mono); color: var(--faint); }
.ledger-body .c-client { color: var(--ink); font-weight: 500; }
.ledger-body .c-man { color: var(--accent); font-weight: 500; }
.ledger-body .mark { overflow: visible; }
.stamp {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px;
  border: 1px solid #c7d7fb; border-radius: 6px; background: var(--accent-soft); color: var(--accent);
  font: 500 13px/1 var(--font-body);
  opacity: 0; transform: scale(.96); transition: opacity .3s ease-out, transform .3s ease-out, box-shadow .6s;
}
.stamp svg { flex: none; }
.stamp.st-new { color: var(--accent); background: var(--accent-soft); border-color: #c7d7fb; }
.stamp.st-pay { color: #9a4a00; background: #fff4e0; border-color: #f6d39a; }
.stamp.st-done { color: #fff; background: var(--grad); border-color: transparent; }
.stamp.st-cancel { color: var(--faint); background: #f1f4f7; border-color: #dbe2ea; text-decoration: line-through; text-decoration-thickness: 1px; }
.stamp.is-down { opacity: 1; transform: none; }

.ledger-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 18px 28px 20px 90px;
}
.ledger-note { font: 500 11.5px/1 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.ledger-total { display: flex; align-items: center; gap: 14px 40px; flex-wrap: wrap; }
.tally { display: inline-flex; align-items: baseline; gap: 10px; }
.tally b { font: 600 46px/0.95 var(--font-display); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tally small { font: 400 15px/1.25 var(--font-body); color: var(--muted); }
.ledger-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.ledger-stats li { display: inline-flex; align-items: center; gap: 7px; }
.ledger-stats i { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.ledger-stats i.st-new { background: #c7d7fb; }
.ledger-stats i.st-pay { background: #f2b75b; }
.ledger-stats i.st-done { background: var(--grad); }
.ledger-stats i.st-cancel { background: #c3ccd6; }
.ledger-stats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; min-width: 1.4em; }
.tally small br { display: block; }
.tally-one b { color: var(--accent); }

/* Итоги */
.results { padding-block: 0 96px; }
.results-list {
  list-style: none; margin: 0; padding: 0; counter-reset: res;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.results-list li {
  counter-increment: res; padding: 28px 28px 30px; min-width: 0; position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.results-list li::before {
  content: "0" counter(res); display: block; margin-bottom: 22px;
  font: 500 12px/1 var(--font-mono); letter-spacing: .1em; color: var(--faint);
}
.results-list h2 .fig { color: var(--accent); }
.results-list h2 { font: 600 25px/1.15 var(--font-display); letter-spacing: -.02em; margin: 0 0 12px; text-wrap: balance; }
.results-list p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Типы сайтов */
.types { padding-block: 0 112px; }
.types-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: end;
  margin-bottom: 40px;
}
.types h2 { font: 600 clamp(34px, 4.4vw, 56px)/1.06 var(--font-display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.note { margin: 0; font-size: 15.5px; color: var(--muted); max-width: 32em; }
.note-mark {
  display: inline-block; margin-bottom: 10px; padding: 4px 9px; border-radius: 999px;
  border: 1px solid #c7d7fb; background: var(--accent-soft); color: var(--accent);
  font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .1em;
}
.note .note-mark { display: table; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 2px 4px rgb(15 23 42 / .05), 0 18px 36px -18px rgb(15 23 42 / .25); }
.card-label {
  align-self: flex-start; margin: 4px 4px 14px; padding: 5px 10px;
  border: 1px solid var(--line-strong); border-radius: 6px; color: var(--muted); background: var(--bg);
  font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase;
}
.shot { aspect-ratio: 16 / 10; position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s ease; }
.card:hover .shot img { transform: scale(1.03); }
.shot-empty {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px;
  color: var(--muted); font-size: 14px; background: var(--bg-2);
}
.shot-empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

.card-body { padding: 22px 12px 8px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag { font: 500 14px/1.2 var(--font-body); color: var(--accent); }
.card h3 { font: 600 30px/1.1 var(--font-display); letter-spacing: -.025em; margin: 0; }
.card p { margin: 0; color: var(--muted); }
.fit { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.fit b { font: 500 11.5px/1.2 var(--font-mono); color: var(--faint); text-transform: uppercase; letter-spacing: .1em; }
.fit ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 15.5px; }
.fit li { padding-left: 20px; position: relative; }
.fit li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.fit strong { color: var(--ink); font-weight: 500; }
.more {
  margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font: 600 16px/1 var(--font-body); color: var(--accent);
}
.more svg { transition: transform .3s; }
.card:hover .more svg { transform: translateX(5px); }

.foot { padding-block: 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }

/* Страница шаблона и заглушка */
.tpl { padding-block: 24px 110px; }
.page-head { margin-bottom: 36px; }
.page-head .tag { display: block; margin-bottom: 12px; font-size: 15px; }
.page-head h1 {
  font: 600 clamp(40px, 5.8vw, 76px)/1.04 var(--font-display); margin: 0 0 20px; letter-spacing: -0.035em;
  color: var(--ink);
}
.tpl-lead { color: var(--muted); font-size: 18px; max-width: 36em; margin: 0; }
.tpl-lead-main { color: var(--ink); font: 500 22px/1.35 var(--font-display); letter-spacing: -.01em; max-width: 30em; margin: 0 0 12px; }

.live { margin: 0 0 64px; padding: 14px; }
.live .card-label { margin-bottom: 14px; }
.live-frame { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.live-bar {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line);
  font: 400 13px/1.2 var(--font-mono); color: var(--faint); background: #f8f9fb;
}
.live-bar::before {
  content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%;
  background: #d3d9e3; box-shadow: 16px 0 0 #d3d9e3, 32px 0 0 #d3d9e3; margin-right: 34px;
}
.live-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-open { margin: -12px -10px -12px auto; padding: 12px 10px; font: 500 13px/1 var(--font-body); color: var(--accent); text-decoration: none; white-space: nowrap; }
.live-open:hover { text-decoration: underline; }
.live iframe { display: block; width: 100%; height: min(78vh, 760px); border: 0; background: var(--bg-2); }
.live-hint { margin: 0; padding: 16px 6px 4px; font-size: 15px; color: var(--muted); }
.live-hint .note-mark { margin: 0 10px 0 0; vertical-align: 1px; }

.tabs { display: flex; gap: 8px; margin-bottom: 28px; overflow-x: auto; }
.tab {
  padding: 10px 18px; text-decoration: none; font: 500 15px/1 var(--font-body);
  color: var(--muted); border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
.tab.is-active { color: #fff; border-color: var(--navy); background: var(--navy); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.feature { min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.feature .card-label { margin-bottom: 2px; }
.feature h2 { font: 600 24px/1.15 var(--font-display); letter-spacing: -.02em; margin: 4px 0 0; }
.feature-media {
  position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line);
}
.feature-media::before {
  content: "Видео загружается с Rutube…"; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--faint); font: 400 14px/1 var(--font-body);
}
.feature-media iframe { position: relative; width: 100%; height: 100%; border: 0; display: block; background: transparent; }
.feature-link { align-self: flex-start; margin: -14px 4px -10px; padding: 14px 0; font: 500 15px/1 var(--font-body); color: var(--accent); text-decoration: none; }
.feature-link:hover { text-decoration: underline; }

.stub { padding-block: 40px 120px; }
.stub .sheet { padding: 56px 48px; }
.stub p { color: var(--muted); margin: 0 0 32px; }

/* Паспорт шаблона и следующий шаг */
.passport { margin-bottom: 48px; }
.passport .page-head { margin: 0; padding: 52px 48px 40px; border-bottom: 1px solid var(--line); }
.page-head h1 { overflow-wrap: anywhere; }
.passport-rows { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.passport-rows > div { padding: 26px 48px 28px; border-bottom: 1px solid var(--line); }
.passport-rows > div:nth-child(odd) { border-right: 1px solid var(--line); }
.passport-rows > div:nth-last-child(-n+2) { border-bottom: 0; }
.passport-rows dt {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  font: 600 19px/1.25 var(--font-display); letter-spacing: -.01em; color: var(--ink);
}
.passport-rows dt::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.passport-rows dd { margin: 0; font: 400 15.5px/1.55 var(--font-body); color: var(--muted); }
.next { margin-top: 56px; padding: 32px 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.next h2 { margin: 0; font: 600 30px/1.1 var(--font-display); letter-spacing: -.02em; }
.next-links { display: flex; gap: 12px; flex-wrap: wrap; }

.variant-head { margin: 0 0 20px; max-width: 46em; }
.variant-head h2 { margin: 0 0 10px; font: 600 clamp(28px, 3.4vw, 40px)/1.1 var(--font-display); letter-spacing: -.025em; }
.variant-head p { margin: 0; color: var(--muted); }

/* Адаптив */
@media (max-width: 960px) {
  .sheet-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .ledger { --cols: 72px minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, .9fr) 132px; }
  .ledger-row > span:nth-child(2) { display: none; }
  .results-list { grid-template-columns: minmax(0, 1fr); }
  .types-head, .grid { grid-template-columns: minmax(0, 1fr); }
  .passport-rows { grid-template-columns: minmax(0, 1fr); }
  .passport-rows > div:nth-child(odd) { border-right: 0; }
  .passport-rows > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  :root { --margin-w: 36px; --radius: 16px; }
  .wrap { padding-inline: 14px; }
  .top-link { font-size: 14px; padding: 9px 13px; }
  .logo { font-size: 16px; gap: 10px; }
  .logo-mark { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
  .hero { padding-top: 8px; }
  .sheet-head { padding: 32px 20px 28px; }
  .lead { font-size: 16.5px; }
  .ledger { --cols: 42px minmax(0, 1fr) 84px 116px; }
  .ledger-body .c-man { white-space: normal; line-height: 1.15; font-size: 12.5px; }
  .ledger-body .c-man { font-size: 13px; }
  .ledger-row > span:nth-child(2), .ledger-row > span:nth-child(4) { display: none; }
  .ledger-row > span { padding-inline: 10px; }
  .ledger-row > span:nth-child(5) { padding-inline: 4px; }
  .ledger-row > span:nth-child(6) { padding-inline: 4px 10px; }
  .ledger-row > span:first-child { padding-inline: 4px; }
  .ledger-cols > span { font-size: 9.5px; letter-spacing: .02em; }
  .ledger-body .hand { font-size: 14px; }
  .stamp { font-size: 12px; padding: 4px 7px 4px 5px; gap: 4px; }
  .stamp svg { width: 12px; height: 12px; }
  .ledger-foot { padding: 16px 16px 18px 54px; }
  .tally b { font-size: 40px; }
  .results-list li { padding: 22px 22px 24px; }
  .card { padding: 10px; }
  .card h3 { font-size: 26px; }
  .live { padding: 8px; }
  .live iframe { height: 72vh; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { padding: 10px; }
  .stub .sheet { padding: 36px 20px 40px; }
  .passport .page-head { padding: 32px 20px 28px; }
  .passport-rows > div { padding: 20px; }
  .next { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before { animation: none !important; transition: none !important; }
  .stamp, .ledger-body .hand { opacity: 1; transform: none; }
}

/* Выбор темы */
.top-actions { display: flex; align-items: center; gap: 10px; }
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.theme-switch button {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 8px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted); cursor: pointer; font: 500 14px/1 var(--font-body);
  transition: background .2s, color .2s;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.theme-switch i { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgb(128 128 128 / .45); }
@media (max-width: 620px) {
  .top { flex-wrap: wrap; row-gap: 12px; padding-block: 16px; }
  .top-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .theme-switch button { padding: 6px 9px 6px 6px; font-size: 13px; }
}
@media (max-width: 620px) {
  .page-head h1 { font-size: 34px; overflow-wrap: normal; hyphens: auto; }
}

/* Живой фон и метрики под заголовком */
.sheet-head { position: relative; isolation: isolate; overflow: hidden; }
.sheet-head > * { position: relative; z-index: 1; }
.sheet-head::before, .sheet-head::after { content: ""; position: absolute; pointer-events: none; z-index: 0; }
.sheet-head::before {
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--accent) 22%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 10%, #000 0%, transparent 65%);
          mask-image: radial-gradient(120% 90% at 85% 10%, #000 0%, transparent 65%);
  animation: hero-dots 24s linear infinite;
}
.sheet-head::after {
  width: 720px; height: 720px; right: -220px; top: -360px; border-radius: 50%;
  background:
    radial-gradient(closest-side at 38% 42%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent),
    radial-gradient(closest-side at 66% 64%, color-mix(in srgb, var(--accent) 20%, transparent), transparent);
  filter: blur(20px);
  animation: hero-glow 16s ease-in-out infinite alternate;
}
@keyframes hero-dots { to { background-position: 22px 22px; } }
@keyframes hero-glow {
  0%   { transform: translate(0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate(-90px, 60px) rotate(40deg) scale(1.1); }
  100% { transform: translate(-30px, 120px) rotate(80deg) scale(.95); }
}

.hero-title { display: grid; gap: 28px; align-content: end; }
.hero-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.metric {
  padding: 16px 18px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(10px);
  animation: metric-in .7s cubic-bezier(.2,.7,.2,1) forwards;
}
.metric-up { animation-delay: .15s; }
@keyframes metric-in { to { opacity: 1; transform: none; } }
.metric-top { display: flex; align-items: baseline; gap: 8px; }
.metric-top b {
  font: 600 34px/1 var(--font-display); letter-spacing: -.03em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.metric-top span { font: 500 15px/1.2 var(--font-body); color: var(--ink); }
.metric-bar { height: 6px; margin: 12px 0 8px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; }
.metric-bar i {
  display: block; height: 100%; width: var(--to); border-radius: inherit;
  background: var(--accent);
  animation: metric-bar 1.6s .35s cubic-bezier(.65,0,.35,1) both;
}
.metric-up .metric-bar i { background: var(--accent-2); }
@keyframes metric-bar { from { width: var(--from); } to { width: var(--to); } }
.metric small { display: flex; justify-content: space-between; gap: 8px; font: 400 12.5px/1.3 var(--font-body); color: var(--faint); }
.metric small span:last-child { color: var(--muted); font-weight: 500; }

@media (max-width: 620px) {
  .hero-title { gap: 20px; }
  .hero-metrics { gap: 8px; }
  .metric { padding: 12px 12px 10px; }
  .metric-top { flex-wrap: wrap; gap: 2px 6px; }
  .metric-top b { font-size: 28px; }
  .metric-top span { font-size: 13.5px; }
  .metric small { flex-direction: column; gap: 2px; font-size: 11.5px; }
  .sheet-head::after { width: 460px; height: 460px; right: -200px; top: -230px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet-head::before, .sheet-head::after, .metric, .metric-bar i { animation: none !important; }
  .metric { opacity: 1; transform: none; }
}

/* Макет одностраничника у заголовка */
.passport .page-head.has-mock h1 { overflow-wrap: normal; font-size: clamp(34px, 3.9vw, 54px); }
.passport .page-head.has-mock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px 56px; align-items: center; }
.mock {
  --t: 9s; position: relative; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden;
  background: var(--bg); box-shadow: var(--shadow);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-bar span { margin-left: 10px; flex: 1; padding: 4px 10px; border-radius: 6px; background: var(--bg); font: 400 11.5px/1 var(--font-body); color: var(--faint); }
.mock-page { display: grid; gap: 10px; padding: 14px; }
.mk { border-radius: 8px; background: var(--surface); border: 1px solid var(--line); animation: mk-in var(--t) cubic-bezier(.2,.7,.2,1) infinite both; }
.mk b, .mk s, .mk i, .mk span, .mk em { display: block; border-radius: 4px; text-decoration: none; }
.mk-nav { display: flex; align-items: center; gap: 8px; padding: 9px 12px; }
.mk-nav b { width: 46px; height: 10px; background: var(--ink); margin-right: auto; opacity: .85; }
.mk-nav s { width: 28px; height: 6px; background: var(--line-strong); }
.mk-hero { padding: 16px 14px; display: grid; gap: 8px; animation-delay: .25s; }
.mk-hero b { height: 13px; width: 86%; background: var(--ink); opacity: .85; }
.mk-hero b + b { width: 58%; }
.mk-hero s { height: 7px; width: 72%; background: var(--line-strong); margin-top: 2px; }
.mk em { height: 22px; width: 104px; margin-top: 6px; border-radius: 6px; background: var(--cta, var(--accent)); }
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; animation-delay: .5s; }
.mk-cards i { height: 38px; background: var(--accent-soft); }
.mk-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; padding: 12px; animation-delay: .75s; }
.mk-form span { position: relative; height: 22px; border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden; }
.mk-form span::after { content: ""; position: absolute; left: 8px; top: 8px; height: 5px; border-radius: 3px; background: var(--muted); animation: mk-type var(--t) steps(8) infinite both; }
.mk-form span + span::after { animation-name: mk-type2; }
.mk-form em { width: 74px; margin: 0; animation: mk-press var(--t) infinite; }
.mock-toast {
  position: absolute; left: 50%; top: 58px; display: flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 14px; border-radius: 8px; background: var(--ink); color: #fff; font: 500 13px/1 var(--font-body);
  box-shadow: 0 10px 24px -10px rgb(0 0 0 / .45); animation: mk-toast var(--t) cubic-bezier(.2,.7,.2,1) infinite both;
}
.mock-cursor { position: absolute; left: 0; top: 0; width: 18px; height: 18px; animation: mk-cursor var(--t) ease-in-out infinite both; }

@keyframes mk-in { 0% { opacity: 0; transform: translateY(8px); } 8%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mk-type { 0%, 30% { width: 0; } 42%, 100% { width: 60%; } }
@keyframes mk-type2 { 0%, 44% { width: 0; } 56%, 100% { width: 72%; } }
@keyframes mk-press { 0%, 62% { transform: none; filter: none; } 64% { transform: scale(.92); filter: brightness(1.15); } 67%, 100% { transform: none; filter: none; } }
@keyframes mk-toast { 0%, 66% { opacity: 0; transform: translate(-50%, 12px); } 70%, 90% { opacity: 1; transform: translate(-50%, 0); } 96%, 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes mk-cursor {
  0%, 10% { transform: translate(var(--cx0, 60px), var(--cy0, 150px)); opacity: 0; }
  14% { opacity: 1; }
  28% { transform: translate(var(--cx1, 90px), var(--cy1, 270px)); }
  44% { transform: translate(var(--cx2, 220px), var(--cy1, 270px)); }
  60%, 66% { transform: translate(var(--cx3, 350px), var(--cy1, 270px)); }
  88% { opacity: 1; } 96%, 100% { transform: translate(var(--cx3, 350px), var(--cy1, 270px)); opacity: 0; }
}
@media (max-width: 960px) {
  .passport .page-head.has-mock { grid-template-columns: minmax(0, 1fr); }
  .mock { max-width: 460px; }
}
@media (prefers-reduced-motion: reduce) {
  .mk, .mk-form span::after, .mock-toast, .mock-cursor, .mk-form em { animation: none !important; }
  .mk-form span::after { width: 60%; }
  .mock-toast, .mock-cursor { display: none; }
}

/* Пометка «сайт — пример» под описанием варианта */
.variant-head .variant-note {
  display: inline-flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 12px 18px 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font: 600 20px/1.3 "PT Sans Narrow", var(--font-display); letter-spacing: .005em;
}
.variant-note svg { flex: none; margin-top: 3px; }
@media (max-width: 620px) { .variant-head .variant-note { font-size: 18px; padding: 10px 14px 10px 12px; } }

/* Ссылка на сайт-пример под пометкой */
.live-link { margin: 10px 0 0; padding: 0 6px 4px; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.live-link a {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--accent);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.live-link a:hover { text-decoration-thickness: 2px; }

/* Страница CRM/Сайта: телефон с магазином и CRM, заказ с сайта появляется в CRM */

/* Витрина */
.sp-page { display: grid; gap: 10px; padding: 12px; }
.sp-nav { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.sp-nav b { width: 46px; height: 10px; border-radius: 4px; background: var(--ink); opacity: .85; margin-right: auto; }
.sp-nav s { width: 26px; height: 6px; border-radius: 4px; background: var(--line-strong); }
.sp-cart { position: relative; display: grid; place-items: center; width: 26px; height: 22px; margin-left: 4px; color: var(--ink); }
.sp-cart em {
  position: absolute; top: -6px; right: -6px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px;
  background: var(--cta, var(--accent)); color: var(--ink); font: 700 10px/15px var(--font-body); font-style: normal; text-align: center;
  animation: sp-badge var(--t) infinite both;
}
.sp-banner { display: grid; gap: 7px; padding: 16px 14px; border-radius: 8px; background: var(--grad); }
.sp-banner b { width: 62%; height: 12px; border-radius: 4px; background: rgb(255 255 255 / .9); }
.sp-banner s { width: 40%; height: 7px; border-radius: 4px; background: rgb(255 255 255 / .55); }
.sp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sp-card { display: grid; gap: 6px; padding: 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.sp-card i { height: 56px; border-radius: 6px; background: var(--accent-soft); }
.sp-card b { height: 7px; width: 80%; border-radius: 4px; background: var(--ink); opacity: .75; }
.sp-card s { height: 6px; width: 45%; border-radius: 4px; background: var(--line-strong); }
.sp-card em {
  display: block; margin-top: 2px; padding: 5px 0; border-radius: 6px; text-align: center; white-space: nowrap; overflow: hidden;
  background: var(--accent-soft); color: var(--accent); font: 600 10.5px/1.2 var(--font-body); font-style: normal;
}
.sp-hit em { animation: sp-press var(--t) infinite; }

/* CRM */
.cr-page { display: grid; grid-template-columns: 34px minmax(0, 1fr); min-height: 252px; }
.cr-side { display: grid; align-content: start; justify-items: center; gap: 12px; padding: 12px 0; background: var(--navy); }
.cr-side b { width: 16px; height: 16px; border-radius: 5px; background: var(--accent-2); margin-bottom: 6px; }
.cr-side i { width: 14px; height: 4px; border-radius: 3px; background: rgb(255 255 255 / .3); }
.cr-side i.on { background: #fff; }
.cr-main { display: grid; align-content: start; gap: 10px; padding: 12px; min-width: 0; }
.cr-kpi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cr-kpi > div { padding: 8px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.cr-kpi small { display: block; font: 500 10px/1.2 var(--font-body); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-flip { display: grid; margin-top: 4px; font: 600 15px/1.1 var(--font-display); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cr-flip span { grid-area: 1 / 1; animation: cr-old var(--t) infinite both; }
.cr-flip span + span { animation-name: cr-newval; color: var(--accent); }
.cr-table { display: grid; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.cr-row {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 10px; align-items: center;
  height: 34px; padding: 0 10px; border-top: 1px solid var(--line); font: 500 11px/1 var(--font-body); color: var(--muted);
}
.cr-row:first-child { border-top: 0; }
.cr-row b { height: 7px; width: var(--w); border-radius: 4px; background: var(--ink); opacity: .7; }
.cr-n { color: var(--faint); font-variant-numeric: tabular-nums; }
.cr-sum { color: var(--ink); font-weight: 600; white-space: nowrap; }
.cr-st { padding: 4px 7px; border-radius: 6px; border: 1px solid transparent; font-size: 10px; font-weight: 600; white-space: nowrap; }
.cr-st.st-new { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.cr-st.st-pay { color: #9a4a00; background: #fff4e0; border-color: #f6d39a; }
.cr-st.st-done { color: #fff; background: var(--grad); }
.cr-st.st-cancel { color: var(--faint); background: #f1f4f7; border-color: #dbe2ea; text-decoration: line-through; }
.cr-new { animation: cr-row var(--t) infinite both; overflow: hidden; }

@keyframes sp-press { 0%, 27% { transform: none; background: var(--accent-soft); color: var(--accent); } 29% { transform: scale(.92); background: var(--accent); color: #fff; } 32%, 88% { transform: none; background: var(--accent); color: #fff; } 94%, 100% { background: var(--accent-soft); color: var(--accent); } }
@keyframes sp-badge { 0%, 30% { transform: scale(0); } 34% { transform: scale(1.25); } 37%, 92% { transform: scale(1); } 96%, 100% { transform: scale(0); } }
@keyframes cr-row {
  0%, 38% { height: 0; opacity: 0; border-top-width: 0; background: var(--accent-soft); }
  44% { height: 34px; opacity: 1; background: var(--accent-soft); }
  80% { background: var(--accent-soft); }
  88%, 93% { height: 34px; opacity: 1; background: transparent; }
  98%, 100% { height: 0; opacity: 0; background: transparent; }
}
@keyframes cr-old { 0%, 40% { opacity: 1; transform: none; } 44%, 94% { opacity: 0; transform: translateY(-6px); } 98%, 100% { opacity: 1; transform: none; } }
@keyframes cr-newval { 0%, 40% { opacity: 0; transform: translateY(6px); } 44%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }

@media (max-width: 960px) {
}
@media (max-width: 620px) {
  .cr-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; }
  .cr-row .cr-sum { display: none; }
  .cr-kpi small { font-size: 9px; }
  .cr-flip { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .cr-flip span:first-child { opacity: 0; }
  .sp-cart em { transform: none; }
}

/* Шапка страницы CRM/Сайта: CRM в окне браузера и магазин в телефоне поверх */
.passport .page-head.crm-head { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); }
.combo { --t: 8s; position: relative; padding: 0 0 22px 118px; }
.combo .crm-mock { max-width: none; }
.phone {
  position: absolute; left: 0; bottom: 0; width: 158px; padding: 18px 7px 10px; border-radius: 24px;
  background: var(--navy); box-shadow: 0 18px 40px -18px rgb(6 42 69 / .55);
}
.phone-notch { position: absolute; top: 7px; left: 50%; width: 46px; height: 5px; margin-left: -23px; border-radius: 3px; background: rgb(255 255 255 / .25); }
.phone .sp-page { gap: 7px; padding: 8px; border-radius: 16px; background: var(--bg); }
.phone .sp-nav { padding: 7px 9px; }
.phone .sp-nav b { width: 38px; height: 8px; }
.phone .sp-banner { padding: 11px 10px; gap: 5px; }
.phone .sp-banner b { height: 9px; }
.phone .sp-banner s { height: 5px; }
.phone .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.phone .sp-card { padding: 6px; gap: 5px; }
.phone .sp-card i { height: 46px; }
.phone .sp-card b { height: 6px; }
.phone .sp-card s { height: 5px; }
.phone .sp-card em { padding: 4px 0; font-size: 9.5px; }
.combo-pulse {
  position: absolute; left: 150px; bottom: 60px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 25%, transparent);
  opacity: 0; animation: combo-fly var(--t) cubic-bezier(.5,0,.3,1) infinite;
}
@keyframes combo-fly {
  0%, 30% { opacity: 0; transform: translate(0, 0) scale(.6); }
  32% { opacity: 1; transform: translate(0, 0) scale(1); }
  40% { opacity: 1; transform: translate(70px, -110px) scale(1); }
  43%, 100% { opacity: 0; transform: translate(80px, -118px) scale(.4); }
}

/* Живая демо-версия магазина: телефонная ширина и подсказки рядом */
.live-app-body { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: 32px; align-items: center; padding: 0 32px 0 0; background: var(--bg-2); }
.live-app iframe { width: 100%; height: min(80vh, 780px); border-right: 1px solid var(--line-strong); }
.live-steps { margin: 0; padding: 24px 0 24px 22px; display: grid; gap: 14px; color: var(--muted); font-size: 16px; }
.live-steps li::marker { color: var(--accent); font-weight: 700; }
.live-steps b { color: var(--ink); font-weight: 600; }

@media (max-width: 960px) {
  .passport .page-head.crm-head { grid-template-columns: minmax(0, 1fr); }
  .combo { max-width: 560px; }
  .live-app-body { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .live-app iframe { border-right: 0; border-bottom: 1px solid var(--line-strong); height: 78vh; }
  .live-steps { padding: 4px 20px 22px 40px; }
}
@media (max-width: 620px) {
  .combo { padding-left: 86px; }
  .phone { width: 128px; border-radius: 20px; padding: 16px 6px 8px; }
  .phone .sp-card i { height: 34px; }
  .phone .sp-card em { height: 14px; font-size: 0; }
  .phone .sp-banner { padding: 8px; }
  .combo-pulse { display: none; }
  .crm-mock .cr-kpi > div:nth-child(3) { display: none; }
  .crm-mock .cr-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-mock .cr-row b { display: none; }
  .crm-mock .cr-row { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .crm-mock .cr-row .cr-sum { display: block; text-align: right; }
}

/* Живая CRM на всю ширину */
.live-app { margin-bottom: 24px; }
.live-crm iframe { height: min(86vh, 820px); }
@media (max-width: 620px) { .live-crm iframe { height: 80vh; } }

/* Магазин и CRM в одну линию */
.live-duo { margin-bottom: 64px; }
.live-duo-grid .live-zoom iframe { transform-origin: 0 0; }
.live-duo-grid { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 14px; }
.live-col { min-width: 0; display: flex; flex-direction: column; }
.live-col .card-label { align-self: flex-start; margin-bottom: 12px; }
.live-col .live-frame { flex: 1; }
.live-duo iframe { display: block; width: 100%; height: min(84vh, 820px); border: 0; background: var(--bg-2); }
.live-duo .live-bar > span { font-size: 13px; }
.live-duo .live-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 26px; margin: 18px 0 0; padding: 0 6px 0 26px; font-size: 14.5px; }
@media (max-width: 960px) {
  .live-duo-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 620px) { .live-duo iframe { height: 80vh; } }

/* Футер: общий для всех страниц */
.site-foot { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px 40px; padding-block: 32px; }
.foot-in { display: grid; grid-template-columns: 1fr minmax(0, 2fr) 1fr; }
.foot-contacts { justify-self: end; }
.foot-cta { text-align: center; max-width: 680px; justify-self: center; }
.foot-cta h2 { margin: 0; font: 600 clamp(26px, 2.6vw, 36px)/1.15 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.foot-cta p { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
@media (max-width: 960px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-cta { grid-column: 1 / -1; grid-row: 1; } }
@media (max-width: 620px) { .foot-in { display: flex; } .foot-cta { text-align: left; order: -1; } .foot-contacts { justify-self: auto; } }
.foot-copy { margin: 12px 0 0; color: var(--faint); font-size: 13px; }
.foot-contacts h3 { margin: 0 0 12px; font: 600 13px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.foot-contacts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-contacts a { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.fc-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--accent); transition: background .2s, color .2s, border-color .2s; }
.fc-ic svg { width: 18px; height: 18px; }
.foot-contacts a:hover { color: var(--accent); }
.foot-contacts a:hover .fc-ic { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 620px) { .foot-in { flex-direction: column; } }
/* Синий футер */
.site-foot { background: var(--accent); border-top-color: var(--accent); color: #fff; }
.site-foot .logo { color: #fff; }
.site-foot .logo-mark { background: #fff; color: var(--accent); }
.site-foot .foot-cta h2 { color: #fff; text-wrap: balance; }
.site-foot .foot-cta p { color: rgb(255 255 255 / .95); text-wrap: balance; }
.site-foot .foot-copy, .site-foot .foot-contacts h3 { color: rgb(255 255 255 / .92); }
.site-foot .foot-contacts a { color: #fff; }
.site-foot .fc-ic { border-color: rgb(255 255 255 / .35); background: rgb(255 255 255 / .1); color: #fff; }
.site-foot .foot-contacts a:hover { color: #fff; }
.site-foot .foot-contacts a:hover .fc-ic { background: #fff; border-color: #fff; color: var(--accent); }
.site-foot :focus-visible { outline-color: #fff; }

/* Кнопки связи в шапке: телефон, Telegram, WhatsApp */
.top-contacts { display: flex; gap: 8px; }
.top-contacts a { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: var(--accent); color: #fff; transition: background .2s; }
.top-contacts a:hover { background: #1d4ed8; }
.top-contacts svg { width: 19px; height: 19px; }

/* Телефон: панель связи закреплена внизу экрана */
.m-contact { display: none; }
@media (max-width: 620px) {
  .m-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .96); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgb(15 23 42 / .35); backdrop-filter: blur(8px); }
  .m-contact a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; border-radius: 10px; font-weight: 600; font-size: 14px; text-decoration: none; color: var(--accent); background: var(--accent-soft); }
  .m-contact a:first-child { background: var(--accent); color: #fff; }
  .m-contact svg { width: 18px; height: 18px; flex: none; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .top-contacts { display: none; }
}

/* Сноска к цифрам: мелкий узкий шрифт */
.stat-note { margin: 12px 0 0; max-width: 560px; font: 400 13px/1.35 "PT Sans Narrow", var(--font-body); letter-spacing: .01em; color: var(--faint); }
.results .stat-note { max-width: none; margin-top: 14px; }
.metric-top span::after, .results-list h2::after { content: "*"; margin-left: 1px; color: var(--faint); font-weight: 400; }


/* Верхний блок: одна синяя полоса — логотип, предложение, кнопки */
.topbar { background: var(--accent); color: #fff; margin-bottom: 28px; }
.topbar .top { padding-block: 14px; }
.promo-bar { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; color: #fff; text-decoration: none; text-align: center; font: 500 14.5px/1.35 var(--font-body); }
.promo-arrow { transition: transform .2s; }
.promo-bar:hover .promo-text { text-decoration: underline; text-underline-offset: 3px; }
.promo-bar:hover .promo-arrow { transform: translateX(3px); }
.topbar :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.topbar .logo { color: #fff; flex: none; }
.topbar .logo-mark { background: #fff; color: var(--accent); }
.topbar .top-actions { flex: none; }
.topbar .top-link { background: #fff; border-color: #fff; color: var(--accent); }
.topbar .top-link:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.topbar .top-contacts a { background: rgb(255 255 255 / .12); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .35); color: #fff; }
.topbar .top-contacts a:hover { background: #fff; color: var(--accent); }
@media (min-width: 1181px) { .promo-text { white-space: nowrap; } }
@media (max-width: 1180px) { .topbar .top { flex-wrap: wrap; row-gap: 6px; } .promo-bar { order: 3; flex-basis: 100%; min-height: 36px; } }
@media (max-width: 620px) { .promo-bar { font-size: 13px; gap: 6px; } .topbar .top { padding-block: 12px; } .topbar { margin-bottom: 18px; } }
@media (prefers-reduced-motion: reduce) { .promo-arrow { transition: none; } }

/* Заголовок футера в одну строку, значки связи фирменным оранжевым */
@media (min-width: 1200px) { .site-foot .foot-cta h2 { text-wrap: nowrap; font-size: 31px; } }
@media (min-width: 1500px) { .site-foot .foot-cta h2 { font-size: 36px; } }
@media (min-width: 961px) {
  .foot-in { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); column-gap: 32px; }
  .foot-brand .logo, .foot-copy { white-space: nowrap; }
  .foot-cta { max-width: none; }
  .foot-cta p { max-width: 560px; margin-inline: auto; }
}
/* Кнопки связи: белые, иконки в цветах брендов */
.topbar .top-contacts a, .site-foot .fc-ic { background: #fff; border-color: #fff; box-shadow: 0 1px 2px rgb(15 23 42 / .18); transition: transform .2s, box-shadow .2s; }
.topbar .top-contacts a:hover, .site-foot .foot-contacts a:hover .fc-ic { background: #fff; border-color: #fff; transform: translateY(-1px); box-shadow: 0 6px 14px -6px rgb(15 23 42 / .45); }
.topbar .top-contacts a[href^="tel:"], .site-foot a[href^="tel:"] .fc-ic { color: var(--cta-hover); }
.topbar .top-contacts a[href*="t.me"], .site-foot a[href*="t.me"] .fc-ic { color: #0088cc; }
.topbar .top-contacts a[href*="wa.me"], .site-foot a[href*="wa.me"] .fc-ic { color: #128c7e; }
@media (prefers-reduced-motion: reduce) { .topbar .top-contacts a, .site-foot .fc-ic { transition: none; } .topbar .top-contacts a:hover, .site-foot .foot-contacts a:hover .fc-ic { transform: none; } }

/* Политика конфиденциальности */
.foot-legal { margin: 8px 0 0; font-size: 13px; }
.foot-legal a { color: inherit; text-underline-offset: 3px; }
.site-foot .foot-legal a { color: rgb(255 255 255 / .92); }
.site-foot .foot-legal a:hover { color: #fff; }
.policy { max-width: 820px; padding: clamp(24px, 4vw, 48px); }
.policy h1 { margin: 0 0 8px; font: 600 clamp(30px, 4vw, 44px)/1.1 var(--font-display); letter-spacing: -.02em; }
.policy-date { margin: 0 0 32px; color: var(--faint); font-size: 15px; }
.policy h2 { margin: 32px 0 10px; font: 600 21px/1.25 var(--font-display); letter-spacing: -.01em; }
.policy p, .policy li { color: var(--muted); font-size: 16.5px; max-width: 68ch; }
.policy p { margin: 0 0 12px; }
.policy ul { margin: 0 0 12px; padding-left: 22px; }
.policy li { margin-bottom: 6px; }
.policy li::marker { color: var(--accent); }
.policy a { color: var(--accent); text-underline-offset: 3px; }
.site-foot .foot-cta .foot-sub { max-width: none; text-wrap: wrap; }
@media (max-width: 1199px) { .br-desk { display: none; } .site-foot .foot-cta .foot-sub { text-wrap: balance; } }
/* Центр футера — ровно посередине между логотипом и контактами */
@media (min-width: 961px) {
  .foot-in { display: flex; justify-content: space-between; align-items: flex-start; column-gap: 32px; }
  .foot-brand, .foot-contacts { flex: none; }
  .foot-cta { flex: 0 1 auto; min-width: 0; }
}

/* Цена на карточках */
.card-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.card-foot .more { margin-top: 0; padding-top: 0; padding-bottom: 4px; }
.price { margin: 0; display: grid; gap: 4px; }
.price b { font: 600 26px/1 var(--font-display); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.price small { font-size: 13px; line-height: 1.35; color: var(--faint); }

/* Логотип «Код»: </> в синей плитке, оранжевая точка-акцент. На синем фоне полос плитка белая */
.logo-mark { background: var(--accent); color: #fff; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.topbar .logo-mark, .site-foot .logo-mark { background: #fff; color: var(--accent); }
