/* =========================================================
   Неоновая диспетчерская (LaunchDarkly style), адаптация для салона.
   Mobile-first: базовые стили — телефон, дальше min-width.
   ========================================================= */

/* ---------- Шрифт (локально) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2-variations");
  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 {
  --violet: #7084ff;
  --violet-grad: linear-gradient(179deg, #405bff 1.06%, #7084ff 123.42%);
  --blue: #405bff;
  --ink: #0e0e0e;
  --carbon: #191919;
  --graphite: #414042;
  --steel: #58595b;
  --slate: #6d6e71;
  --fog: #a7a9ac;
  --ash: #d1d3d4;
  --paper: #ffffff;
  --smoke: #2c2c2c;
  --cyan: #3dd6f5;

  --line: rgba(255,255,255,.1);
  --glow: 0 0 40px rgba(64,91,255,.25);
  --glow-soft: 0 0 60px rgba(112,132,255,.19);
  --nav-shadow: 0 4px 20px rgba(0,0,0,.45);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1200px;
  --gutter: 16px;
  --section: 88px;
  --r: 30px;          /* карточки, кнопки, теги */
  --r-input: 10px;
  --r-nav: 60px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--ink); color: var(--ash);
  font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding-top: var(--section); }

/* Незаполненные данные из client.json */
.todo { color: #ffd27a !important; background: rgba(255,210,122,.08); border-radius: 6px; padding: 0 4px; }
.load-error { position: sticky; top: 0; z-index: 100; background: #5a1e1e; color: #fff; padding: 12px 16px; font-size: 14px; }

/* ---------- Типографика ---------- */
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--fog);
}
.h1 { font-weight: 500; color: var(--paper); font-size: 42px; line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.h2 { font-weight: 500; color: var(--paper); font-size: 34px; line-height: 1.09; letter-spacing: -0.015em; margin: 0; }
.h1 .accent, .h2 .accent { display: block; color: var(--violet); }
@supports (-webkit-background-clip: text) {
  .h1 .accent, .h2 .accent {
    background: linear-gradient(179deg, #7084ff 0%, #9aa7ff 60%, #7084ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.lead { font-size: 18px; line-height: 1.5; color: var(--ash); margin: 0; }
.muted { color: var(--fog); }

/* ---------- Кнопки и теги ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  padding: 14px 24px; border-radius: var(--r); border: 1px solid transparent;
  font-size: 16px; font-weight: 500; line-height: 1.2; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--blue); color: var(--paper); }
.btn-primary:hover { background: #5269ff; box-shadow: var(--glow); }
.btn-ghost { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn-ghost:hover { background: rgba(112,132,255,.1); }
.btn-dark { background: var(--carbon); color: var(--paper); border-color: var(--line); }
.btn-dark:hover { border-color: rgba(255,255,255,.25); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--r);
  border: 1px solid var(--line); background: var(--carbon); font-size: 13px; color: var(--ash);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); flex: none; }

/* ---------- Плавающая навигация-таблетка ---------- */
.nav-pill {
  position: fixed; z-index: 30; top: 12px; left: 12px; right: 12px;
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 20px; border-radius: var(--r-nav);
  background: rgba(25,25,25,.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--nav-shadow);
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--paper); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.logo-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--violet-grad); display: grid; place-items: center; box-shadow: 0 0 16px rgba(64,91,255,.45); flex: none; }
.logo-mark svg { width: 14px; height: 14px; }
.nav-links { display: none; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: var(--r); font-size: 14px; color: var(--ash); transition: color .2s ease, background-color .2s ease; }
.nav-links a:hover { color: var(--paper); background: rgba(255,255,255,.06); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-phone { display: none; font-size: 14px; color: var(--ash); padding: 0 8px; white-space: nowrap; }
.nav-pill .btn { padding: 11px 18px; font-size: 14px; }

/* ---------- Подвал ---------- */
footer.site-footer { margin-top: var(--section); background: var(--carbon); border-top: 1px solid var(--line); padding: 48px 0 112px; font-size: 14px; }
.footer-grid { display: grid; gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; color: var(--slate); }
.footer-grid a, .footer-grid button { display: block; color: var(--ash); margin: 6px 0; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.footer-grid a:hover, .footer-grid button:hover { color: var(--paper); }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--slate); font-size: 13px; line-height: 1.6; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: 12px;
  background: var(--carbon); border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px 22px 18px; font-size: 14px; line-height: 1.55; color: var(--ash);
  box-shadow: var(--glow-soft);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; }
.cookie-banner a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; margin-top: 16px; }
.cookie-actions .btn { flex: 1; padding: 12px 16px; font-size: 15px; }

/* ---------- Формы ---------- */
.input {
  width: 100%; background: var(--ink); color: var(--paper); border: 1px solid var(--steel);
  border-radius: var(--r-input); padding: 15px 16px; font: 400 16px var(--font); outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input::placeholder { color: var(--steel); }
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(112,132,255,.18); }
textarea.input { min-height: 110px; resize: vertical; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--fog); cursor: pointer; }
.consent input { margin: 2px 0 0; width: 18px; height: 18px; accent-color: var(--blue); flex: none; cursor: pointer; }
.consent a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.consent.invalid { color: #ffb4b4; }
.consent.invalid input { outline: 2px solid #ff8a8a; outline-offset: 2px; }
.form-error { display: none; margin: 0; font-size: 14px; color: #ffb4b4; }
.form-error.show { display: block; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Страницы документов ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 120px var(--gutter) 0; }
.doc h1 { font-weight: 500; color: var(--paper); font-size: 36px; line-height: 1.09; letter-spacing: -0.015em; margin: 16px 0 12px; }
.doc .meta { color: var(--slate); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-weight: 500; color: var(--paper); font-size: 22px; line-height: 1.3; margin: 44px 0 12px; }
.doc p, .doc li { font-size: 16px; line-height: 1.7; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--violet); }
.doc strong { color: var(--paper); font-weight: 500; }
.doc a { color: var(--violet); text-decoration: underline; text-underline-offset: 2px; }
.doc .card { background: var(--carbon); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin: 24px 0; box-shadow: var(--glow-soft); }
.doc .card dl { display: grid; grid-template-columns: 1fr; gap: 2px 24px; margin: 0; }
.doc .card dt { color: var(--slate); font-size: 13px; margin-top: 10px; }
.doc .card dd { margin: 0; color: var(--paper); }
.doc .table-wrap { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--smoke); }
.doc th { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }

/* ---------- Появление ---------- */
.fade { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.fade.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   Планшет и компьютер
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .h1 { font-size: 60px; }
  .h2 { font-size: 46px; }
  .cookie-banner { left: 24px; right: auto; bottom: 24px; max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc .card dl { grid-template-columns: max-content 1fr; }
  .doc .card dt { margin-top: 0; }
  .doc h1 { font-size: 50px; }
}
@media (min-width: 900px) {
  :root { --section: 120px; }
  .nav-pill { top: 20px; left: 24px; right: 24px; }
  .nav-phone { display: block; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  footer.site-footer { padding-bottom: 48px; }
}
@media (min-width: 1100px) {
  .nav-links { display: flex; }
  .h1 { font-size: 92px; line-height: 1; }
  .h2 { font-size: 66px; }
}
