/* Претензионный стол — «Дежурная смена» (DESIGN.md).
   Тёмный канвас #101318, лестница поверхностей, волосяные линии, белые документные полосы,
   TG-синий только внутри телефонной рамки.
   Цвета — строго парами по мирам, без дублей:
   • янтарный: --amber (заливки/акценты в обоих мирах) + --amber-ink (текст на янтарном)
     и бумажная группа --amber-paper / -bg / -line (тёмный янтарь для текста и чипов на белом);
   • зелёный/красный: тёмный мир --ok/--ok-bg, --bad/--bad-bg; бумага --p-ok/--p-ok-bg,
     --p-bad/--p-bad-bg. Полосы 14 дней наследуют пару своего мира. */

:root {
  --canvas: #101318;
  --s1: #171B21; --s2: #1E242C; --s3: #262D36;
  --ink: #ECEFF4; --ink-2: #A6B0BC; --ink-3: #7A8694;
  --hair: #2A313B;
  --amber: #F5B02E; --amber-ink: #17130A;
  --amber-paper: #8A5300; --amber-paper-bg: #FCF3DC; --amber-paper-line: #EFD9A8;
  --ok: #6FD68C; --ok-bg: #14261B;
  --bad: #F08A8E; --bad-bg: #311A1D;
  --paper: #FFFFFF;
  --p-ink: var(--p-ink); --p-ink-2: #4A5561; --p-ink-3: #66707C;
  --p-hair: #E4E9EF; --p-band: #F7F9FB;
  --p-ok: #1F8A47; --p-ok-bg: #EAF6EF;
  --p-bad: #C0402E; --p-bad-bg: #FBEFED;
  --tg: #3390EC;
  --r-btn: 8px; --r-card: 10px; --r-doc: 12px;
  --sans: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --tgf: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 76px; scrollbar-color: var(--s3) var(--canvas); }
body {
  margin: 0; font: 400 16.5px/1.7 var(--sans); color: var(--ink);
  background: var(--canvas); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ol, ul, table, pre { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: var(--amber); }
img, svg { vertical-align: middle; }
button { font: inherit; color: inherit; }
::selection { background: var(--amber); color: var(--amber-ink); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 840px; }
.section { padding: 64px 0; }
.band-s1 { background: var(--s1); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 14px;
}
.section h2 { font-size: clamp(24px, 3vw, 31px); line-height: 1.18; font-weight: 600; letter-spacing: -0.01em; }
.hero-grid > *, .race-stations > *, .believe-grid > *, .plans > *, .start-grid > *, .foot-grid > *, .desk-head-r > * { min-width: 0; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--r-btn); border: 1px solid transparent;
  font-size: 15.5px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .12s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--amber { background: var(--amber); color: var(--amber-ink); }
.btn--amber:hover { background: var(--amber-hover); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn--ghost:hover { background: var(--s1); border-color: var(--s3); }
.btn--quiet { background: none; border: none; color: var(--ink-2); padding: 8px 12px; font-size: 14px; font-weight: 500; border-radius: 6px; }
.btn--quiet:hover { color: var(--ink); background: var(--s1); }
.btn--ink { background: var(--p-ink); color: #fff; }
.btn--ink:hover { background: #10151C; }
.btn--pghost { background: transparent; color: var(--p-ink); border-color: #C9D3DE; }
.btn--pghost:hover { background: var(--p-band); border-color: #B3C0CE; }
.btn--sm { padding: 9px 16px; font-size: 14.5px; }
.btn--full { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }

/* ---------- шапка ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--canvas); border-bottom: 1px solid var(--hair); }
.site-head-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 60px; }
.wordmark { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; text-decoration: none; }
.wordmark:hover { color: var(--ink); text-decoration: none; }
.wordmark i { font-style: normal; color: var(--amber); }
.site-nav { display: flex; gap: 24px; }
.site-nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* ---------- герой ---------- */
.hero { padding: 68px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(29px, 3.9vw, 44px); line-height: 1.14; font-weight: 800;
  letter-spacing: -0.015em; margin: 14px 0 14px; max-width: 21ch;
}
.hero h1 b { font-weight: 800; color: #fff; }
.chip-days {
  display: inline-block; vertical-align: middle;
  margin-left: 10px; padding: 4px 11px; border-radius: 7px;
  background: var(--amber); color: var(--amber-ink);
  font: 600 15px/1 var(--mono); letter-spacing: 0; white-space: nowrap;
}
.hero-tag { font-size: 13.5px; color: var(--ink-3); margin-bottom: 18px; }
.hero-sub { font-size: 17px; line-height: 1.75; color: var(--ink-2); max-width: 46ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-note { font-size: 13px; line-height: 1.55; color: var(--ink-3); max-width: 46ch; }

/* ---------- полоса 14 дней (сигнатурный элемент) ---------- */
.days { display: flex; align-items: center; gap: 3px; }
.days i {
  flex: 1 1 0; height: 16px; border-radius: 2.5px; min-width: 4px;
  background: transparent; box-shadow: inset 0 0 0 1px var(--hair);
}
.days i.on { background: var(--amber); box-shadow: none; }
.days i.cur { background: var(--amber); box-shadow: none; animation: cell-pulse 2s ease infinite; }
.days.hot i.on, .days.hot i.cur { background: var(--bad); box-shadow: none; }
.days b { margin-left: 9px; font: 400 12px/1 var(--mono); color: var(--ink-2); white-space: nowrap; font-weight: 400; }
@keyframes cell-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

.days--hero { width: min(352px, 100%); }
.days--mini { height: 8px; gap: 2px; margin: 10px 0 5px; }
.days--mini i { height: 8px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--p-hair); }
.days--mini i.on, .days--mini i.cur { background: var(--amber); box-shadow: none; }
.days--mini.hot i.on, .days--mini.hot i.cur { background: var(--p-bad); box-shadow: none; }
.days--micro { width: 110px; height: 5px; gap: 2px; }
.days--micro i { height: 5px; border-radius: 1px; box-shadow: inset 0 0 0 1px var(--p-hair); }
.days--micro i.on, .days--micro i.cur { background: var(--amber); box-shadow: none; }
.days--micro.hot i.on, .days--micro.hot i.cur { background: var(--p-bad); box-shadow: none; }
.days--micro.done i.on { background: var(--p-ok); box-shadow: none; }

/* ---------- телефон (Telegram Web A) ---------- */
.hero-phone { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-phone .days--hero { margin-bottom: 10px; }
.strip-cap { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.strip-cap b { color: var(--ink-2); font: 600 12px var(--mono); }
.phone {
  width: min(352px, 100%); border-radius: 44px; padding: 9px; background: #0A0D12;
  box-shadow: 0 24px 48px -18px rgba(0,0,0,.6), 0 4px 14px rgba(0,0,0,.35);
}
.phone-screen { border-radius: 36px; overflow: hidden; background: #fff; display: flex; flex-direction: column; height: 620px; }
.phone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 24px 4px; font: 600 13px/1 var(--tgf); color: #17212B;
}
.phone-status-r { display: inline-flex; gap: 5px; align-items: center; }
.si { display: inline-block; height: 11px; background-repeat: no-repeat; background-size: contain; background-position: center; }
.si-sig { width: 17px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='11'%3E%3Cg fill='%2317212B'%3E%3Crect x='0' y='7' width='3' height='4' rx='1'/%3E%3Crect x='4.7' y='5' width='3' height='6' rx='1'/%3E%3Crect x='9.3' y='2.5' width='3' height='8.5' rx='1'/%3E%3Crect x='14' y='0' width='3' height='11' rx='1'/%3E%3C/g%3E%3C/svg%3E"); }
.si-wifi { width: 15px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='11' viewBox='0 0 16 11'%3E%3Cpath d='M8 10.5 5.8 8.3a3.1 3.1 0 0 1 4.4 0zM8 6.1a5.6 5.6 0 0 0-4 1.7L2.5 6.3a7.8 7.8 0 0 1 11 0L12 7.8a5.6 5.6 0 0 0-4-1.7zm0-3.6a9.2 9.2 0 0 0-6.5 2.7L0 3.7a11.3 11.3 0 0 1 16 0l-1.5 1.5A9.2 9.2 0 0 0 8 2.5z' fill='%2317212B'/%3E%3C/svg%3E"); }
.si-bat { width: 23px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='11'%3E%3Crect x='.8' y='.8' width='18' height='9.4' rx='2.2' fill='none' stroke='%2317212B' stroke-width='1'/%3E%3Crect x='2.6' y='2.6' width='12' height='5.8' rx='1.2' fill='%2317212B'/%3E%3Cpath d='M20.8 3.6v3.8c1.2-.4 1.8-1.1 1.8-1.9s-.6-1.5-1.8-1.9z' fill='%2317212B'/%3E%3C/svg%3E"); }
.phone-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px;
  background: #fff; border-bottom: 1px solid #EBEFF3;
}
.phone-ava {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: linear-gradient(180deg, #4FA3EE, #2F7FD6); color: #fff; flex: 0 0 auto;
}
.phone-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.phone-title b { font: 600 15.5px/1.25 var(--tgf); color: #17212B; }
.phone-title small { font: 400 12.5px/1.3 var(--tgf); color: #6C7683; }
.phone-chat {
  position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, #DCE7F2 0%, #C9D9EA 100%);
  padding: 14px 10px 10px; scrollbar-width: thin;
}
.phone-chat::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.34' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 28l4 8 8 1.2-6 6 1.8 8.8-7.8-4.6-7.8 4.6L16.8 43l-6-6 8-1.2z'/%3E%3Cpath d='M104 18l26 11-6.5 4.3-4.3-2.2-5.2 3 2.2 5.2-4.8 4.4z'/%3E%3Ccircle cx='152' cy='84' r='6'/%3E%3Cpath d='M58 108c0-6 5-10.5 10.5-10.5S79 102 79 108s-10.5 15-10.5 15S58 114 58 108z'/%3E%3Cpath d='M118 132h16M126 124v16'/%3E%3Cpath d='M28 148q10-13 20 0'/%3E%3Cpath d='M88 58l10 4-10 4-4 10-4-10-10-4 10-4 4-10z'/%3E%3C/g%3E%3C/svg%3E");
}
.chat-log { display: flex; flex-direction: column; gap: 7px; position: relative; }
.msg { max-width: 86%; display: flex; flex-direction: column; animation: msg-in .22s var(--ease); }
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg--bot { align-self: flex-start; }
.msg--user { align-self: flex-end; }
.mb-bubble {
  position: relative; padding: 8px 11px 7px; font: 400 15px/1.38 var(--tgf); color: #17212B;
  box-shadow: 0 1px 2px rgba(23,33,43,.18); white-space: pre-wrap; word-break: break-word;
}
.msg--bot .mb-bubble { background: #fff; border-radius: 4px 16px 16px 16px; }
.msg--user .mb-bubble { background: #EEFFDE; border-radius: 16px 4px 16px 16px; }
.mb-bubble .mini-date { display: block; font: 400 11.5px/1.3 var(--mono); color: #6C7683; }
.mb-meta { float: right; margin: 8px -3px -2px 8px; font: 400 12px/1 var(--tgf); display: inline-flex; gap: 3px; align-items: center; user-select: none; }
.msg--bot .mb-meta { color: #686C72; }
.msg--user .mb-meta { color: #4FAE4E; }
.mb-meta svg { width: 13px; height: 9px; }
.msg pre {
  margin: 2px 0; padding: 10px 11px; border-radius: 12px; background: #fff;
  box-shadow: 0 1px 2px rgba(23,33,43,.18);
  font: 400 11px/1.55 var(--mono); color: #17212B; white-space: pre-wrap; word-break: break-word;
  max-height: 300px; overflow-y: auto; scrollbar-width: thin;
}
.msg--pre-meta { display: flex; justify-content: flex-end; margin: 3px 3px 0; font: 400 12px/1 var(--tgf); color: #686C72; }
.msg-kbd { background: #fff; border-radius: 0 0 14px 14px; box-shadow: 0 1px 2px rgba(23,33,43,.18); overflow: hidden; }
.msg--bot.has-kbd .mb-bubble { border-radius: 14px 14px 4px 4px; margin-bottom: 2px; }
.kbd-row { display: flex; }
.kbd-row + .kbd-row { border-top: 1px solid var(--p-hair); }
.kbd-row button, .kbd-row a {
  flex: 1 1 0; min-height: 42px; padding: 6px 8px; border: none; background: transparent;
  font: 500 14.5px/1.25 var(--tgf); color: var(--tg); cursor: pointer; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  transition: background-color .12s var(--ease);
}
.kbd-row button + button, .kbd-row a + a { border-left: 1px solid var(--p-hair); }
.kbd-row button:hover, .kbd-row a:hover { background: #F2F6FA; text-decoration: none; }
.kbd-row button:active, .kbd-row a:active { background: #E8EFF6; }
.kbd-row svg { width: 12px; height: 12px; flex: 0 0 auto; opacity: .75; }
.kbd-row a { text-decoration: none; }
.svc {
  align-self: center; max-width: 92%; border-radius: 999px; padding: 5px 12px;
  background: rgba(23,33,43,.24); color: #fff; font: 400 12.5px/1.4 var(--tgf);
  text-align: center; animation: msg-in .22s var(--ease);
}
.typing { display: inline-flex; gap: 4px; padding: 13px 14px; background: #fff; border-radius: 4px 16px 16px 16px; box-shadow: 0 1px 2px rgba(23,33,43,.18); align-self: flex-start; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #AAB6C2; animation: typ 1s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typ { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.phone-composer { display: flex; gap: 8px; align-items: center; padding: 8px 10px; background: #fff; border-top: 1px solid #EBEFF3; }
.phone-cmd {
  border: 1px solid #D5DEE7; border-radius: 999px; padding: 8px 13px; cursor: pointer;
  background: #fff; color: #17212B; font: 600 12.5px/1 var(--tgf); white-space: nowrap;
}
.phone-cmd:active { background: #F2F6FA; }
.phone-field { flex: 1; display: flex; align-items: center; gap: 8px; background: #F1F4F7; border-radius: 999px; padding: 4px 4px 4px 16px; }
.phone-field input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; font: 400 14.5px/1.3 var(--tgf); color: #17212B; }
.phone-field input::placeholder { color: #8E99A6; }
.phone-send {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; border: none; cursor: pointer; background: var(--tg); color: #fff; flex: 0 0 auto;
}
.phone-send:active { background: #2B7CD3; }
.phone-note { font-size: 12.5px; color: var(--ink-3); text-align: center; max-width: 40ch; }

/* ---------- 15-й день (тёмная полоса, дисплей-момент №2) ---------- */
.day15 h2 {
  font-size: clamp(27px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.015em;
  line-height: 1.16; max-width: 24ch; margin-bottom: 18px;
}
.day15-basis { font-size: 15px; color: var(--ink-2); max-width: 68ch; margin-bottom: 30px; }
.quotes { display: grid; gap: 0; }
.quote { padding: 16px 0; border-top: 1px solid var(--hair); }
.quote p { font-size: 14px; line-height: 1.65; color: var(--ink-2); max-width: 78ch; text-indent: -0.45em; }
.quote cite { display: block; margin-top: 5px; font-style: normal; font-size: 12px; color: var(--ink-3); }
.quote cite a { font-size: 12px; }

/* ---------- как идёт гонка: ОДНА полоса 14 ячеек, этапы — станции под ней ---------- */
.race-intro { font-size: 16px; color: var(--ink-2); max-width: 60ch; margin: 14px 0 34px; }
.race-strip { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.race-strip i {
  display: flex; align-items: center; justify-content: center; min-width: 0;
  height: clamp(44px, 4.5vw, 56px); border-radius: 6px; font-style: normal;
  box-shadow: inset 0 0 0 1px var(--hair); font: 400 12px/1 var(--mono); color: var(--ink-3);
}
.race-strip i.on { background: var(--amber); color: var(--amber-ink); font-weight: 600; box-shadow: none; }
.race-strip i.hot { background: var(--bad); color: var(--bad-bg); font-weight: 600; box-shadow: none; animation: cell-pulse 2s ease infinite; }
.race-strip i.done { background: var(--ok); color: var(--ok-bg); font-weight: 600; box-shadow: none; }
.race-stations { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.race-st { position: relative; padding-top: 32px; }
.race-st::before { content: ''; position: absolute; top: 0; left: 0; width: 1px; height: 21px; background: var(--hair); }
.race-st::after {
  content: ''; position: absolute; top: 18px; left: -3px; width: 7px; height: 7px;
  border-radius: 2px; background: var(--ink-3);
}
.race-cap { display: block; font: 400 12px/1.4 var(--mono); color: var(--ink-3); margin-bottom: 7px; }
.race-cap b { font-weight: 600; color: var(--amber); }
.race-cap .ok { color: var(--ok); }
.race-cap .bad { color: var(--bad); }
.race-st h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 5px; }
.race-st p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- стол (бумажная полоса) ---------- */
.band-paper { background: var(--paper); color: var(--p-ink); }
.band-paper .eyebrow { color: var(--p-ink-3); }
.band-paper h2 { color: var(--p-ink); }
.desk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.desk-head-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.desk-sub { font-size: 15.5px; color: var(--p-ink-2); max-width: 66ch; margin: 10px 0 26px; }
.desk-badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--p-ink-2);
  border: 1px solid var(--p-hair); border-radius: 999px; padding: 6px 13px; background: var(--p-band);
}
.desk-badge svg { color: var(--p-ok); }

.desk-form { display: grid; gap: 14px; }
.desk-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--p-ink); margin-bottom: 7px; }
.desk-form textarea {
  width: 100%; min-height: 148px; padding: 12px 14px; border: 1px solid #C9D3DE; border-radius: var(--r-card);
  font: 400 12.5px/1.6 var(--mono); color: var(--p-ink); background: #fff; resize: vertical;
}
.desk-form textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,176,46,.22); }
.desk-form textarea::placeholder { color: #9AA4B0; }
.file-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font: inherit; }
.file-name { font-size: 13px; color: var(--p-ink-3); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.desk-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.demo-flag {
  font: 600 11.5px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase;
  background: var(--amber-paper-bg); color: var(--amber-paper); border-radius: 6px; padding: 5px 9px;
}
.desk-trust { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--p-ink-3); }
.desk-trust svg { color: var(--p-ok); flex: 0 0 auto; }
.desk-err {
  margin-top: 14px; padding: 12px 15px; border-radius: var(--r-card);
  background: var(--p-bad-bg); color: var(--p-bad); font-size: 14px; line-height: 1.55;
}
.desk-err[hidden] { display: none; }

.desk-result { margin-top: 34px; }
.sum {
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline;
  border: 1px solid var(--p-hair); border-radius: var(--r-card); background: var(--p-band);
  padding: 13px 18px; font-size: 14.5px; color: var(--p-ink-2); margin-bottom: 22px;
}
.sum b { font: 600 15px var(--mono); color: var(--p-ink); }
.sum .st-ok { color: var(--p-ok-ink); }
.sum .st-warn { color: var(--amber-paper); }
.sum .st-bad { color: var(--p-bad); }
.sum .demo-tag {
  font: 600 11px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase;
  background: var(--amber-paper-bg); color: var(--amber-paper); border-radius: 6px; padding: 4px 8px;
}

.reg-scroll { overflow-x: auto; border: 1px solid var(--p-hair); border-radius: var(--r-card); }
table.registry { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 880px; font-size: 13.5px; line-height: 1.5; }
.registry th {
  position: sticky; top: 0; text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--p-ink-3); background: var(--p-band); padding: 10px 13px; border-bottom: 1px solid var(--p-hair); white-space: nowrap;
}
.registry td { padding: 10px 13px; border-bottom: 1px solid var(--p-hair); vertical-align: top; background: #fff; }
.registry tr:last-child td { border-bottom: none; }
.registry td:first-child, .registry th:first-child {
  position: sticky; left: 0; z-index: 2; border-right: 1px solid var(--p-hair);
}
.registry th:first-child { z-index: 3; }
.registry tr:hover td { background: var(--p-hover); }
.registry .c-dt, .registry .c-sum, .registry .c-ord { font: 400 12.5px/1.55 var(--mono); white-space: nowrap; }
.registry .c-sum { font-weight: 600; text-align: right; }
.registry .c-type b { font-weight: 600; }
.registry .c-type span { display: block; font-size: 12px; color: var(--p-ink-3); }
.registry .c-basis { font-size: 12.5px; color: var(--p-ink-2); max-width: 210px; }
.dchip {
  border: 1px solid transparent; border-radius: 6px; padding: 4px 10px; cursor: pointer;
  font: 600 11.5px/1.2 var(--sans); white-space: nowrap; background: var(--p-band); color: #5A6470;
  transition: background-color .14s var(--ease), color .14s var(--ease);
}
.dchip[aria-pressed="true"] { background: var(--amber-paper-bg); color: var(--amber-paper); border-color: var(--amber-paper-line); }
.dchip:hover { border-color: #C9D3DE; }
.dchip:focus-visible { outline: 2px solid var(--amber); outline-offset: 1px; }
.reg-note { font-size: 12.5px; color: var(--p-ink-3); margin-top: 10px; }

/* один лист бумаги: без серой обёртки-в-обёртке, кромка + тень, янтарная линейка слева */
.doc-card {
  margin-top: 34px; border: 1px solid var(--p-hair); border-left: 3px solid var(--amber);
  border-radius: var(--r-doc); background: #FFFEF9; padding: 22px 26px 20px;
  box-shadow: 0 1px 2px rgba(27,34,44,.06), 2px 3px 0 rgba(27,34,44,.04), 0 18px 40px -24px rgba(27,34,44,.28);
}
.doc-groups { margin: 0 0 4px; }
.dg-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 13px 0; border-top: 1px solid var(--p-hair);
}
.dg-row:first-child { border-top: none; }
.dg-name { font-size: 14.5px; font-weight: 600; flex: 1 1 auto; min-width: 180px; }
.dg-meta { font: 400 12.5px/1.4 var(--mono); color: var(--p-ink-2); white-space: nowrap; }
.dg-free { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--p-ok-ink); }
.doc-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding-bottom: 12px; border-bottom: 1px solid var(--p-hair);
}
.doc-head h3 { font-size: 16.5px; font-weight: 600; }
.doc-head span { font-size: 12.5px; color: var(--p-ink-3); }
.doc-empty { font-size: 14px; color: var(--p-ink-2); margin: 6px 0 14px; max-width: 64ch; }
.doc-card pre {
  font: 400 13px/1.65 var(--mono); color: var(--p-ink); white-space: pre-wrap; word-break: break-word;
  border-top: 1px solid var(--p-hair); padding: 16px 0 0; max-height: 430px; overflow: auto;
}
.doc-actions {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  border-top: 1px solid var(--p-hair); padding-top: 14px; margin-top: 16px;
}
.doc-actions .btn--quiet { color: var(--p-ink-2); }
.doc-actions .btn--quiet:hover { color: var(--p-ink); background: var(--p-band); }
.doc-note { font-size: 12.5px; color: var(--p-ink-3); margin-top: 10px; }

/* ---------- почему можно верить: двухколоночная асимметрия ---------- */
.believe-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px 52px; align-items: start; }
.believe-lead { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 46ch; margin: 14px 0 12px; }
.believe li { display: grid; grid-template-columns: 26px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--hair); }
.believe li:last-child { border-bottom: 1px solid var(--hair); }
.believe--rest > li:first-child { border-top: none; }
.believe svg { color: var(--ink-2); margin-top: 3px; }
.believe h3 { font-size: 17px; font-weight: 600; margin-bottom: 5px; }
.believe p { font-size: 15px; color: var(--ink-2); max-width: 68ch; line-height: 1.7; }
.believe a { font-size: 15px; }

/* ---------- тарифы ---------- */
.plans { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 20px; align-items: stretch; margin-top: 28px; }
.plan { background: var(--s2); border: 1px solid var(--hair); border-radius: var(--r-doc); padding: 26px; }
.plan--pro { border-top: 2px solid var(--amber); }
.plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.plan-top h3 { font-size: 17px; font-weight: 600; }
.plan-p { font: 600 21px var(--mono); white-space: nowrap; }
.plan-p small { font: 400 12.5px var(--sans); color: var(--ink-2); }
.plan-d { font-size: 15px; color: var(--ink-2); line-height: 1.7; margin-bottom: 14px; }
.plan ul { display: grid; gap: 7px; margin-bottom: 18px; }
.plan li { font-size: 14.5px; color: var(--ink-2); padding-left: 16px; position: relative; }
.plan li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--amber); }
.plan--free li::before { background: var(--s3); }
.plan-note { font-size: 12.5px; color: var(--ink-2); margin: 12px 0 16px; }
.pricing-hint { font-size: 13px; color: var(--ink-3); margin-top: 20px; max-width: 86ch; line-height: 1.65; }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--hair); }
.faq details:last-child { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; padding: 17px 0; display: flex; justify-content: space-between; gap: 16px;
  font-size: 16.5px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-3); font-size: 21px; font-weight: 400; line-height: 1.15; }
.faq details[open] summary::after { content: '–'; }
.faq p { padding: 0 0 18px; font-size: 15px; color: var(--ink-2); max-width: 68ch; line-height: 1.7; }
.faq a { font-size: 15px; }

/* ---------- финальная полоса + заявка ---------- */
.start-band { background: var(--s1); }
.start-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.start-copy h2 { font-size: clamp(26px, 3.2vw, 34px); max-width: 15ch; }
.start-copy p { color: var(--ink-2); font-size: 16px; max-width: 44ch; margin: 16px 0 26px; }
.start-note { font-size: 13px; color: var(--ink-3); margin-top: 16px; max-width: 42ch; }
.lead-form { background: var(--s2); border: 1px solid var(--hair); border-radius: var(--r-doc); padding: 26px; }
.lead-form h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 16px; }
.f { margin-bottom: 13px; }
.f label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.f input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 8px;
  font: 400 14.5px/1.3 var(--sans); color: var(--ink); background: var(--s1);
}
.f input::placeholder { color: var(--ink-3); }
.f input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,176,46,.18); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-msg { font-size: 13.5px; margin: 10px 0 0; min-height: 1.2em; }
.form-msg--ok { color: var(--ok); }
.form-msg--bad { color: var(--bad); }
.form-hint { font-size: 12.5px; color: var(--ink-2); margin: 10px 0 0; }

/* ---------- подвал ---------- */
.site-foot { border-top: 1px solid var(--hair); padding: 46px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 0.9fr 2fr; gap: 32px; }
.wordmark--foot { font-size: 15px; margin-bottom: 10px; display: inline-block; }
.foot-d { font-size: 13px; line-height: 1.65; color: var(--ink-3); max-width: 44ch; }
.foot-d + .foot-d { margin-top: 6px; }
.foot-t { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 9px; }
.foot-link { font-size: 13.5px; font-weight: 500; }
.foot-c { font-size: 12.5px; color: var(--ink-3); margin-top: 30px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- toast + paywall ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 90;
  background: var(--s3); color: var(--ink); border: 1px solid var(--hair);
  border-radius: 10px; padding: 10px 16px; font-size: 14px; box-shadow: 0 10px 26px rgba(0,0,0,.4);
}
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(6,8,11,.62); display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card {
  position: relative; background: var(--s2); border: 1px solid var(--hair); border-radius: 14px;
  padding: 26px; width: min(470px, 100%); color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.modal-x {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: none; border-radius: 8px;
  font-size: 22px; line-height: 1; font-weight: 400; color: var(--ink-3); cursor: pointer;
  transition: color .14s var(--ease), background-color .14s var(--ease);
}
.modal-x:hover { color: var(--ink); background: var(--s1); }
.pw-stamp {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: var(--amber); color: var(--amber-ink); padding: 4px 9px; border-radius: 6px; margin-bottom: 12px;
}
.modal-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; padding-right: 24px; }
.pw-d { font-size: 14.5px; color: var(--ink-2); margin-bottom: 16px; line-height: 1.65; }
.pw-plans { border: 1px solid var(--hair); border-radius: 10px; margin-bottom: 16px; overflow: hidden; }
.pw-plan { display: flex; align-items: baseline; gap: 12px; padding: 11px 14px; font-size: 14px; }
.pw-plan + .pw-plan { border-top: 1px solid var(--hair); }
.pw-plan span:first-child { font-weight: 600; white-space: nowrap; }
.pw-plan span:nth-child(2) { color: var(--ink-2); flex: 1; }
.pw-p { font-weight: 600; font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.pw-note { font-size: 12px; color: var(--ink-2); margin: 10px 0 14px; }
#pwEmailForm .f input { background: var(--s1); }
[hidden] { display: none !important; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
  .hero-grid { gap: 36px; }
  .race-stations { grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-top: 22px; }
  .race-st { padding-top: 14px; border-top: 1px solid var(--hair); }
  .race-st::before, .race-st::after { display: none; }
}
@media (max-width: 880px) {
  .hero { padding: 48px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { order: 2; margin-top: 10px; }
  .plans, .start-grid, .foot-grid, .believe-grid { grid-template-columns: 1fr; }
  .believe-grid { gap: 0; }
  .section { padding: 52px 0; }
}
@media (max-width: 640px) {
  .site-nav { display: none; }
  .race-stations { grid-template-columns: 1fr; }
  .race-strip { gap: 3px; }
  .race-strip i { height: 38px; border-radius: 4px; font-size: 11px; }
  .f-row { grid-template-columns: 1fr; }
  .phone-screen { height: 560px; }
  .registry { min-width: 780px; }
  .registry .c-basis { max-width: 170px; }
  .desk-actions .btn { width: 100%; }
  .foot-c { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
