/* ═══════════════════════════════════════════════════════════════
   Invento Invest · Занзибар — ЕДИНЫЙ CSS
   Всё в одном файле: токены, шрифты, reset, типографика, layout,
   кнопки, формы, телефонное поле, шапка, футер, подвижный фон +
   брендовый оверлей, анимации, стили всех секций, адаптив, a11y.
   Дизайн: «широкое парение» — контент без коробок поверх стекла;
   подложка только у функциональных блоков (формы/таблицы/калькулятор/
   карточки проектов). Цвета на тёмном: текст = light-color, заголовки
   = secondary-light, крупные/жирные = secondary-color.
   ═══════════════════════════════════════════════════════════════ */

/* ═══ Шрифты (self-host, variable, subset latin+cyrillic) ═══════════ */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2074,
    U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══ Токены ════════════════════════════════════════════════════════ */
:root {
  /* Бренд */
  --primary-color: #b0870b;
  --light-accent: #c89a1a;
  --dark-accent: #8a6b07;
  --dark-color: #2a4759;
  --light-color: #f1ece9;

  --primary-light: #c89a1a;
  --primary-dark: #8a6b07;
  --primary-hover: #9c790a;

  --secondary-color: #e2b73b;
  --secondary-light: #f4cd54;
  --secondary-dark: #b18b22;

  --white: #ffffff;
  --glass-white-5: rgba(255, 255, 255, 0.05);
  --glass-white-10: rgba(255, 255, 255, 0.1);
  --glass-white-25: rgba(255, 255, 255, 0.25);

  --accent-blue: #3e6278;
  --success-color: #6ca23f;
  --error-color: #d64534;

  /* Семантика */
  --gold: var(--primary-color);
  --gold-hover: var(--primary-hover);
  --gold-soft: rgba(176, 135, 11, 0.1);
  /* Кнопки: глубокое золото под СВЕТЛЫЙ текст — контраст AA ≥4.5:1.
     Яркое --gold (#b0870b) с тёмным текстом даёт лишь ~4.4:1, а светлый
     текст на нём — ~2.8:1; поэтому фон кнопок затемняем. Акценты/иконки/
     ссылки продолжают использовать яркое --gold/--secondary. */
  --btn-gold: #7e5f07;
  --btn-gold-hover: #6a5005;

  --bg: #f4efeb;
  --surface: #ffffff;
  --surface-2: #faf6f2;
  --surface-3: #ece4dc;

  --ink: #223642;
  --ink-body: #3c4f5a;
  --ink-muted: #6c7c85;
  --line: rgba(34, 54, 66, 0.12);
  --line-strong: rgba(34, 54, 66, 0.2);

  --dark: #223b49;
  --dark-2: #1b303c;
  --dark-3: #142732;
  --on-dark: rgba(255, 255, 255, 0.92);
  --on-dark-muted: rgba(255, 255, 255, 0.66);
  --on-dark-line: rgba(255, 255, 255, 0.16);

  /* Стеклянные функциональные подложки + брендовый оверлей */
  --hair-light: rgba(255, 255, 255, 0.14);
  --surface-fn: rgba(10, 20, 27, 0.52);
  --surface-fn-line: rgba(255, 255, 255, 0.13);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;

  --fs-hero: clamp(2.35rem, 1.4rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.8rem, 1.2rem + 2.4vw, 2.8rem);
  --fs-h3: clamp(1.25rem, 1rem + 1vw, 1.55rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.5vw, 1.22rem);

  /* Острые углы у прямоугольников (круги хардкодят 50%, навбар — 999px) */
  --radius-sm: 0px;
  --radius: 0px;
  --radius-lg: 0px;
  --radius-pill: 0px;

  --shadow-sm: 0 2px 10px rgba(34, 54, 66, 0.06);
  --shadow: 0 14px 40px rgba(34, 54, 66, 0.1);
  --shadow-lg: 0 30px 70px rgba(20, 39, 50, 0.16);
  --shadow-gold: 0 12px 28px rgba(176, 135, 11, 0.28);
  --shadow-fn: 0 22px 55px rgba(4, 11, 16, 0.42);

  --container: 1320px;
  --pad: clamp(1.1rem, 5vw, 2rem);
  --section-y: clamp(3.75rem, 8vw, 6.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  --z-chat: 80;
  --z-nav: 100;
  --z-overlay: 200;
}

/* ═══ Reset ═════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink-body);
  line-height: 1.65;
  font-size: 1rem;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ═══ Типографика ═══════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.14;
  font-weight: 300;
  letter-spacing: -0.01em;
}
h4, h5, h6 { font-weight: 600; letter-spacing: 0; line-height: 1.3; }
/* Дисплейные — только h1/h2 (Unbounded) */
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.08; }
p { line-height: 1.68; }
strong, b { font-weight: 700; color: inherit; }
.accent { color: var(--gold); }

/* ═══ Layout-примитивы ══════════════════════════════════════════════ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 0.7rem; }
.section-head .lead { font-size: var(--fs-lead); max-width: 62ch; }
.section-head--center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.85rem;
}
.lead { font-size: var(--fs-lead); color: var(--ink-muted); }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ═══ Кнопки ════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem; padding: 0.95rem 1.7rem;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.95rem; line-height: 1;
  white-space: nowrap; text-align: center;
  background: var(--btn-gold); color: var(--light-color);
  border: 1.5px solid transparent; box-shadow: var(--shadow-gold);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background 0.16s var(--ease), color 0.16s var(--ease);
}
.btn:hover { background: var(--btn-gold-hover); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(176, 135, 11, 0.34); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn--dark { background: var(--dark); color: #fff; box-shadow: 0 12px 28px rgba(20, 39, 50, 0.22); }
.btn--dark:hover { background: var(--dark-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: #fff; border-color: var(--glass-white-25); box-shadow: none; }
.btn--ghost-light:hover { background: var(--glass-white-10); transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.88rem; }
/* Ведущая иконка в кнопке — просто иконка, БЕЗ фона/контейнера + сдвиг на hover */
.btn > svg.icon:last-child { width: 1.15rem; height: 1.15rem; transition: transform 0.22s var(--ease); }
.btn:hover > svg.icon:last-child { transform: translate(2px, -1px); }

/* ═══ Формы ═════════════════════════════════════════════════════════ */
.form { display: grid; gap: 0.85rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field > label { font-size: 0.8rem; font-weight: 600; color: var(--ink-body); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.85rem 1rem;
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #97a3ab; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft);
}
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-error { font-size: 0.78rem; color: var(--error-color); min-height: 1em; }
.field.has-error input, .field.has-error select { border-color: var(--error-color); }
.form-note { font-size: 0.76rem; color: var(--ink-muted); line-height: 1.5; }
.form-note a { color: var(--gold); text-decoration: underline; }
/* Формы на тёмном фоне */
.form--on-dark .field > label { color: var(--on-dark-muted); }
.form--on-dark input, .form--on-dark select {
  background: rgba(255, 255, 255, 0.95); border-color: rgba(255, 255, 255, 0.28); color: #1c2b33;
}
.form--on-dark input:focus, .form--on-dark select:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22); }
.form--on-dark .form-note { color: var(--on-dark-muted); }
.form--on-dark .form-note a { color: var(--secondary-light); }
.form--on-dark .field-error { color: #ffb4a8; }

/* ═══ Телефонное поле (assets/js/phone/*) ══════════════════════════ */
.modern-phone-field { position: relative; width: 100%; }
.phone-input-container {
  display: flex; align-items: stretch; width: 100%;
  background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); overflow: hidden;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.phone-input-container:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field.has-error .phone-input-container { border-color: var(--error-color); }
.country-button {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0 0.7rem 0 0.85rem; border-right: 1.5px solid var(--line);
  background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 0.9rem;
  white-space: nowrap; transition: background 0.15s var(--ease);
}
.country-button:hover, .country-button.active { background: var(--surface-3); }
.country-button:active { transform: scale(0.98); }
.country-button .flag { font-size: 1.05rem; line-height: 1; }
.country-button .code { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.modern-phone-field.no-country .country-button .code { color: var(--ink-muted); font-weight: 500; }
.country-button .arrow {
  width: 11px; height: 11px; fill: none; stroke: var(--ink-muted); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease);
}
.country-button.active .arrow { transform: rotate(180deg); }
.phone-input {
  flex: 1 1 auto; min-width: 0; padding: 0.85rem 1rem;
  border: none; background: transparent; font-size: 0.95rem; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.phone-input:focus { outline: none; }
.phone-input::placeholder { color: #97a3ab; }
.country-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 0.55rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.99); transform-origin: top center;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
}
.country-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.country-search {
  width: 100%; padding: 0.6rem 0.8rem; margin-bottom: 0.45rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); font-size: 0.9rem; color: var(--ink);
}
.country-search:focus { outline: none; border-color: var(--gold); }
.country-list { max-height: 260px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: grid; gap: 1px; }
.country-list::-webkit-scrollbar { width: 8px; }
.country-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
.country-item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.65rem; border-radius: var(--radius-sm); cursor: pointer;
  transition: background 0.12s var(--ease);
}
.country-item:hover { background: var(--gold-soft); }
.country-item:active { background: rgba(176, 135, 11, 0.22); }
.country-item .flag { font-size: 1.1rem; line-height: 1; }
.country-item .name { font-size: 0.9rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-item .code { font-size: 0.85rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.form--on-dark .phone-input-container { background: rgba(255, 255, 255, 0.95); border-color: rgba(255, 255, 255, 0.28); }
.form--on-dark .phone-input-container:focus-within { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22); }
.form--on-dark .country-button { background: rgba(255, 255, 255, 0.6); color: #1c2b33; border-right-color: rgba(28, 43, 51, 0.12); }
.form--on-dark .phone-input { color: #1c2b33; }
/* Контраст текста в выпадающем списке стран. Виджет всегда на СВЕТЛОЙ подложке,
   но цветосхема главной (.page-home .section :where(span) = 0,2,0) перебивала
   .country-item .name (тоже 0,2,0, но раньше по коду) → «светлое на белом».
   Возвращаем тёмный текст с бо́льшей специфичностью (три класса, 0,3,0). */
.modern-phone-field .country-item .name,
.modern-phone-field .country-button .code { color: var(--ink); }
.modern-phone-field .country-item .code,
.modern-phone-field.no-country .country-button .code { color: var(--ink-muted); }
/* Резервируем высоту, пока виджет не отрисован (ленивая загрузка) — без сдвига макета */
.phone-field-container { display: block; min-height: 52px; }

/* ═══ Пилюли / бейджи / иконки / таблицы (база) ═════════════════════ */
.pill {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line);
  font-size: 0.82rem; font-weight: 600; color: var(--ink);
}
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--dark-accent);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
}
.icon { width: 1.5rem; height: 1.5rem; flex: none; fill: currentColor; }
.icon--lg { width: 2rem; height: 2rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.data-table { min-width: 640px; font-size: 0.92rem; }
.data-table th, .data-table td { padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table thead th { background: var(--dark); color: #fff; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em; white-space: nowrap; }
.data-table tbody th { font-weight: 600; white-space: nowrap; }
.data-table td { font-variant-numeric: tabular-nums; }
.data-table tr:last-child td, .data-table tr:last-child th { border-bottom: none; }
.data-table .col-hl { background: rgba(176, 135, 11, 0.06); }

/* ═══ Шапка / навигация (плавающий тёмный «стеклянный» бар) ═════════ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  padding-top: clamp(0.55rem, 1.6vw, 1rem); background: transparent;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 58px; padding-inline: clamp(0.85rem, 2vw, 1.35rem);
  border-radius: 999px;              /* закругление ТОЛЬКО у навбара */
  border: 1px solid var(--hair-light);
  background: rgba(18, 33, 42, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 14px 36px rgba(5, 13, 18, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: background 0.3s var(--ease);
}
.site-header.is-scrolled .site-header__inner { background: rgba(13, 25, 32, 0.72); }
.page-inner .site-header { background: transparent; }
.site-header .btn { border-radius: 999px; }
.brand { display: inline-flex; align-items: center; }
/* Логотип только по правилу contain — никогда не растягиваем/не сужаем */
.brand img { height: 34px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.brand .logo-mark { display: none; } /* десктоп — полный логотип; мобилка (≤768) — белый знак */
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__links { display: flex; align-items: center; gap: 1.5rem; }
.nav__links a { font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.86); transition: color 0.15s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:active { opacity: 0.6; }
.lang-switch { display: inline-flex; align-items: center; gap: 0.1rem; }
.lang-switch a {
  padding: 0.35rem 0.55rem; font-size: 0.8rem; font-weight: 700;
  color: rgba(255, 255, 255, 0.6); border-radius: var(--radius-sm);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.lang-switch a.is-active { color: var(--secondary-light); }
.lang-switch a:hover { color: #fff; }
.lang-switch a:active { opacity: 0.6; }
/* Компактный <select> языков — только на мобиле (десктоп показывает .lang-switch). */
.lang-select {
  display: none;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  font-family: inherit; font-size: 0.8rem; font-weight: 700; line-height: 1.1;
  color: #fff; background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: var(--radius-sm);
  padding: 0.34rem 1.55rem 0.34rem 0.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23ffffff' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.5rem center; background-size: 10px;
}
.lang-select:focus-visible { outline: 2px solid var(--secondary-light); outline-offset: 2px; }
.lang-select option { color: #14232c; background: #fff; font-weight: 600; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; }
.nav__toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease), background 0.3s var(--ease); }
body.menu-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  background: rgba(11, 22, 29, 0.92);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center; gap: 0.4rem;
  padding: 5rem var(--pad) 2rem; transform: translateY(-100%);
  transition: transform 0.4s var(--ease); visibility: hidden;
}
body.menu-open .mobile-menu { transform: translateY(0); visibility: visible; }
.mobile-menu a { font-size: 1.4rem; font-weight: 300; color: var(--on-dark); padding: 0.5rem 0; border-bottom: 1px solid var(--on-dark-line); }
.mobile-menu a:last-child { border-bottom: none; }

/* ═══ Плавающий click-to-chat ═══════════════════════════════════════ */
.chat-dock {
  position: fixed; right: clamp(0.9rem, 3vw, 1.6rem); bottom: clamp(0.9rem, 3vw, 1.6rem);
  z-index: var(--z-chat); display: flex; flex-direction: column; gap: 0.7rem;
}
.chat-dock a {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  color: #fff; box-shadow: var(--shadow); transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.chat-dock a:hover { transform: translateY(-3px) scale(1.05); }
.chat-dock a:active { transform: scale(0.94); }
.chat-dock .chat-tg { background: #229ed9; }
.chat-dock .chat-wa { background: #25d366; }
.chat-dock .icon { width: 28px; height: 28px; }
.grecaptcha-badge { visibility: hidden; }

/* ═══ Футер ═════════════════════════════════════════════════════════ */
.site-footer { background: var(--dark-3); color: var(--on-dark-muted); padding-block: clamp(2.75rem, 5vw, 3.75rem) 2rem; font-size: 0.9rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--on-dark-line); }
.footer-brand img { height: 40px; width: auto; object-fit: contain; margin-bottom: 1rem; }
.footer-brand p { max-width: 34ch; color: var(--on-dark-muted); font-size: 0.88rem; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { display: grid; gap: 0.6rem; }
.footer-col a { color: var(--on-dark-muted); transition: color 0.15s var(--ease); }
.footer-col a:hover { color: var(--secondary-light); }
.nav__links a:active, .lang-switch a:active, .footer-col a:active { opacity: 0.6; }
.footer-bottom { padding-top: 1.6rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-disclaimer { max-width: 900px; color: rgba(255, 255, 255, 0.4); font-size: 0.78rem; line-height: 1.6; }
.recaptcha-note { color: rgba(255, 255, 255, 0.4); }
.recaptcha-note a { color: rgba(255, 255, 255, 0.66); text-decoration: underline; }

/* ═══ Подвижный фон + брендовый оверлей ═════════════════════════════ */
.bg-stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--dark-3); }
.bg-slide {
  position: absolute; inset: -4% 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  background-image: var(--img);
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.1s var(--ease);
  filter: blur(3px);
  /* will-change ставит main.js только на видимые слайды (≤2), а не на все 6 */
}
.bg-slide.is-active { opacity: 1; }
.bg-slide--ph { background-image: var(--ph-grad); }
.bg-stage.is-live .bg-slide { transition: none; }
/* «Липкий» брендовый оверлей: базовое затемнение + радиальная подсветка,
   цвет ведёт по скроллу main.js (--wash): синий → золото → секондари. */
.brand-wash {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(118% 82% at 50% 26%, var(--wash, rgba(27, 48, 60, 0.55)) 0%, transparent 64%),
    linear-gradient(180deg, rgba(8, 16, 22, 0.50) 0%, rgba(8, 16, 22, 0.32) 42%, rgba(8, 16, 22, 0.62) 100%);
}
.page-home { background: transparent; }
/* Плёночное зерно поверх страницы */
.bg-grain {
  position: fixed; inset: 0; z-index: 4; pointer-events: none; opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 140px 140px;
}
.img-ph {
  width: 100%; height: 100%; min-height: 100%;
  background:
    radial-gradient(120% 120% at 20% 15%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(135deg, var(--dark-2) 0%, var(--accent-blue) 60%, var(--dark) 100%);
}

/* ═══ Анимация появления (направленный въезд) ══════════════════════ */
/* БЕЗ permanent will-change: на телефонах он создавал постоянный GPU-слой на
   КАЖДЫЙ .reveal; при скролле слои выгружались из памяти и возвращались ПУСТЫМИ —
   текст/элементы пропадали и не перерисовывались. Короткой анимации хинт не нужен. */
.reveal { opacity: 0; }
.reveal.is-visible { animation: reveal-rise var(--dur) var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes reveal-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
/* Заголовки секций въезжают слева */
.page-home .section-head.reveal.is-visible { animation-name: reveal-left; }
@keyframes reveal-left { from { opacity: 0; transform: translateX(-48px); } to { opacity: 1; transform: none; } }

/* ═══ Утилиты ═══════════════════════════════════════════════════════ */
.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; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════
   ГЛАВНАЯ: парящий контент. Цвета на тёмном:
   текст = light-color · заголовки = secondary-light · крупные/жирные = secondary-color
   ═══════════════════════════════════════════════════════════════════ */
.page-home .section { color: var(--light-color); }
.page-home .section :where(p, li, td, dt, dd, span, small, label, blockquote, figcaption) { color: var(--light-color); }
.page-home .section :where(h3, h4, h5, h6) { color: var(--secondary-light); }
.page-home .section :where(h1, h2, b, strong) { color: var(--secondary-color); }
.page-home .section-head h2 { color: var(--secondary-color); text-shadow: 0 2px 24px rgba(4, 12, 17, 0.5); }
.page-home .section-head .lead, .page-home .section .lead { color: var(--light-color); }
/* Точечные золотые акценты */
.page-home .eyebrow { color: var(--secondary-light); }
.page-home .accent { color: var(--secondary-light); }
.page-home .stat-card small,
.page-home .magnet-card .num,
.page-home .magnet-card .icon { color: var(--secondary-light); }
.page-home .project-price { color: var(--secondary-color); }
/* Пилюли/бейджи → полупрозрачный контур со светлым текстом */
.page-home .pill { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); color: #fff; transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease); }
.page-home .pill:hover { transform: translateY(-2px); border-color: rgba(226, 183, 59, 0.5); background: rgba(226, 183, 59, 0.12); }
.page-home .pill .icon { color: var(--secondary-light); }
.page-home .badge { background: rgba(224, 183, 59, 0.18); color: var(--secondary-light); }

/* ═══ 1. HERO — полноэкранное «окно» в подвижный фон ═══════════════ */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding: 104px 0 3rem; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; width: 100%; }
.hero__content { max-width: 620px; }
.hero h1 { color: var(--secondary-color); font-size: var(--fs-hero); font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; margin-bottom: 1.1rem; text-shadow: 0 3px 30px rgba(4, 12, 17, 0.55); }
.hero__sub { font-size: clamp(1.02rem, 0.96rem + 0.5vw, 1.2rem); color: var(--light-color); max-width: 46ch; margin-bottom: 1.8rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }
/* Лид-форма в hero — функциональная тёмная подложка + въезд на загрузке */
.hero-form { background: var(--surface-fn); border: 1px solid var(--surface-fn-line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.5vw, 2rem); box-shadow: var(--shadow-fn); animation: hero-rise 0.7s 0.12s var(--ease) both; }
.hero-form__title { color: #fff; font-size: 1.12rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.4rem; }
.hero-form__desc { color: rgba(255, 255, 255, 0.7); font-size: 0.88rem; margin-bottom: 1.1rem; }
.hero-form .field > label { color: var(--light-color); }
.hero-form .form-note { color: var(--light-color); }
.hero-form .form-note a { color: var(--secondary-light); }
/* Hero — въезд на загрузке (без JS): заголовок/суб/CTA слева, форма снизу */
@keyframes hero-in { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.page-home .hero__content > * { animation: hero-in 0.7s var(--ease) both; }
.page-home .hero__content > *:nth-child(2) { animation-delay: 0.08s; }
.page-home .hero__content > *:nth-child(3) { animation-delay: 0.16s; }

/* ═══ 2. WHY / стат-band (карточки без коробок) ════════════════════ */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.4rem); margin-bottom: clamp(2rem, 4vw, 3rem); }
.stat-card .icon { color: var(--gold); margin-bottom: 0.9rem; }
.stat-card b { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 300; line-height: 1.1; }
.stat-card span { display: block; font-size: 0.88rem; margin-top: 0.35rem; }
.stat-card small { display: block; font-size: 0.78rem; font-weight: 600; margin-top: 0.3rem; }
.why__body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.why__note { border-left: 3px solid var(--gold); padding-left: 1.1rem; font-size: 0.95rem; }

/* ═══ 3. КЛИМАТ И СЕЗОНЫ ═══════════════════════════════════════════ */
.climate-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.4rem); margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.climate-stat b { display: block; font-size: 1.9rem; font-weight: 300; }
.climate-stat span { font-size: 0.88rem; }
.season-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.season-card h4 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.season-card p { font-size: 0.9rem; }
.season-card--rain { border: 1px dashed rgba(255, 255, 255, 0.2); padding: 1rem 1.2rem; }
.fill-bar { height: 7px; border-radius: 0; background: var(--line-strong); overflow: hidden; margin-top: 0.5rem; width: 130px; }
.fill-bar i { display: block; height: 100%; background: var(--gold); border-radius: 0; }
.coast-cell { display: flex; flex-direction: column; gap: 0.15rem; font-weight: 600; }

/* ═══ 4. СТРАТЕГИИ ═════════════════════════════════════════════════ */
.strategy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.4rem); margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.strategy-card { display: flex; flex-direction: column; gap: 0.8rem; }
.strategy-card .icon { color: var(--gold); }
.strategy-card h3 { font-size: 1.25rem; font-weight: 600; }
.strategy-card ul { display: grid; gap: 0.5rem; margin-top: 0.2rem; }
.strategy-card li { font-size: 0.92rem; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed rgba(255, 255, 255, 0.14); padding-bottom: 0.5rem; transition: border-color 0.2s var(--ease); }
.strategy-card li b { font-variant-numeric: tabular-nums; transition: color 0.2s var(--ease); }
.strategy-card li:hover { border-bottom-color: rgba(226, 183, 59, 0.4); }
.strategy-card li:hover b { color: var(--secondary-light); }
/* Списки-преимущества — «сочные» строки: золотая галочка с мягким свечением,
   тонкая линия-разделитель и живой отклик (пункт наезжает вправо, галочка растёт). */
.advantages { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 0.1rem 1.75rem; }
.advantages li {
  display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.96rem;
  padding: 0.6rem 0.35rem 0.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease);
}
.advantages li:hover { transform: translateX(6px); border-color: rgba(226, 183, 59, 0.42); }
.advantages .icon {
  width: 1.3rem; height: 1.3rem; flex: none; margin-top: 0.08rem; color: var(--secondary-light);
  filter: drop-shadow(0 2px 7px rgba(226, 183, 59, 0.4));
  transition: transform 0.25s var(--ease), color 0.2s var(--ease);
}
.advantages li:hover .icon { transform: scale(1.22); color: var(--secondary-color); }

/* ═══ 5. ФИНМОДЕЛЬ + ROI ══════════════════════════════════════════ */
.roi-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.fin-facts { display: grid; gap: 0.9rem; }
.fin-fact { border-left: 3px solid var(--gold); padding-left: 1rem; font-size: 0.95rem; }
.installment-bar { display: flex; gap: 0.4rem; margin-top: 0.4rem; }
.installment-bar div { flex: 1; text-align: center; font-size: 0.72rem; }
.installment-bar b { display: block; font-size: 1rem; }
/* Калькулятор — функциональная тёмная подложка */
.calc-card { background: var(--surface-fn); border: 1px solid var(--surface-fn-line); box-shadow: var(--shadow-fn); padding: clamp(1.4rem, 2.5vw, 2rem); }
.calc-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.2rem; }
.calc-field { margin-bottom: 1.1rem; }
.calc-field label { display: flex; justify-content: space-between; font-size: 0.86rem; margin-bottom: 0.5rem; }
.calc-field label b { color: var(--secondary-color); font-variant-numeric: tabular-nums; }
.calc-field input[type="range"] { width: 100%; height: 6px; border-radius: 0; background: var(--line-strong); -webkit-appearance: none; appearance: none; accent-color: var(--gold); }
.calc-field input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; box-shadow: var(--shadow-sm); cursor: pointer; }
.calc-field input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; cursor: pointer; }
.calc-result { margin-top: 1.4rem; background: var(--dark); padding: 1.2rem 1.4rem; display: flex; justify-content: space-between; gap: 1rem; }
.calc-result div span { font-size: 0.78rem; color: var(--on-dark-muted); display: block; }
.calc-result div b { font-size: 1.6rem; font-weight: 400; color: var(--secondary-light); font-variant-numeric: tabular-nums; }
.calc-note { font-size: 0.76rem; margin-top: 0.8rem; }

/* ═══ 7. ПРОЕКТЫ — карточки с фото (функциональная подложка) ═══════ */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.1rem, 2vw, 1.5rem); }
.project-card { background: var(--surface-fn); border: 1px solid var(--surface-fn-line); overflow: hidden; box-shadow: var(--shadow-fn); display: flex; flex-direction: column; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.page-home .project-card:active { transform: scale(0.99); }
.project-media { position: relative; aspect-ratio: 4 / 3; background: var(--dark-2); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media .badge { position: absolute; top: 0.9rem; left: 0.9rem; background: rgba(255, 255, 255, 0.92); color: var(--dark-accent); }
.project-media .project-id { position: absolute; bottom: 0.9rem; left: 0.9rem; font-size: 0.72rem; letter-spacing: 0.08em; color: #fff; background: rgba(20, 39, 50, 0.55); padding: 0.3rem 0.7rem; }
.project-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 0.2rem; }
.project-slogan { font-size: 0.9rem; font-style: italic; margin-bottom: 1rem; }
.project-specs { display: grid; gap: 0.55rem; margin-bottom: 1.2rem; }
.project-specs div { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; border-bottom: 1px dashed rgba(255, 255, 255, 0.14); padding-bottom: 0.45rem; }
.project-specs b { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.project-price { font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.project-price small { display: block; font-size: 0.72rem; color: var(--on-dark-muted); font-weight: 500; }
.project-card .btn { margin-top: auto; }

/* ═══ 6/8. СРАВНИТЕЛЬНЫЕ ТАБЛИЦЫ (на тёмном) ══════════════════════ */
.page-home .table-wrap { background: var(--surface-fn); border: 1px solid var(--surface-fn-line); box-shadow: var(--shadow-fn); }
.page-home .data-table tbody th { color: var(--secondary-light); }
.page-home .data-table td { color: var(--light-color); }
.page-home .data-table th, .page-home .data-table td { border-color: rgba(255, 255, 255, 0.1); }
.page-home .data-table .cell-hl { background: rgba(224, 183, 59, 0.16); color: var(--secondary-light); }

/* ═══ 9. ИНФРАСТРУКТУРА ═══════════════════════════════════════════ */
.infra-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.infra-card .icon { color: var(--gold); margin-bottom: 0.8rem; }
.infra-card h4 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.infra-card p { font-size: 0.9rem; }
.tax-strip { margin-top: clamp(1.6rem, 3vw, 2.2rem); background: var(--dark); padding: clamp(1.4rem, 3vw, 2rem); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.tax-strip div b { display: block; font-size: 1.5rem; color: var(--secondary-light); font-weight: 400; font-variant-numeric: tabular-nums; }
.tax-strip div span { font-size: 0.86rem; color: var(--on-dark-muted); }

/* ═══ 10. ЮР. ЧАСТЬ / GOLDEN VISA ═════════════════════════════════ */
.legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.4rem); margin-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.legal-card h4 { font-size: 1.05rem; margin-bottom: 0.55rem; }
.legal-card p { font-size: 0.92rem; }
.pill-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ═══ 11. РИСКИ (тёмная секция — карточки с лёгкой подложкой) ══════ */
.risk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.4rem); margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.risk-card { background: var(--glass-white-5); border: 1px solid var(--on-dark-line); padding: 1.6rem; }
.risk-card h4 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.risk-card p { font-size: 0.9rem; }
.case-box { background: rgba(214, 69, 52, 0.14); border: 1px solid rgba(214, 69, 52, 0.4); padding: 1.6rem 1.8rem; margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.case-box h4 { margin-bottom: 0.4rem; }
.case-box p { font-size: 0.92rem; }
.checklist-cta { background: var(--glass-white-5); border: 1px solid var(--on-dark-line); padding: 1.6rem 1.8rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.2rem; }
.checklist-cta h4 { margin-bottom: 0.2rem; }
.checklist-cta p { font-size: 0.9rem; }

/* ═══ 12. КАК КУПИТЬ (таймлайн) ═══════════════════════════════════ */
.steps { display: grid; gap: 0; margin-bottom: clamp(1.8rem, 3vw, 2.5rem); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 1.4rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.step:last-child { border-bottom: none; }
.step__num { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--dark); color: var(--secondary-light); font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.step__body h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.step__body p { font-size: 0.92rem; }
.docs { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ═══ 13. ЛИД-МАГНИТЫ (форма → функциональная подложка) ═══════════ */
.magnet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.magnet-card { background: var(--surface-fn); border: 1px solid var(--surface-fn-line); box-shadow: var(--shadow-fn); padding: 1.8rem; display: flex; flex-direction: column; gap: 0.7rem; }
.magnet-card .num { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; }
.magnet-card h4 { font-size: 1.08rem; }
.magnet-card p { font-size: 0.9rem; flex: 1; }

/* ═══ 14. О КОМПАНИИ ══════════════════════════════════════════════ */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); margin-bottom: clamp(1.6rem, 3vw, 2.2rem); }
.about-card .icon { color: var(--gold); margin-bottom: 0.7rem; }
.about-card h4 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.about-card p { font-size: 0.9rem; }

/* ═══ 15. ФИНАЛЬНАЯ ФОРМА ═════════════════════════════════════════ */
.final { overflow: hidden; }
.final-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; }
.final__info h2 { color: var(--secondary-color); font-size: var(--fs-h2); margin-bottom: 0.8rem; }
.final__info p { max-width: 46ch; margin-bottom: 1.5rem; }
.final__meta { display: flex; gap: 2rem; }
.final__meta div b { display: block; font-size: 1.5rem; font-weight: 400; }
.final__meta div span { font-size: 0.8rem; }
.final-form { background: var(--surface-fn); border: 1px solid var(--surface-fn-line); box-shadow: var(--shadow-fn); padding: clamp(1.5rem, 3vw, 2.2rem); }

/* ═══ Экран благодарности ═════════════════════════════════════════ */
.thanks-overlay { position: fixed; inset: 0; z-index: var(--z-overlay); display: none; place-items: center; padding: var(--pad); background: rgba(20, 39, 50, 0.72); backdrop-filter: blur(6px); }
.thanks-overlay.is-open { display: grid; }
.thanks-card { background: var(--surface); padding: clamp(1.8rem, 4vw, 2.8rem); max-width: 460px; text-align: center; box-shadow: var(--shadow-lg); animation: thanks-pop 0.4s var(--ease); }
.thanks-card .thanks-ic { width: 64px; height: 64px; margin: 0 auto 1.2rem; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold); }
.thanks-card .thanks-ic .icon { width: 34px; height: 34px; }
.thanks-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.6rem; }
.thanks-card p { color: var(--ink-body); margin-bottom: 1.4rem; }
.thanks-card .btn { width: 100%; }
@keyframes thanks-pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }

/* ═══ Внутренние страницы (юр. / 404) ═════════════════════════════ */
.legal-page { padding-top: calc(68px + clamp(2rem, 5vw, 3.5rem)); padding-bottom: var(--section-y); }
.legal-page .prose { max-width: 760px; }
.legal-page h1 { font-size: var(--fs-h2); margin-bottom: 0.4rem; }
.legal-page .updated { color: var(--ink-muted); font-size: 0.85rem; margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.3rem; font-weight: 600; margin: 2rem 0 0.6rem; color: var(--ink); }
.legal-page p { color: var(--ink-body); margin-bottom: 0.8rem; }
.legal-page ul { list-style: disc; padding-left: 1.3rem; display: grid; gap: 0.4rem; margin: 0.6rem 0; }
.legal-page li { color: var(--ink-body); }
.legal-page a { color: var(--gold); text-decoration: underline; }
.legal-page .back-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 2rem; font-weight: 600; color: var(--gold); text-decoration: none; }
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: calc(68px + 2rem) var(--pad) var(--section-y); }
.error-page .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 300; color: var(--gold); line-height: 1; }
.error-page h1 { font-size: var(--fs-h3); margin: 0.5rem 0 1rem; }
.error-page p { color: var(--ink-muted); margin-bottom: 1.6rem; }

/* ═══ Адаптив ═════════════════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero { min-height: auto; padding: 96px 0 3.5rem; }
  .hero__content { max-width: 640px; }
  .roi-grid, .final-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .strategy-grid, .infra-grid, .risk-grid, .project-grid, .magnet-grid, .about-grid, .climate-stats, .tax-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }
  .site-header__inner { height: 54px; }
  /* Мобильный навбар — компактный белый знак вместо горизонтального лого */
  .brand .logo-full { display: none; }
  .brand .logo-mark { display: block; height: 32px; }
  .nav__links { display: none; }
  .lang-switch { display: none; }          /* широкий ряд из 5 языков прячем */
  .lang-select { display: inline-block; }  /* вместо него — компактный селект */
  .nav__toggle { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .bg-slide { background-image: var(--img-m, var(--img)); }
  .why__body, .legal-grid, .season-grid { grid-template-columns: 1fr; }
  /* ── Максимальное упрощение композитинга на мобиле ──────────────────
     Телефонные GPU выгружали слои контента и возвращали их ПУСТЫМИ/ОБРЕЗАННЫМИ.
     Убираем всё, что плодит слои поверх/вокруг контента: */
  .reveal { opacity: 1 !important; animation: none !important; transform: none !important; } /* контент всегда виден, без анимаций-слоёв */
  .bg-grain { display: none; }              /* blend-оверлей зерна поверх контента — снят */
  .bg-slide { filter: none; }               /* дорогой блюр фикс-фона (переклеивается на скролле) — снят */
  /* без блюра компенсируем читабельность более плотным затемнением фона */
  .brand-wash { background: linear-gradient(180deg, rgba(8, 16, 22, 0.66) 0%, rgba(8, 16, 22, 0.78) 100%); }
}
@media (max-width: 620px) {
  .stat-band, .strategy-grid, .infra-grid, .risk-grid, .project-grid, .magnet-grid, .about-grid, .climate-stats, .tax-strip { grid-template-columns: 1fr; }
  .installment-bar { flex-wrap: wrap; }
  .installment-bar div { flex: 1 1 30%; }
  .final__meta { gap: 1.2rem; }
  .checklist-cta { flex-direction: column; align-items: flex-start; }
}

/* ═══ Доступность ═════════════════════════════════════════════════ */
@media (prefers-reduced-transparency: reduce) {
  .site-header__inner { background: rgba(13, 25, 32, 0.94); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .brand-wash { background: linear-gradient(180deg, rgba(8, 16, 22, 0.9), rgba(6, 13, 18, 0.94)); }
  .page-home :is(.table-wrap, .hero-form, .final-form, .magnet-card, .calc-card, .project-card) { background: rgba(9, 18, 24, 0.94); }
  .bg-grain { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; }
  .bg-slide { transform: none; transition: opacity 0.6s ease; }
  .page-home .hero__content > *, .page-home .hero-form { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
