/* ===================================================================
   INFLUX — тёмный премиум лендинг
   Палитра, типографика и компоненты вынесены в переменные ниже.
   =================================================================== */

:root {
  /* Поверхности: тёплый белый / айвори фон + мягкий бежевый вторичный */
  --bg:        #FBF9F4;   /* warm white / ivory */
  --bg-2:      #F3EEE4;   /* soft beige (secondary) */
  --surface:   #FFFFFF;             /* премиальная карточка */
  --surface-2: #FAF6EE;             /* карточка с тёплым оттенком */
  /* Тонкие изящные границы (глубокий navy с низкой прозрачностью) */
  --border:    rgba(26, 42, 68, 0.10);
  --border-2:  rgba(26, 42, 68, 0.18);
  /* Текст: глубокий navy + приглушённые оттенки */
  --text:      #1A2A44;   /* deep navy */
  --muted:     #5C6B82;   /* muted slate */
  --muted-2:   #8A93A6;
  /* Акценты: приглушённый синий + шампань/песок для деталей */
  --accent:    #4A6FA5;   /* muted blue */
  --accent-2:  #2E4B73;   /* deeper navy-blue */
  --accent-3:  #C9A96A;   /* champagne / sand */
  /* Спокойный градиент (без неона): navy → muted blue */
  --grad:      linear-gradient(135deg, #2E4B73 0%, #4A6FA5 100%);
  --grad-soft: linear-gradient(135deg, rgba(201,169,106,.10), rgba(74,111,165,.07));
  --radius:    18px;
  --radius-lg: 26px;
  --max:       1340px;
  --shadow:    0 20px 50px -24px rgba(26, 42, 68, 0.20);
  --glow:      0 12px 34px -12px rgba(46, 75, 115, 0.35);
  /* Editorial typography: serif-заголовки + чистый sans для текста */
  --font:      'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
}
.container--narrow { max-width: 800px; }

.accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ----- Живой фон: canvas-слои + орбы ----- */
.bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block;
  pointer-events: none;
}
/* Неоновый WebGL-фон и частицы выключены в премиальной светлой теме —
   остаётся лишь очень мягкое тёплое свечение из CSS-орбов ниже. */
#bg-webgl     { display: none; }
#bg-particles { display: none; }

.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.has-webgl .orb { opacity: .16; }

/* Тонирующий слой: лёгкая тёплая вуаль поверх айвори-фона */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(251, 249, 244, .40) 0%,
    rgba(243, 238, 228, .25) 40%,
    rgba(251, 249, 244, .45) 100%);
}
/* Мягкие тёплые орбы: шампань + приглушённый синий, очень деликатно */
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.35; }
.orb--1 { width: 520px; height: 520px; top: -140px; left: -120px;
  background: radial-gradient(circle, rgba(201,169,106,.55), transparent 70%); }
.orb--2 { width: 480px; height: 480px; top: 420px; right: -160px;
  background: radial-gradient(circle, rgba(74,111,165,.40), transparent 70%); opacity: .28; }
.orb--3 { width: 600px; height: 600px; bottom: -200px; left: 30%;
  background: radial-gradient(circle, rgba(201,169,106,.40), transparent 70%); opacity: .24; }

/* ===================================================================
   Кнопки
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(46,75,115,.45); }
.btn--ghost {
  background: var(--surface);
  border-color: var(--border-2);
  color: var(--text);
}
.btn--ghost:hover { background: var(--surface-2); transform: translateY(-2px); border-color: var(--accent); }
.btn--lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn--block { width: 100%; }

/* ===================================================================
   Хедер / навигация
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 249, 244, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.5px;
}
.nav__logo-img {
  height: 34px;
  width: auto;
  display: block;
}
.nav__logo--footer .nav__logo-img { height: 30px; }
.nav__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;     /* прижимаем меню и переключатель языка вправо */
}
.nav__link {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  transition: color .2s ease;
}
.nav__link:hover { color: var(--text); }
.nav__cta { margin-left: 6px; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 20px; height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- Переключатель языка ----- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-left: 18px;
  border: 1px solid var(--border-2);
  border-radius: 11px;
  background: var(--surface);
}
.lang-switch__btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--muted);
  background: none;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.lang-switch__btn:hover { color: var(--text); }
.lang-switch__btn.is-active {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 4px 14px -4px rgba(46, 75, 115, .45);
}

/* ===================================================================
   Hero
   =================================================================== */
.hero { padding: 84px 0 72px; text-align: center; position: relative; }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border-2);
  margin-bottom: 28px;
}
.hero__badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(201,169,106,.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,169,106,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(201,169,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,169,106,0); }
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero__subtitle {
  max-width: 660px;
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--muted);
  margin-bottom: 38px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 22px; }
.hero__trust { max-width: 620px; font-size: 14px; color: var(--muted); margin: 0 auto; }

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1080px;
}
.stat {
  padding: 26px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.stat__label { font-size: 14px; color: var(--muted); }

/* ===================================================================
   Hero — премиальная минималистичная воронка
   Visitor → Quiz → Score → Booking → CRM → Follow-up
   =================================================================== */
.funnel {
  margin-top: 56px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 6px;
}
.funnel__node {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px 11px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(.22,.61,.36,1), border-color .3s ease;
}
.funnel__node:hover { transform: translateY(-3px); border-color: var(--border-2); }
.funnel__node--end { border-color: rgba(201, 169, 106, .5); }
.funnel__dot {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  font-family: var(--font-head);
  font-size: 12px; font-weight: 600;
  color: var(--accent-2);
  background: var(--bg-2);
  border-radius: 50%;
  flex: none;
}
.funnel__node--end .funnel__dot { color: #fff; background: var(--accent-3); }
.funnel__label { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: .2px; }
.funnel__link {
  width: 26px; height: 1px;
  flex: none;
  background: linear-gradient(90deg, var(--border-2), rgba(201, 169, 106, .7));
}

/* ===================================================================
   Доверие / логотипы
   =================================================================== */
.trust { padding: 28px 0 8px; }
.trust__title {
  text-align: center;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 44px;
  opacity: .65;
}
.logo {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .5px;
  color: var(--accent-2);
  transition: opacity .2s, color .2s;
}
.logo:hover { filter: none; opacity: 1; }

/* ===================================================================
   Секции — общее
   =================================================================== */
.section { padding: 88px 0; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section__tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.8px;
}
.section__subtitle {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

/* ----- Боли ----- */
.pains__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pain { padding: 30px 26px; transition: transform .25s ease, border-color .25s ease; }
.pain:hover { transform: translateY(-4px); border-color: var(--border-2); }
.pain__icon { font-size: 32px; margin-bottom: 16px; }
.pain h3 { font-family: var(--font-head); font-size: 19px; margin-bottom: 10px; }
.pain p { color: var(--muted); font-size: 15px; }

/* ----- Проблема (6 пунктов) ----- */
.problem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.problem__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 24px;
  transition: transform .25s ease, border-color .25s ease;
}
.problem__item:hover { transform: translateY(-3px); border-color: var(--border-2); }
.problem__index {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-3);
  flex: none;
  line-height: 1.5;
}
.problem__item p { color: var(--text); font-size: 16px; line-height: 1.5; }

/* ----- До / После ----- */
.ba__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
}
.ba__card { padding: 38px 34px; }
.ba__card--after { border-color: rgba(201, 169, 106, .45); }
.ba__chip {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted);
  padding: 6px 14px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--border);
  margin-bottom: 30px;
}
.ba__chip--accent { color: var(--accent-2); background: var(--grad-soft); border-color: rgba(201, 169, 106, .4); }
.ba__flow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}
.ba__flow li {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}
.ba__flow li + li::before {
  content: "→";
  position: absolute;
  left: -0.55em;
  top: 9px;
  color: var(--accent-3);
  font-size: 15px;
  line-height: 1;
}
.ba__num {
  font-family: var(--font-head);
  font-size: clamp(28px, 4.6vw, 44px);
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}
.ba__num--weak { color: var(--muted-2); }
.ba__num--strong { color: var(--accent-2); }
.ba__cap { font-size: 12px; color: var(--muted); letter-spacing: .2px; }
.ba__explain {
  max-width: 760px;
  margin: 30px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* ===================================================================
   AI Client System — 8 модулей (премиальные карточки)
   =================================================================== */
.system__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.module {
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.module:hover { transform: translateY(-4px); border-color: var(--border-2); }
.module__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.module__index {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 600;
  color: var(--accent-3);
  letter-spacing: .5px;
  flex: none;
}
.module__name {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 600;
  color: var(--text);
  letter-spacing: -.3px;
}
.module__what, .module__why { font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.module__what { color: var(--text); }
.module__why { color: var(--muted); }
.module__label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 5px;
}
.module__benefit {
  margin-top: auto;
  padding: 16px 0 0 22px;
  border-top: 1px solid var(--border);
  font-size: 15px; font-weight: 600;
  color: var(--accent-2);
  position: relative;
}
.module__benefit::before {
  content: "→";
  position: absolute; left: 0; top: 16px;
  color: var(--accent-3);
}

/* ===================================================================
   Квиз «AI-план воронки» (рендер — quiz.js)
   =================================================================== */
.quiz-card { padding: 38px 36px; }
.quiz__fallback { color: var(--muted); text-align: center; }

.quiz__progress { margin-bottom: 26px; }
.quiz__steplabel {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 10px;
}
.quiz__bar { height: 3px; background: var(--bg-2); border-radius: 3px; overflow: hidden; }
.quiz__fill {
  display: block; height: 100%;
  background: var(--grad); border-radius: 3px;
  transition: width .4s cubic-bezier(.22,.61,.36,1);
}
.quiz__q {
  font-family: var(--font-head);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 600; color: var(--text);
  line-height: 1.25; letter-spacing: -.3px;
  margin-bottom: 22px;
}
.quiz__options { display: flex; flex-direction: column; gap: 10px; }
.quiz__opt {
  width: 100%; text-align: left;
  font-family: var(--font); font-size: 15px; font-weight: 500;
  color: var(--text); background: var(--surface);
  border: 1px solid var(--border-2); border-radius: 12px;
  padding: 15px 18px; cursor: pointer; position: relative;
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.quiz__opt:hover { border-color: var(--accent); transform: translateY(-1px); }
.quiz__opt.is-selected {
  border-color: var(--accent-2);
  background: var(--grad-soft);
  box-shadow: 0 0 0 1px var(--accent-2) inset;
  padding-right: 46px;
}
.quiz__opt.is-selected::after {
  content: "✓";
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: var(--accent-2);
  font-size: 12px; font-weight: 700;
}
.quiz__opt--inline { width: auto; }
.quiz__langrow { display: flex; gap: 10px; flex-wrap: wrap; }

.quiz__field { margin-bottom: 16px; }
.quiz__label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.quiz__input {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px;
  padding: 13px 15px; resize: vertical;
  transition: border-color .2s, box-shadow .2s;
}
.quiz__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(74,111,165,.18); }
.quiz__input.is-invalid { border-color: #d9534f; }
.quiz__error { display: block; min-height: 15px; font-size: 12px; color: #d9534f; margin-top: 5px; }
.quiz__senderror { color: #d9534f; font-size: 14px; margin-top: 14px; }

.quiz__nav { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.quiz__back { margin-right: auto; }
.quiz__next:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ----- Экран результата ----- */
.quiz-card--result { text-align: left; }
.quiz__restitle {
  font-family: var(--font-head); font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 600; color: var(--text); margin-bottom: 22px;
}
.quiz__temp { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.quiz__templabel,
.quiz__difflabel,
.quiz__modlabel {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted-2);
}
.quiz__tempvalue { font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.quiz__temp--hot  .quiz__tempvalue { color: #9c6b2f; }
.quiz__temp--warm .quiz__tempvalue { color: var(--accent); }
.quiz__temp--cold .quiz__tempvalue { color: var(--muted-2); }
.quiz__diag {
  padding: 20px 22px; margin-bottom: 24px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
}
.quiz__difflabel { display: block; margin-bottom: 8px; }
.quiz__diagtext { color: var(--text); font-size: 16px; line-height: 1.6; }
.quiz__modlabel { display: block; margin-bottom: 12px; }
.quiz__modules { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.quiz__module {
  font-size: 14px; font-weight: 600; color: var(--accent-2);
  background: var(--surface); border: 1px solid rgba(201,169,106,.45);
  border-radius: 999px; padding: 8px 16px;
}
.quiz__note { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.quiz__resactions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .quiz-card { padding: 26px 20px; }
  .quiz__nav .btn, .quiz__resactions .btn { flex: 1; }
}

/* ===================================================================
   Ниши
   =================================================================== */
.niches__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.niche { padding: 32px 30px; transition: transform .25s ease, border-color .25s ease; }
.niche:hover { transform: translateY(-4px); border-color: var(--border-2); }
.niche__name { font-family: var(--font-head); font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 18px; }
.niche__uclabel {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 14px;
}
.niche__list { display: flex; flex-direction: column; gap: 11px; }
.niche__list li { position: relative; padding-left: 22px; color: var(--text); font-size: 15px; line-height: 1.45; }
.niche__list li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-3);
}

/* ===================================================================
   Доказательства (placeholder)
   =================================================================== */
.proof__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proof__card {
  min-height: 220px; padding: 32px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--surface-2);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
}
.proof__mark {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border-2); position: relative;
}
.proof__mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3);
  transform: translate(-50%, -50%);
}
.proof__soon { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: .2px; }

/* ===================================================================
   Пакеты
   =================================================================== */
.packages__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.pkg {
  padding: 36px 30px; display: flex; flex-direction: column; position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
.pkg:hover { transform: translateY(-4px); border-color: var(--border-2); }
.pkg--featured { border-color: rgba(201, 169, 106, .55); box-shadow: var(--glow), var(--shadow); }
.pkg__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: #fff; background: var(--grad); padding: 6px 16px; border-radius: 999px; box-shadow: var(--glow);
}
.pkg__name { font-family: var(--font-head); font-size: 21px; font-weight: 600; color: var(--text); margin-bottom: 14px; }
.pkg__price { margin-bottom: 18px; display: flex; align-items: baseline; gap: 8px; }
.pkg__from { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; }
.pkg__amount { font-family: var(--font-head); font-size: 34px; font-weight: 600; color: var(--accent-2); line-height: 1; }
.pkg__desc { color: var(--muted); font-size: 15px; line-height: 1.55; margin-bottom: 22px; }
.pkg__list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 28px; flex: 1; }
.pkg__list li { position: relative; padding-left: 26px; color: var(--text); font-size: 15px; line-height: 1.45; }
.pkg__list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%;
  background: var(--grad-soft); color: var(--accent-2); font-size: 11px; font-weight: 700;
}
.pkg .btn { margin-top: auto; }
.pkg__note { text-align: center; color: var(--muted-2); font-size: 14px; margin-top: 26px; }

/* ===================================================================
   Финальный CTA
   =================================================================== */
.finalcta__card {
  text-align: center; padding: 56px 40px;
  background: var(--grad-soft); border: 1px solid var(--border-2);
}
.finalcta__title {
  font-family: var(--font-head); font-size: clamp(24px, 3.6vw, 38px);
  font-weight: 600; color: var(--text); line-height: 1.2; letter-spacing: -.5px;
  max-width: 760px; margin: 0 auto 28px;
}
.finalcta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----- Услуги ----- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service {
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .3s ease;
}
.service:hover { transform: translateY(-5px); border-color: var(--border-2); }
.service:hover::before { opacity: 1; }
.service > * { position: relative; }
.service__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 26px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.service__title { font-family: var(--font-head); font-size: 20px; margin-bottom: 10px; }
.service__text { color: var(--muted); font-size: 15px; }

/* ----- Процесс ----- */
.process__steps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  position: relative;
}
.process__steps::before {
  content: "";
  position: absolute;
  top: 28px; left: 8%; right: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-3), transparent);
  opacity: .4;
}
.step { text-align: center; position: relative; padding: 0 6px; }
.step__num {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  color: var(--accent-3);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}
.step__title { font-family: var(--font-head); font-size: 18px; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: 14px; }

/* ----- Почему мы ----- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.benefit { padding: 30px 28px; transition: transform .25s ease, border-color .25s ease; }
.benefit:hover { transform: translateY(-4px); border-color: var(--border-2); }
.benefit::before {
  content: ""; display: block;
  width: 28px; height: 2px; border-radius: 2px;
  background: var(--accent-3); margin-bottom: 18px;
}
.benefit h3 { font-family: var(--font-head); font-size: 19px; margin-bottom: 10px; }
.benefit p { color: var(--muted); font-size: 15px; }

/* ----- Кейсы ----- */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case {
  padding: 34px 30px;
  transition: transform .25s ease, border-color .25s ease;
}
.case:hover { transform: translateY(-5px); border-color: var(--border-2); }
.case__niche {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-3);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.case__metric {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 58px;
  line-height: 1;
  margin-bottom: 6px;
}
.case__label { font-size: 15px; color: var(--text); font-weight: 600; margin-bottom: 14px; }
.case__text { color: var(--muted); font-size: 15px; }

/* ----- Отзывы ----- */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review { padding: 30px 28px; display: flex; flex-direction: column; }
.review__stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 16px; font-size: 15px; }
.review__text { color: var(--text); font-size: 15px; margin-bottom: 24px; flex: 1; }
.review__author { display: flex; align-items: center; gap: 13px; }
.review__avatar {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  flex: none;
}
.review__name { display: block; font-weight: 700; font-size: 15px; }
.review__role { display: block; font-size: 13px; color: var(--muted); }

/* ----- FAQ ----- */
.faq__list { display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .25s ease;
}
.faq__item.is-open { border-color: var(--border-2); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  background: var(--accent-3);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.faq__icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq__icon::after  { left: 7px; top: 0; width: 2px; height: 16px; }
.faq__item.is-open .faq__icon::after { transform: scaleY(0); opacity: 0; }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq__a p { padding: 0 24px 22px; color: var(--muted); font-size: 15px; }

/* ----- Лид-форма ----- */
.lead__card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.lead__copy {
  padding: 52px 48px;
  background: var(--grad-soft);
  border-right: 1px solid var(--border);
}
.lead__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.6px;
  margin-bottom: 18px;
}
.lead__text { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.lead__bullets { display: flex; flex-direction: column; gap: 13px; }
.lead__bullets li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 15px;
}
.lead__bullets li::before {
  content: "✓";
  position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px;
  display: grid; place-items: center;
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
}

.lead-form { padding: 48px 44px; position: relative; }
.form__field { margin-bottom: 18px; }
.form__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form__opt { color: var(--muted); font-weight: 400; }
.form__input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form__input::placeholder { color: var(--muted-2); opacity: .9; }
.form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.18);
}
.form__input.is-invalid { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.15); }
.form__error { display: block; min-height: 16px; font-size: 13px; color: #f87171; margin-top: 5px; }
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 20px;
  cursor: pointer;
}
.form__consent input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.form__note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }
.form__link { color: var(--accent-3); text-decoration: underline; }
.form__link:hover { color: var(--text); }
.form__send-error { text-align: center; font-size: 14px; color: #f87171; margin-top: 12px; }

/* honeypot — скрыто от людей, доступно ботам */
.form__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* кнопка во время отправки */
.btn:disabled { opacity: .65; cursor: progress; transform: none; box-shadow: none; }

.form__success {
  position: absolute;
  inset: 0;
  background: var(--bg-2);
  display: none;                 /* скрыт по умолчанию; показывается классом .is-shown */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  border-radius: var(--radius-lg);
  animation: fadeIn .4s ease;
}
.form__success.is-shown { display: flex; }
.form__success-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  font-size: 30px; font-weight: 800;
  color: #fff;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: var(--glow);
  margin-bottom: 20px;
}
.form__success h3 { font-family: var(--font-head); font-size: 24px; margin-bottom: 10px; }
.form__success p { color: var(--muted); }

/* ===================================================================
   Юридическая страница (политика конфиденциальности)
   =================================================================== */
.legal { padding: 120px 0 80px; position: relative; }
.legal h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}
.legal__updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-family: var(--font-head); font-size: 20px; margin: 32px 0 12px; }
.legal p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.legal a { color: var(--accent-3); }
.legal a:hover { color: var(--text); }
.legal__back { display: inline-block; margin-top: 36px; font-weight: 600; }

/* ===================================================================
   Футер
   =================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 20px;
  background: var(--bg-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}
.footer__brand p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 260px; }
.footer__col h4 { font-family: var(--font-head); font-size: 16px; margin-bottom: 16px; }
.footer__col a:not(.btn) { display: block; color: var(--muted); font-size: 15px; margin-bottom: 11px; transition: color .2s; }
.footer__col a:not(.btn):hover { color: var(--text); }
.footer__cta p { margin-bottom: 16px; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}
.footer__bottom a:hover { color: var(--text); }

/* ===================================================================
   Анимация появления
   =================================================================== */
.reveal {
  transition: opacity .7s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.22,.61,.36,1),
              filter .7s ease;
}
.js .reveal {            /* скрываем до появления только если JS работает */
  opacity: 0;
  transform: translateY(30px) scale(.985);
  filter: blur(2px);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===================================================================
   Живые эффекты
   =================================================================== */

/* --- Прогресс чтения --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(46, 75, 115, .35);
  z-index: 200;
  will-change: transform;
}

/* --- Hero-заголовок: сборка по словам --- */
.hero__title .word {
  display: inline-block;
  transition: opacity .6s ease, transform .7s cubic-bezier(.22,.61,.36,1);
  will-change: transform, opacity;
}
.js .hero__title .word { opacity: 0; transform: translateY(28%); }
.hero__title.is-in .word { opacity: 1; transform: none; }

/* --- Кнопки: блик (shimmer) + ripple по клику --- */
.btn { position: relative; overflow: hidden; }
.btn--primary::before {
  content: "";
  position: absolute;
  top: 0; left: -130%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
  pointer-events: none;
}
.btn--primary:hover::before { left: 150%; }
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transform: scale(0);
  animation: ripple .65s ease-out;
  pointer-events: none;
}
@keyframes ripple { to { transform: scale(2.4); opacity: 0; } }

/* --- Премиальные ховеры: сдержанные, без «прыгающих» иконок --- */
.service__icon { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.service:hover .service__icon { transform: translateY(-3px); }
.pain__icon, .benefit__icon { display: inline-block; transition: transform .35s ease; }
.pain:hover .pain__icon,
.benefit:hover .benefit__icon { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal, .js .reveal { opacity: 1; transform: none; filter: none; }
  .js .hero__title .word { opacity: 1; transform: none; }
}

/* ===================================================================
   Адаптив
   =================================================================== */
@media (max-width: 980px) {
  .services__grid, .why__grid, .cases__grid, .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .pains__grid, .problem__grid, .niches__grid { grid-template-columns: repeat(2, 1fr); }
  .system__grid, .packages__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .process__steps::before { display: none; }
  .lead__card { grid-template-columns: 1fr; }
  .lead__copy { border-right: none; border-bottom: 1px solid var(--border); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 28px;
    background: rgba(251, 249, 244, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform .32s ease;
    visibility: hidden;
  }
  .nav__menu.is-open { transform: translateY(0); visibility: visible; }
  .nav__link { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav__cta { margin: 12px 0 0; }
  .nav__burger { display: flex; }
  .lang-switch { margin-left: auto; margin-right: 8px; }   /* у бургера на мобиле */

  .hero { padding: 52px 0 56px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1; }

  /* Воронка разворачивается вертикально на мобильных */
  .funnel { flex-direction: column; gap: 0; }
  .funnel__node { width: 100%; max-width: 260px; justify-content: flex-start; }
  .funnel__link { width: 1px; height: 18px; background: linear-gradient(180deg, var(--border-2), rgba(201, 169, 106, .7)); }

  .ba__grid { grid-template-columns: 1fr; }
  .proof__grid { grid-template-columns: 1fr; }
  .finalcta__card { padding: 40px 24px; }
  .finalcta__actions .btn { flex: 1; }

  .section { padding: 64px 0; }
  .lead__copy, .lead-form { padding: 36px 26px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .pains__grid, .problem__grid, .services__grid, .why__grid, .cases__grid,
  .reviews__grid, .process__steps, .footer__grid, .hero__stats,
  .niches__grid, .proof__grid, .packages__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ===================================================================
   Прелоадер — бренд-знак INFLUX: «интеллект активируется».
   Видим только при наличии JS (html.js). Снимается из script.js;
   CSS-фейлсейф (preFailsafe) гарантирует исчезновение и без скрипта.
   =================================================================== */
.preloader { display: none; }

html.js .preloader {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  /* фейлсейф: даже если JS не снимет прелоадер — он исчезнет сам */
  animation: preFailsafe 0s linear 2.4s forwards;
}

/* состояние снятия (добавляет script.js) */
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
}

.preloader__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.preloader__mark {
  width: clamp(92px, 22vw, 124px);
  height: auto;
  overflow: visible;
}
.preloader__word {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(24px, 7vw, 36px);
  letter-spacing: 4px;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  animation: preWord .6s ease forwards .55s;
}

/* три сигнала «прорисовываются» и сходятся в узел */
.preloader__signal {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: preDraw .65s ease forwards;
}
.preloader__signal:nth-of-type(2) { animation-delay: .12s; }
.preloader__signal:nth-of-type(3) { animation-delay: .24s; }

/* узел принятия решения «зажигается» и мягко пульсирует */
.preloader__node {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: preNode .5s cubic-bezier(.2, .8, .2, 1) forwards .5s,
             prePulse 1.8s ease-in-out infinite .9s;
}
/* импульс-кольцо вокруг узла */
.preloader__ring {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: preRing 1s ease-out forwards .55s;
}

@keyframes preDraw { to { stroke-dashoffset: 0; } }
@keyframes preNode { to { transform: scale(1); } }
@keyframes preRing { 0% { opacity: .55; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes prePulse {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(91, 141, 240, 0)); }
  50%      { filter: drop-shadow(0 0 8px rgba(91, 141, 240, .5)); }
}
@keyframes preWord { to { opacity: 1; transform: translateY(0); } }
@keyframes preFailsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* лёгкое одноразовое появление логотипа в шапке */
.nav__logo-img { animation: logoIn .7s ease both .15s; }
@keyframes logoIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* уважение к prefers-reduced-motion: мгновенный бренд-знак, без движения */
@media (prefers-reduced-motion: reduce) {
  .preloader__signal { stroke-dashoffset: 0; animation: none; }
  .preloader__node   { transform: scale(1); animation: none; }
  .preloader__ring   { display: none; }
  .preloader__word   { opacity: 1; transform: none; animation: none; }
  .nav__logo-img     { animation: none; }
}
