/* ==========================================================================
   Flycode — статический лендинг
   Монохромная тема: графит, белый, серый. Muted sage / muted red — только
   для статусов. Без внешних шрифтов и зависимостей.
   Сетка: 4 px. Радиусы: 4 / 6 / 8 / 10 / 999.
   ========================================================================== */

:root {
  /* Поверхности */
  --bg: #0B0B0B;
  --panel: #141414;
  --panel-2: #1A1A1A;
  --line: #262626;
  --line-2: #2A2A2A;

  /* Текст */
  --text: #E5E5E5;
  --text-2: #A3A3A3;
  --text-3: #8A8A8A;
  --accent: #737373;

  /* Статусы */
  --ok: #9CAF88;
  --err: #C16868;

  /* Радиусы */
  --r-4: 4px;
  --r-6: 6px;
  --r-8: 8px;
  --r-10: 10px;
  --r-pill: 999px;

  /* Шрифты */
  --sans: system-ui, -apple-system, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Noto Sans Mono", "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Раскладка */
  --max: 1200px;
  --narrow: 880px;
  --gutter: 24px;
  --header-h: 64px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(20, 20, 20, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(20, 20, 20, 0.5) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

body::before {
  /* Мягкое пятно у шапки — без цветных оттенков */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 520px;
  pointer-events: none;
  background: radial-gradient(900px 340px at 50% -120px, rgba(229, 229, 229, 0.05), transparent 70%);
}

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; }
li { list-style: none; }

a {
  color: var(--text);
  text-decoration: none;
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: 1px 5px;
}

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

::selection {
  background: var(--line-2);
  color: var(--text);
}

/* ─────────────────────────── Утилиты ─────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-narrow { max-width: var(--narrow); }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.02em;
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.dim { color: var(--text-3); }

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--r-6);
  font-size: 14px;
  transition: top 0.15s ease;
}

.skip-link:focus { top: 12px; }

/* ─────────────────────────── Wordmark ─────────────────────────── */

.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 21px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.wordmark-lead { color: var(--text); }
.wordmark-dim { color: var(--accent); font-weight: 400; }

.wordmark-caret {
  display: inline-block;
  width: 9px;
  height: 16px;
  margin-left: 1px;
  background: var(--accent);
  transform: translateY(2px);
  animation: blink 1.4s steps(2, start) infinite;
}

@keyframes blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wordmark-caret { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ─────────────────────────── Кнопки ─────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-6);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn-primary:hover {
  background: #FFFFFF;
  border-color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: #FFFFFF;
}

.btn-sm {
  min-height: 32px;
  padding: 4px 14px;
  font-size: 14px;
  line-height: 22px;
}

.btn-lg {
  min-height: 48px;
  padding: 12px 28px;
  font-size: 16px;
}

.btn-block {
  display: flex;
  width: 100%;
  margin-top: auto;
}

/* ─────────────────────────── Шапка ─────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 11, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-6);
  color: var(--text-2);
  font-size: 14px;
  line-height: 22px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
  background: var(--panel);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav + .header-actions { margin-left: 0; }

.nav-toggle {
  display: none;
  width: 40px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-6);
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 100%;
}

.nav-toggle-bars i {
  display: block;
  width: 16px;
  height: 1px;
  background: var(--text-2);
}

/* ─────────────────────────── Hero ─────────────────────────── */

.hero {
  position: relative;
  padding: 88px 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text-3);
}

.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 56ch;
  color: var(--text-2);
  font-size: 18px;
  line-height: 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.cta-row-center { justify-content: center; }

.fineprint {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  color: var(--text-3);
}

/* ─────────────────────────── Панели ─────────────────────────── */

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-10);
  padding: 20px;
}

.hero-panel { padding: 20px 20px 0; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-title {
  margin-top: 16px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.panel-text {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
}

.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px -20px 0;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-10) var(--r-10);
  background: var(--panel-2);
  color: var(--text-3);
}

.panel-foot-cost { color: var(--text-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 22px;
  color: var(--text-2);
  white-space: nowrap;
}

.chip-status { color: var(--text-2); }

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.dot-ok { background: var(--ok); }

/* ─────────────────────────── Конвейер (статусы) ─────────────────────────── */

.pipeline { margin-top: 8px; }

.pipeline li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.pipeline li:last-child { border-bottom: 0; }

.step-num { color: var(--text-3); }

.step-name {
  font-size: 15px;
  line-height: 24px;
  color: var(--text-3);
}

.pipeline .is-done .step-name,
.pipeline .is-active .step-name { color: var(--text); }

.step-state {
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pipeline .is-done .step-state { color: var(--ok); }

.pipeline .is-active {
  border-left: 2px solid var(--accent);
  padding-left: 12px;
  margin-left: -12px;
}

.pipeline .is-active .step-state { color: var(--text); }

/* ─────────────────────────── Секции ─────────────────────────── */

.section {
  position: relative;
  padding: 88px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: rgba(20, 20, 20, 0.55);
}

.section-head {
  max-width: 68ch;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-sub {
  margin-top: 16px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 27px;
}

/* ─────────────────────────── Сетки и карточки ─────────────────────────── */

.grid {
  display: grid;
  gap: 20px;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-10);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.card:hover {
  border-color: var(--line-2);
  background: var(--panel-2);
}

.card-num {
  color: var(--text-3);
  font-size: 12px;
}

.card-title {
  font-size: 20px;
  line-height: 28px;
}

.card-text {
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 22px;
}

.card-list li {
  position: relative;
  padding-left: 16px;
}

.card-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.card-out {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 14px;
  line-height: 22px;
}

.card-out .label { display: block; margin-bottom: 4px; }

.card-flat { gap: 8px; }

/* ─────────────────────────── Шаги ─────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 24px 24px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-10);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-8);
  color: var(--text-2);
  font-size: 12px;
}

.step-title {
  font-size: 20px;
  line-height: 28px;
}

.step-text {
  margin-top: 8px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
}

/* ─────────────────────────── Врезка ─────────────────────────── */

.note {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--r-8);
}

.note-title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}

.note p + p { margin-top: 8px; }

.note > p:last-child {
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
}

/* ─────────────────────────── Дизайн-слой ─────────────────────────── */

.design-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px;
  align-items: start;
}

.design-copy .section-head { margin-bottom: 32px; }

.feature-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.feature {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.feature-num {
  padding-top: 4px;
  color: var(--text-3);
  font-size: 12px;
}

.feature-title {
  font-size: 18px;
  line-height: 26px;
}

.feature-text {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
}

.credits-panel { position: sticky; top: calc(var(--header-h) + 24px); }

.balance {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.balance-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.balance dt { color: var(--text-3); font-size: 11px; letter-spacing: 0.08em; }

.balance-value {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

/* ─────────────────────────── Тарифы ─────────────────────────── */

.pricing { align-items: stretch; }

.price-card { position: relative; gap: 16px; }

.price-card-accent {
  border-color: var(--line-2);
  background: var(--panel-2);
}

/* Бейдж в углу, чтобы названия тарифов оставались на одной линии */
.price-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 2px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-name {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.price-value {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.price-period {
  color: var(--text-3);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
}

.price-features {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.price-features li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.price-key {
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.price-val {
  color: var(--text);
  font-size: 15px;
  line-height: 24px;
  text-align: right;
}

.pricing-note {
  margin-top: 24px;
  color: var(--text-3);
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

/* ─────────────────────────── FAQ ─────────────────────────── */

.faq {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-q {
  position: relative;
  padding: 20px 40px 20px 0;
  cursor: pointer;
  font-size: 17px;
  line-height: 26px;
  font-weight: 500;
  list-style: none;
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 18px;
  width: 20px;
  height: 24px;
  font-family: var(--mono);
  font-size: 20px;
  line-height: 24px;
  text-align: center;
  color: var(--text-3);
}

.faq-item[open] .faq-q::after { content: "—"; }

.faq-q:hover { color: #FFFFFF; }

.faq-a {
  padding: 0 40px 24px 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 24px;
}

.faq-a p + p { margin-top: 12px; }

/* ─────────────────────────── CTA ─────────────────────────── */

.cta-panel {
  padding: 64px 48px;
  text-align: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-10);
}

.cta-title {
  margin: 16px 0 0;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cta-text {
  margin: 16px auto 0;
  max-width: 52ch;
  color: var(--text-2);
  font-size: 17px;
  line-height: 27px;
}

.cta-panel .fineprint { text-align: center; }

/* ─────────────────────────── Подвал ─────────────────────────── */

.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: rgba(11, 11, 11, 0.9);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.footer-mark { font-size: 21px; }

.footer-text {
  margin-top: 16px;
  max-width: 40ch;
  color: var(--text-3);
  font-size: 14px;
  line-height: 22px;
}

.footer-title {
  margin-bottom: 16px;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-2);
  font-size: 14px;
  line-height: 22px;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
}

/* ─────────────────────────── Всплывающее сообщение ─────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 8px);
  z-index: 60;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-6);
  color: var(--text-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ─────────────────────────── Юридические страницы ─────────────────────────── */

.legal-head {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}

.legal-head h1 {
  margin: 16px 0 0;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin-top: 12px;
  color: var(--text-3);
}

.draft-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--err);
  border-radius: var(--r-8);
}

.draft-banner p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 22px;
}

.draft-banner strong { color: var(--text); font-weight: 600; }

.legal-body {
  padding: 48px 0 80px;
}

.legal-body h2 {
  margin: 40px 0 12px;
  font-size: 20px;
  line-height: 28px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  margin: 24px 0 8px;
  font-size: 15px;
  line-height: 24px;
  color: var(--text);
}

.legal-body p,
.legal-body li {
  color: var(--text-2);
  font-size: 15px;
  line-height: 26px;
}

.legal-body p + p { margin-top: 12px; }

.legal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-left: 18px;
}

.legal-list li {
  position: relative;
  list-style: none;
}

.legal-list li::before {
  content: "—";
  position: absolute;
  left: -18px;
  color: var(--accent);
}

.legal-body strong { color: var(--text); font-weight: 600; }

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-8);
}

.legal-toc a {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
}

.legal-toc a:hover { color: var(--text); }

/* ─────────────────────────── 404 ─────────────────────────── */

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  padding: 80px var(--gutter);
  text-align: center;
}

.error-code {
  font-family: var(--mono);
  font-size: clamp(56px, 12vw, 96px);
  line-height: 1;
  color: var(--text-3);
  letter-spacing: -0.03em;
}

.error-title {
  margin: 24px 0 0;
  font-size: clamp(24px, 3.2vw, 32px);
  line-height: 1.2;
}

.error-text {
  margin: 16px auto 0;
  max-width: 44ch;
  color: var(--text-2);
  font-size: 16px;
  line-height: 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-links a {
  color: var(--text-3);
  font-family: var(--mono);
  font-size: 12px;
}

.error-links a:hover { color: var(--text); }

/* ─────────────────────────── Адаптив ─────────────────────────── */

@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { gap: 40px; }
  .design-grid { gap: 40px; }
}

@media (max-width: 960px) {
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.is-open { display: block; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 10px 12px;
    font-size: 15px;
  }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero-grid,
  .design-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .credits-panel { position: static; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .hero { padding: 56px 0 64px; }
  .section { padding: 64px 0; }

  .grid-4,
  .grid-3,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cta-panel { padding: 40px 24px; }

  .section-head { margin-bottom: 32px; }
}

@media (max-width: 420px) {
  .header-actions .btn-ghost { display: none; }
  .btn { padding-inline: 16px; }
  .card { padding: 20px; }
  .panel { padding: 16px; }
  .hero-panel { padding: 16px 16px 0; }
  .panel-foot { margin-inline: -16px; padding-inline: 16px; }
  .faq-q { font-size: 16px; }
}

@media print {
  body { background: #FFFFFF; color: #000000; }
  .site-header, .toast { display: none; }
}
