/* ============================================================
   EXXAI AUTO — base.css
   Дизайн-токены · reset · типографика · компоненты · header/footer
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* светлая тема (переключается через data-theme="light") */
  /* фон: ночной порт, холодный графит */
  --bg-0: #06080C;
  --bg-1: #0A0D13;
  --bg-2: #10141C;
  --bg-3: #171D28;

  --line: rgba(160, 180, 210, 0.10);
  --line-strong: rgba(160, 180, 210, 0.20);

  /* Едва заметная подложка карточек и строк таблиц. В тёмной теме это
     осветление, в светлой — затемнение: белое по белому просто исчезает,
     и блоки теряют рельеф. */
  --tint-1: rgba(255, 255, 255, 0.015);
  --tint-2: rgba(255, 255, 255, 0.03);

  --text-0: #F2F5F9;
  --text-1: #A9B4C4;
  /* поднят с #67738A: мелкие mono-подписи должны брать порог WCAG AA 4.5:1 */
  --text-2: #7C8AA3;

  /* киноварь ворот тории — «врата на Восток» */
  --accent: #FF4B2B;
  --accent-strong: #FF6A46;
  --accent-deep: #E23A1C;
  --accent-soft: rgba(255, 75, 43, 0.13);
  /* «живая» киноварь для заливок, свечения и графики — в тёмной теме совпадает
     с акцентом, в светлой отличается (см. блок [data-theme="light"]) */
  --accent-vivid: #FF4B2B;
  --gold: #E8B04B;

  /* заливка главной кнопки: глубже киновари, чтобы белый текст брал AA 4.5:1.
     Сама киноварь остаётся в свечении — кнопка не теряет жар. */
  --btn-1: #D53D0E;
  --btn-2: #C4330A;
  --btn-3: #A32605;

  --jp: #FF4B2B;
  --kr: #5B8DEF;
  --cn: #F2B33D;

  --ok: #41D392;
  --ok-soft: rgba(65, 211, 146, 0.13);
  --warn: #F2B33D;
  --err: #FF5C5C;

  --font-display: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 30px;

  --container: 1240px;
  --gutter: 24px;
  --header-h: 76px;
}

/* ---------- Светлая тема ---------- */
[data-theme="light"] {
  --bg-0: #F6F3EE;
  --bg-1: #FCFAF7;
  --bg-2: #EFEBE4;
  --bg-3: #E4DED4;
  --line: rgba(60, 45, 35, 0.08);
  --line-strong: rgba(60, 45, 35, 0.15);
  --tint-1: rgba(28, 23, 18, 0.022);
  --tint-2: rgba(28, 23, 18, 0.045);
  --text-0: #1C1712;
  --text-1: #4D463E;
  --text-2: #7A7268;
  /* на светлом фоне киноварь даёт всего ~3:1 — как цвет текста она нечитаема.
     Акцент здесь глубже (4,75:1), а исходная киноварь живёт в --accent-vivid
     и используется только для заливок и свечения. */
  --accent: #C9350F;
  --accent-strong: #A72A0B;
  --accent-deep: #8C2208;
  --accent-vivid: #FF4B2B;
  --accent-soft: rgba(201, 53, 15, 0.09);
  --gold: #9A6F0E;
  --btn-1: #C9350F;
  --btn-2: #B32C0B;
  --btn-3: #962207;
  --ok: #1DAA6D;
  --ok-soft: rgba(29, 170, 109, 0.10);
  --warn: #C8941E;
  --err: #CC3333;
}
[data-theme="light"] body::after { opacity: 0.025; }
[data-theme="light"] .preloader { background: var(--bg-0); }
[data-theme="light"] ::selection { color: var(--bg-0); }
[data-theme="light"] .header::before { background: rgba(246, 243, 238, 0); }
[data-theme="light"] .header.is-scrolled::before {
  background: rgba(246, 243, 238, 0.8);
  border-bottom-color: var(--line);
}
[data-theme="light"] .nav__link:hover { background: rgba(0, 0, 0, 0.04); }
[data-theme="light"] .nav__link.is-active { background: rgba(0, 0, 0, 0.06); color: var(--text-0); }
[data-theme="light"] .btn--ghost { background: var(--tint-2); color: var(--text-0); border-color: var(--line-strong); }
[data-theme="light"] .btn--ghost:hover { background: var(--accent-soft); border-color: var(--accent); }
[data-theme="light"] .btn--primary { box-shadow: 0 6px 20px -6px rgba(201, 53, 15, 0.4); }
[data-theme="light"] .btn--primary:hover { box-shadow: 0 12px 32px -8px rgba(201, 53, 15, 0.5); }
[data-theme="light"] .burger span { background: var(--text-0); }
[data-theme="light"] .mobile-menu { background: rgba(246, 243, 238, 0.96); }
[data-theme="light"] .mobile-menu__link { color: var(--text-0); border-bottom-color: var(--line); }
[data-theme="light"] .mobile-menu__note { color: var(--text-2); }
[data-theme="light"] .mobile-bar { background: rgba(246, 243, 238, 0.88); }
[data-theme="light"] .mobile-bar__btn--ghost { color: var(--text-0); }
[data-theme="light"] .cursor-ring { border-color: rgba(28, 23, 18, 0.25); }
[data-theme="light"] .spot::after {
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0, 0, 0, 0.04), transparent 62%);
}
[data-theme="light"] ::-webkit-scrollbar-track { background: var(--bg-0); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--bg-3); border-color: var(--bg-0); }
[data-theme="light"] .seg { background: var(--bg-2); border-color: var(--line); }
[data-theme="light"] .seg__btn.is-active { background: var(--bg-1); color: var(--text-0); box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
[data-theme="light"] .chip { background: var(--bg-1); }
[data-theme="light"] .field__input { background: var(--bg-1); }
[data-theme="light"] .field__input:focus { background: var(--bg-2); }
[data-theme="light"] .hint::after { background: var(--bg-1); color: var(--text-1); box-shadow: 0 8px 24px -8px rgba(0,0,0,0.15); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* плавный кросс-фейд между страницами (Chromium, прогрессивное улучшение) */
@view-transition { navigation: auto; }

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--text-1);
  background: var(--bg-0);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* плёночное зерно поверх всего — «дорогая» текстура */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.055;
}

img, svg, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
b, strong { font-weight: 700; }

::selection { background: var(--accent); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 5px; border: 2px solid var(--bg-0); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-deep); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { color: var(--text-0); font-weight: 700; line-height: 1.2; }

.mono {
  font-family: var(--font-mono);
  font-feature-settings: 'zero' 1;
}
.monoline {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-1);
  display: block;
  line-height: 1.4;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.link-accent {
  color: var(--accent-strong);
  font-weight: 700;
  transition: color 0.25s var(--ease-out);
  white-space: nowrap;
}
.link-accent:hover { color: var(--text-0); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(76px, 9.5vw, 128px); position: relative; }

/* ---------- Утилиты ----------
   Небольшой набор классов вместо инлайновых стилей, которые повторялись
   на внутренних страницах. Расширять этот список без нужды не стоит:
   всё, что описывает конкретный блок, должно жить в его собственных стилях. */
.u-pt-0 { padding-top: 0; }
.u-pt-page { padding-top: calc(var(--header-h) + 40px); }
.u-pt-page-lg { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px)); }
.u-mt-12 { margin-top: 12px; }
.u-mt-14 { margin-top: 14px; }
.u-mt-16 { margin-top: 16px; }
.u-mt-20 { margin-top: 20px; }
.u-mt-24 { margin-top: 24px; }
.u-center { text-align: center; }
.u-center-pb0 { text-align: center; padding-bottom: 0; }
.u-muted { color: var(--text-2); }

/* центрированная шапка секции — вместо инлайновых стилей в разметке */
.section__head--center { text-align: center; }
.section__head--center .section__label { justify-content: center; }
.section__head--center .section__title { max-width: 100%; }
.section__head--center .section__sub { margin-inline: auto; }

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 22px;
}
.section__label span {
  color: var(--accent-strong);
  font-weight: 600;
}
.section__label::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent);
}

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.65rem, 1rem + 2.6vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: 0.005em;
  max-width: 21ch;
  text-wrap: balance;
}
.section__title em {
  font-style: normal;
  background: linear-gradient(92deg, #FF8A5C 0%, var(--accent) 40%, #FF2E63 78%, #FF8A5C 108%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 9s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .section__title em { animation: none; }
}

.section__sub {
  max-width: 58ch;
  margin-top: 22px;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.13rem);
  color: var(--text-1);
}

.section__head { margin-bottom: clamp(40px, 5vw, 60px); }

/* ---------- Reveal-анимации (активны только при js) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* QA-режим: моментальные состояния для скриншот-тестов */
html.qa { scroll-behavior: auto !important; }
html.qa *, html.qa *::before, html.qa *::after {
  transition: none !important;
  animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn svg { flex: none; transition: transform 0.35s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: linear-gradient(135deg, var(--btn-1) 0%, var(--btn-2) 48%, var(--btn-3) 100%);
  color: #fff;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 30px -8px rgba(255, 75, 43, 0.6);
}
/* блик проходит один раз при появлении и один раз на наведении —
   постоянная петля перетягивала внимание с текста */
.btn--primary::before {
  content: '';
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -70%;
  width: 42%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: skewX(-22deg);
  animation: btnShine 1.15s var(--ease-io) 0.5s 1 both;
  pointer-events: none;
}
.btn--primary:hover::before {
  animation: btnShine 0.85s var(--ease-io) 0s 1 both;
}
@keyframes btnShine {
  from { left: -70%; }
  to   { left: 140%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn--primary::before,
  .btn--primary:hover::before { animation: none; }
}
/* на наведении не осветляем заливку (иначе белый текст падает ниже AA),
   а усиливаем свечение и подъём — жара добавляется вокруг кнопки, не под текстом */
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 0 0 1px rgba(255, 122, 80, 0.45),
    0 18px 46px -10px rgba(255, 75, 43, 0.8);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-0);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: rgba(255, 106, 70, 0.55);
  background: var(--accent-soft);
  transform: translateY(-2px);
}

.btn--sm { padding: 11px 20px; font-size: 0.86rem; }
.btn--lg { padding: 18px 34px; font-size: 1.02rem; }
.btn--wide { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background-color 0.4s var(--ease-out), backdrop-filter 0.4s;
}
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s, border-color 0.4s;
  z-index: -1;
}
.header.is-scrolled::before {
  background: rgba(6, 8, 12, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  transition: height 0.4s var(--ease-out);
}
.header.is-scrolled .header__inner { height: 62px; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-0);
}
.logo__mark { color: var(--text-0); }
.logo__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}
.logo__text b { color: var(--accent-strong); font-weight: 600; }

.nav { display: flex; gap: 4px; }
.nav__link {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-1);
  transition: color 0.25s, background-color 0.25s;
}
.nav__link:hover { color: var(--text-0); background: rgba(255, 255, 255, 0.05); }
.nav__link.is-active { color: var(--text-0); background: rgba(255, 255, 255, 0.07); }

.header__right { display: flex; align-items: center; gap: 18px; }
.header__phone {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-1);
  transition: color 0.25s;
}
.header__phone:hover { color: var(--text-0); }

.header__progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}
.header.is-scrolled .header__progress { opacity: 1; }

/* burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--tint-2);
}
.burger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-0);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(6, 8, 12, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-menu__link {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 15px 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  font-weight: 500;
  color: var(--text-0);
  border-bottom: 1px solid var(--line);
  transform: translateX(-18px);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.mobile-menu.is-open .mobile-menu__link {
  transform: none;
  opacity: 1;
  transition-delay: calc(var(--i, 0) * 55ms + 80ms);
}
.mobile-menu__num { font-size: 0.8rem; color: var(--accent-strong); }
.mobile-menu__footer { display: grid; gap: 16px; }
.mobile-menu__footer > a.mono { font-size: 1.1rem; color: var(--text-0); }
.mobile-menu__note { font-size: 0.85rem; color: var(--text-2); line-height: 1.6; }

/* ---------- Сегментированные контролы / чипы / слайдеры ---------- */
.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.seg__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
/* код страны вместо эмодзи-флага: одинаково выглядит на Windows, macOS и Android */
.seg__code {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.04em;
}
.seg__code[data-country="jp"] { background: rgba(255, 75, 43, 0.14); color: var(--jp); }
.seg__code[data-country="kr"] { background: rgba(91, 141, 239, 0.16); color: var(--kr); }
.seg__code[data-country="cn"] { background: rgba(242, 179, 61, 0.16); color: #B98407; }
[data-theme="light"] .seg__code[data-country="cn"] { color: #8A6104; }
.seg__btn:hover { color: var(--text-1); }
.seg__btn.is-active {
  color: var(--text-0);
  background: var(--bg-3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 4px 14px -6px rgba(0, 0, 0, 0.8);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-1);
  transition: all 0.25s var(--ease-out);
}
.chip:hover { border-color: var(--text-2); color: var(--text-0); }
.chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
  --p: 50%;
}
.range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background:
    linear-gradient(90deg, var(--accent-deep), var(--accent-strong)) 0 0 / var(--p) 100% no-repeat,
    rgba(160, 180, 210, 0.14);
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text-0);
  border: 5px solid var(--accent);
  margin-top: -9px;
  box-shadow: 0 4px 16px -2px rgba(255, 75, 43, 0.6);
  transition: transform 0.2s var(--ease-out);
}
.range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.range::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(160, 180, 210, 0.14);
}
.range::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-strong));
}
.range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-0);
  border: 5px solid var(--accent);
  box-shadow: 0 4px 16px -2px rgba(255, 75, 43, 0.6);
}
.range__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-2);
  margin-top: 2px;
}

/* ---------- Поля формы ---------- */
.field { display: grid; gap: 9px; }
/* подписи полей — обычный текст, а не телеметрия: здесь человек принимает решение,
   и капслок в моношрифте с разрядкой читается на треть медленнее */
.field__label {
  font-family: var(--font-body);
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-1);
  font-weight: 600;
}
.field__label i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.7; font-weight: 400; }
.field__label-row { display: flex; justify-content: space-between; align-items: baseline; }
.field__out { font-size: 0.95rem; font-weight: 600; color: var(--accent-strong); }

.field__input {
  width: 100%;
  padding: 15px 18px;
  border-radius: 13px;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.field__input::placeholder { color: var(--text-2); font-weight: 500; }
.field__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: var(--bg-2);
}
.field__input--area { resize: vertical; min-height: 64px; line-height: 1.5; }
.field__input.is-error { border-color: var(--err); box-shadow: 0 0 0 4px rgba(255, 92, 92, 0.12); }
.field__error {
  font-size: 0.78rem;
  color: var(--err);
  margin-top: 4px;
  font-weight: 500;
}

/* ---------- Live-элементы ---------- */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(65, 211, 146, 0.5);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(65, 211, 146, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(65, 211, 146, 0); }
  100% { box-shadow: 0 0 0 0 rgba(65, 211, 146, 0); }
}

/* подсказки «?» */
.hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 0.75rem;
  font-style: normal;
  color: var(--text-2);
  cursor: help;
  position: relative;
  vertical-align: 2px;
  margin-left: 5px;
}
.hint:hover { color: var(--text-0); border-color: var(--text-2); }
.hint::after {
  content: attr(data-hint);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 250px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--bg-3);
  border: 1px solid var(--line-strong);
  color: var(--text-1);
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease-out);
  z-index: 20;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.8);
}
.hint:hover::after, .hint:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Спотлайт за курсором на карточках ---------- */
.spot { position: relative; }
.spot::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  background: radial-gradient(
    440px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.05),
    transparent 62%
  );
  z-index: 2;
}
.spot:hover::after { opacity: 1; }

/* ---------- Кастомный курсор-прицел (включает JS на десктопе) ----------
   Только над первым экраном: там он часть атмосферы карты. На остальной
   странице системный курсор остаётся — иначе страдает точность кликов
   по ползункам калькулятора, чипам и полям форм. */
html.cursor-fx .hero,
html.cursor-fx .hero a,
html.cursor-fx .hero button { cursor: none; }

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483300;
  pointer-events: none;
  will-change: transform;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 10px rgba(255, 106, 70, 0.8);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 1.5px solid rgba(242, 245, 249, 0.32);
  transition:
    width 0.35s var(--ease-out),
    height 0.35s var(--ease-out),
    margin 0.35s var(--ease-out),
    border-radius 0.35s var(--ease-out),
    border-color 0.35s,
    opacity 0.3s;
}
/* риски прицела по сторонам кольца */
.cursor-ring::before, .cursor-ring::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--accent-strong);
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor-ring::before { width: 100%; height: 1px; transform: translate(-50%, -50%) scaleX(0.22); }
.cursor-ring::after { width: 1px; height: 100%; transform: translate(-50%, -50%) scaleY(0.22); }
.cursor-ring.is-link {
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 14px;
  border-color: rgba(255, 106, 70, 0.85);
}
.cursor-ring.is-link::before, .cursor-ring.is-link::after { opacity: 0.9; }
.cursor-dot.is-hidden, .cursor-ring.is-hidden { opacity: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-1);
  padding-top: clamp(56px, 7vw, 88px);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer__tagline { margin-top: 20px; font-size: 0.95rem; max-width: 34ch; }
.footer__coords {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.7;
}
.footer__col { display: grid; gap: 13px; align-content: start; }
.footer__col > b {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-2);
  font-weight: 600;
  margin-bottom: 6px;
}
.footer__col a {
  font-size: 0.93rem;
  color: var(--text-1);
  transition: color 0.25s;
  width: fit-content;
}
.footer__col a:hover { color: var(--text-0); }
.footer__socials { display: flex; gap: 8px; margin-top: 6px; }
.soc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-1);
  transition: all 0.25s var(--ease-out);
}
.soc:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-2px);
}
.footer__hours { font-size: 0.75rem; color: var(--text-2); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--text-2);
}
.footer__disclaimer { max-width: 52ch; }

/* ---------- Плавающие элементы ---------- */
.tg-float, .max-float {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 900;
  /* ширина авто и радиус-таблетка: свёрнутая кнопка — круг 58×58,
     при наведении раскрывается подпись и она вытягивается влево.
     overflow не режем — иначе обрезало бы пульс, выходящий за границы */
  width: auto;
  min-width: 58px;
  height: 58px;
  padding: 0 17px;
  gap: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #37AEE2, #1E96C8);
  box-shadow: 0 12px 32px -8px rgba(30, 150, 200, 0.6);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.tg-float:hover, .max-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 18px 44px -10px rgba(30, 150, 200, 0.75);
}
/* Кнопка российского мессенджера MAX: стоит над Telegram-кнопкой и ведёт
   в веб-версию, где нас можно найти по номеру +7 (914) 725-90-90 */
.max-float {
  bottom: 104px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, #7C7CF5, #5B5BEA);
  box-shadow: 0 12px 32px -8px rgba(91, 91, 234, 0.55);
}
.max-float:hover {
  box-shadow: 0 18px 44px -10px rgba(91, 91, 234, 0.7);
}
/* пульс привлекает внимание три раза и затихает: бесконечная петля в углу
   экрана всё время тянет периферийное зрение и мешает читать страницу */
.tg-float__pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(55, 174, 226, 0.7);
  animation: tgPulse 2.6s var(--ease-out) 3 both;
}
.tg-float:hover .tg-float__pulse { animation: tgPulse 2.6s var(--ease-out) 1 both; }
@media (prefers-reduced-motion: reduce) {
  .tg-float__pulse { animation: none; opacity: 0; }
}
@keyframes tgPulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Подпись у кнопки Telegram: раскрывается при наведении и с клавиатуры.
   Пришла из отдельного виджета, который раньше рисовал вторую такую же
   кнопку рядом. Текст сохранён, дубль убран. */
.tg-float__label {
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 700;
  transition: max-width 0.4s var(--ease-out), opacity 0.3s, margin-left 0.4s var(--ease-out);
}
.tg-float:hover .tg-float__label,
.tg-float:focus-visible .tg-float__label {
  max-width: 190px;
  opacity: 1;
  margin-left: 10px;
}
@media (prefers-reduced-motion: reduce) {
  .tg-float__label { transition: none; }
}

/* Крестик «скрыть» — раньше cookie 'closed' читался, но выставить его
   было нечем, и убрать кнопку было невозможно. */
/* видимый кружок 26px, но зона нажатия расширена псевдоэлементом до 44px —
   норма для тап-цели, при этом визуально крестик остаётся деликатным */
.tg-float__close {
  position: fixed;
  right: 24px;
  bottom: 76px;
  z-index: 901;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  color: var(--text-1);
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s, transform 0.25s, color 0.25s;
}
.tg-float:hover ~ .tg-float__close,
.tg-float__close:hover,
.tg-float__close:focus-visible {
  opacity: 1;
  transform: scale(1);
}
.tg-float__close::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
}
.tg-float__close:hover { color: var(--text-0); border-color: var(--text-2); }
@media (max-width: 720px) {
  .tg-float__close { display: none; }
}

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  display: none;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(8, 10, 15, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  transform: translateY(105%);
  transition: transform 0.45s var(--ease-out);
}
.mobile-bar.is-visible { transform: none; }
.mobile-bar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px 10px;
}
.mobile-bar__btn--ghost { border: 1px solid var(--line-strong); color: var(--text-0); flex: 0.7; }
.mobile-bar__btn--primary {
  flex: 1.3;
  color: #fff;
  background: linear-gradient(135deg, #FF6A3D, var(--accent-deep));
  box-shadow: 0 8px 24px -8px rgba(255, 75, 43, 0.6);
}
.mobile-bar__btn--tg {
  flex: none;
  width: 48px;
  color: #fff;
  background: linear-gradient(135deg, #37AEE2, #1E96C8);
}
.mobile-bar__btn--max {
  flex: none;
  width: 48px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0;
  background: linear-gradient(135deg, #7C7CF5, #5B5BEA);
}

/* ---------- Preloader ---------- */
html:not(.js) .preloader { display: none; }
.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.65s var(--ease-out), visibility 0.65s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { display: grid; justify-items: center; gap: 18px; width: min(320px, 80vw); }
.preloader__mark { color: var(--text-0); }
/* Стрелка прелоадера ведёт себя как стрелка приборной панели при запуске
   двигателя: разгоняется по шкале и возвращается. Раньше стрелка компаса
   бесконечно крутилась вокруг оси — движение без смысла. */
.preloader__needle {
  /* view-box, а не fill-box: ось вращения задана в координатах viewBox,
     а не в габаритах самой стрелки */
  transform-box: view-box;
  transform-origin: 24px 24px;
  animation: gaugeSweep 1.4s var(--ease-io) infinite;
  stroke: var(--accent);
}
@keyframes gaugeSweep {
  0%        { transform: rotate(0deg); }
  55%       { transform: rotate(238deg); }
  70%       { transform: rotate(228deg); }
  100%      { transform: rotate(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__needle { animation: none; transform: rotate(238deg); }
}
.preloader__coords { font-size: 0.78rem; color: var(--text-2); letter-spacing: 0.08em; }
.preloader__bar {
  width: 100%;
  height: 2px;
  background: rgba(160, 180, 210, 0.12);
  border-radius: 1px;
  overflow: hidden;
}
.preloader__bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.3s var(--ease-out);
}
.preloader__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
}
.preloader__status {
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--text-2);
}
.preloader__pct {
  font-size: 0.72rem;
  color: var(--accent-strong);
}

/* ---------- Skip to content ---------- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 3000;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: top 0.25s var(--ease-out);
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--tint-2);
  color: var(--text-1);
  transition: all 0.35s var(--ease-out);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: rotate(18deg);
}
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
[data-theme="light"] .theme-toggle .sun { display: block; }
[data-theme="light"] .theme-toggle .moon { display: none; }
[data-theme="light"] .theme-toggle { background: rgba(0, 0, 0, 0.04); border-color: var(--line-strong); }

/* ---------- Светлая тема — секции (sections.css overrides) ---------- */
[data-theme="light"] .hero {
  background:
    radial-gradient(1100px 720px at 86% -10%, rgba(255, 96, 43, 0.07), transparent 60%),
    radial-gradient(900px 600px at 105% 55%, rgba(255, 75, 43, 0.04), transparent 65%),
    radial-gradient(700px 500px at -8% 90%, rgba(91, 141, 239, 0.03), transparent 60%),
    var(--bg-0);
}
[data-theme="light"] .hero__overlay {
  background: linear-gradient(90deg, rgba(246, 243, 238, 0.88) 0%, rgba(246, 243, 238, 0.5) 34%, rgba(246, 243, 238, 0) 62%);
}
[data-theme="light"] .ticker { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .ticker__item { color: var(--text-1); }
[data-theme="light"] .savings-card { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .savings-card__flag[data-country="jp"] { background: rgba(255, 75, 43, 0.08); border-color: rgba(255, 75, 43, 0.2); }
[data-theme="light"] .savings-card__flag[data-country="kr"] { background: rgba(91, 141, 239, 0.08); border-color: rgba(91, 141, 239, 0.2); }
[data-theme="light"] .savings-card__flag[data-country="cn"] { background: rgba(242, 179, 61, 0.08); border-color: rgba(242, 179, 61, 0.2); }
[data-theme="light"] .savings-bar__track { background: var(--bg-2); }
[data-theme="light"] .savings-bar--dealer .savings-bar__track span {
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 14px, rgba(0, 0, 0, 0) 14px 28px),
    linear-gradient(90deg, #B9C1CE, #D3D9E2);
}
[data-theme="light"] .direction-card { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .direction-card__visual { background: var(--bg-2); }
[data-theme="light"] .quiz { background: var(--bg-1); }
[data-theme="light"] .quiz__option { background: var(--bg-2); border-color: var(--line); }
[data-theme="light"] .quiz__option:hover { background: var(--bg-3); }
[data-theme="light"] .quiz__step-num { color: var(--text-2); }
[data-theme="light"] .calc__panel { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .calc__row { border-bottom-color: var(--line); }
[data-theme="light"] .calc__total { border-top-color: var(--line); }
[data-theme="light"] .calc__disclaimer { color: var(--text-2); }
[data-theme="light"] .compare__table th { color: var(--text-0); }
[data-theme="light"] .compare__table th, [data-theme="light"] .compare__table td { border-color: var(--line); }
[data-theme="light"] .compare__table .is-us { background: rgba(255, 75, 43, 0.04); }
[data-theme="light"] .compare__table .is-us th,
[data-theme="light"] .compare__table .is-us td { border-color: rgba(255, 75, 43, 0.15); }
[data-theme="light"] .compare__table tbody tr:hover { background: rgba(0,0,0,0.02); }
[data-theme="light"] .control-panel { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .control-feed__item { border-bottom-color: var(--line); }
[data-theme="light"] .control-ship { background: var(--bg-2); }
[data-theme="light"] .guarantee-card { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .guarantee-card__icon { background: var(--bg-2); color: var(--accent-strong); }
[data-theme="light"] .team-card { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .team-card__avatar { background: var(--bg-2); color: var(--accent-strong); }
[data-theme="light"] .process-step { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .process-step__num { background: var(--bg-2); color: var(--accent-strong); }
[data-theme="light"] .process-step.is-done .process-step__num { color: var(--ok); }
[data-theme="light"] .case-card { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .case-card__visual { background: var(--bg-2); }
[data-theme="light"] .case-card__price { color: var(--accent-strong); }
[data-theme="light"] .faq__item { border-bottom-color: var(--line); }
[data-theme="light"] .faq__q { color: var(--text-0); }
[data-theme="light"] .faq__q:hover { background: rgba(0,0,0,0.02); }
[data-theme="light"] .cta { background: var(--bg-1); }
[data-theme="light"] .cta::before { opacity: 0.04; }
[data-theme="light"] .footer { background: var(--bg-1); border-top-color: var(--line); }
[data-theme="light"] .footer__bottom { border-top-color: var(--line); }
[data-theme="light"] .soc { background: rgba(0,0,0,0.03); }
[data-theme="light"] .numbers-card { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .numbers-card__num { color: var(--accent-strong); }
[data-theme="light"] .usp-card { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .partners__wrap { background: var(--bg-1); border-color: var(--line); }
[data-theme="light"] .partner-logo { filter: none; opacity: 0.65; }
[data-theme="light"] .back-top { background: var(--text-0); color: var(--bg-0); }
[data-theme="light"] .back-top:hover { background: var(--accent); }
[data-theme="light"] .breadcrumbs { color: var(--text-2); }
[data-theme="light"] .breadcrumbs a { color: var(--text-1); }
[data-theme="light"] .breadcrumbs a:hover { color: var(--text-0); }
[data-theme="light"] .page-hero { background: var(--bg-1); border-bottom-color: var(--line); }
[data-theme="light"] .mtable th { color: var(--text-0); }
[data-theme="light"] .mtable td, [data-theme="light"] .mtable th { border-color: var(--line); }
[data-theme="light"] .mtable tbody tr:hover { background: rgba(0,0,0,0.02); }

/* ---------- Адаптив базы ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header__phone { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 18px; --header-h: 66px; }
  .header__cta { display: none; }
  .mobile-bar { display: flex; }
  .tg-float, .max-float { display: none; }
  body { padding-bottom: 0; }
  .footer { padding-bottom: 76px; }
  .footer__top { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; gap: 10px; padding-bottom: 20px; }
  .btn--lg { padding: 16px 26px; font-size: 0.95rem; }
}

/* ===== Modal lead form ===== */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity 0.25s var(--ease-out), visibility 0.25s; }
.modal.open { visibility: visible; opacity: 1; }
.modal__overlay { position: absolute; inset: 0; background: rgba(6, 9, 14, 0.74); backdrop-filter: blur(6px); }
.modal__box { position: relative; width: min(440px, 100%); background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-lg); padding: 34px 30px 30px; transform: translateY(16px); transition: transform 0.3s var(--ease-out); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal.open .modal__box { transform: translateY(0); }
.modal__close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 15px; cursor: pointer; transition: all 0.2s; display: grid; place-items: center; }
.modal__close:hover { color: var(--text-0); border-color: var(--accent); }
.modal__label { font-size: 0.72rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-strong); font-weight: 600; margin-bottom: 8px; }
.modal__box h2, .modal__done h2 { font-family: var(--font-display, inherit); font-weight: 600; font-size: 1.35rem; color: var(--text-0); line-height: 1.25; margin: 0 0 6px; }
.modal__sub { color: var(--text-2); font-size: 0.9rem; margin-bottom: 20px; }
.lead-form { display: grid; gap: 12px; }
.lead-form input, .lead-form textarea { width: 100%; background: var(--bg-0); border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; color: var(--text-0); font-size: 0.98rem; font-family: inherit; transition: border-color 0.2s; resize: vertical; }
.lead-form input:focus, .lead-form textarea:focus { outline: none; border-color: var(--accent); }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--text-2); }
.lead-form input.lead-form__error { border-color: #e5484d; }
.lead-form input[type="text"].lead-form__hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.modal__submit { width: 100%; justify-content: center; }
.modal__error { color: #e5484d; font-size: 0.84rem; min-height: 0; display: none; margin-top: -6px; }
.modal__error.lead-form__error { display: block; }
.modal__note { font-size: 0.76rem; color: var(--text-2); line-height: 1.5; margin-top: 2px; }
.modal__note a { color: var(--accent-strong); }
.modal__done { text-align: center; padding: 12px 6px 6px; }
.modal__done .modal__icon { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; border: 1.5px solid #2fb15d; color: #2fb15d; display: grid; place-items: center; font-size: 24px; }
.modal__done h2 { font-size: 1.4rem; }
.modal__done p { color: var(--text-1); font-size: 0.98rem; margin-top: 8px; line-height: 1.6; }
