/* Кнопка Маркетплейс — mpbutton.ru
   Стили лендинга. Дизайн-источник: site/project/Лендинг Кнопка Маркетплейс.dc.html
   (прототип Claude Design, там всё инлайном — здесь то же самое, но системой).

   Шрифты self-hosted: CSP пускает только 'self', и внешний CDN тут не нужен.
   Inter и JetBrains Mono — вариативные, один файл на семейство и подмножество. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-latin.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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('fonts/jetbrains-mono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --ink: #171717;
  --text: #525252;
  --text-strong: #404040;
  --muted: #737373;
  --faint: #a3a3a3;
  --line: #e5e5e5;
  --line-soft: #f5f5f5;
  --surface: #fafafa;
  --bg-alt: #f5f5f5;
  --white: #ffffff;

  --blue: #2563eb;
  --blue-deep: #1e40af;
  --blue-tint: #dbeaff;
  --blue-mid: #a3c2fb;
  --green: #16a34a;
  --green-tint: #dcfce7;
  --orange: #ea580c;
  --orange-tint: #fff1e7;
  --violet: #7c3aed;
  --violet-tint: #f3ecff;
  --danger: #dc2626;

  --cta: #1e40af;                       /* заливка главных кнопок */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow-lift: rgba(0, 0, 0, .1) 0 10px 15px -3px;
  --shadow-tiny: rgba(0, 0, 0, .05) 0 1px 2px 0;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }
button { font-family: inherit; }
h1, h2, h3 { font-weight: 500; letter-spacing: -.025em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-alt); }
.section > .container { padding-top: 80px; padding-bottom: 80px; }
.section-title { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.12; text-wrap: balance; }
.section-lede { font-size: 17px; line-height: 1.6; color: var(--text); }

/* Единый ритм «заголовок + лид» на всю страницу: в прототипе каждая секция несла
   свои отступы инлайном, здесь это одна коробка. */
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head--wide { max-width: none; }
.section-head .section-title { margin-bottom: 14px; }
.section-head .section-title:only-child { margin-bottom: 0; }
.section-head .section-lede { margin: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px 10px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  padding: 12px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn--primary { color: var(--white); background: var(--cta); box-shadow: var(--shadow-tiny); }
.btn--primary:hover { color: var(--white); opacity: .9; }
.btn--ghost { color: var(--ink); background: var(--white); border-color: var(--line); }
.btn--ghost:hover { color: var(--ink); background: var(--bg-alt); }
.btn--dark { color: var(--white); background: var(--ink); border: none; }
.btn--dark:hover { color: var(--white); opacity: .9; }
.btn--sm { font-size: 14px; padding: 9px 15px; }
.btn--block { width: 100%; }
.btn[disabled] { cursor: progress; opacity: .7; }

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--blue);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: '';
  position: absolute;
  left: 6px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 3px;
  background: var(--white);
}
.site-nav { display: flex; gap: 2px; flex: 1 1 auto; flex-wrap: wrap; }
.site-nav a {
  font-size: 14px;
  color: var(--text-strong);
  padding: 7px 12px;
  border-radius: 9999px;
}
.site-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- первый экран ---------- */

.hero {
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -11px -11px;
}
.hero .container {
  padding-top: 88px;
  padding-bottom: 96px;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1fr);
}
.hero-copy { max-width: 760px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
  line-height: 1.45;
  max-width: 100%;
}
.badge .dot {
  width: 7px; height: 7px;
  border-radius: 9999px;
  background: var(--green);
  flex-shrink: 0;
}
.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.05;
  text-wrap: balance;
}
.hero-lede {
  font-size: 18px;
  line-height: 1.56;
  color: var(--text);
  max-width: 620px;
  text-wrap: pretty;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.hero-note { font-size: 13px; line-height: 1.5; color: var(--muted); margin-bottom: 32px; }
.hero-partners {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-partners dt { font-size: 12px; color: var(--muted); margin: 0; }
.hero-partners dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -.01em;
}
.hero-demo { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }

/* макет браузера */
.browser {
  flex: 1 1 520px;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: rgba(0, 0, 0, .1) 0 0 0 4px, var(--shadow-lift);
  overflow: hidden;
}
.browser-bar {
  height: 34px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}
.browser-bar i {
  width: 9px; height: 9px;
  border-radius: 9999px;
  background: var(--line);
}
.browser-url {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-body { padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; position: relative; }
.photo-stub {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(135deg, var(--bg-alt) 0 8px, var(--white) 8px 16px);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.photo-stub--hero { flex: 0 1 232px; min-width: 170px; height: 232px; }
.photo-stub span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 3px 8px;
}
.product { flex: 1 1 260px; min-width: 0; }
.product-kicker {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}
.product-name {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.product-desc { font-size: 14px; line-height: 1.5; color: var(--muted); margin-bottom: 20px; }
.product-hint { margin-top: 12px; font-size: 12px; color: var(--faint); }
.product-cta-count { font-size: 12px; opacity: .6; }

/* всплывающее окно виджета */
.widget-overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, .32);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.widget-overlay[hidden] { display: none; }
.widget-card {
  width: 360px;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 18px;
  animation: popIn .18s ease-out;
}
.widget-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.widget-title { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.widget-close {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  width: 26px; height: 26px;
  cursor: pointer;
  color: var(--text);
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}
.widget-close:hover { background: var(--bg-alt); }
.widget-sub { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.widget-foot { margin-top: 14px; font-size: 11px; color: var(--faint); }
.shop-list { display: flex; flex-direction: column; gap: 8px; }
.shop {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
}
.shop--out { background: var(--surface); opacity: .55; }
.shop-logo {
  width: 30px; height: 30px;
  border-radius: var(--radius-xs);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.shop-body { flex: 1; min-width: 0; }
.shop-name { font-size: 14px; font-weight: 500; }
.shop-status { font-size: 12px; color: var(--green); }
.shop--out .shop-status { color: var(--muted); }
.shop-cta { font-size: 13px; font-weight: 500; color: var(--blue); }
.shop--out .shop-cta { color: var(--faint); font-weight: 400; }

@keyframes popIn {
  from { opacity: 0; transform: translateY(6px) scale(.985); }
  to { opacity: 1; transform: none; }
}

/* карточка «на мобильном» */
.mobile-card {
  flex: 0 1 260px;
  align-self: flex-end;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.eyebrow-caps {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.mobile-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-photo {
  height: 74px;
  border-radius: var(--radius-xs);
  background-image: repeating-linear-gradient(135deg, var(--bg-alt) 0 8px, var(--white) 8px 16px);
  border: 1px solid var(--line);
}
.mobile-title { font-size: 13px; font-weight: 500; line-height: 1.3; }
.mobile-rows { display: flex; flex-direction: column; gap: 6px; }
.mobile-row {
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}
.mobile-row .yes { color: var(--green); }
.mobile-row--out { color: var(--faint); }

/* ---------- проблема ---------- */

.grid-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-cards--wide { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card--lg { padding: 24px; }
.card-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 7px;
}
.card--lg .card-title { font-size: 18px; margin-bottom: 8px; }
.card-text { font-size: 14px; line-height: 1.55; color: var(--text); }
.card--lg .card-text { font-size: 15px; }
.card-num {
  width: 34px; height: 34px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 11px;
  margin-bottom: 14px;
}
.tone-green { background: var(--green-tint); color: var(--green); }
.tone-blue { background: var(--blue-tint); color: var(--blue); }
.tone-orange { background: var(--orange-tint); color: var(--orange); }
.tone-violet { background: var(--violet-tint); color: var(--violet); }

.eyebrow-pill {
  display: inline-flex;
  border-radius: 9999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  margin-bottom: 18px;
}
.section--alt .eyebrow-pill { background: var(--white); }

/* ---------- как это выглядит ---------- */

.showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
/* Без потолка колонка текста занимает всю строку и сбрасывает переключатель вниз. */
.showcase-head > div { max-width: 640px; }
.showcase-head .section-title { margin-bottom: 14px; }
.mode-switch {
  display: flex;
  gap: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 4px;
}
.mode-switch button {
  border: none;
  cursor: pointer;
  border-radius: 9999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  background: transparent;
  color: var(--text);
  transition: background-color .15s ease, color .15s ease;
}
.mode-switch button[aria-selected='true'] {
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-tiny);
}
.showcase { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.showcase-stage {
  flex: 1 1 460px;
  min-width: 0;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage-card {
  width: 100%;
  max-width: 560px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  position: relative;
}
.stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.stage-photo {
  height: 132px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(135deg, var(--bg-alt) 0 8px, var(--white) 8px 16px);
}
.stage-name {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: 1.3;
  margin-bottom: 6px;
}
.stage-sku { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 14px; }
.stage-inline { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.stage-inline[hidden] { display: none; }
.stage-inline-title {
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.inline-shops { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inline-shop {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  background: var(--white);
}
.inline-shop--out { background: var(--surface); opacity: .55; }
.inline-shop-name { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.inline-shop-status { font-size: 11px; color: var(--green); }
.inline-shop--out .inline-shop-status { color: var(--muted); }

.stage-overlay {
  position: absolute;
  inset: -32px;
  background: rgba(23, 23, 23, .28);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.stage-overlay[hidden] { display: none; }
.stage-overlay .widget-card { width: 340px; padding: 18px; }
.stage-overlay .widget-head { align-items: center; margin-bottom: 12px; }
.stage-overlay .widget-title { font-size: 15px; }
.stage-overlay .shop { padding: 11px 13px; gap: 11px; }
.stage-overlay .shop-logo { width: 28px; height: 28px; }
.stage-overlay .shop-name { font-size: 13px; }
.stage-overlay .shop-status { font-size: 11px; }
.stage-overlay .shop-cta { font-size: 12px; }

.mode-cards {
  flex: 1 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mode-card {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.mode-card:hover { border-color: var(--ink); background: var(--white); }
.mode-card[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-tiny);
}
.mode-card-title {
  display: block;                       /* внутри <button> span'ы иначе лягут в одну строку */
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  color: var(--ink);
}
.mode-card-text { display: block; font-size: 14px; line-height: 1.5; color: var(--text); }
.mode-note { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 4px 2px; }

/* ---------- остатки ---------- */

.split {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}
.split h2 { font-size: clamp(26px, 3.8vw, 36px); line-height: 1.16; text-wrap: balance; margin-bottom: 18px; }
.split p { font-size: 16px; line-height: 1.6; color: var(--text); }
.split p + p { margin-top: 14px; }
.status-list { display: flex; flex-direction: column; gap: 12px; }
.status-row {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.status-row--dim { opacity: .55; }
.status-logo {
  width: 36px; height: 36px;
  border-radius: var(--radius-xs);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.status-body { flex: 1; min-width: 0; }
.status-name { font-size: 15px; font-weight: 500; }
.status-note { font-size: 13px; }
.status-note--ok { color: var(--green); }
.status-note--off { color: var(--muted); }
.status-note--stale { color: var(--orange); }
.status-action { font-size: 13px; font-weight: 500; color: var(--blue); }
.status-action--none { color: var(--faint); font-weight: 400; }
.status-foot { font-size: 13px; line-height: 1.5; color: var(--muted); padding: 6px 2px; }

/* ---------- аналитика ---------- */

.panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: rgba(0, 0, 0, .1) 0 0 0 4px;
  overflow: hidden;
  margin-bottom: 20px;
}
.panel-split { display: flex; flex-wrap: wrap; }
.panel-side {
  flex: 1 1 180px;
  max-width: 100%;
  border-right: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
}
.panel-side-title { font-size: 13px; font-weight: 600; padding: 8px 10px; }
.panel-side-item { font-size: 13px; padding: 9px 10px; border-radius: var(--radius-xs); color: var(--text); }
.panel-side-item.is-active { background: var(--blue-tint); color: var(--ink); font-weight: 500; }
.panel-side-foot {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  padding: 10px;
}
.panel-main { flex: 1 1 520px; min-width: 0; padding: 20px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.panel-title { font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.range-switch {
  display: flex;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 3px;
}
.range-switch span {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  color: var(--text);
}
.range-switch .is-active { background: var(--bg-alt); font-weight: 500; color: var(--ink); }

.kpis {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  margin-bottom: 22px;
}
.kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px; }
.kpi-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.kpi-value {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.kpi-value--blue { color: var(--blue); }

.chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 132px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  height: 100%;
}
.chart-col i { display: block; }
.chart-col .a { background: var(--blue); border-radius: 3px 3px 0 0; }
.chart-col .b { background: var(--blue-mid); }
.chart-col .c { background: var(--line); border-radius: 0 0 3px 3px; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text);
}
.legend i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.legend .a { background: var(--blue); }
.legend .b { background: var(--blue-mid); }
.legend .c { background: var(--line); }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 13px; }
.data-table thead th {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  padding: 9px 13px;
  text-align: left;
}
.data-table th.num, .data-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody td { padding: 11px 13px; border-bottom: 1px solid var(--line-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table td.views { color: var(--text); }
.data-table td.lost--hot { color: var(--orange); }
.data-table td.lost--calm { color: var(--text); }

.stat-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.stat-big {
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.report-list {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  list-style: none;
  margin: 0;
  padding: 0;
}
.card-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- безопасность ---------- */

.plain-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.plain-card .card-title { font-size: 15px; margin-bottom: 6px; }
.security-note {
  flex: 1 1 420px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.security-note .eyebrow-pill { background: var(--white); color: var(--green); white-space: nowrap; margin-bottom: 14px; }
.security-note p { font-size: 15px; line-height: 1.6; color: var(--text-strong); }
.log {
  flex: 1 1 320px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.log-head { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.log-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 11.5px;
}
.log-time { color: var(--faint); width: 44px; flex-shrink: 0; }
.log-method {
  flex: 1;
  min-width: 0;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.log-ok { color: var(--green); }
.log-warn { color: var(--orange); }
.log-foot { padding: 10px 16px; font-size: 11px; color: var(--faint); }

/* ---------- подключение ---------- */

.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 24px;
}
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--blue); margin-bottom: 12px; }
.step-title { font-size: 16px; font-weight: 600; margin-bottom: 7px; }
.step-text { font-size: 14px; line-height: 1.55; color: var(--text); }
.code-block {
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  overflow-x: auto;
  margin-bottom: 12px;
}
.code-block code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--line);
  white-space: nowrap;
}
.inline-facts {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.divider-v { width: 1px; height: 12px; background: var(--line); display: block; }

/* ---------- сравнение ---------- */

.compare-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--white);
  margin-bottom: 20px;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  font-size: 13.5px;
}
.compare thead th {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 12px 14px;
  text-align: left;
}
.compare thead th:first-child { padding-left: 16px; width: 30%; }
.compare thead th.is-ours { color: var(--ink); font-weight: 600; background: var(--white); }
.compare tbody th {
  font-weight: 400;
  text-align: left;
  padding: 12px 16px;
  color: var(--text-strong);
}
.compare tbody td { padding: 12px 14px; color: var(--muted); }
.compare tbody td.is-ours { font-weight: 500; color: var(--green); }
.compare tbody tr { border-bottom: 1px solid var(--line-soft); }
.compare tbody tr:last-child { border-bottom: none; }

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

.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-bottom: 24px;
}
.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
  display: flex;
  flex-direction: column;
}
.plan--featured { border-color: var(--ink); box-shadow: var(--shadow-lift); }
.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.plan-name { font-size: 15px; font-weight: 600; }
.plan-flag {
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 9999px;
  padding: 4px 9px;
}
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--text-strong);
  line-height: 1.45;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.plan .btn { margin-top: auto; }
.plan-notes {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- FAQ ---------- */

.faq-layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.faq-intro { flex: 1 1 240px; max-width: 340px; }
.faq-intro h2 { font-size: clamp(26px, 3.8vw, 36px); line-height: 1.16; margin-bottom: 12px; }
.faq-intro p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.faq-list {
  flex: 3 1 460px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
}
.faq-q:hover { background: var(--surface); }
.faq-sign { color: var(--faint); font-size: 18px; line-height: 1.2; flex-shrink: 0; }
.faq-a { padding: 0 56px 18px 20px; font-size: 15px; line-height: 1.6; color: var(--text); }
.faq-a[hidden] { display: none; }

/* ---------- финальный призыв и форма ---------- */

.final { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.final .container { padding-top: 88px; padding-bottom: 88px; }
.final-copy { flex: 1 1 440px; min-width: 0; }
.final-copy h2 {
  font-size: clamp(30px, 4.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -.03em;
  max-width: 620px;
  text-wrap: balance;
  margin-bottom: 18px;
}
.final-copy > p { font-size: 17px; line-height: 1.6; color: var(--text); max-width: 560px; margin-bottom: 26px; }
.final-facts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--muted); align-items: center; }
.divider-v--tall { height: 14px; }

.form-card {
  flex: 1 1 340px;
  max-width: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}
.form-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.form-sub { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.field { display: block; }
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
}
.field input[type='text'],
.field input[type='email'],
.field input[type='tel'] {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  transition: border-color .15s ease;
}
.field input:not(:placeholder-shown) { border-color: var(--ink); }
.field.has-error input { border-color: var(--danger); }
.field-error {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--danger);
  margin-top: 6px;
}
.field-error[hidden] { display: none; }
.consent { display: flex; gap: 9px; align-items: flex-start; }
.consent input {
  margin: 2px 0 0;
  width: 14px; height: 14px;
  flex-shrink: 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.consent span { font-size: 12px; line-height: 1.5; color: var(--muted); }
.form-hint { font-size: 12px; line-height: 1.45; color: var(--faint); }
.form-hint.is-error { color: var(--danger); }
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.form-done { animation: popIn .18s ease-out; }
.form-done[hidden] { display: none; }
.done-mark {
  width: 36px; height: 36px;
  border-radius: 9999px;
  background: var(--green-tint);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  margin-bottom: 14px;
}
.done-title { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.done-text { font-size: 14px; line-height: 1.55; color: var(--text); margin-bottom: 8px; }
.done-note { font-size: 12px; line-height: 1.5; color: var(--faint); margin-bottom: 18px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 8px; }

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

.site-footer { background: var(--surface); }
.site-footer .container { padding-top: 56px; padding-bottom: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 32px 40px; margin-bottom: 40px; }
.footer-brand { flex: 2 1 260px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { font-size: 13.5px; line-height: 1.55; color: var(--muted); max-width: 300px; }
.footer-col {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}
.footer-col-title {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 2px;
}
.footer-col a { color: var(--text); }
.footer-col a:hover { color: var(--ink); }
.footer-col span { color: var(--faint); }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--faint);
}

/* ---------- страница политики ---------- */

.doc-main { max-width: 760px; margin: 0 auto; padding: 64px 24px 80px; }
.doc-main h1 { font-size: clamp(28px, 4.2vw, 38px); line-height: 1.15; margin-bottom: 24px; }
.doc-main h2 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin: 32px 0 10px; }
.doc-main p { font-size: 15.5px; line-height: 1.65; color: var(--text); }
.doc-main p + p { margin-top: 12px; }
.doc-back { display: inline-block; margin-top: 40px; font-size: 14px; }

/* ---------- адаптив ---------- */

@media (max-width: 900px) {
  .hero .container { padding-top: 64px; padding-bottom: 72px; gap: 40px; }
  .section > .container { padding-top: 60px; padding-bottom: 60px; }
  .final .container { padding-top: 64px; padding-bottom: 64px; }
  .site-nav { display: none; }
  .mobile-card { display: none; }
  .split { gap: 32px; }
  .faq-layout { gap: 28px; }
  .faq-intro { max-width: none; }
}

@media (max-width: 620px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .browser-body { padding: 18px; gap: 18px; }
  .photo-stub--hero { flex-basis: 100%; height: 180px; }
  .showcase-stage { padding: 16px; min-height: 0; }
  .stage-overlay { inset: -16px; }
  .inline-shops { grid-template-columns: 1fr; }
  .showcase-head { align-items: stretch; gap: 20px; }
  .mode-switch { overflow-x: auto; }
  .header-actions .btn--ghost { display: none; }
  .faq-a { padding-right: 20px; }
  .final { gap: 32px; }
  .form-card { max-width: none; }
}

/* Полосы демо-графика. Значения из прототипа (barSeed × 0.42 / × 0.24).
   Задаём через nth-child, а не инлайном: CSP на проде запрещает style-атрибуты. */
.chart-col:nth-child(1) .a { height: 62px; }
.chart-col:nth-child(1) .b { height: 26px; }
.chart-col:nth-child(1) .c { height: 15px; }
.chart-col:nth-child(2) .a { height: 48px; }
.chart-col:nth-child(2) .b { height: 20px; }
.chart-col:nth-child(2) .c { height: 12px; }
.chart-col:nth-child(3) .a { height: 71px; }
.chart-col:nth-child(3) .b { height: 30px; }
.chart-col:nth-child(3) .c { height: 17px; }
.chart-col:nth-child(4) .a { height: 55px; }
.chart-col:nth-child(4) .b { height: 23px; }
.chart-col:nth-child(4) .c { height: 13px; }
.chart-col:nth-child(5) .a { height: 80px; }
.chart-col:nth-child(5) .b { height: 34px; }
.chart-col:nth-child(5) .c { height: 19px; }
.chart-col:nth-child(6) .a { height: 66px; }
.chart-col:nth-child(6) .b { height: 28px; }
.chart-col:nth-child(6) .c { height: 16px; }
.chart-col:nth-child(7) .a { height: 40px; }
.chart-col:nth-child(7) .b { height: 17px; }
.chart-col:nth-child(7) .c { height: 10px; }
.chart-col:nth-child(8) .a { height: 58px; }
.chart-col:nth-child(8) .b { height: 24px; }
.chart-col:nth-child(8) .c { height: 14px; }
.chart-col:nth-child(9) .a { height: 74px; }
.chart-col:nth-child(9) .b { height: 31px; }
.chart-col:nth-child(9) .c { height: 18px; }
.chart-col:nth-child(10) .a { height: 52px; }
.chart-col:nth-child(10) .b { height: 22px; }
.chart-col:nth-child(10) .c { height: 12px; }
.chart-col:nth-child(11) .a { height: 88px; }
.chart-col:nth-child(11) .b { height: 37px; }
.chart-col:nth-child(11) .c { height: 21px; }
.chart-col:nth-child(12) .a { height: 61px; }
.chart-col:nth-child(12) .b { height: 26px; }
.chart-col:nth-child(12) .c { height: 15px; }
.chart-col:nth-child(13) .a { height: 70px; }
.chart-col:nth-child(13) .b { height: 29px; }
.chart-col:nth-child(13) .c { height: 17px; }
.chart-col:nth-child(14) .a { height: 45px; }
.chart-col:nth-child(14) .b { height: 19px; }
.chart-col:nth-child(14) .c { height: 11px; }
