/* Главная acid.poker — витрина проекта. Стол, создание комнаты и разбор скриншота — /new (style.css + app.js). */

:root {
  --bg: #0b0e0c;
  --bg-2: #0f1310;
  --panel: #131814;
  --panel-2: #1a201b;
  --line: #242c25;
  --line-2: #313b32;
  --text: #e6eae3;
  --muted: #8e978c;
  --dim: #646d63;
  --accent: #b8ff3c;
  --accent-2: #caff66;
  --accent-ink: #08150f;
  --accent-soft: rgba(184, 255, 60, .12);
  --teal: #3fd0a6;
  --red: #ff6b6b;
  --felt-1: #1c4d3f;
  --felt-2: #0f3024;
  --radius: 18px;
  --wrap: 1160px;
  --head: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Фон: сетка и кислотное свечение ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(184, 255, 60, .10), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(63, 208, 166, .07), transparent 60%),
    var(--bg);
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: 600 15px/1 var(--body); cursor: pointer; white-space: nowrap;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 0 rgba(184, 255, 60, .0), 0 10px 30px -10px rgba(184, 255, 60, .55);
}
.btn.primary:hover { background: var(--accent-2); box-shadow: 0 0 0 6px rgba(184, 255, 60, .12), 0 14px 36px -10px rgba(184, 255, 60, .7); }
.btn.ghost { background: rgba(255, 255, 255, .02); border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn svg { flex: none; }

/* ---------- Шапка ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 14, 12, .72);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand {
  font-family: "Rubik Wet Paint", Impact, sans-serif; font-size: 26px; line-height: 1; color: var(--accent);
  text-shadow: 0 0 14px rgba(184, 255, 60, .45), 0 2px 0 #3a5a12; letter-spacing: .02em;
}
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav .spacer { flex: 1; }
/* Язык: UA / EN (русский — сам по языку браузера, в переключателе его нет) */
.lang { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.lang button {
  height: 30px; min-width: 38px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
  color: var(--muted); font: 600 12px/1 var(--head); letter-spacing: .06em; transition: color .15s, background .15s;
}
.lang button:hover { color: var(--text); }
.lang button.on { background: var(--accent-soft); color: var(--accent); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Первый экран ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero .wrap > * { min-width: 0; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; } .hero { padding-top: 40px; } }


h1 {
  font: 700 clamp(36px, 5.4vw, 64px)/1.04 var(--head); letter-spacing: -.025em;
  margin: 0 0 22px;
}
h1 .acid {
  background: linear-gradient(100deg, #e4ff9a 0%, var(--accent) 45%, var(--teal) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 560px; margin: 0 0 32px; }
.lead b { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.join {
  display: flex; align-items: center; gap: 8px; margin-top: 28px;
  padding: 6px 6px 6px 16px; border-radius: 14px; max-width: 420px;
  background: var(--panel); border: 1px solid var(--line);
  transition: border-color .15s;
}
.join:focus-within { border-color: var(--accent); }
.join label { color: var(--dim); font-size: 13px; white-space: nowrap; }
.join input {
  flex: 1; min-width: 0; height: 38px; background: transparent; border: 0; outline: 0;
  color: var(--text); font: 600 16px/1 var(--head); letter-spacing: .18em; text-transform: uppercase;
}
.join input::placeholder { color: var(--dim); letter-spacing: .12em; font-weight: 500; }
.join-err { color: var(--red); font-size: 13px; margin-top: 8px; min-height: 20px; }
@media (max-width: 960px) { .join-err:empty { min-height: 0; margin-top: 0; } }   /* на телефоне пустая строка ошибки не раздвигает экран */

/* ---------- Иллюстрация: стол на 6 мест, под ним карточка подсказки ---------- */
.stage { position: relative; max-width: 560px; width: 100%; display: flex; flex-direction: column; }
.table-box { position: relative; aspect-ratio: 1.42; }
.table {
  position: absolute; inset: 13% 8% 19%;
  border-radius: 50% / 46%;
  background: radial-gradient(ellipse at 50% 38%, #24604e 0%, var(--felt-1) 38%, var(--felt-2) 100%);
  box-shadow: 0 0 0 10px #151a16, 0 0 0 11px #2a332b, 0 40px 80px -20px rgba(0, 0, 0, .8), inset 0 0 60px rgba(0, 0, 0, .45);
}
.table::before {
  content: ""; position: absolute; inset: 7%; border-radius: inherit;
  border: 1px solid rgba(184, 255, 60, .14);
}
.board { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); display: flex; gap: 6px; }
.pot {
  position: absolute; left: 50%; top: 22%; transform: translateX(-50%);
  font-size: 12px; color: rgba(230, 234, 227, .7); letter-spacing: .08em; white-space: nowrap;
}
.pot b { color: var(--text); font: 600 14px/1 var(--head); letter-spacing: 0; margin-left: 6px; }

.pc {
  width: clamp(32px, 5vw, 46px); aspect-ratio: .72; border-radius: 7px;
  background: linear-gradient(180deg, #fff, #eef0ec); color: #121512;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  font: 700 clamp(14px, 2.1vw, 20px)/1 var(--head);
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .6);
}
.play .pc { animation: deal .5s cubic-bezier(.2, .8, .3, 1.2) both; }
.pc i { font-style: normal; font-size: .9em; margin-top: 2px; }
.pc.r { color: #d6333f; }
.pc.back {
  background: repeating-linear-gradient(45deg, #1f2a21 0 5px, #18211a 5px 10px);
  border: 2px solid #2f3b31;
}
@keyframes deal { from { opacity: 0; transform: translateY(-10px) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Места по часовой от героя (BTN): p1 SB, p2 BB, p3 UTG, p4 MP, p5 CO */
.seat {
  position: absolute; display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 12px; color: var(--muted);
}
.seat .tag {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 5px 12px; border-radius: 12px; background: rgba(11, 14, 12, .9); border: 1px solid var(--line-2);
  white-space: nowrap; color: var(--text); font-weight: 600; line-height: 1.15;
}
.seat .tag small { color: var(--muted); font-weight: 500; font-size: 10px; }
.seat .hole { display: flex; gap: 3px; }
.seat .hole .pc { width: clamp(22px, 3.2vw, 30px); font-size: clamp(11px, 1.6vw, 14px); border-radius: 5px; }
.seat.out .tag { opacity: .5; }
.seat .act { font-size: 10px; color: var(--teal); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.seat .act.bet { color: var(--accent); }
.seat.p0 { left: 50%; bottom: -3%; transform: translateX(-50%); }
.seat.p0 .tag { border-color: rgba(184, 255, 60, .5); color: var(--accent); }
.seat.p0 .hole .pc { width: clamp(30px, 4.6vw, 42px); font-size: clamp(13px, 2vw, 18px); border-radius: 6px; }
.seat.p1 { left: 0; top: 56%; }
.seat.p2 { left: 2%; top: 4%; }
.seat.p3 { left: 50%; top: 0; transform: translateX(-50%); }
.seat.p4 { right: 2%; top: 4%; }
.seat.p5 { right: 0; top: 56%; }

.hint {
  position: relative; margin-top: 14px; padding: 16px 18px; border-radius: 16px;
  display: grid; grid-template-columns: 1fr 1.2fr; column-gap: 22px; align-items: start;
  background: rgba(19, 24, 20, .92); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(184, 255, 60, .06);
}
.play .hint { animation: rise .6s ease-out 1.1s both; }
.hint .h-top, .hint .h-src { grid-column: 1 / -1; }
.hint .h-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.hint .h-top b { color: var(--accent); font: 700 11px/1 var(--head); letter-spacing: .08em; }
.hint .h-move { white-space: nowrap; font: 700 21px/1.1 var(--head); margin: 0 0 8px; letter-spacing: -.01em; }
.hint .h-move small { white-space: nowrap; font: 500 13px/1 var(--body); color: var(--muted); margin-left: 6px; }
.hint .h-note { font-size: 12px; color: var(--muted); line-height: 1.45; }
.freq { display: grid; gap: 8px; padding-top: 4px; }
.freq .f { display: grid; grid-template-columns: 76px 1fr 34px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); }
.freq .f span:last-child { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.freq .bar { height: 6px; border-radius: 3px; background: var(--panel-2); overflow: hidden; }
.freq .bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: var(--accent); }
.play .freq .bar i, .play .eq-bar i { animation: grow 1s ease-out 1.6s both; }
.freq .bar i.t { background: var(--teal); }
.freq .bar i.m { background: var(--dim); }
@keyframes grow { from { width: 0; } }
.hint .h-src { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; color: var(--dim); }

/* Второй пример: эвристика — расчёт словами и числами */
.hint.heur .h-top b { color: var(--teal); }
.hint.heur .h-move small { color: var(--teal); font-weight: 600; }
.eq-lbl { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.eq-lbl b { font: 700 15px/1 var(--head); color: var(--text); }
.eq-bar { position: relative; height: 8px; border-radius: 4px; background: var(--panel-2); }
.eq-bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--accent)); }
.eq-bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); border-radius: 1px; }
.eq-bar em span { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 10px/1 var(--body); font-style: normal; color: var(--muted); }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 7px; font-size: 12px; }
.facts li { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: baseline; }
.facts li span { color: var(--dim); }
.facts li b { color: var(--text); font-weight: 600; }
.facts li b em { font-style: normal; color: var(--accent); }

@media (max-width: 520px) {
  .table-box { aspect-ratio: 1.12; }
  .table { inset: 17% 11% 23%; }
  .seat .tag { padding: 4px 8px; font-size: 11px; }
  .hint { grid-template-columns: 1fr; }
  .freq { margin-top: 12px; }
  .hint.heur .facts { margin-top: 28px; }
}

/* ---------- Живые цифры ---------- */
.live { padding: 24px 0 8px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(19, 24, 20, .6); overflow: hidden;
}
.stat { padding: 22px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .v { font: 700 clamp(24px, 3vw, 34px)/1.1 var(--head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .v.on { color: var(--accent); }
.stat .l { color: var(--muted); font-size: 14px; margin-top: 6px; }
.stat .s { color: var(--dim); font-size: 12px; margin-top: 2px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Секции ---------- */
section.block { padding: 96px 0 0; }
@media (max-width: 700px) { section.block { padding-top: 72px; } }
.kicker { color: var(--accent); font: 600 12px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; }
h2 { font: 700 clamp(28px, 3.6vw, 42px)/1.12 var(--head); letter-spacing: -.02em; margin: 14px 0 14px; max-width: 760px; }
.sub { color: var(--muted); max-width: 640px; margin: 0 0 40px; font-size: 17px; }

/* Возможности */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } }
.feat {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(19, 24, 20, .5));
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.feat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feat::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 255, 60, .10), transparent 70%); opacity: 0; transition: opacity .3s;
}
.feat:hover::after { opacity: 1; }
.ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(184, 255, 60, .2); margin-bottom: 18px;
}
.ico.t { background: rgba(63, 208, 166, .1); color: var(--teal); border-color: rgba(63, 208, 166, .22); }
.feat h3 { font: 600 18px/1.3 var(--head); margin: 0 0 8px; letter-spacing: -.01em; }
.feat p { color: var(--muted); margin: 0; font-size: 15px; }
.feat a.more { display: inline-flex; gap: 6px; align-items: center; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }
.feat a.more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Как думает движок */
.streets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
@media (max-width: 960px) { .streets { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (max-width: 560px) { .streets { grid-template-columns: 1fr; } }
.street {
  position: relative; padding: 26px 24px 28px; border: 1px solid var(--line); background: var(--panel);
}
@media (min-width: 961px) {
  .street + .street { border-left: 0; }
  .street:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .street:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
}
@media (max-width: 960px) { .street { border-radius: var(--radius); } }
.street .n { font: 700 12px/1 var(--head); color: var(--dim); letter-spacing: .12em; }
.street h3 { font: 600 20px/1.2 var(--head); margin: 14px 0 6px; }
.street .src { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
.street .src.t { color: var(--teal); background: rgba(63, 208, 166, .1); }
.street .src.m { color: var(--muted); background: var(--panel-2); }
.street p { color: var(--muted); font-size: 14px; margin: 0; }
.street .cards { display: flex; gap: 4px; margin-top: 18px; }
.street .cards span {
  width: 24px; height: 33px; border-radius: 4px; background: #eef0ec; color: #121512;
  display: grid; place-items: center; font: 700 11px/1 var(--head);
}
.street .cards span.r { color: #d6333f; }
.street .cards span.x { background: transparent; border: 1px dashed var(--line-2); }

/* Соперники */
.rivals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .rivals { grid-template-columns: 1fr; } }
.rival { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.rival h3 { display: flex; align-items: center; gap: 10px; font: 600 16px/1.3 var(--head); margin: 0 0 4px; }
.rival h3 .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.rival h3 .dot.t { background: var(--teal); }
.rival h3 .dot.m { background: var(--muted); }
.rival > p { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line);
  font-size: 13px; font-weight: 600; cursor: default; position: relative;
}
.chip:hover { border-color: var(--line-2); }
.chip.main { border-color: rgba(184, 255, 60, .45); color: var(--accent); }

/* Проверки */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .proof { grid-template-columns: 1fr; gap: 32px; } }
.proof .sub { margin-bottom: 24px; }
.checks { display: grid; gap: 12px; }
.check { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.check .ok { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.check b { display: block; font-weight: 700; margin-bottom: 2px; }
.check span { color: var(--muted); font-size: 14px; }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.num { padding: 22px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.num .v { font: 700 30px/1 var(--head); letter-spacing: -.02em; }
.num .v small { font-size: 16px; color: var(--muted); margin-left: 4px; font-weight: 600; }
.num .l { color: var(--muted); font-size: 14px; margin-top: 8px; }
.num.wide { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(184, 255, 60, .10), rgba(63, 208, 166, .06) 60%, var(--panel)); border-color: rgba(184, 255, 60, .22); }

/* Ассистент и майнинг */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.tile { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; }
.tile h3 { font: 600 22px/1.25 var(--head); margin: 18px 0 8px; }
.tile p { color: var(--muted); margin: 0 0 18px; }
.tile ul { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.tile li { display: flex; gap: 10px; }
.tile li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 10px; }
.tile .foot { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--dim); font-size: 13px; }
.ver { font: 600 13px/1 var(--head); color: var(--accent); padding: 6px 10px; border-radius: 8px; background: var(--accent-soft); }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); font: 700 15px/1 var(--head); margin-bottom: 16px;
}
.step h3 { font: 600 17px/1.3 var(--head); margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Финальный призыв */
.final { padding: 96px 0 0; }
.final-box {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 24px; border-radius: 28px; border: 1px solid rgba(184, 255, 60, .25);
  background:
    radial-gradient(600px 300px at 50% 120%, rgba(184, 255, 60, .22), transparent 70%),
    radial-gradient(ellipse at 50% 0%, #1b4436 0%, #0f2a20 60%, #0c1a14 100%);
}
.final-box h2 { margin: 0 auto 12px; }
.final-box p { color: rgba(230, 234, 227, .75); margin: 0 auto 30px; max-width: 520px; font-size: 17px; }
.final-box .cta { justify-content: center; }
.final-box .suits { position: absolute; inset: 0; pointer-events: none; font-size: 120px; color: rgba(255, 255, 255, .03); }
.final-box .suits span { position: absolute; }

/* Подвал */
footer { padding: 64px 0 40px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
footer .brand { font-size: 26px; }   /* как в шапке */
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer nav a:hover { color: var(--text); }
footer .spacer { flex: 1; }

/* Появление при прокрутке */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
}

.hidden { display: none !important; }

/* ---------- Витрина примеров: листается свайпом, вкладками и сама раз в 8 с ---------- */
.showcase { min-width: 0; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; padding: 18px 12px 34px; overflow: hidden; }
.slide .stage { margin: 0 auto; }
.sc-nav { display: flex; align-items: center; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sc-tab {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  color: var(--muted); font: 600 13px/1 var(--body); cursor: pointer; transition: color .15s, border-color .15s;
}
.sc-tab:hover { color: var(--text); }
.sc-tab.on { color: var(--text); border-color: var(--line-2); }
.sc-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.sc-tab.on .dot { background: var(--accent); }
.sc-tab[data-slide="1"].on .dot { background: var(--teal); }
.sc-tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); }
.sc-nav.auto .sc-tab.on i { animation: sc-progress 8s linear both; }
@keyframes sc-progress { from { width: 0; } to { width: 100%; } }
.sc-cap { width: 100%; text-align: center; font-size: 11px; color: var(--dim); letter-spacing: .04em; margin-top: 4px; }
@media (max-width: 520px) { .slide { padding: 8px 2px 22px; } }
@media (max-width: 600px) { .nav .wrap { gap: 10px; } .brand { font-size: 23px; } }
/* Карточек не кратно колонкам — последняя добирает ряд до конца (сейчас 5: «Библиотека солвера» на две колонки) */
@media (min-width: 961px) { .features .feat:last-child:nth-child(3n+2) { grid-column: span 2; } .features .feat:last-child:nth-child(3n+1) { grid-column: span 3; } }
@media (min-width: 621px) and (max-width: 960px) { .features .feat:last-child:nth-child(odd) { grid-column: span 2; } }
