/* Публичная страница «Создание тасков».
   Макет: Figma «ZaFlag» node 219:3790 (1920×1080, первый экран).

   Файл идёт вторым после landing.css и только дополняет его:
   1. Первый экран страницы (`.lp-ct__*`) — заголовок и рамка под демо.
   2. Геометрия демо-ЛК в этой рамке: на лендинге полоса 1840 и `zoom: 1.2`,
      здесь рамка из макета 1501×748, поэтому зум обратный (см. ниже).
   3. Экраны, которых в демо на лендинге не было, — «Взять слот»
      (pages/slots.html) и карточка сабмита (pages/submission_detail.html).
      Классы и значения сняты с submit.css / base.css один в один, как это
      сделано для остальных восьми экранов в landing.css.

   Геометрия макета, из которой выведены отступы: шапка 18 + 90 = 108,
   заголовок на y=178 (высота 228), рамка на y=485. */

/* ── Первый экран ──────────────────────────────────────────────────────── */
.lp-ct {
  position: relative;
  /* 70 = 178 (верх заголовка) − 108 (низ шапки) */
  padding-top: 70px;
  padding-bottom: var(--lp-rhythm);
}
.lp-ct__inner {
  position: relative;
}

/* Чертёжная сетка. Шаг 40 = отступ полосы контента в макете, поэтому линии
   попадают в тот же ритм, что и вся страница. Держим её на грани видимости
   (2.2% белого) и гасим маской к низу — под рамкой демо фон снова чистый. */
.lp-ct__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 62%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 34%, transparent 62%);
}

.lp-ct__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 85px;
  line-height: 0.9;
  letter-spacing: -1.7px;
  text-align: center;
  color: #fff;
}

/* ── Направления вокруг заголовка ──────────────────────────────────────── */
/* Теги парят по сторонам заголовка, в поле, которое он оставляет свободным.
   Слой не перехватывает мышь целиком — кликабельны только сами чипы. */
.lp-ct__hero {
  position: relative;
}
.lp-ct__tags {
  position: absolute;
  inset: -54px 0 -46px;
  pointer-events: none;
}
.lp-ct__tag-slot {
  position: absolute;
  pointer-events: auto;
}

/* Позиции: у коротких строк заголовка («Здесь задачи», «здесь их создают»)
   поля шире, поэтому верхние и нижние теги стоят ближе к центру, а средние —
   у самых краёв полосы, где строка «не только решают —» самая длинная.

   Групп две (три тега над заголовком в разметке и четыре после него — так их
   раскладывает телефон), но `inset` у обеих одинаковый, поэтому здесь это одно
   и то же поле и картина та же, что была одним списком из семи. */
.lp-ct__tags--top .lp-ct__tag-slot:nth-child(1) { left: 5%;  top: 0; }     /* web */
.lp-ct__tags--top .lp-ct__tag-slot:nth-child(2) { left: 84%; top: 10%; }   /* pwn */
.lp-ct__tags--top .lp-ct__tag-slot:nth-child(3) { left: 1%;  top: 42%; }   /* crypto */
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(1) { left: 87%; top: 44%; } /* forensics */
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(2) { left: 7%;  top: 86%; } /* osint */
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(3) { left: 79%; top: 92%; } /* reverse */
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(4) { left: 12%; top: 66%; } /* misc */

.lp-ct__tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 16px;
  /* Полупрозрачная плашка с размытием: тег читается как отдельный слой над
     чертёжной сеткой, а не как элемент фона */
  background: rgba(23, 26, 27, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--lp-chip-border);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--lp-chip-text);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t),
    box-shadow var(--t);
}
.lp-ct__tag-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tag-color);
  box-shadow: 0 0 0 0 var(--tag-color);
  transition: box-shadow var(--t);
}
.lp-ct__tag:hover {
  background: rgba(25, 31, 32, 0.92);
  border-color: var(--tag-color);
  color: #fff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.lp-ct__tag:hover .lp-ct__tag-dot {
  box-shadow: 0 0 10px 1px var(--tag-color);
}
.lp-ct__tag:focus-visible {
  outline: none;
  border-color: var(--tag-color);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
/* Направление без свободных слотов: кликнуть можно (в демо честно покажется,
   что слотов нет), но обещать нечего — гасим до уровня подписи */
.lp-ct__tag--empty {
  color: var(--lp-eyebrow);
}
.lp-ct__tag--empty .lp-ct__tag-dot {
  opacity: 0.45;
}

/* Рамка вокруг демо тянется на всю полосу контента (1840), как блок «Платформа
   изнутри» на лендинге: и размер окна, и масштаб ЛК внутри — те же, поэтому
   ни ширину, ни zoom здесь не переопределяем, всё берётся из `.lp-inside`.
   В макете рамка ýже (1501×748) — растянуть её просил заказчик.
   78 = 485 (верх рамки в макете) − 407.5 (низ трёх строк заголовка). */
.lp-ct__frame {
  margin-top: 78px;
}

/* ── Движение первого экрана ───────────────────────────────────────────── */
/* Две разные вещи, поэтому и элемента два: обёртка тега отвечает за появление,
   сам чип — за парение. Иначе обе анимации боролись бы за transform. */
@keyframes lp-ct-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
.lp-ct__title,
.lp-ct__tag-slot,
.lp-ct__frame {
  animation: lp-ct-in 520ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
.lp-ct__tags--top .lp-ct__tag-slot:nth-child(1) { animation-delay: 160ms; }
.lp-ct__tags--top .lp-ct__tag-slot:nth-child(2) { animation-delay: 215ms; }
.lp-ct__tags--top .lp-ct__tag-slot:nth-child(3) { animation-delay: 270ms; }
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(1) { animation-delay: 325ms; }
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(2) { animation-delay: 380ms; }
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(3) { animation-delay: 435ms; }
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(4) { animation-delay: 490ms; }
.lp-ct__frame {
  animation-delay: 560ms;
}

/* Парение. Ход маленький (до 14px) и с боковым сносом, чтобы теги не качались
   строго вверх-вниз, как поплавки. Периоды намеренно не кратны друг другу —
   иначе через несколько циклов весь ряд снова пошёл бы синхронно. */
@keyframes lp-ct-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  33% {
    transform: translate3d(5px, -13px, 0);
  }
  66% {
    transform: translate3d(-4px, -6px, 0);
  }
}
.lp-ct__tag {
  animation: lp-ct-float 9s ease-in-out infinite;
}
.lp-ct__tags--top .lp-ct__tag-slot:nth-child(1) .lp-ct__tag { animation-duration: 8.6s; animation-delay: -1.2s; }
.lp-ct__tags--top .lp-ct__tag-slot:nth-child(2) .lp-ct__tag { animation-duration: 10.3s; animation-delay: -3.7s; }
.lp-ct__tags--top .lp-ct__tag-slot:nth-child(3) .lp-ct__tag { animation-duration: 9.4s; animation-delay: -6.1s; }
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(1) .lp-ct__tag { animation-duration: 11.2s; animation-delay: -2.4s; }
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(2) .lp-ct__tag { animation-duration: 8.1s; animation-delay: -5.3s; }
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(3) .lp-ct__tag { animation-duration: 10.7s; animation-delay: -0.6s; }
.lp-ct__tags--bottom .lp-ct__tag-slot:nth-child(4) .lp-ct__tag { animation-duration: 9.9s; animation-delay: -4.5s; }

/* Наведение останавливает парение: по движущейся мишени неудобно попадать */
.lp-ct__tag:hover,
.lp-ct__tag:focus-visible {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .lp-ct__title,
  .lp-ct__tag-slot,
  .lp-ct__tag,
  .lp-ct__frame {
    animation: none;
  }
}

/* ── Живые кнопки внутри демо ──────────────────────────────────────────── */
/* На лендинге все контролы экранов — макеты на span. Здесь настоящие: «Взять
   слот», кнопки карточек, «Назад», вкладки статусов, фильтры и сортировка.
   Сбрасываем ровно то, что ломает <button>: шрифт (у кнопок он системный) и
   курсор. Именно font-family, а не шорткат font — иначе слетают размер и
   насыщенность, заданные исходным классом. */
.lp-inside__btn--live,
.lp-inside__subcard-btn--live,
.lp-inside__segtab--live,
.lp-inside__dd--btn,
.lp-inside__ddopt,
.lp-inside__empty-reset,
.lp-inside__back {
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.lp-inside__btn--live:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.lp-inside__subcard-btn--live:hover,
.lp-inside__back:hover {
  background: var(--hover);
  color: var(--text);
}
.lp-inside__btn--live:focus-visible,
.lp-inside__subcard-btn--live:focus-visible,
.lp-inside__segtab--live:focus-visible,
.lp-inside__dd--btn:focus-visible,
.lp-inside__ddopt:focus-visible,
.lp-inside__empty-reset:focus-visible,
.lp-inside__back:focus-visible {
  outline: none;
  box-shadow: 0 0 0 1.5px var(--border-strong);
}

/* Вкладка каталога и сортировка — те же `.lp-inside__segtabs span` из
   landing.css, но кнопкой: повторяем геометрию, которую span получал от
   родителя (сам селектор по тегу на <button> уже не попадает). */
.lp-inside__segtab--live {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  background: none;
  border: 0;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}
.lp-inside__segtab--live:hover {
  color: var(--text);
}
.lp-inside__segtab--live.is-active,
.lp-inside__segtab--live.is-active:hover {
  background: var(--primary);
  color: var(--on-primary);
}

/* Карточка пользователя и пункты меню здесь не кнопки: уводить со страницы про
   создание тасков некуда. Снимаем и курсор, и ховер-рамку, которую
   `.lp-inside__user:hover` из landing.css вешает на кликабельный вариант. */
.lp-inside__user--static {
  cursor: default;
}
.lp-inside__user--static:hover {
  border-color: var(--border);
}

/* ── Общее для внутренних экранов ──────────────────────────────────────── */
/* Карточки — flex-колонки, а `display` из класса перебивает браузерное
   `[hidden] { display: none }`. Без этих двух правил вкладки и фильтры
   пересчитывают счётчик, но ничего не прячут (та же оговорка, что у
   `.lp-inside__content[hidden]` в landing.css). */
.lp-inside__subcard[hidden],
.lp-inside__slotcard[hidden] {
  display: none;
}

.lp-inside__content--slots {
  gap: 22px;
}
.lp-inside__content--sd {
  gap: 20px;
}

.lp-inside__crumbrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
/* base.css: .zf-back */
.lp-inside__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-control);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.lp-inside__back svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
}
/* submit.css: .zf-crumb-mono */
.lp-inside__crumbmono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
/* base.css: .zf-panel */
.lp-inside__panel {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
/* Панели «Публикация» и «История»: в submission_detail.html им проставлен
   инлайновый border-radius: 14px, «Данные таска» остаются на 10 */
.lp-inside__panel--r14 {
  border-radius: 14px;
}
.lp-inside__panel-head,
.lp-inside__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.lp-inside__panel-head::before,
.lp-inside__eyebrow::before {
  content: "●";
  font-size: 8px;
  color: var(--text-bright);
}

/* ── Экран «Взять слот» (slots.html + submit.css) ──────────────────────── */
.lp-inside__slots-headrow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.lp-inside__slots-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.22;
}
.lp-inside__slots-sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.lp-inside__balance {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 40px;
  padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.lp-inside__balance b {
  font-weight: 400;
  color: var(--text);
}
.lp-inside__balance-key {
  color: var(--text-dim);
}
.lp-inside__balance-coin {
  flex: none;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.lp-inside__slotfilters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
/* base.css: .zf-dd, .zf-dd__btn, .zf-dd__menu, .zf-dd__opt.

   Сама кнопка фильтра уже описана в landing.css как `.lp-inside__dd` (её
   рисует экран «Обучение» в демо на лендинге) — переиспользуем её вместе с
   `.lp-inside__dd-key` и `.lp-inside__dd svg`, а здесь добавляем только то,
   чего у макета-заглушки не было: обёртку под меню и сброс для <button>.
   Обёртка нарочно с другим именем: будь она тоже `.lp-inside__dd`, кнопка
   получила бы вторую подложку, а `.lp-inside__dd svg` покрасил бы галочки. */
.lp-inside__ddwrap {
  position: relative;
}
.lp-inside__dd--btn {
  color: var(--text);
}
.lp-inside__dd--btn:hover {
  border-color: rgba(255, 255, 255, 0.3);
}
/* Фильтр по ивенту шире остальных — как в slots.html, где это инлайн-стиль */
.lp-inside__dd--w200 {
  min-width: 200px;
}
.lp-inside__ddmenu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  min-width: 100%;
  padding: 4px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}
.lp-inside__ddmenu[hidden] {
  display: none;
}
.lp-inside__ddopt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  background: none;
  border: 0;
  border-radius: 7px;
  color: var(--text);
  white-space: nowrap;
}
.lp-inside__ddopt:hover {
  background: var(--hover);
}
.lp-inside__ddcheck {
  flex: none;
  width: 14px;
  color: var(--success);
  opacity: 0;
}
.lp-inside__ddcheck svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}
.lp-inside__ddopt.is-active .lp-inside__ddcheck {
  opacity: 1;
}
.lp-inside__ddchip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  background: var(--hover);
  border-radius: var(--r-chip);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
}
.lp-inside__dddot {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
}
.lp-inside__dddiff {
  font-family: var(--font-mono);
  font-size: 12px;
}
.lp-inside__segtabs--sort {
  margin-left: auto;
}

/* base.css: .zf-empty — пустая вкладка каталога и пустая выдача фильтров */
.lp-inside__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 8px 20px 20px;
  padding: 38px 20px;
  border: 1px dashed var(--border-dashed);
  border-radius: var(--r-card);
}
.lp-inside__empty[hidden] {
  display: none;
}
.lp-inside__empty-text {
  font-size: 13px;
  color: var(--text-muted);
}
.lp-inside__empty-reset {
  height: 32px;
  padding: 0 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-control);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}
.lp-inside__empty-reset:hover {
  background: var(--hover);
  color: var(--text);
}

.lp-inside__slotgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.lp-inside__slotcard {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.lp-inside__slotcard--full {
  opacity: 0.55;
}
.lp-inside__slotcard-top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.lp-inside__slotcard-diff {
  font-family: var(--font-mono);
  font-size: 11px;
}
.lp-inside__slotcard-ev {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.lp-inside__slotcard-fmt {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.lp-inside__slotcard-free {
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}
.lp-inside__slotcard-cost {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
.lp-inside__slotcard-cost b {
  font-weight: 400;
  color: var(--text-muted);
}
.lp-inside__slotcard-take {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  margin-top: 2px;
  background: var(--primary);
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--on-primary);
}

/* ── Экран сабмита (submission_detail.html + submit.css) ───────────────── */
.lp-inside__sd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.lp-inside__sd-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
}
/* В каталоге пилюля прижата к правому краю карточки, в шапке сабмита она
   стоит в общем ряду с чипами */
.lp-inside__stpill--static {
  margin-left: 0;
}
.lp-inside__sd-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.lp-inside__sd-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.lp-inside__slotline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #c4c4c8;
}
.lp-inside__slotline > span:first-child {
  color: var(--text-dim);
}
.lp-inside__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}
.lp-inside__field-label {
  margin-bottom: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.lp-inside__ro {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 12px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-control);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-inside__ro--desc {
  display: block;
  height: auto;
  min-height: 44px;
  padding: 11px 13px;
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.6;
  color: #c4c4c8;
  white-space: normal;
  overflow: visible;
}
.lp-inside__repo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.lp-inside__repo-row .lp-inside__ro {
  flex: 1;
  min-width: 200px;
}
.lp-inside__forgejo {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-control);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text);
}
.lp-inside__forgejo svg {
  width: 13px;
  height: 13px;
  stroke: var(--text-muted);
}
.lp-inside__reward-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.lp-inside__reward-line span {
  color: var(--text-dim);
}
.lp-inside__reward-line b {
  font-weight: 400;
  color: var(--text);
}

/* Публикация: до одобрения таска поля-призраки, после — форма со ссылкой */
.lp-inside__pub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lp-inside__pub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}
.lp-inside__pub-badge svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}
.lp-inside__pub-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.lp-inside__pub-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.lp-inside__pub-rows--locked {
  opacity: 0.5;
}
.lp-inside__pub-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-inside__pub-key {
  flex: none;
  width: 56px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.lp-inside__pub-ghost,
.lp-inside__pub-input,
.lp-inside__pub-ro {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-control);
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.lp-inside__pub-ghost {
  background: #141415;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
}
/* Поле формы стоит пустым, поэтому цвет — placeholder'а (base.css: --text-dim),
   а не введённой ссылки и не заблокированного поля-призрака */
.lp-inside__pub-input {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-dim);
}
.lp-inside__pub-ro {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-inside__pub-link {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-muted);
}
.lp-inside__pub-link svg {
  width: 14px;
  height: 14px;
  stroke-width: 1.6;
}
.lp-inside__pub-lockmsg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 11px 13px;
  background: #141415;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-control);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}
.lp-inside__pub-lockmsg svg {
  flex: none;
  width: 13px;
  height: 13px;
  stroke-width: 2;
}
.lp-inside__pub-text {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}
.lp-inside__pub-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.lp-inside__pub-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
}
/* Кнопка ждёт ссылку — на витрине это её постоянное состояние */
.lp-inside__pub-submit {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  background: var(--hover);
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
}

.lp-inside__sd-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.lp-inside__btn--lg {
  height: 44px;
  padding: 0 24px;
  gap: 9px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.lp-inside__btn--lg svg {
  width: 17px;
  height: 17px;
}

/* Тред ревью (partials/_review_thread.html) */
.lp-inside__thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 614px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  overflow: hidden;
}
.lp-inside__thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.lp-inside__thread-ver {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}
/* В ЛК тред скроллится сам; на витрине переписка короткая и укладывается
   целиком — вложенную полосу внутри и без того ужатого окна не заводим. */
.lp-inside__thread-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  overflow: hidden;
}
.lp-inside__thread-sys {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  text-align: center;
  color: var(--text-dim);
}
.lp-inside__thread-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-dim);
}
.lp-inside__msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lp-inside__msg--author {
  align-items: flex-end;
}
.lp-inside__msg--reviewer {
  align-items: flex-start;
}
.lp-inside__msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lp-inside__msg-name {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text);
}
.lp-inside__msg-time {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}
.lp-inside__msg-ava {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}
.lp-inside__msg-bubble {
  max-width: 88%;
  padding: 11px 13px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  line-height: 1.55;
  color: #e4e4e6;
}
.lp-inside__msg--author .lp-inside__msg-bubble {
  border-radius: 10px 10px 3px 10px;
}
.lp-inside__msg--reviewer .lp-inside__msg-bubble {
  border-radius: 10px 10px 10px 3px;
}
/* Тонировки сообщений по типу решения ревьювера здесь нет намеренно: в submit.css
   правила `.zf-msg--fixes/--approved` есть, но `_review_thread.html` их не ставит,
   так что в живом ЛК любое сообщение ревьювера — нейтральный пузырь. */
.lp-inside__thread-accepted {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 14px;
  background: rgba(62, 207, 142, 0.08);
  border: 1px solid rgba(62, 207, 142, 0.4);
  border-radius: 12px;
  text-align: center;
}
.lp-inside__thread-accepted-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(62, 207, 142, 0.16);
  border-radius: 50%;
  color: var(--success);
}
.lp-inside__thread-accepted-icon svg {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}
.lp-inside__thread-accepted-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--success);
}
.lp-inside__thread-accepted-sub {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-muted);
}
.lp-inside__thread-accepted-sub .good {
  color: var(--success);
}
.lp-inside__thread-accepted-sub .white {
  color: var(--text);
}
.lp-inside__thread-foot {
  margin-top: auto;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
}
.lp-inside__composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.lp-inside__composer-field {
  flex: 1;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 13px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.lp-inside__composer-send {
  flex: none;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  background: #f5f5f6;
  border: 1px solid #f5f5f6;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #111112;
}
.lp-inside__thread-hint {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

/* История (таймлайн) */
.lp-inside__timeline {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}
.lp-inside__tl {
  display: flex;
  gap: 12px;
}
.lp-inside__tl-rail {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lp-inside__tl-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 50%;
}
.lp-inside__tl-line {
  flex: 1;
  width: 1px;
  margin: 4px 0;
  background: rgba(255, 255, 255, 0.1);
}
.lp-inside__tl-body {
  padding-bottom: 16px;
}
.lp-inside__tl-label {
  font-size: 13px;
  line-height: 1.45;
  color: #c4c4c8;
}
.lp-inside__tl-label--now {
  color: var(--text);
}
.lp-inside__tl-time {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
}

/* ── «Кому зайдёт» ─────────────────────────────────────────────────────── */
/* Две карточки в ряд по полосе контента (node 233:4123). Каждую задаёт крупная
   обложка-иллюстрация, под ней заголовок и описание — те же кегли, что у
   карточек лендинга (h3 40 + body 22). Поля карточки 28.5 из макета. */
.lp-ct__aud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--lp-gap);
}

.lp-ct__audcard {
  padding: 28.5px;
  background: var(--lp-card);
  border: 1.5px solid var(--lp-card-border);
  border-radius: 15px;
  overflow: hidden;
}

/* Обложка 850×400 в макете; здесь тянется на всю ширину карточки за вычетом
   полей, высота фиксирована — картинка кадрируется по object-fit */
.lp-ct__audmedia {
  height: 400px;
  border-radius: 15px;
  overflow: hidden;
}
.lp-ct__audmedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Между обложкой и текстом 40 (468.5 − 28.5 − 400), внутри блока заголовок и
   описание разведены на 20 */
.lp-ct__audtext {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}
.lp-ct__audtitle {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--lp-h3);
  line-height: 1.05;
  letter-spacing: -0.8px;
  color: var(--lp-title);
}
.lp-ct__auddesc {
  margin: 0;
  font-weight: 400;
  font-size: var(--lp-body-size);
  line-height: 1.05;
  letter-spacing: -0.44px;
  color: var(--lp-body);
}

/* ── «Правила»: free-points, рейтинг и КБ-коины ───────────────────────── */
/* Контент блока взят с zaflag.ru, но композиция продолжает эту страницу:
   графитовые плоскости, крупный Unbounded и моноширинные системные значения.
   Единственный намеренно громкий элемент — живая формула в калькуляторе. */
.lp-ct__rules {
  scroll-margin-top: 36px;
}

.lp-ct__rulesintro {
  display: block;
}
.lp-ct__rulesintro .lp-h2 {
  margin-bottom: 0;
  white-space: nowrap;
}

/* Три числа — не декоративная статистика, а оглавление механики ниже:
   free-points, звания и пять диапазонов множителя рейтинга. */
.lp-ct__rule-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--lp-gap);
  margin: 72px 0 0;
}
.lp-ct__rule-stat {
  position: relative;
  min-height: 210px;
  padding: 28px;
  background: var(--lp-card);
  border: 1.5px solid var(--lp-card-border);
  border-radius: 15px;
  overflow: hidden;
}
.lp-ct__rule-stat dt {
  position: relative;
  z-index: 1;
  max-width: 220px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lp-eyebrow);
}
.lp-ct__rule-stat dd {
  position: absolute;
  left: 28px;
  bottom: 16px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 132px;
  line-height: 1;
  letter-spacing: -6px;
  color: rgba(255, 255, 255, 0.9);
}

.lp-ct__rulegrid {
  display: grid;
  gap: var(--lp-gap);
}
.lp-ct__rulegrid--explain {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--lp-gap);
}
.lp-ct__rulegrid--tables {
  grid-template-columns: minmax(0, 1.25fr) minmax(430px, 0.75fr);
  margin-top: var(--lp-gap);
}

.lp-ct__rulecard {
  min-width: 0;
  padding: 40px;
  background: var(--lp-card);
  border: 1.5px solid var(--lp-card-border);
  border-radius: 15px;
}
.lp-ct__rulecard-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.lp-ct__rulecard-index {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-eyebrow);
}
.lp-ct__rulecard-title,
.lp-ct__table-title,
.lp-ct__calc-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  color: var(--lp-title);
}
.lp-ct__rulecard-title {
  font-size: 38px;
  letter-spacing: -0.76px;
}

.lp-ct__rule-steps {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--lp-card-border);
}
.lp-ct__rule-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--lp-card-border);
}
.lp-ct__rule-stepnum {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--lp-chip-border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lp-chip-text);
}
.lp-ct__rule-steps p {
  align-self: center;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--lp-body);
}
.lp-ct__rule-note {
  margin-top: 28px;
  padding: 26px;
  background: transparent;
  border: 1px solid rgba(0, 255, 64, 0.2);
  border-radius: 12px;
}
.lp-ct__rule-note-label {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0, 255, 64, 0.72);
}
.lp-ct__rule-note p {
  position: relative;
  margin: 0;
  padding-left: 26px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--lp-body);
}
.lp-ct__rule-note p + p {
  margin-top: 12px;
}
.lp-ct__rule-note p::before {
  content: "—";
  position: absolute;
  left: 0;
  color: rgba(0, 255, 64, 0.72);
}

/* Формула собрана как трасса данных: каждый множитель — отдельный узел,
   а КБ — её единственная цветная развязка. */
.lp-ct__rulecard--formula {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.lp-ct__formula {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 70px;
}
.lp-ct__formula-token {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 20px;
  background: var(--lp-chip);
  border: 1px solid var(--lp-chip-border);
  border-radius: 11px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--lp-chip-text);
}
.lp-ct__formula-token--result {
  background: rgba(0, 255, 64, 0.07);
  border-color: rgba(0, 255, 64, 0.32);
  color: rgba(0, 255, 64, 0.9);
}
.lp-ct__formula i {
  font-family: var(--font-mono);
  font-size: 18px;
  font-style: normal;
  color: var(--lp-eyebrow);
}
.lp-ct__formula-copy {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 38px 0 0;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.2px;
  color: var(--lp-body);
}
.lp-ct__calc-jump {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 60px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--lp-chip-text);
  transition: color var(--t);
}
.lp-ct__calc-jump:hover {
  color: #fff;
}
.lp-ct__calc-jump:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
  border-radius: 4px;
}
.lp-ct__calc-jump-dot,
.lp-ct__calc-live i {
  flex: none;
  width: 8px;
  height: 8px;
  background: rgba(0, 255, 64, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 255, 64, 0.52);
}

.lp-ct__reward-gif {
  position: absolute;
  right: -12px;
  bottom: -18px;
  z-index: 0;
  width: min(440px, 52%);
  height: auto;
  mix-blend-mode: screen;
  pointer-events: none;
  user-select: none;
}

/* ── Калькулятор ──────────────────────────────────────────────────────── */
.lp-ct__calc {
  scroll-margin-top: 28px;
  margin-top: var(--lp-gap);
  background: var(--lp-card);
  border: 1.5px solid var(--lp-card-border);
  border-radius: 15px;
  overflow: hidden;
}
.lp-ct__calc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 126px;
  padding: 28px 40px;
  border-bottom: 1px solid var(--lp-card-border);
}
.lp-ct__calc-head > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lp-ct__calc-title {
  font-size: 34px;
  letter-spacing: -0.68px;
}
.lp-ct__calc-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--lp-chip-text);
}
.lp-ct__calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(430px, 0.7fr);
}
.lp-ct__calc-controls {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-width: 0;
  padding: 40px;
}
.lp-ct__calc-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.lp-ct__calc-field legend,
.lp-ct__calc-fieldhead label {
  margin: 0 0 14px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-eyebrow);
}
.lp-ct__calc-field legend span {
  color: rgba(136, 141, 150, 0.55);
}
.lp-ct__calc-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.lp-ct__calc-options--categories {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.lp-ct__calc-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  height: 54px;
  padding: 0 14px;
  background: var(--lp-chip);
  border: 1px solid var(--lp-chip-border);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--lp-chip-text);
  cursor: pointer;
  transition:
    background var(--t),
    border-color var(--t),
    color var(--t),
    transform var(--t);
}
.lp-ct__calc-option > i {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--option-color, rgba(255,255,255,0.7));
  border-radius: 50%;
}
.lp-ct__calc-option > span {
  margin-left: auto;
  font-size: 11px;
  color: var(--lp-eyebrow);
}
.lp-ct__calc-option:hover {
  color: #fff;
  border-color: var(--option-color, rgba(255,255,255,0.55));
  transform: translateY(-1px);
}
.lp-ct__calc-option.is-active {
  background: color-mix(in srgb, var(--option-color, #fff) 12%, var(--lp-chip));
  border-color: var(--option-color, rgba(255,255,255,0.55));
  color: #fff;
}
.lp-ct__calc-option:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.lp-ct__calc-option--fp {
  justify-content: center;
  --option-color: rgba(255,255,255,0.72);
  font-size: 15px;
}
.lp-ct__calc-option--fp.is-active {
  background: #fff;
  border-color: #fff;
  color: #171719;
}

.lp-ct__calc-fieldhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
}
.lp-ct__calc-fieldhead label {
  margin: 0;
}
.lp-ct__calc-fieldhead output {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fff;
}
.lp-ct__rating {
  --rating-progress: 60%;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}
.lp-ct__rating::-webkit-slider-runnable-track {
  height: 4px;
  background:
    linear-gradient(90deg, #fff var(--rating-progress), var(--lp-chip-border) 0);
  border-radius: 10px;
}
.lp-ct__rating::-moz-range-track {
  height: 4px;
  background:
    linear-gradient(90deg, #fff var(--rating-progress), var(--lp-chip-border) 0);
  border-radius: 10px;
}
.lp-ct__rating::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -8px;
  background: #fff;
  border: 4px solid var(--lp-card);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #fff;
  appearance: none;
}
.lp-ct__rating::-moz-range-thumb {
  width: 13px;
  height: 13px;
  background: #fff;
  border: 4px solid var(--lp-card);
  border-radius: 50%;
  box-shadow: 0 0 0 1px #fff;
}
.lp-ct__rating:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
  border-radius: 4px;
}
.lp-ct__rating-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(136, 141, 150, 0.65);
}

.lp-ct__calc-result {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 610px;
  padding: 46px;
  background:
    radial-gradient(circle at 80% 14%, rgba(0, 255, 64, 0.07), transparent 30%),
    #0b0e0f;
  border-left: 1px solid var(--lp-card-border);
  color: #fff;
  overflow: hidden;
}
.lp-ct__calc-result-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-eyebrow);
}
.lp-ct__calc-result > [data-ct-result-paid],
.lp-ct__calc-result > [data-ct-result-free] {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.lp-ct__calc-result > [hidden] {
  display: none;
}
.lp-ct__calc-result-main {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 76px;
}
.lp-ct__calc-result-main strong {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(100px, 8vw, 154px);
  line-height: 0.78;
  letter-spacing: -8px;
  color: #fff;
}
.lp-ct__calc-result-main > span {
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 22px;
  color: rgba(0, 255, 64, 0.9);
}
.lp-ct__calc-equation {
  display: block;
  margin-top: 66px;
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1.45;
  color: #fff;
}
.lp-ct__calc-equation-label {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.55;
  color: var(--lp-eyebrow);
}
.lp-ct__calc-rank {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 38px;
  padding: 9px 13px;
  background: rgba(169, 139, 217, 0.13);
  border: 1px solid rgba(169, 139, 217, 0.4);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a98bd9;
}
.lp-ct__calc-rank[data-rank="noob"] {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  color: #a3a3a8;
}
.lp-ct__calc-rank[data-rank="hacker"] {
  background: rgba(201, 179, 126, 0.13);
  border-color: rgba(201, 179, 126, 0.4);
  color: #c9b37e;
}
.lp-ct__calc-result.is-updating [data-ct-result-paid],
.lp-ct__calc-result.is-updating [data-ct-result-free] {
  animation: lp-ct-result-in 240ms ease-out both;
}
@keyframes lp-ct-result-in {
  from {
    opacity: 0.45;
    transform: translateY(5px);
  }
}
.lp-ct__calc-free {
  display: block;
  max-width: 100%;
  margin-top: 94px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 4.2vw, 78px);
  line-height: 0.92;
  letter-spacing: -2px;
  color: #fff;
  white-space: nowrap;
}
.lp-ct__calc-free-copy {
  display: block;
  max-width: 520px;
  margin-top: 58px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--lp-body);
}
.lp-ct__calc-free-copy b {
  font-family: var(--font-mono);
  font-weight: 400;
  color: rgba(0, 255, 64, 0.9);
}
.lp-ct__calc-result [data-ct-result-free] .lp-ct__calc-equation-label {
  margin-top: auto;
  margin-bottom: 38px;
  color: rgba(0, 255, 64, 0.65);
}

/* ── Справочные таблицы ───────────────────────────────────────────────── */
.lp-ct__rulecard--table {
  padding: 0;
  overflow: hidden;
}
.lp-ct__table-title {
  padding: 34px 38px 28px;
  font-size: 28px;
  letter-spacing: -0.56px;
}
.lp-ct__table-scroll {
  overflow-x: auto;
}
.lp-ct__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.lp-ct__table th,
.lp-ct__table td {
  padding: 19px 38px;
  border-top: 1px solid var(--lp-card-border);
  text-align: left;
  vertical-align: middle;
}
.lp-ct__table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--lp-eyebrow);
}
.lp-ct__table td {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.5;
  color: var(--lp-body);
}
.lp-ct__table th:first-child,
.lp-ct__table td:first-child {
  width: 22%;
}
.lp-ct__table th:nth-child(2),
.lp-ct__table td:nth-child(2) {
  width: 22%;
}
.lp-ct__table--compact th:first-child,
.lp-ct__table--compact td:first-child {
  width: 48%;
}
.lp-ct__table--compact th:nth-child(2),
.lp-ct__table--compact td:nth-child(2) {
  width: auto;
}
.lp-ct__table-accent {
  color: rgba(0, 255, 64, 0.72) !important;
}
.lp-ct__table .is-positive {
  color: #58a97f;
}
.lp-ct__table .is-negative {
  color: #d97a8e;
}
.lp-ct__table-note {
  margin: 0;
  padding: 22px 38px 30px;
  border-top: 1px solid var(--lp-card-border);
  font-size: 15px;
  line-height: 1.55;
  color: var(--lp-eyebrow);
}
.lp-ct__rank,
.lp-ct__network {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--lp-chip-border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}
.lp-ct__network {
  color: var(--lp-chip-text);
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
/* Вопросы — самостоятельные карточки, а не таблица с разделителями:
   так блок продолжает ритм секций выше и не возвращает убранные линии. */
.lp-ct__faq {
  scroll-margin-top: 36px;
}
.lp-ct__faq-list {
  display: grid;
  gap: 12px;
}
.lp-ct__faq-item {
  background: var(--lp-card);
  border: 1.5px solid var(--lp-card-border);
  border-radius: 15px;
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.lp-ct__faq-item.is-open {
  border-color: rgba(255, 255, 255, 0.16);
}
.lp-ct__faq-heading {
  margin: 0;
}
.lp-ct__faq-question {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 24px;
  width: 100%;
  min-height: 126px;
  padding: 28px 38px;
  background: transparent;
  border: 0;
  text-align: left;
  color: #fff;
  cursor: pointer;
  transition: background var(--t);
}
.lp-ct__faq-question:hover {
  background: rgba(255, 255, 255, 0.018);
}
.lp-ct__faq-item.is-open .lp-ct__faq-question:hover {
  background: transparent;
}
.lp-ct__faq-question:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
  border-radius: 15px;
}
.lp-ct__faq-num {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--lp-eyebrow);
}
.lp-ct__faq-question-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.64px;
  color: var(--lp-title);
}

/* Скруглённый квадрат повторяет контролы калькулятора. Внутри только две
   линии: в открытом состоянии вертикальная исчезает, плюс становится минусом. */
.lp-ct__faq-toggle {
  position: relative;
  display: block;
  width: 46px;
  height: 46px;
  border: 1px solid var(--lp-chip-border);
  border-radius: 10px;
  justify-self: end;
}
.lp-ct__faq-toggle::before,
.lp-ct__faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1px;
  background: var(--lp-chip-text);
  transform: translate(-50%, -50%);
  transition: opacity var(--t), transform var(--t), background var(--t);
}
.lp-ct__faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.lp-ct__faq-item.is-open .lp-ct__faq-toggle::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(0);
}
.lp-ct__faq-answer {
  padding: 0 110px 38px 136px;
}
.lp-ct__faq-answer[hidden] {
  display: none;
}
.lp-ct__faq-answer p {
  max-width: 1120px;
  margin: 0;
  font-size: 21px;
  line-height: 1.55;
  letter-spacing: -0.21px;
  color: var(--lp-body);
}
.lp-ct__faq-answer a {
  color: rgba(0, 255, 64, 0.78);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 64, 0.36);
  text-underline-offset: 4px;
  transition: color var(--t), text-decoration-color var(--t);
}
.lp-ct__faq-answer a:hover {
  color: var(--lp-green);
  text-decoration-color: var(--lp-green);
}
.lp-ct__faq-answer a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 1280px) {
  .lp-ct__rulegrid--explain,
  .lp-ct__rulegrid--tables {
    grid-template-columns: 1fr;
  }
  .lp-ct__rulecard--formula {
    min-height: 620px;
  }
  .lp-ct__calc-body {
    grid-template-columns: 1fr;
  }
  .lp-ct__calc-result {
    min-height: 520px;
    border-top: 1px solid var(--lp-card-border);
    border-left: 0;
  }
  .lp-ct__calc-options--categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lp-ct__faq-answer {
    padding-right: 86px;
  }
}

/* ── Телефон ───────────────────────────────────────────────────────────── */
/* Ступень та же, что у лендинга (landing.css, 720): на ней переключаются
   --lp-* — отступы, кегли и ритм, — и если ломать эту страницу на своей
   ширине, между 720 и ней страница живёт с мобильной типографикой в
   десктопной раскладке. Всё, что ниже, — поправки поверх новых переменных. */
@media (max-width: 720px) {
  /* ── Первый экран ─────────────────────────────────────────────────────── */
  /* Демо-ЛК с телефона убираем совсем. На лендинге такой же блок остаётся и
     просто уходит под обрез карточки — там он витрина, «как выглядит ЛК». Здесь
     он рабочий: по тегам направлений в нём открывают «Взять слот», щёлкают
     фильтры и разворачивают карточку сабмита. В кадр шириной 358 из 1533 не
     попадает ни один из этих контролов — остаётся обрезанный сайдбар, который
     на странице про создание тасков не объясняет ничего. */
  .lp-ct__frame {
    display: none;
  }

  /* Без рамки первому экрану нужна собственная мера, иначе он схлопывается до
     высоты трёх строк заголовка. 70vh — экран, который читается целиком и при
     этом честно показывает краем, что страница продолжается. */
  /* Полосу контента `.lp-wrap` задаёт шириной, а не полями, поэтому здесь ей
     ничего не переопределяем: `width: 100%` на этом же элементе съел бы поля
     страницы, и теги вставали бы вплотную к краям экрана. */
  .lp-ct {
    display: flex;
    align-items: center;
    min-height: 70vh;
    padding-top: 24px;
  }
  /* Клетка идёт на всю высоту экрана без затухания: у неё теперь есть край —
     низ этих 70vh, — и растворять её на середине больше не нужно. Так первый
     экран читается как лист миллиметровки, на котором набран заголовок. */
  .lp-ct__grid {
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Переносы в заголовке расставлены руками и держат его смысл («не только
     решают» / «здесь их создают»), поэтому кегль подбираем под них, а не
     наоборот. Самая длинная строка набирается в Unbounded за 10.93 кегля —
     делим полосу на 11.2 (те же плюс 2% запаса на округление). Полоса = окно
     минус отступы страницы (16 с двух сторон). Потолок 44 — чтобы у верхней
     границы ступени заголовок не выпрыгивал из своей роли. */
  .lp-ct__title {
    font-size: min(44px, calc((100vw - 32px) / 11.2));
    letter-spacing: -0.02em;
  }

  /* Теги выходят из парящего слоя в поток и встают двумя рядами вокруг
     заголовка — три сверху, четыре снизу (деление задано разметкой). Парение
     остаётся: transform не занимает места в потоке, поэтому ряды стоят на
     месте, а чипы в них живут теми же периодами, что на широком экране.
     Кликать по ним некуда — демо, которое они открывали, скрыто (клик гасит и
     JS, см. create-tasks.js), поэтому ни курсора, ни ховера. */
  .lp-ct__tags {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  /* 28, а не 20: ход парения — 13px вверх, и на меньшем зазоре чип в верхней
     фазе подходил к строке заголовка вплотную */
  .lp-ct__tags--top {
    margin-bottom: 28px;
  }
  .lp-ct__tags--bottom {
    margin-top: 28px;
  }
  .lp-ct__tag-slot {
    position: static;
    pointer-events: none;
  }
  /* Кегль — предел, при котором четыре чипа нижнего ряда ещё стоят в полосе
     358 одной строкой (у них уходит ~355). Крупнее — и «misc» переносится на
     свою строку, ломая пару рядов вокруг заголовка. */
  .lp-ct__tag {
    height: 36px;
    padding: 0 10px;
    gap: 7px;
    font-size: 12px;
    box-shadow: none;
    cursor: default;
  }
  .lp-ct__tag-dot {
    width: 7px;
    height: 7px;
  }

  /* ── «Кому зайдёт» ────────────────────────────────────────────────────── */
  /* Две карточки в ряд дают колонку в 171px, в которой заголовок «Для всех
     авторов» ложится в три строки по слову. Ставим их друг под друга; обложке
     возвращаем родную пропорцию 850×400 вместо фиксированной высоты. */
  .lp-ct__aud {
    grid-template-columns: minmax(0, 1fr);
  }
  .lp-ct__audcard {
    padding: 16px;
  }
  .lp-ct__audmedia {
    height: auto;
    aspect-ratio: 850 / 400;
    border-radius: 12px;
  }
  .lp-ct__audtext {
    gap: 14px;
    margin-top: 22px;
  }

  /* ── Правила ──────────────────────────────────────────────────────────── */
  .lp-ct__rulesintro .lp-h2 {
    white-space: normal;
  }
  .lp-ct__rule-stats {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
  /* Число выходит из-под абсолюта в поток: в узкой карточке оно налезало на
     подпись («СТАРТОВЫХ FREE-POINTS» шла прямо по цифре) */
  .lp-ct__rule-stat {
    min-height: 0;
    padding: 20px;
  }
  .lp-ct__rule-stat dt {
    max-width: none;
    font-size: 12px;
  }
  .lp-ct__rule-stat dd {
    position: static;
    margin-top: 6px;
    font-size: 76px;
    letter-spacing: -3px;
  }
  .lp-ct__rulecard {
    padding: 20px;
  }
  .lp-ct__rulecard-title {
    font-size: 24px;
  }
  .lp-ct__rulecard-head {
    gap: 14px;
  }
  .lp-ct__rule-steps {
    margin-top: 26px;
  }
  .lp-ct__rule-steps li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
  }
  .lp-ct__rule-stepnum {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 12px;
  }
  .lp-ct__rule-steps p {
    font-size: 15px;
    line-height: 1.45;
  }
  .lp-ct__rule-note {
    margin-top: 22px;
    padding: 18px;
  }
  .lp-ct__rule-note p {
    padding-left: 20px;
    font-size: 15px;
    line-height: 1.45;
  }
  /* Формула остаётся строкой с переносом, как на широком экране: сетка в три
     колонки ставила узлы и знаки в один и тот же ряд, и «× сложность ×»
     оказывалось строкой из двух умножений. Узлы просто мельчают и переносятся
     по месту — знак всегда остаётся при своей паре. */
  .lp-ct__formula {
    gap: 8px;
    margin-top: 34px;
  }
  .lp-ct__formula-token {
    min-height: 48px;
    padding: 0 10px;
    font-size: 13px;
  }
  .lp-ct__formula i {
    font-size: 15px;
  }
  .lp-ct__formula-copy {
    margin-top: 26px;
    font-size: 15px;
    line-height: 1.45;
  }
  .lp-ct__calc-jump {
    padding-top: 34px;
    font-size: 13px;
  }
  /* Карточку больше не растягиваем: высоту задаёт её же содержимое, а гифка
     садится в нижний угол поверх него — как на широком экране */
  .lp-ct__rulecard--formula {
    min-height: 0;
    padding-bottom: 150px;
  }
  .lp-ct__reward-gif {
    right: -20px;
    bottom: -10px;
    width: 62%;
    opacity: 0.78;
  }
  .lp-ct__calc-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 20px;
  }
  .lp-ct__calc-title {
    font-size: 24px;
  }
  .lp-ct__calc-live {
    align-self: flex-end;
    font-size: 13px;
  }
  .lp-ct__calc-controls,
  .lp-ct__calc-result {
    padding: 20px;
  }
  .lp-ct__calc-controls {
    gap: 26px;
  }
  .lp-ct__calc-options--categories,
  .lp-ct__calc-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-ct__calc-options--fp {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lp-ct__calc-fieldhead {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  /* Панель результата держит свою высоту сама: заголовок, число, уравнение и
     звание — блоков мало, и подпирать их пустотой в 470px не за чем */
  .lp-ct__calc-result {
    min-height: 0;
    border-top: 1px solid var(--lp-card-border);
  }
  .lp-ct__calc-result-main {
    margin-top: 34px;
  }
  .lp-ct__calc-result-main strong {
    font-size: 76px;
    letter-spacing: -4px;
  }
  .lp-ct__calc-result-main > span {
    font-size: 17px;
  }
  .lp-ct__calc-equation {
    margin-top: 34px;
    font-size: 14px;
  }
  .lp-ct__calc-rank {
    margin-top: 34px;
    margin-bottom: 0;
  }
  .lp-ct__calc-free {
    margin-top: 40px;
    font-size: clamp(30px, 9vw, 44px);
  }
  .lp-ct__calc-free-copy {
    margin-top: 26px;
    font-size: 15px;
    line-height: 1.45;
  }
  .lp-ct__calc-result [data-ct-result-free] .lp-ct__calc-equation-label {
    margin-top: 34px;
    margin-bottom: 0;
  }

  /* ── Таблицы ──────────────────────────────────────────────────────────── */
  /* Колонки не ужимаем: в них моноширинные значения и цветные плашки званий,
     которые от сжатия ломаются в два этажа. Таблица уезжает вбок внутри своей
     `.lp-ct__table-scroll` — карточка при этом остаётся в полосе страницы. */
  /* Поля карточки-таблицы держат сами ячейки (иначе таблица не доедет до её
     краёв), а `.lp-ct__rulecard` выше в этой же ступени успел выдать ей общие
     20 — возвращаем ноль */
  .lp-ct__rulecard--table {
    padding: 0;
  }
  .lp-ct__table {
    min-width: 620px;
  }
  .lp-ct__table--compact {
    min-width: 480px;
  }
  .lp-ct__table-title {
    padding: 20px 20px 16px;
    font-size: 20px;
  }
  .lp-ct__table th,
  .lp-ct__table td,
  .lp-ct__table-note {
    padding-right: 20px;
    padding-left: 20px;
  }

  /* ── FAQ ──────────────────────────────────────────────────────────────── */
  .lp-ct__faq-question {
    grid-template-columns: 30px minmax(0, 1fr) 34px;
    gap: 10px;
    min-height: 0;
    padding: 18px 16px;
  }
  .lp-ct__faq-num {
    font-size: 11px;
  }
  .lp-ct__faq-question-text {
    font-size: 17px;
    letter-spacing: -0.34px;
  }
  .lp-ct__faq-toggle {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  /* Ответ выровнен по тексту вопроса: 16 (поле) + 30 (номер) + 10 (зазор) */
  .lp-ct__faq-answer {
    padding: 0 16px 20px 56px;
  }
  .lp-ct__faq-answer p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-ct__calc-result.is-updating [data-ct-result-paid],
  .lp-ct__calc-result.is-updating [data-ct-result-free] {
    animation: none;
  }
}
