/* Онбординг до оплаты (/start/, plans/084).
   Шрифты и цвета — платформенные (tailwind.input.css: --font-*, amber-400).
   Зелёный, янтарный и красный зон живут только на карте энергии.
   Движение спокойное: экран гаснет, следующий проявляется. Ничего не въезжает сбоку. */

.fx {
  /* iOS Safari: двойной тап по экрану иначе зумит страницу. manipulation
     отключает double-tap zoom, pinch-zoom для доступности остаётся. */
  touch-action: manipulation;
  --fx-bg: #0a0805;
  --fx-text: #f5f5f4;
  --fx-muted: #a8a29e;
  --fx-dim: #78716c;
  --fx-line: rgba(255, 255, 255, 0.16);
  --fx-accent: #fbbf24;
  --fx-accent-rgb: 251 191 36;
  --fx-accent-soft: rgba(251, 191, 36, 0.14);
  --fx-on-accent: #1c1206;
  --fx-green: #34d399;
  --fx-amber: #fbbf24;
  --fx-red: #fb7185;
  --fx-pad: 24px;
  /* Три кегля на воронке: заголовок / основной текст / акцент-маркер (×). */
  --fx-size-lg: clamp(1.55rem, 6.4vw, 1.85rem);
  --fx-size-md: 1rem;
  --fx-size-mark: 1.85rem;
  /* Чипсы: на высоком экране ряды расходятся, на низком (SE, 360×640) — прежние отступы. */
  --fx-legend-gap: clamp(20px, calc(6vh - 14px), 40px);
  --fx-chip-row-gap: clamp(10px, calc(5vh - 18px), 24px);
  --fx-legend-gap: clamp(20px, calc(6dvh - 14px), 40px);
  --fx-chip-row-gap: clamp(10px, calc(5dvh - 18px), 24px);
  background: var(--fx-bg);
  color: var(--fx-text);
  font-family: var(--font-body);
  font-size: var(--fx-size-md);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
}

.fx-root {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 440px;
}

.fx-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding: 0 var(--fx-pad) calc(28px + env(safe-area-inset-bottom));
  overflow-x: clip;
}

html:not(.fx-vt) .fx-screen { animation: fx-in 0.6s ease both; }
/* Пока отправка экрана в пути, касания по нему не доходят: повторный тап не уведёт на следующий экран. */
.fx-screen.htmx-request { pointer-events: none; }
/* Страница не пружинит от касаний; экран, который целиком влез в окно, вообще не скроллится (funnel.js, fitScroll). */
html:has(body.fx) { overscroll-behavior-y: none; }
html.fx-fit, html.fx-fit body { overflow: hidden; }

@keyframes fx-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

::view-transition-old(root) { animation: fx-out 0.32s ease both; }
::view-transition-new(root) { animation: fx-in 0.6s ease 0.12s both; }
::view-transition-group(fx-job) { animation-duration: 0.7s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }

/* Для кнопок и текста, что появляются с задержкой: пока не видны, не нажимаются. */
@keyframes fx-in-late {
  from { opacity: 0; transform: translateY(8px); pointer-events: none; }
  to { opacity: 1; transform: none; pointer-events: auto; }
}

@keyframes fx-out {
  to { opacity: 0; transform: translateY(-6px); }
}

/* ---------- фон ---------- */

.fx-stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  background-color: var(--fx-bg);
  background-image: url("../img/funnel/stars.aeb7beafdca9.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.72;
  pointer-events: none;
}

.fx-art {
  position: relative;
  margin: 0 calc(-1 * var(--fx-pad));
  pointer-events: none;
}

.fx-art img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 46%, #000 52%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 70% at 50% 46%, #000 52%, transparent 100%);
}

.fx-art--tall img {
  max-height: 46dvh;
  object-fit: cover;
  object-position: center 30%;
}

.fx-art--fade img {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 55%, transparent 100%);
}

/* «Мы не предложим тебе»: картинка крупнее, место под неё то же. Затухание — на рамке,
   иначе оно растянется вместе с картинкой и край обрежется резко. */
.fx-screen--not_offer .fx-art {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 15%, #000 55%, transparent 100%);
}
.fx-screen--not_offer .fx-art img {
  -webkit-mask-image: none;
  mask-image: none;
  transform: scale(1.18);
  transform-origin: 55% 55%;
}

.fx-art--fade + .fx-body { flex: 1 1 auto; position: relative; margin-top: -48px; min-height: 0; }
.fx-art--fade ~ .fx-actions { padding-top: 32px; }

/* «Сначала оценим…»: иллюстрация выше, текст ниже, кнопка — у низа экрана (см. .fx-actions). */
.fx-screen--intro .fx-art--fade img {
  min-height: 44dvh;
  max-height: 54dvh;
  object-fit: cover;
  object-position: 65% 12%;
}
.fx-screen--intro .fx-art--fade + .fx-body {
  margin-top: 12px;
  justify-content: flex-start;
  padding-top: 8px;
}

@media (max-height: 700px) {
  .fx-art--fade img { max-height: 35dvh; object-fit: cover; object-position: center 30%; }
  .fx-screen--intro .fx-art--fade img {
    min-height: 36dvh;
    max-height: 42dvh;
    object-position: 65% 10%;
  }
  .fx-screen--intro .fx-art--fade + .fx-body { margin-top: 8px; }
}

/* ---------- раскладка ---------- */

.fx-top { height: 64px; display: flex; align-items: center; flex-shrink: 0; }

.fx-back {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fx-muted);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, color 0.2s;
}
.fx-back:hover { border-color: rgba(var(--fx-accent-rgb) / 0.5); color: var(--fx-text); }

.fx-body { flex: 1; display: flex; flex-direction: column; }
.fx-body--end { justify-content: flex-end; }
.fx-body--center { justify-content: center; }
/* Скрининг и компактные экраны: контент сверху, основная кнопка — у низа (см. .fx-actions). */
.fx-body--chips,
.fx-body--compact {
  flex: 1 1 auto;
  min-height: 0;
}
.fx-body--chips + .fx-actions,
.fx-body--compact + .fx-actions {
  padding-top: 20px;
}
/* Иллюстрация сверху, заголовок + текст + кнопка — у низа (guilt, one_step). */
.fx-body--compact:has(.fx-lines) .fx-lines {
  flex-shrink: 0;
  margin-top: 8px;
  margin-bottom: auto;
}
/* guilt и one_step: текст у кнопки, иллюстрация — по центру свободного места над заголовком. */
.fx-screen--guilt .fx-body--compact .fx-lines,
.fx-screen--one_step .fx-body--compact .fx-week {
  margin-top: auto;
  margin-bottom: auto;
  padding-block: 10px;
}

.fx-actions {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 24px;
  display: grid;
  gap: 12px;
}

/* ---------- типографика ---------- */

.fx-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fx-size-lg);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.fx-lead { font-size: var(--fx-size-md); line-height: 1.6; color: var(--fx-muted); margin: 0; }
.fx-lead strong, .fx-lead b { color: var(--fx-text); font-weight: 600; }
.fx-note { font-size: 0.85rem; line-height: 1.5; color: var(--fx-dim); }
.fx-accent { color: var(--fx-accent); }

/* ---------- кнопки ---------- */

.fx-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 999px;
  border: 0;
  background: var(--fx-accent);
  color: var(--fx-on-accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fx-size-md);
  box-shadow: 0 0 32px rgba(var(--fx-accent-rgb) / 0.32);
  transition: transform 0.15s ease, background 0.2s, box-shadow 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.fx-btn:active { transform: scale(0.97); }
.fx-btn:disabled { background: #2a2a2c; color: #6a6a6a; box-shadow: none; cursor: not-allowed; }
.fx-btn:focus-visible, .fx-pill:focus-visible, .fx-chip:focus-visible, .fx-back:focus-visible {
  outline: 2px solid var(--fx-accent);
  outline-offset: 3px;
}

/* ---------- выбор работы ---------- */

.fx-pill {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  color: var(--fx-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-align: center;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.fx-pill:hover { border-color: rgba(var(--fx-accent-rgb) / 0.6); }
.fx-pill.is-picked { background: var(--fx-accent); border-color: var(--fx-accent); color: var(--fx-on-accent); }

.fx-jobs { display: grid; gap: 12px; margin-top: 28px; }

.fx-job.is-animated .fx-h1 { animation: fx-from-top 0.9s ease both; }
.fx-job.is-animated .fx-pill { animation: fx-from-bottom 0.6s ease both; animation-delay: calc(0.6s + var(--i) * 0.18s); }
.fx-job.is-locked .fx-pill { pointer-events: none; }

@keyframes fx-from-top { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes fx-from-bottom { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* чипсик работы внутри заголовка следующего экрана */
/* Блок на своей строке: запятая внутри, текст в 2 строки выравнивается поровну */
.fx-tag {
  display: block;
  width: fit-content;
  max-width: min(100%, 13em);
  margin: 8px 0;
  padding: 7px 18px 9px;
  border-radius: 24px;
  background: var(--fx-accent);
  color: var(--fx-on-accent);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fx-size-lg);
  line-height: 1.35;
  text-wrap: balance;
  view-transition-name: fx-job;
}

.fx-wont { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.fx-wont li {
  position: relative;
  padding-left: 26px;
  font-size: var(--fx-size-md);
  line-height: 1.5;
  color: var(--fx-muted);
  animation: fx-in 0.5s ease both;
  animation-delay: calc(0.5s + var(--i) * 0.35s);
}
.fx-wont li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  height: calc(var(--fx-size-md) * 1.5);
  transform: translateY(0.06em);
  color: var(--fx-accent);
  font-size: var(--fx-size-mark);
  font-weight: 500;
  line-height: 1;
}
.fx-not-offer .fx-actions { animation: fx-in-late 0.5s ease 1.7s both; }

/* ---------- чипсы ---------- */

.fx-legend { display: grid; gap: 4px; font-size: 0.82rem; color: var(--fx-dim); margin: -4px 0 var(--fx-legend-gap); }
.fx-legend i {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1.5px solid var(--fx-accent);
  margin-right: 6px;
  vertical-align: -1px;
}
.fx-legend i.is-full { background: var(--fx-accent); }

.fx-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--fx-chip-row-gap) 12px;
  margin: 0 -12px;
}
.fx-cloud--scatter {
  flex-direction: column;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 2px;
}
.fx-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  transform: translateX(var(--shift));
}

.fx-chip {
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  color: #d6d3d1;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.18s, border-color 0.18s, color 0.18s, box-shadow 0.18s;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 400px) {
  .fx-cloud { gap: var(--fx-chip-row-gap) 8px; }
  .fx-cloud--scatter { gap: 12px; }
  .fx-chip-row { gap: 10px; }
  .fx-chip { padding: 8px 11px; font-size: 0.84rem; }
}
.fx-chip.is-sometimes { border-color: var(--fx-accent); color: var(--fx-accent); background: var(--fx-accent-soft); }
.fx-chip.is-often {
  border-color: var(--fx-accent);
  background: var(--fx-accent);
  color: var(--fx-on-accent);
  box-shadow: 0 0 22px rgba(var(--fx-accent-rgb) / 0.38);
}

/* ---------- подбор практик ---------- */

.fx-scan-field {
  position: relative;
  flex: 1;
  min-height: 220px;
  margin: 12px calc(-1 * var(--fx-pad)) 16px;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent),
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}
.fx-scan-name {
  position: absolute;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.22);
  animation: fx-drift var(--dur) ease-in-out infinite alternate;
}
.fx-scan-name.d1 { font-size: 15px; color: rgba(255, 255, 255, 0.3); }
.fx-scan-name.d2 { font-size: 14px; }
.fx-scan-name.d3 { font-size: 12.5px; color: rgba(255, 255, 255, 0.14); }
.fx-scan-name.is-pick {
  font-size: 15.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  animation: fx-flash 0.7s ease both;
  animation-delay: calc(0.6s + var(--n) * 0.9s);
}

@keyframes fx-drift { from { transform: translateX(calc(var(--dir) * -10px)); } to { transform: translateX(calc(var(--dir) * 10px)); } }
@keyframes fx-flash {
  0% { color: rgba(255, 255, 255, 0.3); text-shadow: none; }
  40% { color: #fff7e0; text-shadow: 0 0 18px rgba(var(--fx-accent-rgb) / 0.9); }
  100% { color: var(--fx-accent); text-shadow: 0 0 12px rgba(var(--fx-accent-rgb) / 0.5); }
}

.fx-screen--practices .fx-later { animation: fx-in 0.6s ease 5.2s both; }
.fx-screen--practices .fx-actions { animation: fx-in-late 0.6s ease 5.8s both; }
.fx-search { color: var(--fx-dim); font-size: 0.95rem; margin: -6px 0 0; }

/* ---------- такая же проблема ---------- */

.fx-crowd { position: relative; width: min(300px, 80vw); margin: 8px auto 0; aspect-ratio: 1; }
.fx-crowd svg { width: 100%; height: 100%; overflow: visible; }
.fx-crowd .orbit { fill: none; stroke: rgba(255, 255, 255, 0.08); }
.fx-crowd .arc { fill: none; stroke: rgba(var(--fx-accent-rgb) / 0.55); stroke-width: 1.2; }
.fx-crowd .dot { fill: rgba(255, 255, 255, 0.18); transition: fill 0.25s; }
.fx-crowd .dot.is-lit { fill: var(--fx-accent); }
.fx-crowd .head { fill: var(--fx-accent); }
.fx-crowd .head-glow { fill: rgba(var(--fx-accent-rgb) / 0.25); }
.fx-crowd-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.fx-crowd-num b { font-family: var(--font-display); font-weight: 600; font-size: 3rem; line-height: 1; }
.fx-crowd-num span { font-size: 0.85rem; color: var(--fx-muted); margin-top: 6px; }
.fx-screen--same_problem.is-counting .fx-later { opacity: 0; }
.fx-screen--same_problem .fx-later { transition: opacity 0.6s; }
.fx-screen--same_problem .fx-h1 { margin-top: 20px; }
.fx-screen--same_problem .fx-later .fx-lead {
  text-align: right;
  text-wrap: balance;
}
.fx-screen--same_problem .fx-actions .fx-note {
  font-size: var(--fx-size-md);
  line-height: 1.6;
  color: var(--fx-muted);
  margin: 0 0 12px;
  text-align: right;
  text-wrap: balance;
}

/* ---------- рисунки из линий ---------- */

.fx-lines { margin: 8px 0 28px; position: relative; }
.fx-lines svg { width: 100%; height: auto; overflow: visible; }
.fx-lines .tangle { fill: none; stroke: rgba(255, 255, 255, 0.45); stroke-width: 0.8; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx-draw 2.2s ease forwards; }
.fx-lines .glow { fill: rgba(var(--fx-accent-rgb) / 0.12); }
.fx-lines .thread { fill: none; stroke: var(--fx-accent); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx-draw 1s ease forwards; animation-delay: calc(1.4s + var(--i) * 0.3s); }
.fx-lines .thread-end { fill: var(--fx-accent); opacity: 0; animation: fx-pop 0.4s ease forwards; animation-delay: calc(2.2s + var(--i) * 0.3s); }
.fx-lines .cause {
  position: absolute;
  left: 49%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  color: var(--fx-muted);
  opacity: 0;
  animation: fx-pop 0.5s ease forwards;
  animation-delay: calc(2.3s + var(--i) * 0.3s);
}
.fx-lines.is-clear .thread { stroke: rgba(255, 255, 255, 0.4); animation-delay: calc(0.2s + var(--i) * 0.3s); }
.fx-lines.is-clear .thread-end { fill: rgba(255, 255, 255, 0.6); animation-delay: calc(1s + var(--i) * 0.3s); }

.fx-week .track { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.fx-week .fill { stroke: var(--fx-accent); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx-draw 3s linear 0.3s forwards; }
.fx-week .day { fill: var(--fx-bg); stroke: rgba(255, 255, 255, 0.3); animation: fx-day 0.4s ease forwards; animation-delay: calc(0.4s + var(--i) * 0.42s); }
.fx-week .goal { fill: var(--fx-accent); opacity: 0; animation: fx-pop 0.5s ease 3.3s forwards; }
.fx-week .goal-ring { fill: none; stroke: rgba(var(--fx-accent-rgb) / 0.5); opacity: 0; animation: fx-pop 0.5s ease 3.5s forwards; }

@keyframes fx-draw { to { stroke-dashoffset: 0; } }
@keyframes fx-pop { from { opacity: 0; } to { opacity: 1; } }
@keyframes fx-day { to { fill: var(--fx-accent); stroke: var(--fx-accent); } }

/* ---------- анализ и выбор ---------- */

.fx-signals { position: relative; flex: 1; min-height: 60dvh; }

/* Анализ / «Собираем карту…»: звёзды на весь экран, подпись у низа. */
.fx-screen--analysis,
.fx-screen--calc {
  min-height: 100dvh;
  min-height: 100svh;
}
.fx-screen--analysis .fx-top,
.fx-screen--calc .fx-top {
  display: none;
}
.fx-screen--analysis .fx-signals,
.fx-screen--calc .fx-body--center {
  flex: 1 1 auto;
  min-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  margin-inline: calc(-1 * var(--fx-pad));
  width: calc(100% + 2 * var(--fx-pad));
}
.fx-screen--calc .fx-body--center { padding-inline: var(--fx-pad); }
.fx-screen--analysis .fx-analysis-line {
  bottom: calc(32px + env(safe-area-inset-bottom));
  padding-inline: var(--fx-pad);
}
.fx-signal {
  position: absolute;
  width: var(--s);
  height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  transition: transform 1.1s cubic-bezier(.4, 0, .2, 1), opacity 0.8s, background 0.5s, box-shadow 0.5s;
  animation: fx-float 6s ease-in-out infinite alternate;
  animation-delay: calc(var(--d) * -1s);
}
.fx-signal.is-pulled { opacity: 0; }
.fx-signal.is-chosen { opacity: 1; background: var(--fx-accent); box-shadow: 0 0 14px rgba(var(--fx-accent-rgb) / 0.8); animation: none; }
.fx-signals.is-done .fx-signal:not(.is-chosen) { opacity: 0.15; }
.fx-analysis-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18%;
  text-align: center;
  color: var(--fx-muted);
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.4s;
}
.fx-analysis-line.is-on { opacity: 1; }

@keyframes fx-float { from { transform: translate(-4px, 3px); } to { transform: translate(4px, -3px); } }

/* ---------- данные ---------- */

.fx-field {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
  color: var(--fx-text);
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 1rem;
}
.fx-field::placeholder { color: var(--fx-dim); }
.fx-field:focus { outline: none; border-color: var(--fx-accent); box-shadow: none; }

.fx-form { display: grid; gap: 12px; margin-top: 24px; }
.fx-form .fx-consent { margin-top: 6px; }
.fx-consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; line-height: 1.45; color: #d6d3d1; cursor: pointer; }
.fx-consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fx-box {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background 0.18s, border-color 0.18s;
}
.fx-consent input:checked + .fx-box { background: var(--fx-accent); border-color: var(--fx-accent); color: var(--fx-on-accent); }
.fx-consent input:focus-visible + .fx-box { outline: 2px solid var(--fx-accent); outline-offset: 2px; }
.fx-consent a { color: inherit; text-decoration: underline; text-decoration-color: rgba(var(--fx-accent-rgb) / 0.5); }
.fx-error { color: var(--fx-red); font-size: 0.9rem; margin: 0; }

/* ---------- считаем результаты ---------- */

.fx-reel {
  position: relative;
  height: 220px;
  overflow: hidden;
  margin: 24px 0 20px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.fx-reel-track { transition: transform 0.9s ease; }
.fx-test {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: var(--fx-dim);
  font-size: 0.9rem;
}
.fx-test b { font-family: var(--font-mono); font-weight: 600; color: var(--fx-muted); min-width: 70px; font-size: 0.8rem; }
.fx-test span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-test i { font-style: normal; color: var(--fx-accent); opacity: 0; }
.fx-test.is-on { border-color: rgba(var(--fx-accent-rgb) / 0.6); color: var(--fx-text); }
.fx-test.is-done i { opacity: 1; }
.fx-progress { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.fx-progress i { display: block; height: 100%; width: 0; background: var(--fx-accent); transition: width linear; }
.fx-calc-meta span { white-space: nowrap; }
.fx-calc-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 10px; font-size: 0.8rem; color: var(--fx-dim); }
.fx-calc-meta .pulse { animation: fx-pulse 1.6s ease-in-out infinite; }

@keyframes fx-pulse { 50% { opacity: 0.4; } }

/* ---------- карта ---------- */

.fx-map { margin: 4px -8px 8px; }
.fx-map svg { width: 100%; height: auto; overflow: visible; }
.fx-map .ring { fill: none; stroke: rgba(255, 255, 255, 0.07); }
.fx-map .track { stroke: rgba(255, 255, 255, 0.07); stroke-width: 2; stroke-linecap: round; }
.fx-map .ray, .fx-map .ray-glow { stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: fx-draw 0.9s ease forwards; animation-delay: calc(0.3s + var(--i) * 0.12s); }
.fx-map .ray-glow { stroke-width: 7; opacity: 0.35; filter: url(#fx-neon); }
.fx-map .tip { opacity: 0; animation: fx-pop 0.4s ease forwards; animation-delay: calc(1.1s + var(--i) * 0.12s); }
.fx-map .core { fill: var(--fx-accent); }
.fx-map .label { fill: var(--fx-muted); font-family: var(--font-body); font-size: 11px; }
.fx-map .z-green { stroke: var(--fx-green); fill: var(--fx-green); }
.fx-map .z-amber { stroke: var(--fx-amber); fill: var(--fx-amber); }
.fx-map .z-red { stroke: var(--fx-red); fill: var(--fx-red); }

.fx-focus {
  border: 1px solid rgba(var(--fx-accent-rgb) / 0.35);
  background: rgba(var(--fx-accent-rgb) / 0.06);
  border-radius: 22px;
  padding: 18px 18px 20px;
  margin: 8px 0 26px;
}
.fx-kicker { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fx-dim); margin: 0 0 8px; }
.fx-focus h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 0 0 8px; }
.fx-focus p { margin: 0 0 10px; color: var(--fx-muted); line-height: 1.55; }
.fx-focus p:last-child { margin: 0; color: var(--fx-text); }

.fx-domains { display: grid; gap: 12px; margin-bottom: 8px; }
.fx-domain { display: grid; gap: 6px; }
.fx-domain span { font-size: 0.92rem; font-weight: 600; }
.fx-bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.fx-bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; }
.fx-bar i.z-green { background: var(--fx-green); }
.fx-bar i.z-amber { background: var(--fx-amber); }
.fx-bar i.z-red { background: var(--fx-red); }

/* ---------- как устроена работа, оплата ---------- */

.fx-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.fx-points li { position: relative; padding-left: 22px; }
.fx-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--fx-accent);
  box-shadow: 0 0 10px rgba(var(--fx-accent-rgb) / 0.7);
}
.fx-points b { display: block; font-weight: 700; margin-bottom: 4px; }
.fx-points span { color: var(--fx-muted); line-height: 1.55; }

.fx-screen--paywall .fx-h1,
.fx-screen--paywall .fx-lead,
.fx-screen--paywall .fx-pay-lines,
.fx-screen--paywall .fx-pay-shout { color: #fff; }
.fx-screen--paywall .fx-actions { padding-top: 8px; }
.fx-pay-shout {
  margin: 16px 0 -4px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: center;
}

/* Плашка как карточка фокусного домена: тёмное золото, светящийся контур, пыль по краям. */
.fx-price {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 22px;
  border: 1px solid rgba(252, 211, 77, 0.68);
  padding: 18px 20px;
  margin: 28px 0 26px;
  color: #fff;
  background-color: rgba(38, 30, 16, 0.9);
  background-image:
    radial-gradient(120% 140% at 100% 0%, rgba(247, 200, 75, 0.2) 0%, transparent 55%),
    radial-gradient(80% 100% at 0% 100%, rgba(251, 191, 36, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, rgba(44, 36, 20, 0.58) 0%, rgba(34, 28, 14, 0.68) 100%);
  box-shadow:
    0 0 22px rgba(252, 211, 77, 0.62),
    0 0 44px rgba(251, 191, 36, 0.38),
    inset 0 0 0 1px rgba(254, 243, 199, 0.18);
  filter:
    drop-shadow(0 0 16px rgba(252, 211, 77, 0.52))
    drop-shadow(0 0 32px rgba(251, 191, 36, 0.34));
}
.fx-price b,
.fx-price strong { position: relative; z-index: 1; color: #fff; }
.fx-price b { font-weight: 700; }
.fx-price strong { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; white-space: nowrap; }
.fx-price::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  border: 1.5px solid rgba(251, 191, 36, 0.78);
  box-shadow:
    0 0 14px rgba(252, 211, 77, 0.42),
    inset 0 0 10px rgba(251, 191, 36, 0.14);
}
.fx-price::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  opacity: 0.78;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><circle cx='6' cy='12' r='1.05' fill='%23FCD34D' opacity='0.95'/><circle cx='20' cy='5' r='0.75' fill='%23FDE68A' opacity='0.85'/><circle cx='30' cy='22' r='0.9' fill='%23FEF3C7' opacity='0.8'/><circle cx='44' cy='8' r='0.8' fill='%23FCD34D' opacity='0.9'/><circle cx='58' cy='18' r='1' fill='%23FBBF24' opacity='0.82'/><circle cx='8' cy='38' r='0.7' fill='%23FDE68A' opacity='0.78'/><circle cx='24' cy='54' r='1.1' fill='%23FCD34D' opacity='0.95'/><circle cx='40' cy='46' r='0.85' fill='%23FEF3C7' opacity='0.82'/><circle cx='54' cy='58' r='0.95' fill='%23FCD34D' opacity='0.88'/><circle cx='64' cy='34' r='0.75' fill='%23FDE68A' opacity='0.75'/><circle cx='14' cy='62' r='0.65' fill='%23FBBF24' opacity='0.8'/><circle cx='48' cy='28' r='0.7' fill='%23FEF3C7' opacity='0.78'/><circle cx='66' cy='52' r='0.6' fill='%23FCD34D' opacity='0.72'/><circle cx='32' cy='66' r='0.55' fill='%23FDE68A' opacity='0.7'/></svg>");
  background-size: 72px 72px;
  animation: fx-dust 16s ease-in-out infinite;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.35) 62%, black 96%);
  mask-image: radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, 0.35) 62%, black 96%);
}
@keyframes fx-dust {
  0% { transform: translate(0, 0); opacity: 0.52; }
  50% { transform: translate(10px, -14px); opacity: 0.68; }
  100% { transform: translate(18px, -24px); opacity: 0.52; }
}
.fx-pay-lines { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--fx-muted); font-size: 0.95rem; }
.fx-widget { border-radius: 18px; overflow: hidden; min-height: 80px; position: relative; }
/* Держатель iframe виджета (funnel.js, holdWidget): пока грузится заранее — невидим, но в окне
   (браузеры притормаживают iframe за пределами экрана); на экране виджета лежит поверх .fx-widget. */
.fx-gc-hold { position: fixed; z-index: -1; opacity: 0; pointer-events: none; border-radius: 18px; overflow: hidden; }
.fx-gc-hold:not(.is-placed) { left: 0 !important; top: 0 !important; }
.fx-gc-hold.is-placed { position: absolute; z-index: 2; opacity: 1; pointer-events: auto; }
.fx-gc-hold iframe { display: block; width: 100%; height: 0; border: 0; overflow: hidden; }
/* Заглушка, пока виджет GetCourse (iframe с чужого домена) грузится: форма не прыгает и не «пустая» */
.fx-widget:not(.is-ready) { min-height: 400px; }
.fx-widget--contact:not(.is-ready) { min-height: 340px; }
.fx-widget:not(.is-ready)::before {
  content: "Загружаем форму…";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--fx-dim);
  font-size: 0.9rem;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.03) 70%) 0 0 / 200% 100%, #0c0b09;
  animation: fx-shimmer 1.4s linear infinite;
  pointer-events: none;
}
@keyframes fx-shimmer { to { background-position: -200% 0; } }
.fx-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fx-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.92rem;
  cursor: pointer;
}
.fx-method:has(input:checked) { border-color: var(--fx-accent); background: var(--fx-accent-soft); color: var(--fx-accent); }
.fx-method input { position: absolute; opacity: 0; }

/* ---------- прогрузка ---------- */

/* Фон заставки — цвет подложки logo.webp, иначе квадрат логотипа виден на фоне. */
html:has(.fx-screen--splash),
.fx:has(.fx-screen--splash) { background: #040302; }
.fx:has(.fx-screen--splash) .fx-stars { display: none; }
.fx-splash { align-items: center; justify-content: center; text-align: center; }
.fx-splash .fx-logo {
  animation: fx-logo 4s ease both;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 120px;
}
.fx-splash img { width: 120px; height: auto; }
.fx-splash-title {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgb(253, 230, 138);
  text-shadow: 0 0 22px rgba(247, 200, 75, 0.55);
}

@keyframes fx-logo {
  0% { opacity: 0; transform: scale(0.96); }
  25%, 75% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

.fx-contents { display: contents; }

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

@media (min-width: 640px) {
  .fx-screen { padding-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .fx *, .fx *::before, .fx *::after, .fx-screen {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
