/* Лендинг Elva. Токены и размеры — из пакета дизайнера (design_handoff_elva_landing:
   tokens.css и Elva Landing.dc.html), тема одна, тёмная. Окно программы в герое
   рисуется токенами самого клиента (web/css/tokens.css): это его экран «Очередь»,
   и расходиться с программой по цвету он не должен. */

@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('fonts/unbounded-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('fonts/unbounded-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: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/manrope-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;
}
@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;
}

:root {
  color-scheme: dark;

  --elva-bg:        #1E1925;
  --elva-surface:   #2B2433;
  --elva-ink:       #F3EDE4;
  --elva-muted:     #C3BACE;
  --elva-dim:       #9990A6;
  --elva-accent:    #D9805C;
  --elva-accent-hi: #E9906B;
  --elva-iris:      #8E8CD8;
  --elva-line:      rgba(243, 237, 228, 0.12);
  --elva-line-soft: rgba(243, 237, 228, 0.08);

  --elva-font-display: 'Unbounded', 'Segoe UI', Helvetica, Arial, sans-serif;
  --elva-font-text:    'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif;
  --elva-font-mono:    'JetBrains Mono', Consolas, 'Cascadia Mono', 'Courier New', monospace;

  --elva-r-pill: 999px;
  --elva-r-sm:   13px;
  --elva-r-md:   20px;
  --elva-r-lg:   26px;

  --elva-max: 1180px;
  --elva-pad: 22px;

  /* Отступы секций из макета: 60 у героя, 72/78 между блоками, 84 перед финальной карточкой. */
  --gap-hero: 60px;
  --gap-md: 72px;
  --gap-lg: 78px;
  --gap-cta: 84px;
  --header-h: 67px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

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

h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a {
  color: var(--elva-accent);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
a:hover { color: var(--elva-ink); }

/* Колец фокуса нет, как и в самой программе, — решение владельца: после клика
   кольцо оставалось висеть на вопросе. С клавиатуры фокус виден цветом, как наведение. */
:focus, :focus-visible { outline: none; }
a:focus-visible, .faq summary:focus-visible { color: var(--elva-accent-hi); }

/* Переход по якорю ставит начало раздела сразу под шапку. Верхний отступ секции —
   воздух между блоками при чтении подряд; при переходе он уводил заголовок вниз. */
section[id], #faq { scroll-margin-top: calc(var(--header-h) + 24px); }
.sec-md[id] { scroll-margin-top: calc(var(--header-h) + 24px - var(--gap-md)); }
.sec-lg[id] { scroll-margin-top: calc(var(--header-h) + 24px - var(--gap-lg)); }

code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(243, 237, 228, 0.07);
  font-family: var(--elva-font-mono);
  font-size: 0.9em;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap {
  max-width: var(--elva-max);
  margin-inline: auto;
  padding-inline: var(--elva-pad);
}

.sec-md { padding-top: var(--gap-md); }
.sec-lg { padding-top: var(--gap-lg); }
.sec-cta { padding-top: var(--gap-cta); }

.eyebrow {
  font-family: var(--elva-font-mono);
  font-size: 11px; font-weight: 400; line-height: 1.6;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--elva-dim);
}

.h1 {
  font-family: var(--elva-font-display); font-weight: 300;
  font-size: clamp(34px, 6vw, 58px); line-height: 1.04; letter-spacing: -0.04em;
  text-wrap: pretty;
}
.h1 .accent { font-weight: 500; color: var(--elva-accent); }

.h2 {
  max-width: 620px;
  font-family: var(--elva-font-display); font-weight: 300;
  font-size: clamp(26px, 4.4vw, 38px); line-height: 1.14; letter-spacing: -0.035em;
  text-wrap: pretty;
}

.sec-head { display: flex; flex-direction: column; gap: 12px; }

.wordmark {
  font-family: var(--elva-font-display); font-weight: 500;
  font-size: 19px; line-height: 1; letter-spacing: -0.04em;
}
.wordmark-sm { font-size: 17px; }

/* ───────────────────────── кнопки ───────────────────────── */
/* Рамка 1px есть у всех вариантов (прозрачная у заливки): кнопки в ряду одной
   высоты, а размеры совпадают с макетом, где у заливки рамки нет. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--elva-r-pill);
  font-family: var(--elva-font-text); font-weight: 700; line-height: 1.3;
  text-align: center;
  cursor: pointer;
}
.btn-accent { background: var(--elva-accent); color: var(--elva-bg); }
.btn-accent:hover { background: var(--elva-accent-hi); color: var(--elva-bg); }
.btn-line { border-color: rgba(243, 237, 228, 0.2); color: var(--elva-ink); font-weight: 600; }
.btn-line:hover { border-color: var(--elva-ink); color: var(--elva-ink); }
.btn-sm { padding: 9px 19px; font-size: 14px; }
.btn-lg { padding: 14px 25px; font-size: 15px; }
.btn-lg.btn-line { padding-inline: 24px; }
.btn-block { width: 100%; padding: 13px; font-size: 14px; }
.btn-block.btn-line { padding: 12px; border-color: rgba(243, 237, 228, 0.24); }
/* Фокус с клавиатуры — как наведение. Без своего правила у кнопки-ссылки срабатывал
   общий a:focus-visible, и текст заливки перекрашивался в цвет самой заливки. */
.btn-accent:focus-visible { background: var(--elva-accent-hi); color: var(--elva-bg); }
.btn-line:focus-visible { border-color: var(--elva-ink); color: var(--elva-ink); }

/* ───────────────────────── шапка ───────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(30, 25, 37, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--elva-line-soft);
}
.header-row { display: flex; align-items: center; gap: 24px; padding-block: 11px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--elva-ink); }
.logo:hover { color: var(--elva-ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 0 22px; margin-left: 8px; font-size: 14px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--elva-muted); }
.site-nav a:hover { color: var(--elva-ink); }

.header-cta { margin-left: auto; }
/* ───────────────────────── герой ───────────────────────── */
.hero {
  padding-top: var(--gap-hero);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 44px;
  align-items: center;
}
.hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.lead { max-width: 520px; font-size: 17px; line-height: 1.65; color: var(--elva-muted); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 4px 18px;
  padding-top: 6px;
  font-family: var(--elva-font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--elva-dim);
}

.hero-visual { display: flex; justify-content: center; min-width: 0; }
.device { position: relative; width: 100%; max-width: 330px; }
.device-glow {
  position: absolute; inset: -26px;
  background: radial-gradient(circle at 60% 30%, rgba(217, 128, 92, 0.26), transparent 68%);
  pointer-events: none;
}

/* ── окно программы: экран «Очередь» на токенах клиента ── */
.win {
  --bg: #1E1925;
  --card: #2B2433;
  --text: #F3EDE4;
  --text-strong: #E3DCEC;
  --text-2: #C3BACE;
  --text-3: #9990A6;
  --clay: #D9805C;
  --clay-ink: #D9805C;
  --clay-soft: rgba(217, 128, 92, 0.12);
  --line-1: rgba(243, 237, 228, 0.10);
  --dash: rgba(243, 237, 228, 0.24);
  --stripe-a: #3B3247;
  --stripe-b: #342C40;
  --photo-stripe: repeating-linear-gradient(135deg, var(--stripe-a) 0 12px, var(--stripe-b) 12px 24px);
  --r-field: 14px;
  --r-block: 16px;
  --r-strip: 18px;
  --r-panel: 22px;
  --f-display: var(--elva-font-display);
  --f-ui: var(--elva-font-text);
  --f-mono: var(--elva-font-mono);

  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--elva-line);
  border-radius: var(--elva-r-sm);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: normal;
}
.win-bar {
  display: flex; align-items: center; gap: 10px;
  height: 34px; padding-left: 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line-1);
}
.win-name { font-family: var(--f-display); font-weight: 500; font-size: 13px; letter-spacing: -0.045em; }
.win-crumb { font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.win-controls { display: flex; height: 100%; margin-left: auto; }
.wc { position: relative; width: 36px; height: 100%; color: var(--text-3); }
.wc::before,
.wc::after { content: ""; position: absolute; top: 50%; left: 50%; }
.wc-min::before { width: 10px; height: 1px; margin-left: -5px; background: currentColor; }
.wc-max::before { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border: 1px solid currentColor; border-radius: 2px; }
.wc-close::before,
.wc-close::after { width: 11px; height: 1px; margin-left: -5.5px; background: currentColor; }
.wc-close::before { transform: rotate(45deg); }
.wc-close::after { transform: rotate(-45deg); }

.win-main { display: flex; flex-direction: column; gap: 10px; padding: 12px; }
.win .strip { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: var(--r-strip); background: var(--card); }
.win .strip-row { display: flex; align-items: center; gap: 10px; }
.win .title { font-size: 15px; font-weight: 700; }
.win .meta { font-family: var(--f-mono); font-size: 11px; color: var(--text-3); }
.win .push { margin-left: auto; }
.win .bar { height: 3px; border-radius: 3px; background: var(--line-1); overflow: hidden; }
/* Пятый этап из шести — «жду вашего решения» (taste/client/engine_base.py, STAGES). */
.win .bar-fill { display: block; width: 83%; height: 100%; background: var(--clay-ink); }
.win .panel { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: var(--r-panel); background: var(--card); }
.win .photo { display: flex; align-items: flex-end; height: 104px; padding: 10px; border-radius: var(--r-block); background: var(--photo-stripe); }
.win .photo-cap { font-family: var(--f-mono); font-size: 10px; color: var(--text-3); }
.win .name { font-size: 18px; font-weight: 700; }
.win .sub { margin-top: 2px; font-size: 12px; color: var(--text-3); }
.win .odds { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--r-block); background: var(--clay-soft); }
.win .odds-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.win .odds-num { font-family: var(--f-mono); font-size: 24px; line-height: 1; color: var(--clay-ink); }
.win .odds-cap { font-size: 12px; color: var(--text-2); }
.win .odds-line { font-size: 13px; color: var(--text-strong); }
.win .odds-line b { font-weight: 700; color: var(--clay-ink); }
/* В клиенте ответы идут одним рядом, но в узком окне «скорее нет» обрезается —
   здесь два ряда, чтобы подписи читались целиком. */
.win .answers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.win .answer {
  display: flex; align-items: center; justify-content: center;
  padding: 10px 6px;
  border: 1px dashed var(--dash);
  border-radius: var(--r-field);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.win .answer.is-suggested { border-style: solid; border-color: var(--clay); }

/* ───────────────────────── цифры ───────────────────────── */
/* Разделители — фон сетки в зазоре 1px. Колонки заданы явно: при auto-fit ряд
   3+1 оставил бы пустые ячейки, залитые цветом линии. */
.kpi-grid {
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: rgba(243, 237, 228, 0.1);
  border: 1px solid rgba(243, 237, 228, 0.1);
  border-radius: var(--elva-r-md);
  overflow: hidden;
}
.kpi { display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; background: var(--elva-bg); }
.kpi-value {
  font-family: var(--elva-font-display); font-weight: 500;
  font-size: 30px; line-height: 1.2; letter-spacing: -0.04em;
  color: var(--elva-accent);
}
.kpi-label { font-size: 14px; line-height: 1.5; color: var(--elva-muted); }

/* ───────────────────────── шаги ───────────────────────── */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 30px; }
.card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--elva-r-md); background: var(--elva-surface); }
.step-n { font-family: var(--elva-font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--elva-accent); }
.card-title { font-family: var(--elva-font-display); font-weight: 500; font-size: 18px; line-height: 1.25; letter-spacing: -0.03em; }
.card-text { font-size: 14px; line-height: 1.65; color: var(--elva-muted); }

/* ───────────────────────── принципы ───────────────────────── */
.principles { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card-accent {
  display: flex; flex-direction: column; gap: 14px;
  padding: 30px;
  border-radius: 22px;
  background: var(--elva-accent);
  color: var(--elva-bg);
}
.card-accent-title { font-family: var(--elva-font-display); font-weight: 500; font-size: 22px; line-height: 1.1; letter-spacing: -0.035em; }
.card-accent-text { font-size: 14px; line-height: 1.6; }
.principles-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-sm { gap: 8px; padding: 24px; }
.card-sm .card-text { line-height: 1.6; }
.card-sm-title { font-size: 15px; font-weight: 700; line-height: 1.4; }

/* ───────────────────────── отзывы ───────────────────────── */
.reviews { display: flex; flex-direction: column; gap: 24px; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.review { display: flex; flex-direction: column; gap: 16px; padding: 26px; border: 1px solid var(--elva-line); border-radius: var(--elva-r-md); }
.review-quote { font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.review-author { font-family: var(--elva-font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--elva-dim); }

/* ───────────────────────── тарифы ───────────────────────── */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 26px; }
.plan {
  display: flex; flex-direction: column; gap: 18px;
  padding: 30px;
  border: 1px solid transparent;
  border-radius: 22px;
  background: var(--elva-surface);
}
.plan-featured { border-color: var(--elva-accent); }
.plan-name { font-family: var(--elva-font-display); font-weight: 500; font-size: 20px; line-height: 1.2; letter-spacing: -0.03em; }
.plan-price {
  display: flex; align-items: baseline; flex-wrap: wrap;
  min-height: 38px;
  font-family: var(--elva-font-display); font-weight: 300;
  font-size: 34px; line-height: 1.1; letter-spacing: -0.04em;
}
/* Словом вместо числа цена занимает столько же места по высоте, иначе карточки
   в ряду расходятся на первой же строке. */
.plan-price.is-text { align-items: center; font-size: 22px; line-height: 1.2; letter-spacing: -0.03em; }
.plan-period { font-family: var(--elva-font-text); font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--elva-dim); white-space: pre; }
.plan-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--elva-muted); }
.plan .btn { margin-top: auto; }

/* ───────────────────────── поддержка и вопросы ───────────────────────── */
.help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 40px;
  align-items: start;
}
.help-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.h2-help { font-size: clamp(26px, 4.4vw, 34px); }
.help-text { font-size: 15px; line-height: 1.65; color: var(--elva-muted); }
.plates { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.plate {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--elva-surface);
  color: var(--elva-ink);
  font-size: 14px; font-weight: 600; line-height: 1.5;
}
.plate:hover { color: var(--elva-ink); }
.plate-arrow { color: var(--elva-dim); transition: color 0.16s ease, transform 0.16s ease; }
.plate:hover .plate-arrow { color: var(--elva-accent); transform: translateX(3px); }

.faq { display: flex; flex-direction: column; min-width: 0; }
.faq details { border-top: 1px solid var(--elva-line); }
.faq details:last-child { border-bottom: 1px solid var(--elva-line); }
/* Отступы стоят на summary, а не на details: так кликабельна вся строка, а не
   только текст вопроса. */
.faq summary {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 18px 0;
  font-size: 16px; font-weight: 600; line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--elva-accent-hi); }
/* Плюс из двух линий: иконки бренда — геометрия, а не символы шрифта. */
.plus { position: relative; flex: none; width: 12px; height: 22px; color: var(--elva-accent); transition: transform 0.2s ease; }
.plus::before,
.plus::after {
  content: ""; position: absolute; top: 50%; left: 0;
  width: 12px; height: 2px; margin-top: -1px;
  border-radius: 1px;
  background: currentColor;
}
.plus::after { transform: rotate(90deg); }
.faq details[open]:not(.is-closing) .plus { transform: rotate(45deg); }
.faq-answer { margin-top: -8px; padding-bottom: 18px; font-size: 14px; line-height: 1.65; color: var(--elva-muted); }

/* ───────────────────────── финальный призыв ───────────────────────── */
.cta-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 30px;
  align-items: center;
  padding: clamp(30px, 5vw, 54px);
  border-radius: var(--elva-r-lg);
  background: var(--elva-surface);
}
.cta-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cta-h2 { line-height: 1.1; letter-spacing: -0.04em; }
.cta-text { font-size: 15px; line-height: 1.6; color: var(--elva-muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.store-btn {
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--elva-ink);
  color: var(--elva-bg);
}
.store-btn:hover { background: #FBF7F0; color: var(--elva-bg); }
/* Сплошной цвет вместо opacity 0.6 из макета: полупрозрачная подпись на светлой
   кнопке не добирает контраста 4,5:1. Цвет — --text-3 светлой темы клиента. */
.store-kicker {
  font-family: var(--elva-font-mono); font-size: 10px; line-height: 1.5;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #655C73;
}
.store-label { font-size: 15px; font-weight: 700; line-height: 1.4; }
.cta-visual { display: flex; justify-content: center; }

/* ───────────────────────── подвал ───────────────────────── */
.site-footer { padding-block: 70px 46px; }
.foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  padding-top: 34px;
  border-top: 1px solid rgba(243, 237, 228, 0.1);
}
.foot-brand { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.foot-logo { display: flex; align-items: center; gap: 9px; }
.foot-note { max-width: 520px; font-size: 13px; line-height: 1.6; color: var(--elva-dim); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.5; }
.foot-title {
  margin-bottom: 3px;
  font-family: var(--elva-font-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--elva-dim);
}
.foot-col a { color: var(--elva-muted); }
.foot-col a:hover { color: var(--elva-ink); }

/* ───────────────────────── маскот ───────────────────────── */
/* Капля из web/css/base.css (там же — источник в ElvaMascot.dc.html): все размеры —
   доли --m-size. Настроения idle, looking и happy; анимации клиента те же. */
@keyframes elva-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7%); } }
@keyframes elva-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.12); } }
@keyframes elva-scan { 0%, 100% { transform: translateX(-16%); } 50% { transform: translateX(16%); } }
@keyframes elva-pop { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.06); } }

.mascot {
  --m-size: 72px;
  --m-ink: var(--elva-ink);
  --m-accent: var(--elva-accent);
  --m-stroke: max(1.4px, calc(var(--m-size) * 0.05));
  --m-eye: calc(var(--m-size) * 0.13);
  position: relative;
  flex: none;
  display: inline-flex; flex-direction: column; align-items: center;
  width: var(--m-size);
  height: calc(var(--m-size) * 1.36);
  padding-top: calc(var(--m-size) * 0.26);
  vertical-align: bottom;
}
.mascot-stalk {
  position: absolute; top: calc(var(--m-size) * 0.1); left: 50%;
  width: max(1.2px, calc(var(--m-stroke) * 0.6)); height: calc(var(--m-size) * 0.17);
  background: var(--m-ink); opacity: 0.8;
  transform: translateX(-50%);
}
.mascot-antenna {
  position: absolute; top: 0; left: calc(50% - var(--m-size) * 0.065);
  width: calc(var(--m-size) * 0.13); height: calc(var(--m-size) * 0.13);
  border-radius: 50%;
  background: var(--m-ink);
}
.mascot-face {
  position: relative; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(var(--m-size) * 0.05);
  width: var(--m-size); height: calc(var(--m-size) * 1.1);
  padding-top: calc(var(--m-size) * 0.066);
  border: var(--m-stroke) solid var(--m-ink);
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  animation: elva-bob 3.1s ease-in-out infinite;
}
.mascot-blush {
  position: absolute; bottom: calc(var(--m-size) * 0.242);
  width: calc(var(--m-size) * 0.15); height: calc(var(--m-size) * 0.093);
  border-radius: 50%;
  background: var(--m-accent); opacity: 0.35;
}
.mascot-blush-l { left: calc(var(--m-size) * 0.09); }
.mascot-blush-r { right: calc(var(--m-size) * 0.09); }
.mascot-gaze { display: flex; align-items: flex-end; gap: calc(var(--m-size) * 0.23); }
.mascot-eye {
  width: var(--m-eye); height: var(--m-eye);
  border-radius: 50%;
  background: var(--m-accent);
  animation: elva-blink 5.4s ease-in-out infinite;
}
.mascot-mouth {
  width: calc(var(--m-size) * 0.13); height: calc(var(--m-size) * 0.0585);
  border: calc(var(--m-stroke) * 0.8) solid var(--m-accent); border-top: none;
  border-radius: 0 0 calc(var(--m-size) * 0.13) calc(var(--m-size) * 0.13);
  opacity: 0.9;
}
.mascot[data-mood="looking"] .mascot-gaze { animation: elva-scan 2.8s ease-in-out infinite; }
.mascot[data-mood="looking"] .mascot-mouth { display: none; }
.mascot[data-mood="happy"] .mascot-face { animation: elva-pop 1.6s ease-in-out infinite; }
.mascot[data-mood="happy"] .mascot-eye {
  width: calc(var(--m-eye) * 1.5); height: calc(var(--m-eye) * 0.8);
  border: calc(var(--m-stroke) * 0.85) solid var(--m-accent); border-bottom: none;
  border-radius: var(--m-eye) var(--m-eye) 0 0;
  background: transparent;
  animation: none;
}
.mascot[data-mood="happy"] .mascot-mouth {
  width: calc(var(--m-size) * 0.2); height: calc(var(--m-size) * 0.09);
  border-radius: 0 0 calc(var(--m-size) * 0.2) calc(var(--m-size) * 0.2);
}
@media (prefers-reduced-motion: reduce) {
  .mascot span { animation: none !important; }
  .plate-arrow, .plus { transition: none; }
}

/* ───────────────────────── ширины ───────────────────────── */
@media (min-width: 440px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  /* Две колонки: акцентная карточка — во всю ширину, пары карточек — под ней рядом. */
  .principles { grid-template-columns: repeat(2, 1fr); }
  .card-accent { grid-column: 1 / -1; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan-later { grid-column: 1 / -1; }
}
@media (min-width: 860px) {
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .principles { grid-template-columns: repeat(3, 1fr); }
  .card-accent { grid-column: auto; }
  .plans { grid-template-columns: repeat(3, 1fr); }
  .plan-later { grid-column: auto; }
}
@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Ниже 860px — планшет и телефон, то есть палец: строки подвала и кнопка шапки
   по 44px, иначе соседние ссылки легко задеть вместе. */
@media (max-width: 859px) {
  .site-nav { display: none; }
  .btn-sm { min-height: 44px; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { gap: 0; }
  .foot-col a { display: flex; align-items: center; min-height: 44px; }
}

@media (max-width: 639px) {
  :root {
    --elva-pad: 18px;
    --gap-hero: 36px;
    --gap-md: 48px;
    --gap-lg: 56px;
    --gap-cta: 56px;
  }
  .site-footer { padding-top: 56px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .foot-brand { grid-column: 1 / -1; }
}
