/* Лендинг позиции (A1.1, HP-72 / HP-73).

   Редакционная вёрстка в индустриальном ключе: холодные нейтральные серые,
   уголь и сигнальный оранжевый. Оранжевый — всегда градиент с мягким
   свечением и никогда не текст: кнопки, маркеры, пройденные полосы оплаты,
   активный шаг. Шрифты: Inter Tight — текст и заголовки, Martian Mono —
   подписи и суммы, он же в широком начертании — крупные цифры.

   Движение несёт смысл, а не украшает: сумма набирается, пока растут ступени;
   счётчик зачисленного идёт вслед за лестницей; номер шага меняется, когда шаг
   на экране; телефон «подключается» к ноутбуку. Всё — только transform,
   opacity и цвет, и всё гасится `prefers-reduced-motion`.

   Состояния, которые трогает скрипт, объявлены под `.lp-js` на <body>: без
   скрипта ничего не прячется и ничего не ждёт прокрутки. */

/* Масштаб лендинга ---------------------------------------------------------- */

.landing {
  --lp-font-num: var(--font-mono);
  --header-h: 68px;
  --lp-wrap: 1320px;
  --lp-pad: clamp(20px, 4.2vw, 64px);
  --lp-display: clamp(44px, 5.6vw, 104px);
  --lp-giant: clamp(40px, 6.2vw, 116px);
  --lp-h2: clamp(34px, 3.7vw, 62px);
  --lp-h3: clamp(21px, 1.4vw, 26px);
  --lp-lead: clamp(18px, 1.25vw, 22px);
  --lp-sect: clamp(96px, 11vw, 176px);
  --lp-ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --lp-ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

html:has(body.landing) {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

@media (max-width: 720px) {
  .landing {
    --header-h: 60px;
  }
}

.landing .app-main {
  background: var(--bg);
}

.lp,
.lp-head {
  color: var(--ink);
}

.lp {
  overflow-x: clip;
}

.lp-wrap {
  width: 100%;
  max-width: calc(var(--lp-wrap) + var(--lp-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--lp-pad);
}

/* Уровни высоты ступени: доля от самой крупной выплаты (`offer.LADDER_LEVELS`).
   CSP не пускает inline-стиль, поэтому уровень приходит атрибутом. */
[data-h="1"] { --lvl: 0.05; }
[data-h="2"] { --lvl: 0.1; }
[data-h="3"] { --lvl: 0.15; }
[data-h="4"] { --lvl: 0.2; }
[data-h="5"] { --lvl: 0.25; }
[data-h="6"] { --lvl: 0.3; }
[data-h="7"] { --lvl: 0.35; }
[data-h="8"] { --lvl: 0.4; }
[data-h="9"] { --lvl: 0.45; }
[data-h="10"] { --lvl: 0.5; }
[data-h="11"] { --lvl: 0.55; }
[data-h="12"] { --lvl: 0.6; }
[data-h="13"] { --lvl: 0.65; }
[data-h="14"] { --lvl: 0.7; }
[data-h="15"] { --lvl: 0.75; }
[data-h="16"] { --lvl: 0.8; }
[data-h="17"] { --lvl: 0.85; }
[data-h="18"] { --lvl: 0.9; }
[data-h="19"] { --lvl: 0.95; }
[data-h="20"] { --lvl: 1; }

/* Общие роли текста ---------------------------------------------------------- */

.lp-cap {
  margin: 0;
  font: 500 11px/1.35 var(--font-mono);
  font-stretch: 87.5%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lp-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  font: 500 12px/1 var(--font-mono);
  font-stretch: 87.5%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lp-kicker::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: var(--glow-dot);
}

.lp-kicker__n {
  color: var(--ink-3);
}

.lp-h2 {
  margin: 0;
  font-weight: 700;
  font-size: var(--lp-h2);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lp-h3 {
  margin: 0;
  font-weight: 650;
  font-size: var(--lp-h3);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.lp-giant {
  margin: 0;
  max-width: 14ch;
  font-weight: 800;
  font-size: var(--lp-giant);
  line-height: 0.92;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.lp-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-control);
  text-underline-offset: 0.22em;
  border-radius: 2px;
  transition: text-decoration-color var(--dur-in) var(--ease-out),
    text-underline-offset var(--dur-in) var(--ease-out);
}

.lp-link:hover {
  text-decoration-color: currentColor;
  text-underline-offset: 0.3em;
}

.lp-link:focus-visible,
.lp-brand:focus-visible,
.lp-nav__link:focus-visible {
  outline: var(--ring-w) solid var(--focus);
  outline-offset: var(--ring-offset);
}

/* Шапка ----------------------------------------------------------------------- */

.lp-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--lp-ease), background-color 0.4s var(--lp-ease);
  animation: lp-drop 0.8s var(--lp-ease) both;
}

.lp-head.is-scrolled {
  border-bottom-color: var(--line);
}

/* Над тёмной секцией шапка сливается с её фоном, а не с фоном страницы. */
.lp-head[data-theme="dark"] {
  background: color-mix(in srgb, var(--surface-2) 90%, transparent);
}

.lp-head__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  max-width: calc(var(--lp-wrap) + var(--lp-pad) * 2);
  margin-inline: auto;
  padding-inline: var(--lp-pad);
}

.lp-brand {
  font-weight: 760;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  border-radius: 2px;
}

.lp-nav {
  position: relative;
  display: flex;
  gap: 2px;
  margin-inline: auto;
}

.lp-nav__link {
  position: relative;
  padding: 10px 14px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color var(--dur-in) var(--ease-out), background-color var(--dur-in) var(--ease-out);
}

.lp-nav__link:hover {
  color: var(--ink);
  background: var(--overlay-hover);
}

.lp-nav__link[aria-current="true"] {
  color: var(--ink);
}

.lp-nav__bar {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 1px;
  height: 2px;
  background: var(--grad-accent-x);
  box-shadow: 0 0 6px rgb(255 116 38 / 0.45);
  transform-origin: 0 50%;
  transform: translateX(var(--x, 0)) scaleX(var(--w, 0));
  opacity: 0;
  transition: transform 0.55s var(--lp-ease), opacity 0.3s var(--lp-ease);
}

.lp-nav.has-current .lp-nav__bar {
  opacity: 1;
}

.lp-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 42px;
  margin-left: auto;
  padding: 0 14px 0 18px;
  border: 0;
  border-radius: var(--r);
  background: var(--grad-accent);
  background-size: 160% 160%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0 0 1px rgb(232 61 12 / 0.25),
    0 4px 12px -6px rgb(255 116 38 / 0.4);
  font-size: 15px;
  font-weight: 650;
  color: var(--on-accent);
  text-decoration: none;
  transition: background-position 0.5s var(--lp-ease), box-shadow 0.3s var(--lp-ease),
    transform 0.2s var(--lp-ease);
}

.lp-nav + .lp-quiet {
  margin-left: 0;
}

.lp-quiet svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  transition: transform 0.35s var(--lp-ease);
}

.lp-quiet:hover {
  background-position: 100% 100%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 0 0 1px rgb(232 61 12 / 0.35),
    0 6px 16px -4px rgb(255 116 38 / 0.55);
}

.lp-quiet:hover svg {
  transform: translateX(3px);
}

.lp-quiet:active {
  transform: scale(0.97);
}

.lp-quiet:focus-visible {
  outline: var(--ring-w) solid var(--ink);
  outline-offset: var(--ring-offset);
}

.lp-quiet[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

@media (max-width: 960px) {
  .lp-nav {
    display: none;
  }

  .lp-nav + .lp-quiet {
    margin-left: auto;
  }
}

/* Главное действие — единственный акцент ------------------------------------ */

.lp-cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 10px 10px 28px;
  border-radius: var(--r-lg);
  background: var(--grad-accent);
  background-size: 160% 160%;
  background-position: 0% 0%;
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), inset 0 -2px 0 rgb(120 30 0 / 0.12), var(--glow);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: background-position 0.6s var(--lp-ease), transform 0.2s var(--lp-ease),
    box-shadow 0.35s var(--lp-ease);
}

/* Дыхание свечения: размытая копия градиента под кнопкой. */
.lp-cta::before {
  content: "";
  position: absolute;
  inset: 4px -4px -8px;
  z-index: -1;
  border-radius: inherit;
  background: var(--grad-accent);
  filter: blur(16px);
  opacity: 0.2;
  animation: lp-breathe 3.2s ease-in-out infinite alternate;
}

.lp-cta__meta {
  font-weight: 450;
  opacity: 0.72;
}

.lp-cta__meta::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-right: 14px;
  vertical-align: -0.15em;
  background: currentColor;
  opacity: 0.4;
}

.lp-cta__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 6px;
  border-radius: var(--r);
  background: #1a1a1a;
  color: #ffffff;
  overflow: hidden;
}

.lp-cta__arrow svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  transition: transform 0.45s var(--lp-ease);
}

.lp-cta:hover {
  background-position: 100% 100%;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), inset 0 -2px 0 rgb(120 30 0 / 0.12), var(--glow-hot);
}

.lp-cta:hover::before {
  opacity: 0.4;
}

.lp-cta:hover .lp-cta__arrow svg {
  animation: lp-arrow 0.6s var(--lp-ease);
}

.lp-cta:active {
  transform: scale(0.985);
}

.lp-cta:focus-visible {
  outline: var(--ring-w) solid var(--ink);
  outline-offset: 4px;
}

.lp-cta[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--ink-3);
  box-shadow: none;
  pointer-events: none;
}

.lp-cta[aria-disabled="true"]::before {
  display: none;
}

.lp-free {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
}

/* Баннер ---------------------------------------------------------------------- */

.lp-hero {
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding-block: clamp(32px, 5vh, 72px);
}

.lp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 112px);
}

.lp-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 0 0 clamp(20px, 3vh, 32px);
  font: 500 12px/1.3 var(--font-mono);
  font-stretch: 87.5%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  animation: lp-fade-up 0.8s 0.05s var(--lp-ease) both;
}

.lp-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: var(--glow-dot);
}

.lp-eyebrow span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 14px;
  vertical-align: 0.2em;
  border-radius: 50%;
  background: var(--line-control);
}

.lp-display {
  margin: 0;
  font-weight: 800;
  font-size: var(--lp-display);
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.lp-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}

.lp-line > span {
  display: block;
  animation: lp-rise 1.1s var(--lp-ease) both;
}

.lp-line:nth-child(2) > span {
  animation-delay: 0.12s;
}

/* Вторая строка — тот же кегль, но лёгкая и серая: контраст начертаний. */
.lp-line--soft {
  font-weight: 400;
  letter-spacing: -0.05em;
  color: var(--line-control);
}

.lp-hero__lead {
  max-width: 36em;
  margin: clamp(20px, 3vh, 32px) 0 0;
  font-size: var(--lp-lead);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  animation: lp-fade-up 0.9s 0.3s var(--lp-ease) both;
}

.lp-hero__act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: clamp(24px, 4vh, 44px);
  animation: lp-fade-up 0.9s 0.42s var(--lp-ease) both;
}

.lp-hero__act .lp-free {
  max-width: 17em;
}

.lp-signin {
  margin: clamp(18px, 3vh, 28px) 0 0;
  font-size: 15px;
  color: var(--ink-2);
  animation: lp-fade-up 0.9s 0.54s var(--lp-ease) both;
}

/* Карточка условий */

.lp-card {
  position: relative;
  padding: clamp(24px, 2.2vw, 36px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--e-2);
  animation: lp-card-in 1.1s 0.25s var(--lp-ease) both;
}

.lp-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--bg);
  font: 500 13px/1 var(--font);
  color: var(--ink);
}

.lp-badge__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: var(--glow-dot);
}

.lp-badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--grad-accent);
  animation: lp-ping 2.4s var(--lp-ease) infinite;
}

.lp-total {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 10px 0 26px;
}

.lp-total__num {
  font: 500 clamp(40px, 3.6vw, 60px) / 1 var(--lp-font-num);
  font-stretch: 112.5%;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

/* У моноширинных пробел во всю ширину знака: разряды суммы разъезжаются. */
.lp-total__num,
.lp-meter__num,
.lp-ledger__sum,
.lp-row__amt {
  word-spacing: -0.3em;
}

.lp-total__cur,
.lp-meter__cur {
  font: 500 15px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

.lp-spark {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 88px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-spark__bar {
  flex: 1;
  height: calc(var(--lvl, 1) * 100%);
  min-height: 4px;
  border-radius: 3px 3px 1px 1px;
  background: color-mix(in srgb, var(--ink) 22%, transparent);
  transform-origin: 50% 100%;
  animation: lp-grow-y 0.9s var(--lp-ease) both;
  animation-delay: calc(0.55s + var(--i, 0) * 70ms);
}

.lp-spark__bar.is-exam {
  background: var(--grad-accent-y);
  box-shadow: 0 0 10px -2px rgb(255 116 38 / 0.4);
}

.lp-spark__bar {
  position: relative;
  transition: background-color var(--dur-in) var(--ease-out);
}

.lp-spark__bar:hover {
  background: color-mix(in srgb, var(--ink) 55%, transparent);
}

.lp-spark__bar.is-exam:hover {
  background: var(--grad-accent-y);
  box-shadow: 0 0 16px 0 rgb(255 116 38 / 0.55);
}

.lp-spark__bar::after {
  content: attr(data-amount);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 6px 8px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
  font: 500 12px/1 var(--font-mono);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity var(--dur-in) var(--ease-out), transform var(--dur-in) var(--ease-out);
}

.lp-spark__bar:first-child::after {
  left: 0;
  transform: translate(0, 4px);
}

.lp-spark__bar:last-child::after {
  left: auto;
  right: 0;
  transform: translate(0, 4px);
}

.lp-spark__bar:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.lp-spark__bar:first-child:hover::after,
.lp-spark__bar:last-child:hover::after {
  transform: none;
}

.lp-spark__axis {
  display: flex;
  justify-content: space-between;
  margin: 10px 0 0;
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lp-facts,
.lp-status {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.lp-facts__row,
.lp-status__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.lp-facts__row:last-child,
.lp-status__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lp-facts dt {
  padding-top: 3px;
  font: 500 12px/1.35 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lp-facts dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.lp-facts b {
  font: 600 16px/1.3 var(--font-mono);
  color: var(--ink);
}

/* Закрытый набор: карточка статуса нейтральна — это не ошибка */

.lp-hero--closed .lp-card {
  background: var(--surface);
}

.lp-status__row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
}

.lp-status dt {
  color: var(--ink-2);
  font-size: 15px;
}

.lp-status dd {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  text-align: right;
}

.lp-hero--closed .lp-status__row {
  animation: lp-fade-up 0.7s var(--lp-ease) both;
}

.lp-hero--closed .lp-status__row:nth-child(1) { animation-delay: 0.45s; }
.lp-hero--closed .lp-status__row:nth-child(2) { animation-delay: 0.52s; }
.lp-hero--closed .lp-status__row:nth-child(3) { animation-delay: 0.59s; }
.lp-hero--closed .lp-status__row:nth-child(4) { animation-delay: 0.66s; }
.lp-hero--closed .lp-status__row:nth-child(5) { animation-delay: 0.73s; }

@media (max-width: 1040px) {
  .lp-hero {
    min-height: 0;
  }

  .lp-hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-card {
    max-width: 560px;
  }
}

@media (max-width: 560px) {
  .lp-cta {
    width: 100%;
    font-size: 17px;
    padding-left: 20px;
  }

  .lp-cta__arrow {
    margin-left: auto;
  }
}

/* Лестница оплаты: инверсия ---------------------------------------------------- */

.lp-pay {
  padding-block: var(--lp-sect);
  background: var(--surface-2);
  color: var(--ink);
  scroll-margin-top: 0;
}

.lp-pay__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 128px);
  align-items: start;
}

.lp-pay__side {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.lp-meter {
  margin: clamp(32px, 5vh, 56px) 0 clamp(28px, 4vh, 44px);
  padding: 22px 0;
  border-block: 1px solid var(--line);
}

.lp-meter__num {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 0;
  font: 500 clamp(44px, 4.6vw, 78px) / 1 var(--lp-font-num);
  font-stretch: 112.5%;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.lp-meter.is-ticking .lp-meter__num > span:first-child {
  animation: lp-tick 0.5s var(--lp-ease);
}

.lp-rules {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-rules li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  font-size: 17px;
  line-height: 1.4;
}

.lp-rules svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  stroke-width: 2.25;
  stroke: url(#grad-accent);
}

.lp-fine {
  margin: 28px 0 0;
  max-width: 34em;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
}

.lp-ledger__head {
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding-bottom: 14px;
  font: 500 12px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.lp-ledger__rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.lp-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  grid-template-areas:
    "no name amt"
    "no bar bar";
  align-items: center;
  column-gap: 16px;
  row-gap: 12px;
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--lp-ease);
}

.lp-row__no {
  grid-area: no;
  align-self: start;
  padding-top: 3px;
  font: 500 14px/1 var(--font-mono);
  color: var(--ink-3);
  transition: color 0.4s var(--lp-ease);
}

.lp-row__name {
  grid-area: name;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: 560;
}

.lp-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line-control);
  border-radius: var(--r-sm);
  font: 500 11px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.lp-row__amt {
  grid-area: amt;
  font: 500 clamp(18px, 1.35vw, 22px) / 1 var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--ink-2);
  transition: color 0.4s var(--lp-ease);
}

.lp-row__bar {
  grid-area: bar;
  display: block;
  height: 6px;
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}

.lp-row__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: color-mix(in srgb, var(--ink) 42%, transparent);
  transform-origin: 0 50%;
  transform: scaleX(var(--lvl, 1));
  transition: transform 1.2s var(--lp-ease), background-color 0.5s var(--lp-ease);
}

.lp-row.is-exam .lp-row__bar > span {
  background: color-mix(in srgb, var(--ink) 70%, transparent);
}

.lp-row:hover {
  background: linear-gradient(90deg, transparent, var(--overlay-hover) 12%, var(--overlay-hover) 88%, transparent);
}

.lp-row.is-passed .lp-row__no,
.lp-row.is-passed .lp-row__amt {
  color: var(--ink);
}

.lp-row.is-passed .lp-row__bar > span {
  background: var(--grad-accent-x);
  box-shadow: 0 0 8px rgb(255 116 38 / 0.4);
}

.lp-ledger__total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 2px solid var(--line-strong);
}

.lp-ledger__total-label {
  font-size: clamp(18px, 1.3vw, 22px);
  font-weight: 650;
}

.lp-ledger__sum {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 500 clamp(30px, 2.8vw, 48px) / 1 var(--lp-font-num);
  font-stretch: 112.5%;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 960px) {
  .lp-pay__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-pay__side {
    position: static;
  }
}

/* Как устроен отбор ------------------------------------------------------------- */

.lp-how {
  padding-block: var(--lp-sect);
}

.lp-how__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(48px, 7vw, 128px);
  align-items: start;
}

.lp-how__side {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}

.lp-odo {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: clamp(28px, 6vh, 64px);
  font: 400 clamp(96px, 11vw, 190px) / 1 var(--lp-font-num);
  font-stretch: 112.5%;
  letter-spacing: -0.045em;
}

.lp-odo__window {
  display: block;
  height: 1em;
  overflow: hidden;
}

.lp-odo__track {
  display: flex;
  flex-direction: column;
  transform: translateY(calc(var(--step, 0) * -1em));
  transition: transform 0.9s var(--lp-ease);
}

.lp-odo__track > span {
  display: block;
  height: 1em;
}

.lp-odo__of {
  padding-top: 0.12em;
  font-size: 0.2em;
  letter-spacing: 0;
  color: var(--ink-3);
}

.lp-steps {
  position: relative;
  padding-left: 56px;
}

.lp-steps__rail {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 11px;
  width: 2px;
  background: var(--line);
  overflow: hidden;
}

.lp-steps__rail > span {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, var(--o-hi), var(--o) 50%, var(--o-lo));
  transform-origin: 50% 0;
  transform: scaleY(var(--progress, 1));
}

.lp-steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-step {
  position: relative;
  padding-block: 8px clamp(56px, 9vh, 96px);
  transition: opacity 0.6s var(--lp-ease);
}

.lp-step:last-child {
  padding-bottom: 8px;
}

.lp-step::before {
  content: "";
  position: absolute;
  top: 6px;
  left: -56px;
  width: 24px;
  height: 24px;
  box-sizing: border-box;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  transition: background-color 0.4s var(--lp-ease), box-shadow 0.4s var(--lp-ease);
}

.lp-step.is-seen::before {
  border-color: transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad-accent) border-box;
}

.lp-step.is-active::before {
  border-color: transparent;
  background: var(--grad-accent) border-box;
  box-shadow: 0 0 0 6px var(--bg), 0 0 14px 3px rgb(255 116 38 / 0.4);
}

.lp-step__no {
  margin: 0 0 12px;
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lp-step__text {
  max-width: 34em;
  margin: 14px 0 0;
  font-size: var(--lp-lead);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.lp-level {
  display: inline-block;
  padding: 0 0.3em;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--grad-accent) border-box;
  box-shadow: 0 0 8px -2px rgb(255 116 38 / 0.35);
  border-radius: var(--r-sm);
  font: 500 0.92em/1.25 var(--font-mono);
  color: var(--ink);
}

.lp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.lp-chips li {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  font: 500 13px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink);
}

/* Голос: собеседник говорит, проверка слушает */

.lp-voice {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 52px;
  margin-top: 26px;
  max-width: 340px;
  filter: drop-shadow(0 0 5px rgb(255 116 38 / 0.3));
}

.lp-voice i {
  flex: 1;
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(180deg, var(--o-hi), var(--o) 50%, var(--o-lo));
  transform: scaleY(0.12);
  animation: lp-voice 1.3s var(--lp-ease-io) infinite alternate;
}

.lp-voice i:nth-child(3n) { animation-duration: 0.9s; animation-delay: -0.4s; }
.lp-voice i:nth-child(3n + 1) { animation-duration: 1.1s; animation-delay: -0.8s; }
.lp-voice i:nth-child(4n) { animation-duration: 1.5s; animation-delay: -0.2s; }
.lp-voice i:nth-child(5n + 2) { animation-duration: 0.75s; animation-delay: -0.6s; }
.lp-voice i:nth-child(7n) { animation-duration: 1.7s; animation-delay: -1s; }
.lp-voice i:nth-child(n + 13):nth-child(-n + 18) { opacity: 0.25; animation-play-state: paused; }

/* Четырнадцать дней: заполняются по одному, пока шаг на экране */

.lp-days {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 5px;
  max-width: 420px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.lp-days li {
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: transparent;
  transition: background-color 0.35s var(--lp-ease), border-color 0.35s var(--lp-ease);
}

.lp-days li:nth-child(-n + 14) {
  transition-delay: calc(var(--i, 0) * 70ms);
}

.lp-step.is-seen .lp-days li,
body:not(.lp-js) .lp-days li {
  background: var(--grad-accent);
  border-color: transparent;
  box-shadow: 0 0 6px -1px rgb(255 116 38 / 0.35);
}

@media (max-width: 960px) {
  .lp-how__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-how__side {
    position: static;
  }

  .lp-odo {
    display: none;
  }
}

/* Оборудование --------------------------------------------------------------- */

.lp-gear {
  padding-block: var(--lp-sect);
  border-top: 1px solid var(--line);
}

.lp-gear .lp-giant {
  max-width: 12ch;
}

.lp-gear__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: center;
  margin-top: clamp(40px, 6vh, 72px);
}

.lp-gear__why {
  margin: 0;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.lp-gear__alt {
  margin: 28px 0 0;
  font-size: var(--lp-lead);
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.lp-gear__alt strong {
  color: var(--ink);
  font-weight: 650;
}

.lp-art {
  margin: 0;
  color: var(--ink);
}

.lp-art svg {
  width: 100%;
  height: auto;
  stroke-width: 2.5;
  overflow: visible;
}

.lp-art__flow {
  stroke: url(#grad-accent);
  filter: drop-shadow(0 0 3px rgb(255 116 38 / 0.5));
  stroke-dasharray: 5 9;
  animation: lp-flow 0.9s linear infinite;
}

.lp-art__person {
  stroke-width: 2.5;
}

.lp-art__rec {
  fill: url(#grad-accent);
  stroke: none;
  filter: drop-shadow(0 0 4px rgb(255 116 38 / 0.55));
  animation: lp-blink 1.6s steps(1) infinite;
}

.lp-howto {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: clamp(56px, 9vh, 104px) 0 0;
  padding: 0;
  list-style: none;
}

.lp-howto__item {
  position: relative;
  padding-top: 28px;
}

.lp-howto__item::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--grad-accent-x);
  box-shadow: 0 0 8px rgb(255 116 38 / 0.35);
  transform-origin: 0 50%;
}

.lp-howto__n {
  display: block;
  margin-bottom: 18px;
  font: 400 clamp(48px, 4.4vw, 72px) / 1 var(--lp-font-num);
  font-stretch: 112.5%;
  color: var(--ink);
}

.lp-howto__item p {
  margin: 12px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
}

@media (max-width: 1100px) {
  .lp-howto {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }
}

@media (max-width: 760px) {
  .lp-gear__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lp-howto {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Честная рамка ---------------------------------------------------------------- */

.lp-filter {
  padding-block: var(--lp-sect);
  border-top: 1px solid var(--line);
}

.lp-statement {
  max-width: 22ch;
  margin: 0;
  font-weight: 700;
  font-size: clamp(34px, 4.4vw, 80px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.lp-statement .lp-w {
  transition: color 0.35s var(--lp-ease);
}

.lp-filter__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 112px);
  margin-top: clamp(56px, 9vh, 112px);
}

.lp-limits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
}

.lp-limit {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.lp-limit dd {
  margin: 14px 0 0;
}

.lp-limit__num {
  display: block;
  font: 400 clamp(96px, 10.5vw, 176px) / 0.9 var(--lp-font-num);
  font-stretch: 112.5%;
  letter-spacing: -0.045em;
}

.lp-limit__note {
  display: block;
  max-width: 20em;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink-2);
}

.lp-need {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.lp-need__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: need;
}

.lp-need__list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(20px, 1.5vw, 26px);
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.01em;
  counter-increment: need;
}

.lp-need__list li::before {
  content: counter(need, decimal-leading-zero);
  padding-top: 0.3em;
  font: 500 13px/1 var(--font-mono);
  color: var(--ink-3);
}

@media (max-width: 960px) {
  .lp-filter__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .lp-limits {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Финал и подвал ----------------------------------------------------------------- */

.lp-final {
  padding-block: var(--lp-sect);
  background: var(--surface-2);
  color: var(--ink);
}

.lp-final .lp-free {
  max-width: 24em;
}

.lp-final__in {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: end;
  gap: 40px clamp(40px, 6vw, 112px);
}

.lp-final .lp-giant {
  max-width: 11ch;
}

.lp-final__act {
  display: grid;
  justify-items: start;
  gap: 18px;
}

@media (max-width: 960px) {
  .lp-final__in {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lp-foot {
  padding-block: 32px 40px;
  border-top: 1px solid var(--line);
}

.lp-foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  font-size: 15px;
  color: var(--ink-2);
}

.lp-foot p {
  margin: 0;
}

.lp-foot__brand {
  font-weight: 700;
  color: var(--ink);
}

/* Появление при прокрутке — только со скриптом ------------------------------------ */

.lp-js [data-lp-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--lp-ease), transform 1s var(--lp-ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.lp-js [data-lp-reveal].is-in {
  opacity: 1;
  transform: none;
}

.lp-js .lp-howto__item::before {
  transform: scaleX(0);
  transition: transform 1.1s var(--lp-ease);
  transition-delay: calc(var(--i, 0) * 80ms + 0.15s);
}

.lp-js .lp-howto__item.is-in::before {
  transform: scaleX(1);
}

.lp-js .lp-row__bar > span {
  transform: scaleX(0);
}

.lp-js .lp-row.is-in .lp-row__bar > span {
  transform: scaleX(var(--lvl, 1));
}

.lp-js .lp-step {
  opacity: 0.32;
}

.lp-js .lp-step.is-seen {
  opacity: 1;
}

.lp-js .lp-step:not(.is-active) .lp-voice i {
  animation-play-state: paused;
}

.lp-js .lp-statement .lp-w {
  color: color-mix(in srgb, var(--ink) 22%, var(--bg));
}

.lp-js .lp-statement .lp-w.is-lit {
  color: var(--ink);
}

.lp-js .lp-art .lp-art__d {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--lp-ease-io);
}

.lp-js .lp-art .lp-art__d--2 {
  transition-delay: 0.35s;
}

.lp-js .lp-art .lp-art__flow,
.lp-js .lp-art .lp-art__person,
.lp-js .lp-art .lp-art__rec {
  opacity: 0;
  transition: opacity 0.6s var(--lp-ease), transform 0.9s var(--lp-ease);
}

.lp-js .lp-art .lp-art__person {
  transform: translateY(16px);
  transform-box: fill-box;
}

.lp-js .lp-art.is-in .lp-art__d {
  stroke-dashoffset: 0;
}

.lp-js .lp-art.is-in .lp-art__flow {
  opacity: 1;
  transition-delay: 1.4s;
}

.lp-js .lp-art.is-in .lp-art__person {
  opacity: 1;
  transform: none;
  transition-delay: 1.9s;
}

.lp-js .lp-art.is-in .lp-art__rec {
  opacity: 1;
  transition-delay: 2.3s;
}

/* Ключевые кадры ---------------------------------------------------------------- */

@keyframes lp-breathe {
  from { opacity: 0.12; transform: scale(0.96); }
  to { opacity: 0.32; transform: scale(1.01); }
}

@keyframes lp-rise {
  from { transform: translateY(105%); }
  to { transform: none; }
}

@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes lp-drop {
  from { opacity: 0; transform: translateY(-100%); }
  to { opacity: 1; transform: none; }
}

@keyframes lp-card-in {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes lp-grow-y {
  from { transform: scaleY(0); }
  to { transform: none; }
}

@keyframes lp-ping {
  0% { transform: scale(1); opacity: 0.45; }
  70%, 100% { transform: scale(2.8); opacity: 0; }
}

@keyframes lp-arrow {
  0% { transform: none; }
  45% { transform: translateX(150%); }
  46% { transform: translateX(-150%); }
  100% { transform: none; }
}

@keyframes lp-tick {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@keyframes lp-voice {
  0% { transform: scaleY(0.12); }
  100% { transform: scaleY(1); }
}

@keyframes lp-flow {
  to { stroke-dashoffset: -14; }
}

@keyframes lp-blink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0.15; }
}

/* Без движения ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html:has(body.landing) {
    scroll-behavior: auto;
  }

  .lp-head,
  .lp *,
  .lp *::before,
  .lp *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }

  .lp-js [data-lp-reveal] {
    opacity: 1;
    transform: none;
  }

  .lp-js .lp-row__bar > span {
    transform: scaleX(var(--lvl, 1));
  }

  .lp-js .lp-howto__item::before {
    transform: scaleX(1);
  }

  .lp-js .lp-art .lp-art__d {
    stroke-dashoffset: 0;
  }

  .lp-js .lp-art .lp-art__flow,
  .lp-js .lp-art .lp-art__person,
  .lp-js .lp-art .lp-art__rec {
    opacity: 1;
    transform: none;
  }

  .lp-voice i {
    transform: scaleY(0.5);
  }

  .lp-voice i:nth-child(odd) {
    transform: scaleY(0.8);
  }
}
