/* ============================================================
   bkapk.com — дизайн-система «Купон».
   Метафора: табло букмекера и бумажный бет-слип.

   Осознанные решения, чтобы не выглядеть как шаблон из нейросети:
   1. Светлая «бумага» купона с графитовой печатью. Тёмное табло забраковано
      на просмотре: для справочника с длинными текстами слишком тяжело.
      Тема одна — «сайт умеет и так, и так» и есть примета шаблона.
   2. Радиусы 3–6px вместо модных 16px. Табло не бывает мягким.
   3. Видимые рамки в 1px вместо размытых теней-подушек.
   4. Числа — моноширинные с tabular-nums: вес APK и версия Android
      читаются как коэффициенты на табло.
   5. Левая акцентная полоса у блоков — цитата из купона.
   6. Заголовки разрядкой и капсом; ни одного «мягкого» градиента-пастели.
   ============================================================ */

:root {
  color-scheme: light;

  /* Ставка сыграла — главный акцент. Тёмно-зелёный, чтобы и текст читался на бумаге */
  --win:      #0b8a4a;
  --win-dim:  #16a35b;
  --win-deep: #066a37;
  --win-glow: rgba(11,138,74,.10);

  /* Предупреждение/ожидание расчёта */
  --gold:     #b87400;
  --gold-dim: rgba(184,116,0,.10);

  /* Проигрыш */
  --bad:      #d33a2c;
  --bad-dim:  rgba(211,58,44,.09);

  /* Бумажный купон: тёплый белый с графитовой печатью */
  --bg:       #f3f1ea;
  --surface:  #ffffff;
  --surface-2:#faf9f5;
  --raise:    #efede5;

  --ink:      #151a21;
  --ink-2:    #3b4552;
  --muted:    #6a7381;
  --line:     #e4e0d5;
  --line-2:   #d2cdbf;

  --radius:   6px;
  --radius-sm:4px;
  --wrap:     1500px;
  --read:     920px;

  --font:     'Nunito Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --head:     'Manrope', system-ui, sans-serif;
  --mono:     ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, 'Roboto Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Сетка-миллиметровка на фоне — намёк на разлинованное табло */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

h1, h2, h3, h4, h5 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.02em; }
a { color: var(--win); text-decoration: none; }
/* Ссылки в прозе не подчёркиваем — выделяем цветом. */
a:hover { color: var(--win-deep); }
img, svg { max-width: 100%; }
b, strong { color: var(--ink); font-weight: 700; }

/* Поля растут вместе с экраном: на широком мониторе 40px читались как «впритык к краю».
   Ширину колонки при этом не режем — пустые поля по бокам и есть примета шаблона. */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--win); color: #04160c;
  padding: 10px 16px; font-weight: 800; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--head); font-weight: 800; font-size: .94rem;
  letter-spacing: .01em;
  padding: 12px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--win); color: #fff; }
.btn-primary:hover { background: var(--win-deep); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #9a6100; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--win); color: var(--win); }
.btn-disabled { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line-2); cursor: not-allowed; }
.btn-disabled:hover { color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: .84rem; }

/* ---------- Чипы ---------- */
/* Эмодзи внутри чипов прячем: пиктограммы-смайлы — главная примета шаблона. */
.chip-ic { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--head); font-weight: 700; font-size: .76rem;
  letter-spacing: .02em;
  padding: 4px 9px; border-radius: var(--radius-sm);
  background: var(--raise); color: var(--ink-2); border: 1px solid var(--line-2);
  white-space: nowrap;
}
.chip::before { content: ""; width: 5px; height: 5px; background: var(--muted); flex: none; }
.chip-site, .chip-feature { color: var(--ink-2); }
.chip-site::before, .chip-feature::before { background: var(--win-dim); }
.chip-warn { color: var(--gold); background: var(--gold-dim); border-color: rgba(255,176,32,.3); }
.chip-warn::before { background: var(--gold); }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,245,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-kz { color: var(--win); }
.brand-ic { flex: none; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a {
  font-family: var(--head); font-weight: 700; font-size: .9rem; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--radius-sm); letter-spacing: .01em;
}
.menu a:hover { color: var(--ink); background: var(--raise); }
.menu a.active { color: var(--win); }
.menu-cta {
  margin-left: 8px; background: var(--win); color: #fff !important;
  border: 0; padding: 10px 18px !important;
}
.menu-cta:hover { background: var(--win-deep) !important; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 980px) {
  .burger { display: flex; }
  .menu {
    position: fixed; top: 66px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line-2);
    padding: 8px 18px 18px; transform: translateY(-150%); transition: transform .28s ease;
  }
  .menu.open { transform: translateY(0); }
  .menu a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-cta { margin: 12px 0 0; text-align: center; border-bottom: 0 !important; }
}

/* ---------- Hero: табло ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 420px at 15% -10%, var(--win-glow), transparent 65%);
}
/* Диагональная штриховка справа — «лента» табло */
.hero::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 45%;
  background: repeating-linear-gradient(135deg, var(--line) 0 1px, transparent 1px 14px);
  opacity: .5; pointer-events: none;
}
/* padding-block, а не шорткат: класс висит на том же узле, что и .wrap,
   и «padding: X 0» обнулял бы её боковые поля — текст упирался бы в край. */
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; padding-block: clamp(40px, 6vw, 76px); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--win); background: var(--win-glow); border: 1px solid rgba(35,224,122,.3);
  padding: 6px 12px; border-radius: var(--radius-sm);
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--win); box-shadow: 0 0 0 3px rgba(35,224,122,.2); }
.hero h1 { color: var(--ink); font-size: clamp(2rem, 4.2vw, 3.4rem); margin: 18px 0 14px; letter-spacing: -.035em; }
.hero h1 .accent { color: var(--win); }
.hero p.lead { color: var(--ink-2); font-size: 1.06rem; max-width: 620px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Статистика как строка коэффициентов */
.hero-stats { display: flex; gap: 0; margin-top: 36px; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.hero-stats .st { flex: 1 1 150px; padding: 16px 18px; border-right: 1px solid var(--line-2); background: var(--surface-2); }
.hero-stats .st:last-child { border-right: 0; }
.hero-stats .st b {
  display: block; font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 1.35rem; font-weight: 700; color: var(--win); letter-spacing: -.02em;
}
.hero-stats .st span { display: block; margin-top: 3px; font-size: .78rem; color: var(--muted); line-height: 1.4; }
.hero-art { justify-self: center; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { display: none; }
  .hero::after { display: none; }
}

/* ---------- Секции ---------- */
.section { padding: clamp(40px, 5vw, 68px) 0; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-warn { padding-top: 34px; padding-bottom: 0; }
.section-head { max-width: 780px; margin-bottom: 28px; }
.kicker {
  display: inline-block; font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--win);
  padding-bottom: 8px; border-bottom: 2px solid var(--win-dim); margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); color: var(--ink); }
.section-head p { color: var(--muted); margin: 0; }

/* ---------- Предупреждение ---------- */
.warnbox {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--gold-dim); border: 1px solid rgba(255,176,32,.28);
  border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 20px 22px;
}
.warnbox-ic { font-size: 1.2rem; line-height: 1.4; flex: none; filter: grayscale(.3); }
.warnbox-title { font-size: 1.1rem; margin: 0 0 6px; color: var(--gold); }
.warnbox p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* ---------- Квиз: купон ---------- */
.quiz { background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--win-dim); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.quiz-step { margin-bottom: 24px; }
.quiz-q { font-family: var(--head); font-weight: 800; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.quiz-q .num {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 24px; height: 24px; border-radius: var(--radius-sm);
  background: var(--win-glow); border: 1px solid rgba(35,224,122,.3);
  color: var(--win); font-family: var(--mono); font-size: .8rem; font-weight: 700;
}
.quiz-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: .89rem; color: var(--ink-2); transition: border-color .15s, color .15s, background .15s;
}
.opt:hover { border-color: var(--line-2); color: var(--ink); background: var(--raise); }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt-ic { font-size: .95em; filter: grayscale(1); opacity: .55; }
.opt.checked { border-color: var(--win); color: var(--win); background: var(--win-glow); }
.opt.checked .opt-ic { filter: none; opacity: 1; }
.quiz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px dashed var(--line-2); }
.quiz-count { font-family: var(--mono); font-size: .84rem; color: var(--muted); }
.quiz-count b { color: var(--win); }
.quiz-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 22px; }
.quiz-empty { margin-top: 20px; padding: 16px 18px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: var(--radius-sm); color: var(--muted); font-size: .92rem; }
.is-hidden { display: none; }

.qr-card { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px; }
.qr-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.qr-name { font-family: var(--head); font-weight: 800; color: var(--ink); }
.qr-price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .86rem; color: var(--win); margin-bottom: 8px; }
.qr-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.qr-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Таблица: линия ставок ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--radius); }
table.rating { width: 100%; border-collapse: collapse; min-width: 860px; background: var(--surface); }
table.rating th {
  text-align: left; padding: 13px 16px; background: var(--surface-2);
  font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
table.rating td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.rating tbody tr:last-child td { border-bottom: 0; }
table.rating tbody tr[data-slug]:hover { background: var(--raise); }
table.rating tr.dim { opacity: .28; }
tr.subhead td { background: var(--surface-2); padding: 9px 16px; border-bottom: 1px solid var(--line-2); }
tr.subhead .sh { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.cell-svc { display: flex; align-items: center; gap: 12px; }
.cell-svc .svc-meta { display: flex; flex-direction: column; gap: 2px; }
.cell-svc .svc-name { font-family: var(--head); font-weight: 800; font-size: 1rem; }
.cell-svc .svc-name a { color: var(--ink); }
.cell-svc .svc-name a:hover { color: var(--win); }
.cell-svc .svc-site { font-family: var(--mono); font-size: .74rem; color: var(--muted); }

.trial-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: .88rem; }
.trial-pill .tmark { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: var(--radius-sm); font-size: .7rem; font-weight: 800; flex: none; }
.trial-pill.ok { color: var(--win); }
.trial-pill.ok .tmark { background: var(--win-glow); color: var(--win); border: 1px solid rgba(35,224,122,.35); }
.trial-pill.no { color: var(--muted); }
.trial-pill.no .tmark { background: var(--raise); color: var(--muted); border: 1px solid var(--line-2); }
.trial-sub { display: block; margin-top: 3px; font-size: .72rem; color: var(--muted); }

.cell-price { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1rem; font-weight: 700; color: var(--ink); }
.cell-feats { max-width: 240px; }
.src-line { font-size: .78rem; color: var(--muted); line-height: 1.45; }

.cell-reviews { display: flex; flex-direction: column; gap: 2px; }
.cell-reviews .rv-avg { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1rem; color: var(--ink); }
.cell-reviews .rv-cnt { font-size: .73rem; color: var(--muted); }
.cell-reviews .rv-none { font-size: .78rem; color: var(--muted); }
.cell-actions { display: flex; flex-wrap: wrap; gap: 7px; }

/* ---------- Карточки-инструкции ---------- */
.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.guide {
  display: flex; flex-direction: column; gap: 7px; position: relative;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 20px; color: var(--ink); transition: border-color .15s, background .15s;
}
.guide::after { content: "→"; position: absolute; top: 18px; right: 18px; color: var(--line-2); font-size: 1.1rem; transition: color .15s, transform .15s; }
.guide:hover { color: var(--ink); border-color: var(--win-dim); background: var(--raise); }
.guide:hover::after { color: var(--win); transform: translateX(3px); }
.guide-ic { font-size: 1.2rem; line-height: 1; filter: grayscale(1); opacity: .5; }
.guide b { font-family: var(--head); font-size: 1rem; }
.guide span:last-child { font-size: .86rem; color: var(--muted); line-height: 1.5; }

/* ---------- Карточка БК ---------- */
.reviews-group { margin-bottom: 44px; }
.group-title { font-family: var(--mono); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); margin-bottom: 14px; scroll-margin-top: 90px; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
.ch-titles { flex: 1; min-width: 0; }
.ch-titles h4 { margin: 0 0 7px; font-size: 1.15rem; }
.ch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card-price-from { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.1rem; font-weight: 700; color: var(--win); white-space: nowrap; }
.card-body { padding: 22px; }
.card-desc { margin: 0 0 16px; font-size: .96rem; }

.specs { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.specs li { display: flex; align-items: center; gap: 7px; }
.specs li b { color: var(--ink); font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }
.specs .tmark { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: var(--radius-sm); font-size: .68rem; font-weight: 800; }
.specs .tmark.ok { background: var(--win-glow); color: var(--win); border: 1px solid rgba(35,224,122,.35); }
.specs .tmark.no { background: var(--raise); color: var(--muted); border: 1px solid var(--line-2); }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.pc { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--surface-2); }
.pc h5 { margin: 0 0 10px; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.pc ul { margin: 0; padding-left: 0; list-style: none; }
.pc li { position: relative; padding-left: 20px; margin: 7px 0; font-size: .89rem; }
.pc li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.pc-pros { border-left: 3px solid var(--win-dim); }
.pc-pros h5 { color: var(--win); }
.pc-pros li::before { content: "+"; color: var(--win); }
.pc-cons { border-left: 3px solid var(--bad); }
.pc-cons h5 { color: var(--bad); }
.pc-cons li::before { content: "−"; color: var(--bad); }
@media (max-width: 720px) { .proscons { grid-template-columns: 1fr; } }

.card-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.back-top { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.back-top:hover { color: var(--win); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: var(--read); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; cursor: pointer; background: none; border: 0;
  padding: 18px 40px 18px 0; position: relative;
  font-family: var(--head); font-weight: 700; font-size: 1.02rem; color: var(--ink);
}
.faq-q::after { content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.3rem; color: var(--win); transition: transform .2s; }
.faq-item.open .faq-q::after { content: "−"; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .28s ease; }
.faq-a-inner { padding: 0 0 18px; font-size: .95rem; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--surface-2); border-top: 1px solid var(--line-2); padding: 48px 0 32px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; padding-bottom: 28px; }
.brand--footer { margin-bottom: 12px; }
.footer-about { color: var(--muted); font-size: .9rem; margin: 0; max-width: 480px; }
.footer-nav { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-nav a { color: var(--ink-2); font-size: .9rem; }
.footer-nav a:hover { color: var(--win); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

.legal-box { border-top: 1px solid var(--line); padding-top: 22px; display: flex; flex-direction: column; gap: 11px; }
.legal-age { display: flex; gap: 11px; align-items: flex-start; margin: 0; font-size: .86rem; color: var(--ink-2); }
.age-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 24px; border-radius: var(--radius-sm); background: var(--bad); color: #fff; font-family: var(--mono); font-weight: 700; font-size: .78rem; }
.legal-line { margin: 0; font-size: .81rem; color: var(--muted); line-height: 1.6; }
.legal-line b { color: var(--ink-2); }
.disclaimer { font-size: .78rem; color: #5d6b7c; margin: 20px 0 0; line-height: 1.6; }
.copyright { font-family: var(--mono); font-size: .78rem; color: #5d6b7c; margin: 10px 0 0; }

/* ---------- Страницы-инструкции ---------- */
.page-hero { position: relative; border-bottom: 1px solid var(--line-2); padding: clamp(28px, 4vw, 48px) 0; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 300px at 10% -20%, var(--win-glow), transparent 60%); }
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { color: var(--ink); font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-bottom: .4em; }
.page-hero p { margin: 0; max-width: var(--read); color: var(--ink-2); }
.crumbs { margin-bottom: 14px; font-family: var(--mono); font-size: .76rem; color: var(--muted); letter-spacing: .03em; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--win); }

.prose { max-width: var(--read); }
.prose h2 { margin-top: 1.7em; font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--ink); }
.prose h3 { margin-top: 1.4em; font-size: 1.1rem; }
.prose p, .prose li { font-size: 1rem; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 20px; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--win-dim); }

/* Нумерованные шаги — как пункты купона */
.steps { list-style: none; counter-reset: st; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { counter-increment: st; position: relative; background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--win-dim); border-radius: var(--radius-sm); padding: 14px 18px 14px 56px; margin: 0; }
.steps li::before {
  content: counter(st, decimal-leading-zero); position: absolute; left: 16px; top: 13px;
  font-family: var(--mono); font-weight: 700; font-size: .9rem; color: var(--win);
}

.errbox { background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--bad); border-radius: var(--radius-sm); padding: 18px 20px; margin: 16px 0; }
.errbox h3 { margin: 0 0 8px; font-size: 1.02rem; }
.errbox p { margin: 0 0 8px; }
.errbox p:last-child { margin-bottom: 0; }
.err-msg { display: inline-block; font-family: var(--mono); font-size: .86rem; background: var(--bad-dim); color: #b3261e; border: 1px solid rgba(255,77,77,.25); border-radius: var(--radius-sm); padding: 2px 8px; }

/* ---------- Страница букмекера ---------- */
.bk-hero { display: flex; gap: 20px; align-items: flex-start; }
.bk-hero .badge { flex: none; }
.bk-hero h1 { margin-bottom: .3em; }

.bk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin-bottom: 22px; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.bk-fact { padding: 16px 18px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bk-fact span { display: block; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 5px; }
.bk-fact b { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.02rem; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.bk-fact .tmark { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: var(--radius-sm); font-size: .68rem; }
.bk-fact .tmark.ok { background: var(--win-glow); color: var(--win); border: 1px solid rgba(35,224,122,.35); }
.bk-fact .tmark.no { background: var(--raise); color: var(--muted); border: 1px solid var(--line-2); }
.bk-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 4px; }

.bk-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.bk-other { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 14px; color: var(--ink); transition: border-color .15s, background .15s; }
.bk-other:hover { color: var(--ink); border-color: var(--win-dim); background: var(--raise); }
.bk-other-name { font-family: var(--head); font-weight: 800; }
.bk-other-meta { font-family: var(--mono); font-size: .74rem; color: var(--muted); }

/* ---------- Отзывы ---------- */
.stars { display: inline-flex; gap: 1px; }
.star { color: var(--line-2); font-size: .9rem; line-height: 1; }
.star.on { color: var(--gold); }

.rv-summary { display: grid; grid-template-columns: minmax(170px, 200px) minmax(190px, 250px) 1fr; gap: 28px; align-items: start; background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--gold); border-radius: var(--radius); padding: 24px; margin-bottom: 26px; }
.rv-score { text-align: center; }
.rv-score b { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 3.2rem; line-height: 1; color: var(--ink); letter-spacing: -.04em; margin-bottom: 8px; }
.rv-score .stars { font-size: 1.1rem; }
.rv-score-sub { display: block; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.rv-dist { display: flex; flex-direction: column; gap: 5px; }
.rv-dist-row { display: grid; grid-template-columns: 26px 1fr 40px; align-items: center; gap: 9px; font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.rv-dist-bar { display: block; height: 7px; background: var(--raise); border: 1px solid var(--line-2); overflow: hidden; }
.rv-dist-bar i { display: block; height: 100%; background: var(--win-dim); }
.rv-dist-n { text-align: right; font-variant-numeric: tabular-nums; }
.rv-verdict p { margin: 0 0 9px; font-size: .94rem; }
.rv-verdict b { color: var(--win); font-family: var(--mono); }
.rv-verdict .rv-note { font-size: .81rem; color: var(--muted); line-height: 1.6; }
.rv-src { font-family: var(--head); font-weight: 700; }

.rv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 12px; margin-bottom: 8px; }
.rv { background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--line-2); border-radius: var(--radius-sm); padding: 18px; }
.rv--pos { border-left-color: var(--win-dim); }
.rv--neg { border-left-color: var(--bad); }
.rv-bk { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 4px 10px 4px 4px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line-2); font-family: var(--head); font-weight: 700; font-size: .8rem; color: var(--ink); }
.rv-bk:hover { color: var(--win); border-color: var(--win-dim); }
.rv-head { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; margin-bottom: 11px; }
/* Инициалы — подложка. Фото проявляется только после успешной загрузки (.ok по onload). */
.rv-ava { position: relative; overflow: hidden; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-family: var(--head); font-weight: 800; font-size: .88rem; display: flex; align-items: center; justify-content: center; flex: none; }
.rv-ava img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; opacity: 0; transition: opacity .2s ease; }
.rv-ava img.ok { opacity: 1; }
.rv-who { min-width: 0; }
.rv-author { display: block; font-family: var(--head); font-weight: 700; font-size: .92rem; color: var(--ink); }
.rv-level { display: block; font-size: .73rem; color: var(--muted); }
.rv-meta { text-align: right; }
.rv-date { display: block; font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-top: 3px; }
.rv-text { margin: 0; font-size: .92rem; line-height: 1.65; }
.rv-reply { margin-top: 12px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line); border-left: 2px solid var(--win-dim); border-radius: var(--radius-sm); }
.rv-reply-label { display: block; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--win-dim); margin-bottom: 5px; }
.rv-reply p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .rv-summary { grid-template-columns: 1fr; gap: 20px; }
  .bk-hero { flex-direction: column; gap: 14px; }
}

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(4,8,12,.94); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; }
.lightbox.open { display: flex; }
.lb-close { position: absolute; top: 18px; right: 24px; font-size: 2rem; color: #fff; }
#lb-img { max-width: 100%; max-height: 90vh; border: 1px solid var(--line-2); }

/* ---------- Прочее ---------- */
.note { background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--win-dim); border-radius: var(--radius-sm); padding: 15px 18px; color: var(--muted); font-size: .9rem; }
.note a { font-weight: 600; }
.center { text-align: center; }
.mt-24 { margin-top: 24px; }

/* ============================================================
   «Что ломается» — жалобы по темам
   Красный — проблемы конторы, янтарный — проблемы самого приложения.
   ============================================================ */
.cmp { background: var(--surface); border: 1px solid var(--line-2); border-left: 3px solid var(--bad); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 26px; scroll-margin-top: 90px; }
.cmp--thin { border-left-color: var(--line-2); }
.cmp-head { margin-bottom: 18px; }
.cmp-title { font-size: 1.15rem; margin: 0 0 4px; }
.cmp-sub { margin: 0; color: var(--muted); font-size: .9rem; }
.cmp-bars { display: flex; flex-direction: column; gap: 9px; }
.cmp-row { display: grid; grid-template-columns: minmax(170px, 280px) 1fr 52px; align-items: center; gap: 14px; }
.cmp-label { font-size: .9rem; color: var(--ink); }
.cmp-tag { display: inline-block; margin-left: 8px; padding: 1px 6px; border-radius: var(--radius-sm); font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); background: var(--gold-dim); border: 1px solid rgba(255,176,32,.3); vertical-align: 2px; }
.cmp-bar { display: block; height: 10px; background: var(--raise); border: 1px solid var(--line-2); overflow: hidden; }
.cmp-bar i { display: block; height: 100%; background: linear-gradient(90deg, rgba(255,77,77,.5), var(--bad)); }
.cmp-row.is-app .cmp-bar i { background: linear-gradient(90deg, rgba(255,176,32,.5), var(--gold)); }
.cmp-val { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); text-align: right; }
.cmp-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 20px; }
.cmp-quote { margin: 0; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cmp-quote figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono); font-size: .72rem; color: var(--muted); margin-bottom: 8px; }
.cmp-quote blockquote { margin: 0; font-size: .9rem; line-height: 1.6; color: var(--ink-2); }
.cmp mark { background: var(--bad-dim); color: #b3261e; padding: 0 2px; border-radius: 2px; }
.cmp-note { margin: 14px 0 0; font-size: .8rem; color: var(--muted); line-height: 1.6; }
.cmp-note + .group-title { margin-top: 40px; }

/* Селекторы через table.rating.cmp-matrix: у базового правила таблицы специфичность выше,
   его nowrap не давал заголовкам тем переноситься, и матрица распухала до 1800px. */
.cmp-matrix { min-width: 1120px; table-layout: fixed; }
table.rating.cmp-matrix th { white-space: normal; line-height: 1.25; vertical-align: bottom; letter-spacing: .04em; font-size: .64rem; padding: 12px 10px; }
table.rating.cmp-matrix th:nth-child(1) { width: 170px; }
table.rating.cmp-matrix th:nth-child(2) { width: 64px; }
table.rating.cmp-matrix td { padding: 10px; }
.cmp-bk { display: inline-flex; align-items: center; gap: 9px; font-family: var(--head); font-weight: 700; color: var(--ink); white-space: nowrap; }
.cmp-bk:hover { color: var(--win); }
.cmp-n { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.heat { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: .86rem; text-align: center; }
.heat-0 { color: var(--muted); }
.heat-1 { color: #a8321f; background: rgba(211,58,44,.07); }
.heat-2 { color: #8f2416; background: rgba(211,58,44,.16); font-weight: 600; }
.heat-3 { color: #fff; background: var(--bad); font-weight: 700; }

@media (max-width: 720px) {
  .cmp { padding: 18px; }
  .cmp-row { grid-template-columns: 1fr 48px; gap: 6px 10px; }
  .cmp-label { grid-column: 1; grid-row: 1; }
  .cmp-val { grid-column: 2; grid-row: 1; }
  .cmp-bar { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
