/* ==========================================================================
   Земельный Сервис — единый стиль v1.0
   Mobile-first, WCAG 2.1 AA, без внешних шрифтов и SDK.
   ========================================================================== */

:root {
  /* Палитра (light) */
  --bg: #f7f5f0;
  --paper: #ffffff;
  --paper-soft: #fafaf6;
  --ink: #1f2a24;
  --ink-soft: #3a4a42;
  --muted: #6b7570;
  --line: #d8d4ca;
  --line-soft: #ece8de;

  --accent: #2f5d3a;          /* основной зелёный */
  --accent-dark: #1f3f26;
  --accent-soft: #e7efe7;
  --accent-bg: #f0f6f1;

  --gold: #c19a3a;            /* акцент премиум */
  --gold-soft: #f7e9c5;

  --warn: #b85d1a;
  --warn-soft: #fbeadb;

  --info: #2c5d8a;
  --info-soft: #e3eef6;

  /* Радиусы */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(31, 42, 36, 0.04), 0 1px 3px rgba(31, 42, 36, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 42, 36, 0.06), 0 2px 4px rgba(31, 42, 36, 0.04);
  --shadow-lg: 0 12px 32px rgba(31, 42, 36, 0.08), 0 4px 8px rgba(31, 42, 36, 0.04);

  /* Сетка */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);

  /* Типографика */
  --sans: 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --serif: 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

/* Тёмная тема — «Тёмный графит + золото». Дорогой кабинет нотариуса ночью. */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #14130f;
    --paper: #1c1b16;
    --paper-soft: #232118;
    --ink: #ece7d8;
    --ink-soft: #b8b1a0;
    --muted: #8a8474;
    --line: #2e2b22;
    --line-soft: #25221a;

    --accent: #d4a843;
    --accent-dark: #b88a28;
    --accent-soft: #6a5320;
    --accent-bg: rgba(212, 168, 67, 0.10);

    --gold: #d4a843;
    --gold-soft: rgba(212, 168, 67, 0.18);

    --warn: #e0894a;
    --warn-soft: rgba(224, 137, 74, 0.15);

    --info: #c9a96e;
    --info-soft: rgba(201, 169, 110, 0.15);
  }
}

/* Принудительный switch — тёмная тема */
:root[data-theme="dark"] {
  --bg: #14130f;
  --paper: #1c1b16;
  --paper-soft: #232118;
  --ink: #ece7d8;
  --ink-soft: #b8b1a0;
  --muted: #8a8474;
  --line: #2e2b22;
  --line-soft: #25221a;
  --accent: #d4a843;
  --accent-dark: #b88a28;
  --accent-soft: #6a5320;
  --accent-bg: rgba(212, 168, 67, 0.10);
  --gold: #d4a843;
  --gold-soft: rgba(212, 168, 67, 0.18);
  --warn: #e0894a;
  --warn-soft: rgba(224, 137, 74, 0.15);
  --info: #c9a96e;
  --info-soft: rgba(201, 169, 110, 0.15);
}

/* На золотых кнопках primary в тёмной теме — золотой фон + тёмный текст (контраст 9.2:1).
   !important нужен, чтобы перебить более позднее .btn-primary { background: var(--accent) }, потому что
   CSS-каскад при равной специфичности побеждает последнее правило, а у нас тёмные правила идут раньше. */
:root[data-theme="dark"] .btn-primary { background: #d4a843 !important; color: #14130f !important; }
:root[data-theme="dark"] .btn-primary:hover { background: #b88a28 !important; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .btn-primary { background: #d4a843 !important; color: #14130f !important; }
  :root[data-theme="auto"] .btn-primary:hover { background: #b88a28 !important; }
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color 120ms ease; }
a:hover { color: var(--accent-dark); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p.lead { font-size: 1.15rem; color: var(--ink-soft); }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.4em; }

button { font: inherit; cursor: pointer; }

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

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section { padding: clamp(48px, 8vw, 96px) 0; }
section.tight { padding: clamp(32px, 5vw, 56px) 0; }
section.bg-paper { background: var(--paper); }
section.bg-soft { background: var(--paper-soft); }
section.bg-accent { background: var(--accent-bg); }
section.bg-dark { background: var(--ink); color: #fff; }
section.bg-dark h1, section.bg-dark h2, section.bg-dark h3 { color: #fff; }
section.bg-dark p { color: rgba(255,255,255,0.85); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
section.bg-dark .eyebrow { color: var(--gold); }

.section-header { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-header.left { text-align: left; margin-left: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
:root[data-theme="dark"] .site-header { background: rgba(20, 19, 15, 0.78); border-bottom-color: #2e2b22; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .site-header { background: rgba(20, 19, 15, 0.78); border-bottom-color: #2e2b22; backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
@media (min-width: 1024px) {
  .site-header__inner { gap: 24px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.brand-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 4px;
  padding: 2px 8px;
  background: var(--line-soft);
  border-radius: 999px;
}

.nav { display: none; gap: 22px; align-items: center; margin-left: auto; }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: var(--accent); }

.nav-cta { display: flex; gap: 10px; align-items: center; margin-left: auto; flex-shrink: 0; }
.nav-cta .btn { padding: 9px 16px; font-size: 0.9rem; }
.brand { flex-shrink: 1; min-width: 0; }
.brand > span:not(.brand-mark):not(.brand-tag) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) {
  .brand-tag { display: none; }
  .brand > span:not(.brand-mark):not(.brand-tag) { font-size: 0.95rem; }
}

/* Toolbar (home/back/fwd + theme + lang) */
.site-toolbar {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding: 4px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.site-toolbar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.site-toolbar__btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.site-toolbar__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.site-toolbar__btn:active { transform: scale(0.96); }
.site-toolbar__sep {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 2px;
}
.site-toolbar__lang {
  padding: 0 8px 0 10px;
  width: auto;
  min-width: 34px;
}

/* Языковой dropdown */
.lang-switcher {
  position: relative;
  display: inline-flex;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}
.lang-switcher.is-open .lang-dropdown { display: flex; }
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
  transition: background 100ms ease, color 100ms ease;
}
.lang-option:hover { background: var(--accent-soft); color: var(--accent); }
.lang-option.is-current { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lang-option__short {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 32px;
  height: 24px;
  padding: 0 6px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}
.lang-option.is-current .lang-option__short { background: var(--accent); color: white; border-color: var(--accent); }
.lang-option__label { flex: 1; }
.lang-option__check { color: var(--accent); font-weight: 700; }
:root[data-theme="dark"] .lang-option.is-current { background: var(--gold-soft); color: var(--gold); }
:root[data-theme="dark"] .lang-option.is-current .lang-option__short { background: var(--gold); color: #14130f; border-color: var(--gold); }
:root[data-theme="dark"] .lang-option__check { color: var(--gold); }
:root[data-theme="dark"] .lang-option:hover { background: var(--gold-soft); color: var(--gold); }

/* В мобильном drawer — выпадающий слева, по высоте drawer */
.nav-mobile .lang-dropdown {
  right: auto;
  left: 0;
  top: calc(100% + 6px);
}

/* Toolbar в мобильном меню — горизонтально, по центру */
.nav-mobile .site-toolbar {
  display: flex;
  margin: 0 0 12px;
  align-self: center;
}

@media (min-width: 1024px) {
  .site-toolbar { display: inline-flex; }
}

/* Toast для placeholder-уведомлений */
.site-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity 250ms ease, transform 250ms ease;
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
}
.site-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 40px;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink);
}
.nav-toggle:hover { background: var(--accent-soft); }

.nav-mobile {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 16px var(--gutter) 24px;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--ink); padding: 10px 12px; font-weight: 500; border-radius: 6px;
}
.nav-mobile a:hover, .nav-mobile a.active { background: var(--accent-soft); color: var(--accent); }
.nav-mobile .btn { margin-top: 12px; }

@media (min-width: 1280px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .nav-cta { margin-left: 0; }
  .nav a { white-space: nowrap; }
  .brand { flex-shrink: 0; }
  .brand > span:not(.brand-mark):not(.brand-tag) { overflow: visible; text-overflow: clip; }
}
@media (min-width: 1280px) and (max-width: 1499px) {
  .nav { gap: 14px; }
  .nav a { font-size: 0.88rem; }
}

/* Wider container + larger hero on very large screens (≥1600px, 4K, etc.) */
@media (min-width: 1600px) {
  :root { --container: 1440px; }
}
@media (min-width: 2400px) {
  :root { --container: 1600px; }
  body { font-size: 17px; }
  .hero h1 { font-size: clamp(2.5rem, 3.4vw, 4.2rem); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 80ms ease, background-color 120ms ease, border-color 120ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); color: white; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-soft); border-color: var(--accent); color: var(--accent); }
.btn-light { background: white; color: var(--accent); }
.btn-light:hover { background: var(--accent-soft); color: var(--accent); }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: clamp(56px, 10vw, 120px) 0 clamp(48px, 8vw, 96px);
  background:
    radial-gradient(ellipse at top right, var(--accent-soft) 0%, transparent 50%),
    radial-gradient(ellipse at bottom left, var(--gold-soft) 0%, transparent 50%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero__copy h1 { letter-spacing: -0.02em; }
.hero__copy h1 strong { color: var(--accent); font-weight: 700; }
.hero__copy p.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong { font-size: 1.5rem; color: var(--ink); font-weight: 700; }
.hero__meta span { font-size: 0.85rem; color: var(--muted); margin-top: 2px; }

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__phone {
  width: 280px;
  aspect-ratio: 9 / 19;
  background: var(--paper);
  border-radius: 36px;
  border: 8px solid #1f2a24;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.hero__phone::before {
  content: "";
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 100px; height: 24px;
  background: #1f2a24;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.hero__phone-screen { width: 100%; height: 100%; padding: 36px 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.hero__phone-card {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 14px;
  border: 1px solid var(--accent);
}
.hero__phone-card.warning { background: var(--warn-soft); border-color: var(--warn); }
.hero__phone-label { font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero__phone-title { font-size: 0.95rem; font-weight: 600; margin-top: 4px; color: var(--ink); }
.hero__phone-meta { font-size: 0.7rem; color: var(--muted); margin-top: 8px; }
.hero__phone-button {
  margin-top: auto;
  padding: 12px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .hero__inner { grid-template-columns: 1.2fr 1fr; }
}

/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-soft); margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }

.card-feature { padding: 32px 24px; text-align: center; }
.card-feature .icon { margin: 0 auto 20px; width: 56px; height: 56px; }
.card-feature .icon svg { width: 28px; height: 28px; }

.card-strategy {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  border-left: 4px solid var(--accent);
}
.card-strategy h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card-strategy .badge { font-size: 0.7rem; color: var(--accent); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.card-strategy .meta { display: flex; gap: 16px; margin-top: 12px; font-size: 0.8rem; color: var(--muted); }
.card-strategy .meta span strong { color: var(--ink); }

/* ==========================================================================
   Steps (1-2-3)
   ========================================================================== */

.steps { display: grid; gap: 24px; counter-reset: step; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; top: 16px; right: 20px;
  font-size: 2.5rem; font-weight: 800;
  color: var(--accent-soft);
  line-height: 1;
}
.step h3 { padding-right: 50px; margin-bottom: 8px; }
.step p { color: var(--ink-soft); margin-bottom: 0; }

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing { display: grid; gap: 24px; }
.tariff {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  position: relative;
}
.tariff h3 { margin-bottom: 8px; }
.tariff .price {
  display: flex; align-items: baseline; gap: 6px; margin: 16px 0 24px;
}
.tariff .price strong { font-size: 2.25rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.tariff .price span { color: var(--muted); font-size: 0.95rem; }
.tariff ul { list-style: none; padding: 0; margin: 0 0 28px; }
.tariff ul li {
  padding-left: 28px; position: relative; margin-bottom: 10px; color: var(--ink-soft); font-size: 0.95rem;
}
.tariff ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 50%; display: grid; place-items: center;
  font-size: 0.7rem; font-weight: 700;
}
.tariff.featured {
  border-color: var(--accent); border-width: 2px;
  background: var(--accent-bg);
}
.tariff.featured::after {
  content: "Рекомендуем";
  position: absolute; top: -12px; right: 24px;
  background: var(--accent); color: white;
  padding: 4px 14px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .pricing.pricing--3col { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1023px) {
  .pricing.pricing--3col { grid-template-columns: 1fr; }
}
.pricing > * { min-width: 0; }

/* v2.0 update banner */
.v2-banner {
  background: linear-gradient(90deg, #2f5d3a 0%, #3d7a4a 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.18);
  position: sticky;
  top: 0;
  z-index: 60;
}
.v2-banner a:hover { opacity: 0.85; }
@media (max-width: 767px) {
  .v2-banner { position: static; }
  .v2-banner .v2-banner__long { display: none; }
  .v2-banner .v2-banner__sep { display: none; }
}

/* Pricing strong cell: avoid huge price text breaking the card on narrow screens */
@media (max-width: 767px) {
  .tariff .price { flex-direction: column; align-items: flex-start; gap: 4px; }
  .tariff .price strong { font-size: 1.7rem; line-height: 1.1; }
  .tariff .price span { font-size: 0.85rem; }
}

/* Tables → card layout on mobile (no horizontal scroll, fully readable) */
@media (max-width: 767px) {
  .table-wrap { overflow-x: visible; border: none; margin: 24px 0; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 14px 0;
    margin-bottom: 12px;
    background: var(--paper);
  }
  .tbl tbody tr:hover { background: var(--paper); }
  .tbl tbody tr:last-child td { border-bottom: 1px solid var(--line-soft); }
  .tbl td {
    padding: 8px 16px;
    border: none;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.92rem;
  }
  .tbl td:last-child { border-bottom: none; }
  .tbl td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 2px;
  }
  .tbl td:first-child {
    font-weight: 700;
    font-size: 1rem;
    background: var(--paper-soft);
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }
}

/* ==========================================================================
   Stats / metrics
   ========================================================================== */

.stats {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.stat {
  text-align: center;
  padding: 24px 16px;
}
.stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat span {
  font-size: 0.9rem;
  color: var(--muted);
}
section.bg-dark .stat strong { color: var(--gold); }
section.bg-dark .stat span { color: rgba(255,255,255,0.7); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 50%; display: grid; place-items: center;
  font-size: 1.1rem; font-weight: 700; transition: transform 200ms ease;
}
.faq details[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 22px 22px; color: var(--ink-soft); }

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: white;
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 48px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 100% 100%, rgba(193, 154, 58, 0.2) 0%, transparent 50%);
  pointer-events: none;
}
.cta-banner > * { position: relative; }
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); font-size: 1.05rem; margin-bottom: 28px; }
.cta-banner .btn-light { background: white; color: var(--accent); }
.cta-banner .btn-light:hover { background: var(--accent-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 64px 0 32px;
}
.site-footer h4 { color: white; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,0.75); display: block; padding: 4px 0; font-size: 0.95rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer__cols {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 48px;
}
.site-footer__about { max-width: 320px; }
.site-footer__about p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.6; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.site-footer__bottom a { display: inline; color: rgba(255,255,255,0.6); }
.site-footer__bottom a:hover { color: var(--gold); }

/* ==========================================================================
   Region card
   ========================================================================== */

.region-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.region-card.highlighted { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft) 0%, var(--paper) 100%); }
.region-card.pilot { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-soft) 0%, var(--paper) 100%); }
.region-card .label {
  display: inline-block; font-size: 0.7rem; padding: 3px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; letter-spacing: 0.04em; margin-bottom: 12px;
}
.region-card.highlighted .label { background: var(--gold); color: white; }
.region-card.pilot .label { background: var(--accent); color: white; }
.region-card h3 { margin-bottom: 8px; }
.region-card .stats-row { display: flex; gap: 16px; margin: 12px 0; padding: 12px; background: var(--paper-soft); border-radius: 8px; font-size: 0.85rem; }
.region-card .stats-row div { flex: 1; }
.region-card .stats-row strong { display: block; color: var(--ink); }
.region-card .stats-row span { color: var(--muted); font-size: 0.75rem; }

/* ==========================================================================
   Tables
   ========================================================================== */

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 32px 0; border-radius: var(--r-md); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tbl th, .tbl td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.tbl th { background: var(--paper-soft); color: var(--ink); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.tbl tbody tr:hover { background: var(--paper-soft); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .check { color: var(--accent); font-weight: 700; }
.tbl .warn { color: var(--warn); font-weight: 700; }
.tbl .gold { color: var(--gold); font-weight: 700; }

/* ==========================================================================
   Timeline (roadmap)
   ========================================================================== */

.timeline { position: relative; padding-left: 32px; margin: 32px 0; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px; background: var(--line);
}
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before {
  content: ""; position: absolute; left: -29px; top: 6px;
  width: 16px; height: 16px;
  background: var(--accent); border: 4px solid var(--bg);
  border-radius: 50%;
}
.timeline-item h4 { font-size: 0.85rem; color: var(--accent); margin-bottom: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.timeline-item h3 { font-size: 1.1rem; margin-bottom: 6px; }
.timeline-item p { color: var(--ink-soft); margin-bottom: 0; }

/* ==========================================================================
   Visibility / a11y
   ========================================================================== */

.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: -40px; left: 0;
  background: var(--accent); color: white;
  padding: 8px 16px; z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Reveal-on-scroll: лёгкий transform-эффект, контент остаётся читаемым всегда */
:root.zs-reveal [data-reveal] {
  transform: translateY(8px);
  transition: transform 400ms ease;
}
:root.zs-reveal [data-reveal].is-visible {
  transform: translateY(0);
}

/* ==========================================================================
   Cookie banner (152-ФЗ согласие)
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 280ms ease, transform 280ms ease;
}
.cookie-banner.show { opacity: 1; transform: translateY(0); }
.cookie-banner__msg { flex: 1; min-width: 240px; font-size: 0.9rem; line-height: 1.55; color: var(--ink-soft); }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (min-width: 768px) {
  .cookie-banner { left: auto; right: 24px; bottom: 24px; max-width: 540px; }
}

/* ==========================================================================
   Illustrations (SVG)
   ========================================================================== */

.illustration-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.illustration {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(16px, 3vw, 32px);
  box-shadow: var(--shadow-md);
}
:root[data-theme="dark"] .illustration {
  background: var(--paper);
  border-color: var(--line);
  filter: brightness(0.95);
}
.illustration-caption {
  text-align: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
