/* ============================================================
   ЭСК ПАРИТЕТ — дизайн-система
   Прогрессивный британский минимализм / инженерный авангард
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F8F9FA;
  --ink: #1A1D20;
  --navy: #0F172A;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --accent: #00D2FF;
  --accent-dim: rgba(0, 210, 255, 0.12);
  --muted: #64748B;
  --muted-2: #94A3B8;
  --ok: #10B981;
  --sans: 'Inter', 'Helvetica Neue', -apple-system, 'SF Pro Display', Arial, sans-serif;
  --mono: 'SFMono-Regular', Consolas, 'Cascadia Mono', 'Roboto Mono', monospace;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
body.state-gate { overflow: hidden; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.state-idle { overflow: hidden; height: 100vh; }
body.state-active { overflow: auto; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { display: block; }
::selection { background: var(--accent); color: var(--navy); }

/* ============================================================
   ШАПКА
   ============================================================ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  font-size: 17px;
  white-space: nowrap;
}
.logo-mark { width: 34px; height: 34px; }

.tech-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; }
.main-nav a {
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  border-left: 1px solid var(--line);
  transition: color 0.2s ease;
  white-space: nowrap;
}
.main-nav a:first-child { border-left: 0; }
.main-nav a:hover { color: var(--accent); }
.main-nav a.is-active { color: var(--navy); box-shadow: inset 0 -2px 0 var(--accent); }

.header-right { display: flex; align-items: center; gap: 16px; }

.phone {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.phone:hover { color: var(--accent); }

.btn-pdf {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
  transition: all 0.2s ease;
}
.btn-pdf:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   HERO / СОСТОЯНИЕ 1 «Ожидание»
   ============================================================ */

main { transition: padding-top 0.65s var(--ease); }

.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  transition: height 0.65s var(--ease), opacity 0.5s ease;
}
body.state-active .hero { height: 0; opacity: 0; }

.art {
  position: absolute;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.art-tower { left: 6vw; top: 18vh; width: min(30vw, 340px); height: auto; opacity: 0.35; }
.art-cool { right: 5vw; bottom: 8vh; width: min(22vw, 240px); height: auto; opacity: 0.3; }
.art-climber { right: 20vw; top: 12vh; width: min(12vw, 130px); height: auto; opacity: 0.28; }

.hero, .terminal-shell { position: relative; }
.hero { position: relative; }

/* ============================================================
   ТЕРМИНАЛ (поисково-аналитическая строка)
   ============================================================ */

.terminal-shell {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 70;
  width: min(680px, calc(100vw - 40px));
  transform: translate(-50%, -50%);
  transition: top 0.65s var(--ease), width 0.65s var(--ease), transform 0.65s var(--ease);
}
body.state-active .terminal-shell {
  top: calc(var(--header-h) + 16px);
  transform: translateX(-50%);
  width: min(860px, calc(100vw - 40px));
}

.terminal {
  display: flex;
  align-items: stretch;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, border-radius 0.4s ease;
}
.terminal.is-hot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim), 0 24px 60px rgba(15,23,42,0.1); }
.terminal.is-drag { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }

.term-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
}

.term-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  color: transparent;
  caret-color: transparent;
  padding: 20px 16px;
}
.term-input.has-text { color: var(--ink); caret-color: var(--accent); }

.term-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 16px;
  color: var(--muted-2);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.5s ease;
}
.term-overlay.hidden { opacity: 0; }
.term-overlay.fading { opacity: 0; }

.term-phrase { overflow: hidden; text-overflow: ellipsis; }

.term-cursor {
  display: inline-block;
  width: 2px;
  height: 1.25em;
  margin-left: 2px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.term-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 8px;
  border-left: 1px solid var(--line);
}
.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--muted-2);
  transition: color 0.2s ease, background 0.2s ease;
}
.icon-btn:hover { color: var(--accent); background: var(--bg-alt); }
.icon-btn.is-live { color: var(--accent); animation: pulse 1s ease infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

body.state-active .term-input,
body.state-active .term-overlay { font-size: 14px; padding-top: 14px; padding-bottom: 14px; }
body.state-active .term-input { padding: 14px 14px; }
body.state-active .term-overlay { padding: 0 14px; }
body.state-active .icon-btn { width: 38px; height: 38px; }

/* ============================================================
   СТАТУС ШЛЮЗА БЕЗОПАСНОСТИ / ЭТАП 1
   ============================================================ */

.term-status {
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--accent-dim);
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  padding: 10px 14px;
  display: none;
}
.term-status.visible { display: block; animation: fadeIn 0.4s ease; }
.term-status .st-ico { color: var(--accent); margin-right: 6px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   ПАНЕЛЬ ШЛЮЗА / ЭТАП 2 «Форма» и ЭТАП 3 «Карточка директора»
   ============================================================ */

.gate-panel {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-top: 0;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  animation: fadeIn 0.45s var(--ease);
}

.gate-panel .notice { padding: 24px 26px 6px; }
.gate-panel .notice h3 { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 8px; }
.gate-panel .notice p { font-size: 13.5px; color: var(--muted); max-width: 60ch; }
.gate-panel .notice p + p { margin-top: 8px; }

.gate-panel .form-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 26px 10px;
}

.lead-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; padding: 0 26px 26px; align-items: end; }

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  border: 1px solid var(--line-strong);
  padding: 11px 12px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

.btn-send {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.btn-send:hover:not(:disabled) { background: var(--navy); }
.btn-send:disabled { opacity: 0.5; cursor: wait; }
.btn-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gate-panel .form-error {
  font-family: var(--mono);
  font-size: 11.5px;
  color: #dc2626;
  padding: 0 26px 14px;
  display: none;
}
.gate-panel .form-error.visible { display: block; }

/* Этап 3 — карточка визитки */
.success-card { padding: 34px 40px; text-align: left; }
.success-card .req-no {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}
.success-card .req-no .accent-num { color: var(--accent); }
.success-card p { font-size: 14px; color: var(--muted); max-width: 58ch; margin-bottom: 22px; }
.success-card .boss-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.boss-line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.boss-line .bl-k { color: var(--muted); font-size: 12.5px; }
.boss-line .bl-v { font-weight: 600; text-align: right; }
.boss-line .bl-v.on { color: var(--ok); }

/* ============================================================
   ВУАЛЬ
   ============================================================ */

.veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(244, 246, 248, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.veil.show { animation: veilIn 0.4s ease; }
@keyframes veilIn { from { opacity: 0; } to { opacity: 1; } }

/* ============================================================
   CTA ПОД СТРОКОЙ
   ============================================================ */

.hero-cta {
  text-align: center;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
body.state-active .hero-cta { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* ============================================================
   СЕКЦИИ (общие)
   ============================================================ */

.base {
  position: relative;
  padding: 88px max(24px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 44px);
}
.base.alt { background: var(--bg-alt); }

.base::before, .base::after {
  content: "+";
  position: absolute;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted-2);
  opacity: 0.6;
}
.base::before { top: 10px; left: 12px; }
.base::after { top: 10px; right: 12px; }

body.state-active main { padding-top: calc(var(--header-h) + 84px); }
body.state-active .base:first-of-type { border-top: 0; }

.sec-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 18px;
}
.sec-index {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.sec-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.sec-tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
}

/* ============================================================
   О КОМПАНИИ
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.about-hero {
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 44px;
}

.stats { list-style: none; display: flex; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.stats li { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 34px; font-weight: 800; line-height: 1; }
.stat-num::after { content: "·"; color: var(--accent); margin-left: 6px; }
.stat-lab { font-size: 12px; color: var(--muted); max-width: 17ch; }

.manifesto { font-size: 16.5px; line-height: 1.7; margin-bottom: 18px; max-width: 56ch; }
.manifesto.muted { color: var(--muted); font-size: 14px; }

/* ============================================================
   ВИДЫ ДЕЯТЕЛЬНОСТИ (аккордеон)
   ============================================================ */

.acc { border-top: 1px solid var(--line-strong); }

.acc-row { border-bottom: 1px solid var(--line); }

.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 4px;
  text-align: left;
  transition: background 0.2s ease;
}
.acc-head:hover { background: rgba(0, 210, 255, 0.04); }

.acc-num { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: 0.08em; }
.acc-title { font-size: clamp(18px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.01em; flex: 1; }
.acc-chev { color: var(--muted-2); transition: transform 0.35s var(--ease); }
.acc-row.open .acc-chev { transform: rotate(180deg); color: var(--accent); }

.acc-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.acc-row.open .acc-body { grid-template-rows: 1fr; }
.acc-body > .perm-wrap { overflow: hidden; }

.acc-body { padding: 0 4px; }
.acc-body .perm { padding: 0 0 24px; }

.perm { list-style: none; }
.perm li {
  position: relative;
  padding: 10px 0 10px 26px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
  max-width: 72ch;
}
.perm li:last-child { border-bottom: 0; }
.perm li::before {
  content: "▪";
  position: absolute;
  left: 6px;
  top: 8px;
  font-size: 10px;
  color: var(--accent);
}

/* ============================================================
   РЕЕСТР ОБЪЕКТОВ
   ============================================================ */

.table-scroll { overflow-x: auto; border: 1px solid var(--line-strong); }

.registry { width: 100%; border-collapse: collapse; min-width: 820px; }
.registry th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  text-align: left;
  padding: 14px 16px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.registry td {
  padding: 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.registry tbody tr { transition: background 0.15s ease; }
.registry tbody tr:hover { background: rgba(0, 210, 255, 0.04); }
.registry td:first-child { font-family: var(--mono); color: var(--muted); white-space: nowrap; }

.kv {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--navy);
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  padding: 3px 8px;
  white-space: nowrap;
}
.ok { color: var(--ok); font-size: 13px; font-weight: 600; white-space: nowrap; }

.table-note { font-size: 12px; color: var(--muted-2); margin-top: 14px; font-family: var(--mono); }

/* ============================================================
   ОТЗЫВЫ (миниатюры бланков)
   ============================================================ */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}

.rev-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  padding: 14px;
  cursor: zoom-in;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.rev-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1); border-color: var(--accent); }

.rev-thumb {
  flex: 0 0 auto;
  width: 96px;
  aspect-ratio: 210 / 297;
  background: #fff;
  border: 1px solid var(--line-strong);
  padding: 7px;
  font-size: 4.6px;
  line-height: 1.45;
  color: #334155;
  overflow: hidden;
  transform: rotate(0deg);
}
.rev-thumb .h { font-weight: 700; font-size: 5.2px; margin-bottom: 4px; border-bottom: 0.5px solid #cbd5e1; padding-bottom: 3px; }
.rev-thumb .ln { height: 1px; background: #e2e8f0; margin: 3px 0; }
.rev-thumb .t { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rev-thumb .stamp {
  width: 24px; height: 24px; border: 1.5px solid #94a3b8; border-radius: 50%;
  display: grid; place-items: center; margin: 4px 0 0 auto;
  font-size: 3.4px; color: #64748b; transform: rotate(-14deg); opacity: 0.85;
  font-weight: 700; text-align: center; line-height: 1.2;
}

.rev-meta { min-width: 0; }
.rev-meta .author { font-weight: 700; font-size: 13px; line-height: 1.35; }
.rev-meta .role { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); margin-top: 3px; }
.rev-meta .date { font-family: var(--mono); font-size: 10.5px; color: var(--accent); margin-top: 6px; }

/* ============================================================
   МОДАЛ ОТЗЫВА
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 40px 20px;
  overflow: auto;
}
.modal.show { animation: veilIn 0.25s ease; }

.modal-close {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 95;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.modal-close:hover { background: rgba(255, 255, 255, 0.15); border-color: #fff; }

.sheet {
  width: min(760px, 100%);
  background: #fff;
  color: var(--ink);
  padding: clamp(28px, 5vw, 56px) clamp(24px, 5vw, 64px);
  box-shadow: 0 40px 120px rgba(15, 23, 42, 0.4);
  animation: fadeIn 0.35s var(--ease);
}
.sheet .sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 22px; }
.sheet .org { font-weight: 800; font-size: 16px; line-height: 1.3; }
.sheet .org small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); margin-top: 3px; }
.sheet .stamp-lg {
  width: 92px; height: 92px; border: 3px double #94a3b8; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  font-size: 9px; line-height: 1.4; color: #64748b; font-weight: 700;
  transform: rotate(-12deg); opacity: 0.9; flex: 0 0 auto;
}
.sheet .body { font-size: 14.5px; line-height: 1.75; color: #1e293b; }
.sheet .body p { margin-bottom: 12px; }
.sheet .greet { margin-top: 18px; }
.sheet .sign { margin-top: 34px; display: grid; grid-template-columns: 1fr auto auto; gap: 26px; align-items: end; }
.sheet .sign .row { display: flex; flex-direction: column; }
.sheet .sign .row span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.sheet .sign .line { border-bottom: 1px solid var(--ink); height: 22px; margin-bottom: 4px; }

/* ============================================================
   РЕКВИЗИТЫ
   ============================================================ */

.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border: 1px solid var(--line-strong); }
.req-block { padding: 26px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.req-block:nth-child(odd) { border-right-color: var(--line-strong); }
.req-block h3 {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.req-block dl { display: grid; gap: 12px; }
.req-block dt { font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2); }
.req-block dd { font-size: 14px; line-height: 1.5; }
.req-block dd a:hover { color: var(--accent); }
.on-line { color: var(--ok); font-weight: 600; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; animation: pulse 1.8s ease infinite; }

/* ============================================================
   ФУТЕР
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 40px max(24px, calc((100vw - 1120px) / 2));
}
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-row + .footer-row { margin-top: 14px; }
.footer-logo { font-weight: 800; font-size: 15px; letter-spacing: 0.02em; }
.muted { color: var(--muted-2); font-size: 12px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1080px) {
  .tech-tag { display: none; }
}

@media (max-width: 920px) {
  .main-nav { order: 3; width: 100%; justify-content: flex-start; border-top: 1px solid var(--line); flex-wrap: wrap; min-width: 0; }
  .site-header { height: auto; flex-wrap: wrap; padding: 12px 16px 0; }
  .site-header .main-nav { padding: 6px 0 10px; gap: 2px; }
  body.state-active .terminal-shell { top: calc(var(--header-h) + 12px); }
}

@media (max-width: 760px) {
  .btn-pdf { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .lead-form { grid-template-columns: 1fr; }
  .sec-head { flex-wrap: wrap; gap: 8px; }
  .sec-tag { margin-left: 0; width: 100%; }
  .main-nav a { padding: 8px 6px; font-size: 12px; flex: 1 1 44%; text-align: center; min-width: 0; white-space: nowrap; }
  .art { display: none; }
  .success-card { padding: 26px 22px; }
  .sheet .sign { grid-template-columns: 1fr; gap: 18px; }
  .boss-line { flex-direction: column; gap: 2px; }
  .boss-line .bl-v { text-align: left; }
}
