/* ── Фирменный стиль Ночлежки ───────────────────────────────────────────────
   Палитра из брендбука, ровно четыре цвета:
   солнечный жёлтый #F8EB20 · зелёный #629F42 · белый #FFFFFF · тёмно-серый #141414
   Зелёный по брендбуку — цвет ховера на сайте, так он здесь и используется.
   Синего и оранжевого в палитре нет, поэтому их нет и на странице.
   Иней белый: это и физически верно, и не выводит нас за палитру. */

@font-face {
  font-family: 'Nochlezhka';
  src: url('fonts/Nochlezhka.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Альтернативные заглавные — брендбук предлагает их «для передачи настроения». */
@font-face {
  font-family: 'Nochlezhka Alt';
  src: url('fonts/Nochlezhka_set.01.woff') format('woff');
  font-weight: 400;
  font-display: swap;
}

:root {
  --yellow: #F8EB20;
  --green: #629F42;
  --white: #FFFFFF;
  --black: #141414;

  --bg: var(--black);
  --ink: var(--white);
  --ink-dim: rgba(255, 255, 255, .62);
  --line: rgba(255, 255, 255, .16);

  --wrap: 1140px;
  --gut: clamp(20px, 4vw, 48px);
  --page-cold: .2;
}

* { box-sizing: border-box; }

/* Атрибут hidden задаётся в UA-стилях как display:none, и любое авторское
   display:flex его перебивает. У нас так спрятаны заглушка рендера и строка
   распознанных цифр — обе оставались видимыми. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.62 'Nunito Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.frozen { overflow: hidden; height: 100vh; }

/* ── типографика ───────────────────────────────────────────────────────────
   Заголовки — Nochlezhka, всегда капсом. Наборный текст — Nunito Sans.
   Иерархия из брендбука: основной текст ≈ 1/4 кегля заголовка. */

h1, h2, h3, .gate-temp, .raised-num, .num b, .tier b {
  font-family: 'Nochlezhka', system-ui, sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: 0;
  margin: 0;
  overflow-wrap: break-word;
}

/* Приём брендбука: заголовок в две строки, вторая со смещением вправо.
   Смещение всегда меньше длины первой строки — строки обязаны пересекаться
   минимум на одну букву. */
.tt { display: flex; flex-direction: column; align-items: flex-start; }
.tt > span:nth-child(2) { margin-left: var(--shift, 3.2ch); }

/* Приём брендбука со сдвигом второй строки рассчитан на выключку по левому
   краю. В центрированном блоке он не читается как приём — просто выталкивает
   строку за поле, — поэтому там сдвиг нулевой, если не задан явно. */
.tt.center { align-items: center; }
.tt.center > span:nth-child(2) { margin-left: var(--shift, 0); }

.h1 { font-size: clamp(34px, 7.4vw, 92px); }
.h2 { font-size: clamp(28px, 5vw, 62px); }
.h3 { font-size: clamp(20px, 2.4vw, 30px); }

/* Сброс margin стоит на всех заголовках, поэтому отступ снизу задаём явно —
   иначе вторая строка со смещением ложится прямо на следующий абзац. */
.h1, .h2 { margin-bottom: clamp(22px, 3vh, 32px); }

.wrap { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.section { position: relative; z-index: 3; padding: clamp(72px, 12vh, 140px) 0; }

/* Наборный текст всегда по левой выключке (правила вёрстки, стр. 29). */
.lead, .sub, .fact p, .fineprint, .muted { text-align: left; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 20px;
}

.lead { font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-dim); max-width: 60ch; margin: 0 0 30px; }
.sub { color: var(--ink-dim); margin: 0 0 26px; max-width: 60ch; }
.muted { color: var(--ink-dim); }
.small { font-size: 14px; }
.yellow { color: var(--yellow); }

/* Плейсхолдеры: то, что нельзя выкатывать не заполненным. */
.ph {
  color: var(--yellow);
  border-bottom: 2px dotted currentColor;
  font-variant-numeric: tabular-nums;
  cursor: help;
}

/* ── логотип ───────────────────────────────────────────────────────────────
   Один SVG на три места, цвет — через currentColor, и только три фирменных
   значения: белый на тёмном, тёмно-серый на белом, жёлтый как акцент.
   Охранное поле по брендбуку равно горизонтальному штриху буквы «Н» —
   он измерен по контуру и равен 9.5% высоты знака. */
.logo {
  --logo-h: 26px;
  display: inline-block;
  padding: calc(var(--logo-h) * .095);
  color: var(--white);
  line-height: 0;
}

.logo-mark {
  display: block;
  height: var(--logo-h);
  width: calc(var(--logo-h) * 425 / 58);
}

/* Логотип и надпись над заголовком — по центральной выключке (стр. 10
   брендбука это разрешает), остальной блок ворот — по левому краю. */
.gate-ui .logo {
  --logo-h: 22px;
  display: block;
  width: max-content;
  margin: 0 auto 20px;
  color: var(--black);
  border-color: var(--black);
}
.footer .logo { --logo-h: 30px; margin-left: calc(var(--logo-h) * -.095); }
.topbar .logo { margin-left: calc(var(--logo-h) * -.095); }

/* ── фоновые слои ──────────────────────────────────────────────────────────*/
#edgeFrost, #snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#edgeFrost {
  opacity: 0;
  transition: opacity .5s linear;
  -webkit-mask-image: radial-gradient(ellipse 76% 68% at 50% 50%, rgba(0, 0, 0, 0) 42%, #000 100%);
  mask-image: radial-gradient(ellipse 76% 68% at 50% 50%, rgba(0, 0, 0, 0) 42%, #000 100%);
}

#snow { opacity: .7; }

/* ── кнопки ────────────────────────────────────────────────────────────────*/
.btn {
  --pad: 15px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad);
  border: 1.5px solid transparent;
  border-radius: 0;
  font: 700 15px/1 'Nunito Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.btn--sm { --pad: 10px 18px; font-size: 13px; }
.btn--lg { --pad: 19px 34px; font-size: 17px; }

/* Ховер — фирменный зелёный: так предписано брендбуком. */
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: var(--green); color: var(--white); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--green); border-color: var(--green); color: var(--white); }

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: var(--green); }

.btn--ghost-dark { background: transparent; color: var(--black); border-color: rgba(20, 20, 20, .35); }
.btn--ghost-dark:hover { background: var(--green); border-color: var(--green); color: var(--white); }

.btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.btn.is-placeholder { outline: 2px dashed var(--yellow); outline-offset: 3px; }

/* ── ворота ────────────────────────────────────────────────────────────────*/
#gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: var(--black);
  transition: opacity .9s ease, filter .9s ease;
}

#gateCanvas {
  position: absolute;
  inset: 0;
  /* canvas — replaced-элемент: inset:0 его не растягивает, размер обязателен явно */
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

/* Дыхание протапливает иней, и в проталине видно фирменный жёлтый — тепло. */
#breathGlow {
  position: absolute;
  left: 0;
  top: 0;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(248, 235, 32, .75) 0%, rgba(248, 235, 32, 0) 68%);
  mix-blend-mode: screen;
  transition: opacity .25s ease;
}

.gate-ui {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100% - 32px));
  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  padding: clamp(30px, 5vw, 56px);
  /* Выключка по левому краю: так работает фирменный приём со сдвигом второй
     строки, а абзац про сбор перестаёт нарушать правило вёрстки (стр. 29 —
     наборный текст всегда по левой выключке). */
  text-align: left;
  color: var(--black);
  background: var(--white);
  border: 1.5px solid var(--black);
  pointer-events: none;
}

.gate-ui > * { pointer-events: auto; }

.gate-eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--black);
  opacity: .55;
}

.gate-temp {
  font-size: clamp(52px, 11vw, 92px);
  line-height: .9;
  color: var(--black);
  opacity: .12;
  margin-bottom: 4px;
}

.gate-title { font-size: clamp(28px, 6.6vw, 60px); margin-bottom: 20px; }
.gate-lede {
  margin: 0 0 16px;
  max-width: 30ch;
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 600;
  color: var(--black);
}

.gate-sub { margin: 0 0 22px; max-width: 46ch; font-size: 14px; color: rgba(20, 20, 20, .72); }
.gate-hint { margin: 0 0 20px; font-weight: 700; font-size: 16px; min-height: 1.6em; color: var(--black); }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; }

#micLevel {
  width: 200px;
  height: 5px;
  margin: 20px 0 0;
  background: rgba(20, 20, 20, .14);
  overflow: hidden;
}

#micLevel i {
  display: block;
  height: 100%;
  background: var(--green);
  transform-origin: left;
  transform: scaleX(0);
}

.gate-progress { width: 100%; height: 3px; margin: 22px 0 14px; background: rgba(20, 20, 20, .12); overflow: hidden; }

#gateBar {
  display: block;
  height: 100%;
  background: var(--yellow);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .3s ease;
}

.skip {
  border: 0;
  background: none;
  color: var(--black);
  opacity: .45;
  font: 600 13px 'Nunito Sans', sans-serif;
  cursor: pointer;
  padding: 6px;
  transition: opacity .3s;
}

.skip:hover { opacity: 1; color: var(--green); }
.skip--nudge { opacity: .95; text-decoration: underline; }

#gate[data-mode="hand"] #gateCanvas { cursor: grab; }
#gate[data-mode="hand"] #gateCanvas:active { cursor: grabbing; }
.gate--melting { opacity: 0; filter: blur(6px); pointer-events: none; }
.gate--gone { display: none; }

/* ── топбар и герой ────────────────────────────────────────────────────────*/
.topbar {
  position: relative;
  z-index: 4;
  width: min(var(--wrap), 100% - var(--gut) * 2);
  margin: 0 auto 9vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-right { display: flex; align-items: center; gap: 14px; }

.pill {
  padding: 8px 14px;
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-dim);
  white-space: nowrap;
}

.pill b { color: var(--yellow); font-weight: 700; }

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 28px;
}

.hero-body { width: min(var(--wrap), 100% - var(--gut) * 2); margin-inline: auto; }
.hero-title { margin-bottom: 30px; }
.scroll-cue { margin-top: 46px; font-size: 13px; color: var(--ink-dim); }

/* ── стекло ────────────────────────────────────────────────────────────────*/
.glass-section { border-top: 1px solid var(--line); }



.glass-wrap {
  position: relative;
  height: clamp(300px, 48vh, 460px);
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: var(--black);
  user-select: none;
}

/* Под инеем — фирменный жёлтый. Стираешь холод, под ним тепло. */
.glass-under { position: absolute; inset: 0; background: var(--yellow); }

/* След Т-Банка живёт отдельным слоем под инеем: если красить его поверх,
   он затирает и проталину, и сумму. */
#ghostLayer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.amount-split {
  margin-top: 18px;
  font-size: clamp(15px, 1.7vw, 19px);
  font-weight: 600;
  color: var(--ink-dim);
}

.amount-split .plus, .amount-split .eq { color: var(--yellow); font-weight: 800; padding: 0 3px; }
.amount-split b { color: var(--yellow); font-weight: 800; }

#glassCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

.tb-chip {
  position: absolute;
  left: 0;
  top: 0;
  margin: -16px 0 0 22px;
  padding: 6px 11px;
  background: var(--black);
  color: var(--white);
  font: 700 12px 'Nunito Sans', sans-serif;
  letter-spacing: .04em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
}

.tb-chip.is-on { opacity: 1; }
.tb-chip b { color: var(--yellow); }

.glass-temp {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 5px 10px;
  font: 700 12px/1 'Nunito Sans', sans-serif;
  color: var(--white);
  background: var(--black);
  pointer-events: none;
}

.digits-row { display: flex; gap: 8px; margin-top: 16px; }

.digit {
  width: 46px;
  height: 56px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 400 24px 'Nochlezhka', sans-serif;
  cursor: pointer;
  transition: all .15s;
}

.digit:hover { background: var(--green); border-color: var(--green); color: var(--white); }

.glass-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.presets { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.chip {
  padding: 11px 16px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 600 14px 'Nunito Sans', sans-serif;
  cursor: pointer;
  transition: all .18s;
}

.chip:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.chip--ghost { color: var(--ink-dim); }

.fineprint { margin-top: 22px; font-size: 13px; color: var(--ink-dim); max-width: 72ch; }
.hint--warn { color: var(--yellow) !important; }

/* ── факты ─────────────────────────────────────────────────────────────────*/


/* ── цель ──────────────────────────────────────────────────────────────────*/






/* ── финал и футер ─────────────────────────────────────────────────────────*/
.final { text-align: center; }
.final .lead { margin-inline: auto; text-align: center; }
.page-temp-line { margin-top: 38px; font-size: 13px; color: var(--ink-dim); }
.page-temp-line b { color: var(--yellow); font-variant-numeric: tabular-nums; }

.footer { position: relative; z-index: 3; border-top: 1px solid var(--line); padding: 44px 0 70px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }

/* ── ветер ─────────────────────────────────────────────────────────────────*/
.wind {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: var(--black);
  color: var(--ink-dim);
  font: 600 12px 'Nunito Sans', sans-serif;
  cursor: pointer;
}

.wind svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.wind span { display: none; }
.wind:hover { color: var(--white); border-color: var(--green); background: var(--green); }
.wind:hover span, .wind:focus-visible span { display: inline; }
.wind[aria-pressed="true"] { color: var(--yellow); border-color: var(--yellow); }
body.frozen .wind { display: none; }

/* ── появление блоков ──────────────────────────────────────────────────────*/
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-live { opacity: 1; transform: none; }

/* ── адаптив ───────────────────────────────────────────────────────────────*/
@media (max-width: 860px) {
  /* на телефоне сумма ограничена шириной, поэтому высокая панель — пустое место */
  .glass-wrap { height: clamp(240px, 34vh, 340px); }
  .glass-controls { flex-direction: column; align-items: stretch; }
  .topbar { margin-bottom: 6vh; }
  .pill { display: none; }
  .wind { display: none; }
  .tt > span:nth-child(2) { margin-left: var(--shift-m, 1.6ch); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  #snow { display: none; }
  * { animation-duration: .01ms !important; }
}


/* ── меню разделов ─────────────────────────────────────────────────────────*/
.nav { display: flex; gap: 22px; flex-wrap: wrap; }

.nav a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
  transition: color .18s, border-color .18s;
}

.nav a:hover { color: var(--green); border-color: var(--green); }

/* ── ворота: показ жеста на самой поверхности ─────────────────────────────
   Правка: «есть ощущение, что кнопка не срабатывает — непонятно, что надо
   перевести курсор и потереть что-либо». Причина в том, что карточка занимает
   центр экрана и не трётся: тереть надо мимо неё. Поэтому после выбора
   карточка сворачивается в полосу внизу, а по освободившемуся инею ездит
   призрачный курсор и на самом деле протапливает след. */
#gateGhost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: none;
  pointer-events: none;
  will-change: transform;
}

.gate--acting #gateGhost { display: block; }
.gate--got-it #gateGhost { display: none; }

#gateGhost i {
  position: absolute;
  left: -34px;
  top: -34px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 235, 32, .5), rgba(248, 235, 32, 0) 70%);
  box-shadow: inset 0 0 0 2px rgba(20, 20, 20, .28);
}

#gateGhost span {
  position: absolute;
  left: 50%;
  top: 42px;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: var(--black);
  color: var(--white);
  font: 700 12px 'Nunito Sans', sans-serif;
  letter-spacing: .04em;
  white-space: nowrap;
}

/* Карточка после выбора: узкая полоса внизу, экран свободен для жеста */
.gate--acting .gate-ui {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 4vh;
  width: min(440px, calc(100% - 24px));
  margin: 0;
  transform: translateX(-50%);
  padding: 18px 22px;
  text-align: center;
}

.gate--acting .gate-ui .logo,
.gate--acting .gate-eyebrow,
.gate--acting .gate-temp,
.gate--acting .gate-title { display: none; }

.gate--acting .gate-hint { margin-bottom: 12px; font-size: 15px; }
.gate--acting .gate-pct { font-size: 34px; }
.gate--acting #micLevel { margin: 12px auto 0; }
.gate--acting .gate-progress { margin: 12px 0 8px; }

/* ── ворота: шаг с процентом и таймером ────────────────────────────────────*/
.gate-step { display: none; }
.gate--acting .gate-step { display: block; }
.gate--acting .gate-actions,
.gate--acting .gate-sub,
.gate--acting .gate-lede { display: none; }

.gate-pct {
  font-family: 'Nochlezhka', sans-serif;
  font-size: clamp(40px, 9vw, 68px);
  line-height: 1;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}

.gate-timer { font-size: 13px; color: rgba(20, 20, 20, .5); margin-top: 2px; }
.gate-timer b { font-variant-numeric: tabular-nums; }

/* ── об организации ────────────────────────────────────────────────────────*/
.nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 46px;
}

.num { background: var(--bg); padding: 28px 24px; }

.num b {
  display: block;
  font-family: 'Nochlezhka', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  color: var(--yellow);
  margin-bottom: 10px;
}

.num span { font-size: 15px; color: var(--ink-dim); }

/* ── суммы «Курса добра» ───────────────────────────────────────────────────*/
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.tier {
  text-align: left;
  padding: 18px 20px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}

.tier b {
  display: block;
  font-family: 'Nochlezhka', sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}

.tier span { font-size: 14px; line-height: 1.45; }
.tier:hover { border-color: var(--green); color: var(--ink); }
.tier[aria-pressed="true"] { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.tier[aria-pressed="true"] b { color: var(--black); }

.tier-note {
  margin: 16px 0 0;
  padding-left: 14px;
  border-left: 3px solid var(--yellow);
  font-size: 15px;
  color: var(--ink-dim);
  max-width: 78ch;
  min-height: 1.4em;
}

/* Плитка ручного ввода живёт в той же сетке, что и готовые суммы, и выглядит
   так же — меняется только то, что цифру человек вводит сам. */
.tier--custom { cursor: text; display: flex; flex-direction: column; }
.tier--custom label { cursor: text; }

.custom-field {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 10px;
  border-bottom: 2px solid var(--line);
  transition: border-color .18s;
  font-family: 'Nochlezhka', sans-serif;
  font-size: 22px;
  color: var(--ink);
}

.custom-field:focus-within { border-color: var(--yellow); }

.custom-field input {
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--yellow);
  font: inherit;
  font-variant-numeric: tabular-nums;
  outline: none;
}

.custom-field input::placeholder { color: var(--ink-dim); opacity: .5; }

/* Пока сумма не выбрана, пояснения нет — и от блока остаётся одна жёлтая
   полоска слева. Высоту держим, чтобы вёрстка не прыгала, а линию гасим. */
.tier-note:empty { border-left-color: transparent; }

/* ── приют ─────────────────────────────────────────────────────────────────*/
.priyut-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 44px; align-items: start; }
.spend { margin: 26px 0 0; padding: 0; list-style: none; }

.spend li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-dim);
}

.spend li::before { content: '→'; position: absolute; left: 0; color: var(--yellow); }
.render-slot { margin: 0; }

.slot-box {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(248, 235, 32, .5);
  background: rgba(255, 255, 255, .02);
}

.render-slot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.render-slot figcaption { margin-top: 12px; font-size: 13px; color: var(--ink-dim); }

/* ── сколько собрано ───────────────────────────────────────────────────────*/
.center-block { text-align: center; }
.center-block .eyebrow { color: var(--ink-dim); }

.raised-num {
  font-family: 'Nochlezhka', sans-serif;
  font-size: clamp(44px, 9vw, 108px);
  line-height: 1;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}

.raised-sub { margin: 14px 0 26px; color: var(--ink-dim); }

/* Отдельной строкой над кнопкой: в один ряд с ней рамка читается
   как вторая, неактивная кнопка. */
.raised-x2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 34px;
  padding: 10px 16px;
  border: 1px solid var(--line);
}

.raised-x2 b { font-family: 'Nochlezhka', sans-serif; font-weight: 400; font-size: 20px; color: var(--yellow); }
.raised-x2 span { font-size: 14px; color: var(--ink-dim); }

/* ── ответы на вопросы ─────────────────────────────────────────────────────*/
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  transition: color .18s;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--yellow); }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--yellow);
  line-height: 1;
}

.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 26px; color: var(--ink-dim); max-width: 76ch; }
.faq a { color: var(--yellow); }

/* ── партнёры ──────────────────────────────────────────────────────────────*/
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 26px; }

.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  border: 2px dashed rgba(248, 235, 32, .4);
  font-size: 12px;
}

@media (max-width: 980px) {
  .nums, .tiers { grid-template-columns: repeat(2, 1fr); }
  .priyut-grid { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .nav { display: none; }
}

@media (max-width: 620px) {
  .nums, .tiers { grid-template-columns: 1fr; }
}

/* На узкой карточке кнопки не помещаются рядом: «Подышать на экран» шире
   половины поля. Ставим друг под друга и тянем на всю ширину — так они
   одинаковые, а не разной длины по своему тексту. */
@media (max-width: 520px) {
  .gate-actions { flex-direction: column; align-items: stretch; }
  .gate-actions .btn { width: 100%; }
}
