/* ============================================================
   4zaim — «Цифровая степь» (Digital Steppe)
   Дизайн-система: токены, типографика, компоненты
   ТОО «МФО «Zaymi.kz» · казахстанский хай-тек
   ============================================================ */

/* ---------- 1. Токены (тёмная тема «Túнгі дала / Night Steppe») ---------- */
:root {
  /* Поверхности */
  --bg:           #0A0E14;
  --bg-2:         #070A0F;
  --surface:      #121826;
  --surface-2:    #1B2436;
  --surface-3:    #222D43;
  --border:       #243047;
  --border-soft:  #1A2335;

  /* Бренд */
  --primary:      #00AFCA;   /* cerulean флага — линии, иконки, графика */
  --primary-hi:   #33C5DB;
  --primary-deep: #0E7C8B;
  --accent:       #FEC50C;   /* золото — CTA, деньги, акценты выгоды */
  --accent-hi:    #FFD84D;
  --accent-deep:  #C99A00;

  /* Текст */
  --text:         #EAF0F7;
  --text-muted:   #8A97A8;
  --text-faint:   #56627A;

  /* Статусы */
  --success:      #2BD4A8;
  --error:        #FF5C6C;

  /* Текст на цветных поверхностях */
  --on-accent:    #14130A;
  --on-primary:   #04222A;

  /* Свечения и тени (на тёмном — цветной glow, не серый drop) */
  --glow-primary: 0 0 28px rgba(0, 175, 202, .22);
  --glow-accent:  0 0 28px rgba(254, 197, 12, .18);
  --shadow-card:  0 18px 48px -24px rgba(0, 0, 0, .8);
  --shadow-pop:   0 24px 60px -20px rgba(0, 0, 0, .85);

  /* Радиусы */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* Типографика */
  --font-display: "Montserrat", "Inter", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num:     "Space Grotesk", "Montserrat", system-ui, sans-serif;

  /* Раскладка */
  --container: 1180px;
  --container-narrow: 880px;
  --gutter: clamp(18px, 4vw, 40px);
  --section-y: clamp(64px, 9vw, 132px);

  /* Орнамент-цвета (для inline SVG через currentColor-обёртки) */
  --ornament: rgba(0, 175, 202, .55);
  --ornament-gold: rgba(254, 197, 12, .5);

  /* Орнамент-ассеты */
  --corner-ornament: url("../img/corner-ornament.svg");
  --steppe-pattern: url("../img/pattern-steppe.svg");

  color-scheme: dark;
}

/* ---------- Светлая тема «Алтын Дала / Golden Steppe» (опционально) ---------- */
:root[data-theme="light"] {
  --bg:           #FBF9F4;
  --bg-2:         #F3EFE6;
  --surface:      #FFFFFF;
  --surface-2:    #F4F0E7;
  --surface-3:    #ECE6D8;
  --border:       #E4DECF;
  --border-soft:  #EFEadd;

  --primary:      #0E7C8B;
  --primary-hi:   #00AFCA;
  --primary-deep: #0A5C68;
  --accent:       #E0A500;
  --accent-hi:    #FEC50C;
  --accent-deep:  #B98800;

  --text:         #12202B;
  --text-muted:   #5C6873;
  --text-faint:   #93A0AA;

  --success:      #0E9E6E;
  --error:        #D64550;

  --on-accent:    #2A1F00;
  --on-primary:   #FFFFFF;

  --glow-primary: 0 0 0 1px rgba(14,124,139,.12);
  --glow-accent:  0 10px 30px -12px rgba(224,165,0,.45);
  --shadow-card:  0 18px 44px -26px rgba(18,32,43,.22);
  --shadow-pop:   0 24px 60px -24px rgba(18,32,43,.28);

  --ornament: rgba(14, 124, 139, .4);
  --ornament-gold: rgba(224, 165, 0, .4);

  color-scheme: light;
}

/* ---------- 2. Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  font-feature-settings: "tnum" 0;
}

img, svg { display: block; max-width: 100%; }
svg { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
input, button, textarea, select { font: inherit; }
:focus-visible { outline: 2px solid var(--primary-hi); outline-offset: 3px; border-radius: 4px; }

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

/* Табличные цифры для денег/процентов */
.num, .tnum { font-family: var(--font-num); font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }

/* ---------- 3. Типографика ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.h1, h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); font-weight: 700; }
.h2, h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
.h3, h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-muted); line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-hi);
}
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.gold  { color: var(--accent); }
.accent-text { color: var(--primary-hi); }

/* ---------- 4. Раскладка ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .lead { margin-top: 16px; }
.stack-sm > * + * { margin-top: 12px; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }

/* ---------- 5. Кнопки ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--btn-h); padding-inline: 26px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  border-radius: var(--r-md);
  transition: transform .15s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap; user-select: none;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }

.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0 rgba(254,197,12,0); }
.btn-primary:hover { background: var(--accent-hi); box-shadow: 0 0 0 3px rgba(254,197,12,.16), var(--glow-accent); }

.btn-secondary { border: 1px solid var(--primary); color: var(--primary-hi); background: rgba(0,175,202,.04); }
.btn-secondary:hover { background: rgba(0,175,202,.1); border-color: var(--primary-hi); }

.btn-ghost { color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-hi); }

.btn-lg { --btn-h: 58px; padding-inline: 32px; font-size: 1.06rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- 6. Чипы / бейджи ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: .88rem; color: var(--text-muted);
}
.chip svg { width: 16px; height: 16px; color: var(--primary); flex: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-sm);
  color: var(--accent); background: rgba(254,197,12,.08); border: 1px solid rgba(254,197,12,.22);
}

/* ---------- 7. Карточки ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  position: relative;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover { border-color: var(--primary-deep); }
.card.lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.card .card-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(0,175,202,.08); border: 1px solid rgba(0,175,202,.2);
  color: var(--primary-hi);
}
.card .card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .96rem; }

/* «Уголок» с орнаментом-ключом */
.card.ornate::before {
  content: ""; position: absolute; top: 14px; right: 14px; width: 26px; height: 26px;
  background: var(--corner-ornament) center / contain no-repeat; opacity: .5; pointer-events: none;
}

/* ---------- 8. Шапка / навигация ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { font-size: .95rem; color: var(--text-muted); transition: color .2s ease; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; letter-spacing: -0.03em; color: var(--text); }
.logo .logo-mark { width: 34px; height: 34px; flex: none; color: var(--primary); }
.logo b { color: var(--accent); font-weight: 700; }
.logo .logo-sub { display:block; font-family: var(--font-body); font-size: .58rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); margin-top: 1px; }

/* Переключатель языка */
.lang-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); }
.lang-switch button, .lang-switch a { padding: 5px 11px; border-radius: var(--r-pill); font-family: var(--font-display); font-size: .82rem; font-weight: 600; color: var(--text-faint); transition: all .2s ease; }
.lang-switch button.active, .lang-switch a.active { background: var(--primary); color: var(--on-primary); }

/* Бургер */
.burger { display: none; width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--border); align-items: center; justify-content: center; }
.burger svg { width: 22px; height: 22px; }

/* ---------- 9. Hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { margin: 18px 0 0; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent-hi), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 22px; max-width: 38ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

/* Фоновые слои hero */
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-glow { position: absolute; width: 720px; height: 720px; left: -10%; top: -30%;
  background: radial-gradient(circle, rgba(0,175,202,.16), transparent 62%); filter: blur(8px); }
.hero-glow.gold { left: auto; right: -14%; top: 18%; width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(254,197,12,.12), transparent 64%); }
.hero-ornament { position: absolute; inset: 0; opacity: .5; color: var(--primary); }

/* «Честный расчёт» — превью-карта вместо слайдер-аттракциона */
.price-card { position: relative; z-index: 2; background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-card); }
.price-card .pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.price-card .pc-row { display: flex; align-items: baseline; justify-content: space-between; padding: 13px 0; border-bottom: 1px dashed var(--border); }
.price-card .pc-row:last-of-type { border-bottom: none; }
.price-card .pc-row .k { color: var(--text-muted); font-size: .94rem; }
.price-card .pc-row .v { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; }
.price-card .pc-total { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; align-items: baseline; justify-content: space-between; }
.price-card .pc-total .v { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; color: var(--accent); }

/* ---------- 10. Trust bar ---------- */
.trust-bar { border-block: 1px solid var(--border); background: var(--bg-2); }
.trust-bar .container { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(16px, 3vw, 40px); padding-block: 20px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-muted); }
.trust-item svg { width: 20px; height: 20px; color: var(--primary); flex: none; }
.trust-item b { color: var(--text); font-weight: 600; }
.trust-sep { width: 1px; height: 26px; background: var(--border); }

/* ---------- 11. Условия — статы ---------- */
.stat-grid { grid-template-columns: repeat(4, 1fr); }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: clamp(20px, 2.5vw, 28px); position: relative; overflow: hidden;
}
.stat .stat-k { font-size: .85rem; color: var(--text-muted); margin-bottom: 10px; }
.stat .stat-v { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; line-height: 1; }
.stat .stat-v small { font-size: .5em; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.stat .stat-note { font-size: .82rem; color: var(--text-faint); margin-top: 10px; }
.stat::after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 80px; height: 80px;
  background: var(--corner-ornament) center/contain no-repeat; opacity: .14; }

/* ---------- 12. Калькулятор ---------- */
.calc { background: linear-gradient(180deg, var(--surface), var(--surface-2)); border: 1px solid var(--border);
  border-radius: var(--r-2xl); padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.calc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 52px); align-items: center; }
.calc-controls > * + * { margin-top: 30px; }
.range-field .rf-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.range-field .rf-label { color: var(--text-muted); font-size: .95rem; }
.range-field .rf-val { font-family: var(--font-num); font-weight: 700; font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--text); }
.range-field .rf-val .u { font-size: .85rem; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.range-field .rf-minmax { display: flex; justify-content: space-between; margin-top: 8px; font-size: .78rem; color: var(--text-faint); }

/* Кастомный range */
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: var(--r-pill);
  background: var(--surface-3); outline: none; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--primary) var(--p, 30%), var(--surface-3) var(--p, 30%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--r-pill); background: var(--surface-3); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: var(--r-pill); background: var(--primary); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px;
  border-radius: 50%; background: var(--accent); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--accent-deep), var(--glow-accent); cursor: grab; transition: transform .12s ease; }
input[type="range"]::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--accent-deep); cursor: grab; }

/* Сегмент-переключатель (тип займа) */
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md); }
.seg button { padding: 9px 16px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600; color: var(--text-muted); transition: all .2s ease; }
.seg button.active { background: var(--surface-3); color: var(--text); box-shadow: var(--glow-primary); }

/* Результат калькулятора */
.calc-out { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 30px); }
.calc-out .co-row { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.calc-out .co-row .k { color: var(--text-muted); font-size: .92rem; display: flex; align-items: center; gap: 7px; }
.calc-out .co-row .v { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.calc-out .co-total { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--border); }
.calc-out .co-total .k { font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.calc-out .co-total .v { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.7rem); color: var(--accent); line-height: 1; }
.calc-out .btn { margin-top: 22px; }
.calc-note { font-size: .8rem; color: var(--text-faint); margin-top: 14px; line-height: 1.5; }

/* small info hint */
.hint { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--text-faint); color: var(--text-faint); font-size: .68rem; font-weight: 700; cursor: help; }

/* ---------- 13. Шаги «Как получить» ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.step { padding: 0 clamp(10px, 1.6vw, 22px); position: relative; }
.step .step-num { font-family: var(--font-display); font-weight: 700; font-size: 1rem; width: 52px; height: 52px;
  border-radius: 50%; display: grid; place-items: center; color: var(--primary-hi);
  background: var(--surface); border: 1px solid var(--primary-deep); box-shadow: var(--glow-primary); margin-bottom: 20px; position: relative; z-index: 2; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: .92rem; }
/* трасса-коннектор между шагами */
.step:not(:last-child)::before { content: ""; position: absolute; left: calc(52px + clamp(10px,1.6vw,22px)); right: 0; top: 26px;
  height: 1px; background: repeating-linear-gradient(90deg, var(--primary-deep) 0 6px, transparent 6px 12px); opacity: .6; z-index: 1; }

/* ---------- 14. Преимущества ---------- */
.feature-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- 15. Требования / список с орнамент-маркером ---------- */
.req-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.req-list li { display: flex; align-items: flex-start; gap: 13px; padding: 6px 0; color: var(--text); }
.req-list li svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 1px; }

/* ---------- 16. Документы (новый trust-блок) ---------- */
.docs-grid { grid-template-columns: repeat(2, 1fr); }
.doc-link { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); transition: all .2s ease; }
.doc-link:hover { border-color: var(--primary); transform: translateX(4px); }
.doc-link .doc-ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: rgba(0,175,202,.08); color: var(--primary-hi); flex: none; }
.doc-link .doc-ic svg { width: 20px; height: 20px; }
.doc-link .doc-name { font-weight: 600; }
.doc-link .doc-meta { font-size: .82rem; color: var(--text-faint); }
.doc-link .doc-arrow { margin-left: auto; color: var(--text-faint); transition: color .2s ease; }
.doc-link:hover .doc-arrow { color: var(--primary-hi); }

/* ---------- 17. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; text-align: left;
  padding: 24px 4px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text); }
.faq-q .faq-ic { width: 30px; height: 30px; flex: none; position: relative; }
.faq-q .faq-ic::before, .faq-q .faq-ic::after { content: ""; position: absolute; background: var(--primary); border-radius: 2px; transition: transform .3s ease; }
.faq-q .faq-ic::before { width: 16px; height: 2px; top: 14px; left: 7px; }
.faq-q .faq-ic::after  { width: 2px; height: 16px; top: 7px; left: 14px; }
.faq-item.open .faq-q .faq-ic::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 4px 24px; color: var(--text-muted); max-width: 68ch; }

/* ---------- 18. О компании / реквизиты ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.req-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.req-table tr { border-bottom: 1px solid var(--border); }
.req-table tr:last-child { border-bottom: none; }
.req-table th, .req-table td { text-align: left; padding: 15px 20px; vertical-align: top; font-size: .94rem; }
.req-table th { color: var(--text-muted); font-weight: 500; width: 44%; }
.req-table td { color: var(--text); font-weight: 500; }

/* ---------- 19. Контакты ---------- */
.contact-card { display: flex; gap: 18px; align-items: flex-start; padding: clamp(22px, 3vw, 30px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.contact-card .cc-ic { width: 46px; height: 46px; border-radius: var(--r-md); background: rgba(254,197,12,.08); border: 1px solid rgba(254,197,12,.2); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-card .cc-ic svg { width: 22px; height: 22px; }

/* ---------- 20. CTA-полоса ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-2xl); padding: clamp(36px, 6vw, 64px);
  background: linear-gradient(135deg, var(--surface-2), var(--surface)); border: 1px solid var(--border); text-align: center; }
.cta-band h2 { max-width: 18ch; margin-inline: auto; }
.cta-band .lead { margin: 16px auto 0; max-width: 52ch; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .hero-ornament { opacity: .35; }

/* ---------- 21. Подвал ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding-block: clamp(48px, 6vw, 72px) 32px; position: relative; overflow: hidden; }
.footer-pattern { position: absolute; inset: 0; opacity: .06; background: var(--steppe-pattern) repeat; background-size: 64px; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-col h3 { font-family: var(--font-display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; font-weight: 600; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { color: var(--text-muted); font-size: .92rem; transition: color .2s ease; }
.footer-col a:hover { color: var(--primary-hi); }
.footer-req { font-size: .86rem; color: var(--text-muted); line-height: 1.7; max-width: 42ch; }
.footer-req b { color: var(--text); }
.footer-disclaimer { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-faint); line-height: 1.65; }
.footer-bottom { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: .85rem; color: var(--text-faint); }

/* ---------- 22. Орнамент-разделитель ---------- */
.ornament-divider { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--primary); opacity: .5; padding-block: 8px; }
.ornament-divider .line { height: 1px; width: min(120px, 22vw); background: linear-gradient(90deg, transparent, currentColor); }
.ornament-divider .line.r { background: linear-gradient(90deg, currentColor, transparent); }
.ornament-divider svg { width: 30px; height: 30px; }

/* ---------- 23. Анимации появления ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* пульсация узлов на трассах */
@keyframes nodePulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.pulse-node { animation: nodePulse 3.2s ease-in-out infinite; }

/* ---------- 24. Мобильное меню ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 80; background: var(--bg); padding: 24px var(--gutter);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); visibility: hidden; }
.mobile-menu.open { transform: none; visibility: visible; }
.mobile-menu .mm-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a { padding: 16px 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; border-bottom: 1px solid var(--border-soft); }
.mobile-menu .mm-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }

/* ---------- 25. Адаптив ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .price-card { max-width: 520px; }
  .calc-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
  .step:not(:last-child)::before { display: none; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .nav { height: 64px; }
  .nav-links, .nav-actions .btn, .nav-actions .lang-switch { display: none; }
  .burger { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .stat-grid, .feature-grid, .docs-grid, .req-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .trust-sep { display: none; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- 26. Доступность / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 27. Документные страницы ---------- */
.doc-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.doc-hero .hero-glow { top: -50%; left: 30%; opacity: .7; }
.crumbs { font-size: .85rem; color: var(--text-faint); margin-bottom: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--primary-hi); }
.doc-meta { margin-top: 14px; color: var(--text-faint); font-size: .88rem; }
.doc-header .burger { display: none; }
@media (max-width: 760px) {
  .doc-header .nav-actions .btn { display: inline-flex; padding-inline: 16px; height: 44px; }
  .doc-header .logo { font-size: 1.08rem; }
  .doc-header .logo .logo-sub { display: none; }
}

.prose { color: var(--text-muted); }
.prose > h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 44px 0 16px; color: var(--text); scroll-margin-top: 90px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.12rem; margin: 28px 0 12px; color: var(--primary-hi); }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 4px; }
.prose ol { padding-left: 22px; }
.prose ol li { list-style: decimal; margin-bottom: 9px; padding-left: 6px; }
.prose ul li { list-style: none; position: relative; padding-left: 24px; margin-bottom: 9px; }
.prose ul li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 7px; height: 7px; border: 1.5px solid var(--primary); transform: rotate(45deg); }
.prose strong, .prose b { color: var(--text); font-weight: 600; }
.prose a { color: var(--primary-hi); text-decoration: underline; text-underline-offset: 3px; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.prose th, .prose td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; vertical-align: top; }
.prose th { background: var(--surface-2); color: var(--text); font-weight: 600; }
.prose td { color: var(--text-muted); }
.prose tr:last-child td { border-bottom: none; }
.doc-note { background: rgba(254,197,12,.06); border: 1px solid rgba(254,197,12,.22); border-radius: var(--r-md); padding: 16px 18px; margin: 22px 0; font-size: .9rem; color: var(--text-muted); display: flex; gap: 12px; align-items: flex-start; }
.doc-note svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 1px; }
.doc-toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 26px; margin-bottom: 36px; }
.doc-toc h2 { font-family: var(--font-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.doc-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.doc-toc li { margin-bottom: 8px; }
.doc-toc a { color: var(--text-muted); font-size: .92rem; }
.doc-toc a:hover { color: var(--primary-hi); }
@media (max-width: 640px) { .doc-toc ol { columns: 1; } }

/* hidden util */
[hidden], .hidden { display: none !important; }
.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; }
.no-scroll { overflow: hidden; }


/* ---------- 28. Переключатель темы (солнце/луна) ---------- */
.theme-toggle { width: 42px; height: 42px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text-muted); display: inline-grid; place-items: center; flex: none; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.theme-toggle:hover { color: var(--primary-hi); border-color: var(--primary); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }
/* Светлая тема: повышенный контраст золотого hero-заголовка */
:root[data-theme="light"] .hero h1 .grad { background: linear-gradient(120deg, #BE8700, #936800); -webkit-background-clip: text; background-clip: text; color: transparent; }
