/* Улов — «ночная рыбалка». Один файл, без сборки. */

:root {
  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 24px;
  --dur: 220ms;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* ночь */
  --bg: #0f1216;
  --bg-deep: #0a0d11;
  --surface: #171b21;
  --surface-2: #1f242b;
  --text: #f3eee4;
  --muted: #a39b8f;
  --faint: #6f6a62;
  --border: #2a2f37;
  --border-strong: #3a4049;

  --accent: #f2a93b;
  --accent-hover: #ffbb52;
  --accent-ink: #1b1306;
  --accent-soft: rgba(242, 169, 59, .14);
  --ember: #e4572e;
  --ember-hover: #f26a41;
  --ember-ink: #ffffff;

  --ok: #7bc47f;
  --ok-soft: rgba(123, 196, 127, .14);
  --err: #ff7a5c;
  --err-soft: rgba(255, 122, 92, .14);

  --lantern: rgba(242, 169, 59, .22);
  --lantern-2: rgba(228, 87, 46, .10);
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 24px 60px -30px rgba(0, 0, 0, .8);
  --shadow-soft: 0 10px 30px -18px rgba(0, 0, 0, .7);
}

/* день: бумага и медь */
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] {
    --bg: #f5efe4;
    --bg-deep: #ebe3d5;
    --surface: #fffbf3;
    --surface-2: #f1eadc;
    --text: #1d1a16;
    --muted: #6f665b;
    --faint: #a1988b;
    --border: #e2d8c8;
    --border-strong: #cfc3b0;
    --accent: #b85c2c;
    --accent-hover: #a24f24;
    --accent-ink: #fff8ee;
    --accent-soft: rgba(184, 92, 44, .12);
    --ember: #d8501f;
    --ember-hover: #c2451a;
    --ember-ink: #ffffff;
    --ok: #2f8f4e;
    --ok-soft: rgba(47, 143, 78, .12);
    --err: #c8362b;
    --err-soft: rgba(200, 54, 43, .12);
    --lantern: rgba(217, 142, 31, .22);
    --lantern-2: rgba(184, 92, 44, .10);
    --shadow: 0 1px 2px rgba(29, 26, 22, .05), 0 24px 50px -30px rgba(29, 26, 22, .35);
    --shadow-soft: 0 8px 24px -16px rgba(29, 26, 22, .3);
  }
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5efe4;
  --bg-deep: #ebe3d5;
  --surface: #fffbf3;
  --surface-2: #f1eadc;
  --text: #1d1a16;
  --muted: #6f665b;
  --faint: #a1988b;
  --border: #e2d8c8;
  --border-strong: #cfc3b0;
  --accent: #b85c2c;
  --accent-hover: #a24f24;
  --accent-ink: #fff8ee;
  --accent-soft: rgba(184, 92, 44, .12);
  --ember: #d8501f;
  --ember-hover: #c2451a;
  --ember-ink: #ffffff;
  --ok: #2f8f4e;
  --ok-soft: rgba(47, 143, 78, .12);
  --err: #c8362b;
  --err-soft: rgba(200, 54, 43, .12);
  --lantern: rgba(217, 142, 31, .22);
  --lantern-2: rgba(184, 92, 44, .10);
  --shadow: 0 1px 2px rgba(29, 26, 22, .05), 0 24px 50px -30px rgba(29, 26, 22, .35);
  --shadow-soft: 0 8px 24px -16px rgba(29, 26, 22, .3);
}

[data-theme="dark"] { color-scheme: dark; }

/* Переключатель показывает противоположную тему. */
.only-dark { display: none; }
[data-theme="dark"] .only-dark, :root[data-theme="auto"] .only-dark { display: block; }
[data-theme="dark"] .only-light, :root[data-theme="auto"] .only-light { display: none; }
@media (prefers-color-scheme: light) {
  :root[data-theme="auto"] .only-dark { display: none; }
  :root[data-theme="auto"] .only-light { display: block; }
}
[data-theme="light"] .only-dark { display: none; }
[data-theme="light"] .only-light { display: block; }

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Фонарь: тёплое пятно света сверху справа и дальний отсвет. */
.lantern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(38% 42% at 78% -4%, var(--lantern), transparent 72%),
    radial-gradient(30% 30% at 12% 18%, var(--lantern-2), transparent 70%),
    linear-gradient(180deg, transparent 0 55%, var(--bg-deep) 100%);
}

svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip { position: absolute; left: 12px; top: -48px; padding: 8px 12px; background: var(--surface); color: var(--text); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 10; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; border-radius: 6px; }

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

.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.0; letter-spacing: -.02em; margin: 0 0 22px; }
.display .glow { color: var(--accent); }
.display-sm { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.12; letter-spacing: -.015em; margin: 0; }
.overline { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.overline-dash { display: inline-block; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.kicker { margin: 0 0 4px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kicker-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.kicker-ok svg { width: 14px; height: 14px; stroke-width: 2.4; }

/* ---------- шапка ---------- */

.top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; max-width: 1180px; width: 100%; margin: 0 auto; padding: 22px 28px 8px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; justify-self: start; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.brand-mark svg { width: 22px; height: 22px; stroke-width: 2.1; }
.nav { display: flex; gap: 6px; justify-self: center; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.icon-btn { justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); cursor: pointer; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- герой ---------- */

main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px 48px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; padding: 56px 0 40px; }
.hero-copy { padding-top: 28px; }
.lead { max-width: 30em; margin: 0 0 26px; color: var(--muted); font-size: 1.12rem; line-height: 1.55; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--text); font-size: .98rem; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts svg { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.4; }

/* ---------- инструмент ---------- */

.tool { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px; }
.ripples { position: absolute; right: -60px; top: -60px; width: 400px; height: 400px; stroke: var(--accent); stroke-width: 1; opacity: .18; pointer-events: none; }
.tool > :not(.ripples) { position: relative; }
.tool-head h2 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; letter-spacing: -.01em; }

.cast { display: flex; gap: 10px; }
.field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 0 8px 0 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field-icon { color: var(--faint); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1rem; padding: 12px 0; outline: none; }
.field input::placeholder { color: var(--faint); }

.ghost { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--surface-2); color: var(--muted); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; transition: color var(--dur) var(--ease), background var(--dur) var(--ease); }
.ghost:hover { color: var(--text); background: var(--border); }
.ghost svg { width: 18px; height: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: var(--radius); border: 1px solid transparent; font-family: var(--font-display); font-weight: 500; font-size: .92rem; letter-spacing: .01em; text-decoration: none; cursor: pointer; position: relative; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 28px -14px var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-accent { background: var(--ember); color: var(--ember-ink); box-shadow: 0 12px 30px -14px var(--ember); }
.btn-accent:hover:not(:disabled) { background: var(--ember-hover); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); }
.btn-big { min-height: 56px; font-size: 1rem; }
.btn-small { min-height: 38px; padding: 0 14px; font-size: .82rem; border-radius: 10px; }
.btn-small svg { width: 17px; height: 17px; }

.btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--accent-ink) 35%, transparent); border-top-color: var(--accent-ink); animation: spin .8s linear infinite; }
.btn.is-busy .btn-label { opacity: 0; position: absolute; }
.btn.is-busy .btn-spinner { display: inline-block; }

.form-error { margin: 12px 0 0; color: var(--err); font-size: .95rem; }
.tool-note { margin: 12px 2px 0; color: var(--faint); font-size: .86rem; }

/* ---------- карточка ролика ---------- */

.catch { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); animation: rise var(--dur) var(--ease) both; }
.catch-head { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: start; }
.thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 16 / 9; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-badge { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; border-radius: 8px; background: rgba(8, 10, 14, .78); color: #fff; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.thumb-badge:empty { display: none; }
.meta { min-width: 0; }
.title { margin: 4px 0 4px; font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; line-height: 1.35; overflow-wrap: anywhere; }
.channel { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--faint); font-size: .86rem; }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts svg { width: 16px; height: 16px; }

.tabs { display: inline-flex; gap: 4px; margin: 20px 0 12px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: .92rem; cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease); }
.tab svg { width: 18px; height: 18px; }
.tab.is-active { background: var(--surface-2); color: var(--text); }
.tab:disabled { opacity: .4; cursor: not-allowed; }

.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 8px; }
.option { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label size" "meta meta"; column-gap: 10px; row-gap: 2px; align-items: baseline; min-width: 0; padding: 11px 13px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.option:hover { border-color: var(--border-strong); }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.option-label { grid-area: label; font-family: var(--font-display); font-weight: 500; font-size: .92rem; white-space: nowrap; }
.option-size { grid-area: size; color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.option-meta { grid-area: meta; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.option-tag { font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); white-space: nowrap; }
.option-tag:empty { display: none; }
.option-sub { color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hint { margin: 12px 2px 0; color: var(--faint); font-size: .86rem; }
.hint:empty { display: none; }

.cta { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.cta .btn { width: 100%; }

/* ---------- прогресс ---------- */

.progress { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--border); animation: rise var(--dur) var(--ease) both; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 0 18px; padding: 0; }
.steps li { position: relative; padding-top: 12px; font-family: var(--font-display); font-size: .66rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); text-align: center; }
.steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--surface-2); transition: background var(--dur) var(--ease); }
.steps li.is-done::before { background: var(--accent); }
.steps li.is-done { color: var(--text); }
.steps li.is-active::before { background: linear-gradient(90deg, var(--accent), var(--surface-2)); }
.steps li.is-active { color: var(--accent); }
.steps li.is-failed::before { background: var(--err); }

.progress-text { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.progress-title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.progress-status { margin: 0; color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; }

/* Леска с поплавком на конце. */
.bar { position: relative; height: 6px; margin: 16px 6px 14px 0; border-radius: 6px; background: var(--surface-2); overflow: visible; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 6px; background: var(--accent); transition: width 400ms var(--ease); }
.bar-fill::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 3px solid var(--surface); transform: translateY(-50%); box-shadow: 0 0 0 4px var(--accent-soft); }
.bar.is-indeterminate .bar-fill { width: 30%; animation: slide 1.4s ease-in-out infinite; }
.bar.is-done .bar-fill { background: var(--ok); }
.bar.is-done .bar-fill::after { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.bar.is-failed .bar-fill { background: var(--err); width: 100%; }
.bar.is-failed .bar-fill::after { background: var(--err); box-shadow: 0 0 0 4px var(--err-soft); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.stats div { padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border); }
.stats dt { margin: 0; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.stats dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: 500; font-size: .95rem; font-variant-numeric: tabular-nums; }

.result { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.result-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ok); color: #fff; flex: none; }
.result-icon svg { width: 22px; height: 22px; stroke-width: 2.4; }
.result-name { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.result-note { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }

.failure { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); background: var(--err-soft); border: 1px solid color-mix(in srgb, var(--err) 35%, transparent); color: var(--err); }
.failure svg { width: 22px; height: 22px; margin-top: 2px; }
.failure p { margin: 0; color: var(--text); }

.progress-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.progress-actions .btn-accent { flex: 1 1 220px; }

/* ---------- бегущая строка ---------- */

.ticker { margin: 8px -28px 0; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: ticker 38s linear infinite; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.ticker-track i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- как работает ---------- */

.section-head { display: grid; gap: 0; margin: 0 0 30px; }
.section-head-row { grid-template-columns: 1fr auto; align-items: end; gap: 16px; }
.how { padding: 72px 0 24px; }
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps-grid li { padding: 26px 24px 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.step-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 18px; }
@supports not (-webkit-text-stroke: 1px black) { .step-num { color: var(--accent); } }
.steps-grid h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; }
.steps-grid p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ---------- честно ---------- */

.honest { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 40px 0 24px; }
.honest-col { padding: 26px 26px 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.honest-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; color: var(--text); font-size: .98rem; }
.honest-col li { position: relative; padding-left: 22px; }
.honest-col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; }
.honest-yes li::before { background: var(--ok); }
.honest-no li::before { background: var(--ember); }
.honest-no .overline-dash { background: var(--ember); }

/* ---------- вопросы ---------- */

.faq { padding: 48px 0 24px; }
.faq-list { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--accent); transition: transform var(--dur) var(--ease); flex: none; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* ---------- садок ---------- */

.basket { padding: 48px 0 8px; }
.basket-note { margin: -18px 0 16px; color: var(--faint); font-size: .9rem; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.history-text { min-width: 0; }
.history-title { margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-sub { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.history-gone { color: var(--faint); font-size: .88rem; white-space: nowrap; }
.history-item.is-gone .history-title { color: var(--muted); }

/* ---------- подвал ---------- */

.foot { max-width: 1180px; width: 100%; margin: 0 auto; padding: 28px 28px 36px; border-top: 1px solid var(--border); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; color: var(--muted); font-size: .88rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--text); }
.foot-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; box-shadow: none; }
.foot-brand svg { width: 18px; height: 18px; }
.foot p { margin: 0; }
.foot-sign { color: var(--faint); font-style: italic; }

/* ---------- анимация ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide { 0% { left: 0; } 100% { left: 70%; } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker { mask-image: none; }
  .ticker-track { width: auto; flex-wrap: wrap; gap: 10px 20px; padding: 0 28px; animation: none; }
  .ticker-track [aria-hidden="true"] { display: none; }
  .bar.is-indeterminate .bar-fill { width: 100%; left: 0; opacity: .5; }
}

/* ---------- экраны ---------- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
  .hero-copy { padding-top: 0; }
  .display { font-size: clamp(2.4rem, 9vw, 4rem); }
  .steps-grid { grid-template-columns: 1fr; }
  .honest { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .top { grid-template-columns: 1fr auto; padding: 16px 18px 6px; }
  .nav { display: none; }
  main { padding: 0 18px 32px; }
  .hero { padding-top: 22px; }
  .lead { font-size: 1.02rem; }
  .tool { padding: 18px; border-radius: 20px; }
  .ripples { width: 300px; height: 300px; right: -80px; top: -90px; }
  .cast { flex-direction: column; }
  .cast .btn { width: 100%; }
  .ghost span { display: none; }
  .ghost { width: 38px; padding: 0; justify-content: center; }
  .catch-head { grid-template-columns: 1fr; gap: 14px; }
  .tabs { width: 100%; }
  .tab { flex: 1; justify-content: center; }
  .options { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .stats div { padding: 8px 10px; }
  .steps li { font-size: .6rem; letter-spacing: .05em; }
  .ticker { margin: 8px -18px 0; }
  .how { padding-top: 48px; }
  .steps-grid li { padding: 22px 20px; }
  .history-item { flex-wrap: wrap; }
  .result-name, .history-title { overflow-wrap: anywhere; white-space: normal; }
  .foot { grid-template-columns: 1fr; gap: 12px; padding: 22px 18px 30px; text-align: left; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:last-child { grid-column: 1 / -1; }
}
