/* ============================================================
   topcasinocis MVP — чёрная тема
   Один акцент (лайм), данные вместо декора, плотность с воздухом.
   ============================================================ */

:root {
  --bg: #08090b;
  --surface: #0e0f12;
  --surface-2: #141519;
  --surface-3: #1b1c21;

  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);

  --text: #f4f4f6;
  --muted: #8b8b95;
  --muted-2: #7d7d89;

  --lime: #c9f24d;
  --lime-ink: #0a0c04;
  --lime-soft: rgba(201, 242, 77, 0.1);
  --lime-line: rgba(201, 242, 77, 0.32);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;

  --wrap: 1180px;
  --hdr: 64px;

  /* приподнятые поверхности для «отрыва» от фона */
  --raise: #16171c;
  --raise-2: #1d1e24;
  --hair: rgba(255, 255, 255, 0.1);

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 560px;
  background:
    radial-gradient(560px 300px at 15% 0%, rgba(201, 242, 77, 0.08), transparent 70%),
    radial-gradient(640px 340px at 85% 4%, rgba(110, 80, 255, 0.07), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, dt { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img { display: block; }

.wrap { position: relative; z-index: 1; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 26px; }

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

.hdr {
  position: sticky; top: 0; z-index: 50;
  height: var(--hdr);
  background: linear-gradient(180deg, rgba(16, 17, 21, 0.94), rgba(9, 10, 12, 0.9));
  backdrop-filter: saturate(170%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 0 rgba(0, 0, 0, 0.6);
  transition: box-shadow .2s, background .2s;
}
.hdr::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 242, 77, .5), transparent);
  opacity: .55;
  pointer-events: none;
}
.hdr--stuck {
  background: linear-gradient(180deg, rgba(18, 19, 24, 0.98), rgba(10, 11, 14, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 34px -18px rgba(0, 0, 0, 0.95);
}
.hdr__in { height: 100%; display: flex; align-items: center; gap: 20px; }

.mark { display: flex; align-items: center; gap: 10px; flex: none; }
.mark__box {
  width: 28px; height: 28px; border-radius: 9px;
  background: linear-gradient(145deg, #dcff6b, #a8d92c);
  color: var(--lime-ink);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -10px rgba(201, 242, 77, .85), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.mark__box svg { width: 16px; height: 16px; display: block; }
.mark__txt { font-size: 14.5px; font-weight: 700; letter-spacing: -.005em; text-transform: uppercase; white-space: nowrap; }
.mark__txt em { font-style: normal; color: var(--lime); margin-left: .12em; }

.nav { display: flex; gap: 2px; }
.nav a {
  position: relative;
  padding: 8px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: #b3b3bf;
  transition: color .15s, background .15s;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.nav a.is-active { color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px; background: var(--lime);
  box-shadow: 0 0 10px rgba(201, 242, 77, .7);
}

.search {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  width: 240px; min-width: 0; flex: 0 1 240px; height: 38px; padding: 0 13px;
  background: var(--raise); border: 1px solid var(--hair); border-radius: 999px;
  color: #9a9aa6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.search:hover { border-color: rgba(255, 255, 255, .18); }
.search:focus-within { border-color: var(--lime-line); background: var(--raise-2); box-shadow: 0 0 0 3px rgba(201, 242, 77, .09); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 13.5px; color: var(--text); }
.search input::placeholder { color: #7f7f8c; }

.hdr__cta {
  flex: none; padding: 9px 17px; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink);
  font-size: 13px; font-weight: 600;
  box-shadow: 0 8px 20px -12px rgba(201, 242, 77, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.hdr__cta:hover { transform: translateY(-1px); background: #d4fa62; box-shadow: 0 12px 28px -14px rgba(201, 242, 77, .95), inset 0 1px 0 rgba(255, 255, 255, .4); }

/* мобильное меню (без JS) */
.mnav { display: none; position: relative; flex: none; margin-left: auto; }
.mnav summary {
  list-style: none; cursor: pointer;
  padding: 8px 14px; border: 1px solid var(--hair); border-radius: 999px;
  background: var(--raise); font-size: 12.5px; color: #b3b3bf;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav[open] summary { color: #fff; border-color: var(--lime-line); }
.mnav__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 190px; padding: 8px;
  background: var(--raise-2); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px;
  box-shadow: 0 24px 50px -24px #000;
  display: flex; flex-direction: column;
}
.mnav__panel a { padding: 9px 12px; border-radius: 9px; font-size: 13.5px; color: #b3b3bf; }
.mnav__panel a:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- hero ---------- */

.hero { padding: 56px 26px 36px; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--muted);
  padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(22, 23, 28, 0.85); margin-bottom: 22px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(201,242,77,.12); }

.hero h1 {
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 0.99; letter-spacing: -0.04em; font-weight: 600;
  max-width: 17ch;
}
.hero h1 em { font-style: normal; color: var(--lime); }

.hero__lead { margin-top: 22px; max-width: 54ch; font-size: 16px; line-height: 1.6; color: var(--muted); }

.stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stats > div {
  padding: 13px 18px; min-width: 134px;
  background: #101116; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.stats dt { font-size: 11.5px; color: var(--muted-2); margin-bottom: 2px; }
.stats dd { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }

/* ---------- фильтры ---------- */

.bar {
  position: sticky; top: var(--hdr); z-index: 40;
  background: linear-gradient(180deg, rgba(23, 24, 29, 0.97), rgba(13, 14, 18, 0.97));
  backdrop-filter: saturate(170%) blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 40px -30px #000, inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.bar__in { display: flex; align-items: center; gap: 22px; padding-top: 13px; padding-bottom: 13px; }

.filters { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.fgroup { display: flex; align-items: center; gap: 9px; }
.fgroup + .fgroup {
  padding-left: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}
.flabel {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600; color: #8e8e9c;
}
.chips { display: flex; gap: 6px; }

.chip {
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: var(--raise);
  color: #bcbcc8;
  font-size: 12.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: color .15s, background .15s, border-color .15s, box-shadow .15s;
}
.chip:hover {
  color: #fff; background: var(--raise-2);
  border-color: rgba(255, 255, 255, 0.26);
}
.chip:focus-visible { outline: 2px solid var(--lime-line); outline-offset: 2px; }
.chip[aria-pressed="true"] {
  background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-weight: 600;
  box-shadow: 0 8px 20px -11px rgba(201, 242, 77, .95), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.chip[aria-pressed="true"]:hover { background: #d4fa62; border-color: #d4fa62; }

.sort { flex: none; }
.sort select {
  appearance: none;
  padding: 8px 32px 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: var(--raise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23bcbcc8' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 13px center;
  font-size: 12.5px; font-weight: 500; color: #bcbcc8; cursor: pointer; outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color .15s, color .15s;
}
.sort select:hover { color: #fff; border-color: rgba(255, 255, 255, 0.26); }
.sort select:focus-visible { border-color: var(--lime-line); }

/* ---------- сетка карточек ---------- */

.list { padding-top: 22px; }

.list__meta { display: flex; align-items: center; gap: 16px; padding: 14px 0 16px; font-size: 12.5px; color: var(--muted); }
.list__hint { margin-left: auto; }
.list__meta .sort { margin-left: 4px; }
.list__meta .linkbtn { flex: none; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas:
    "brand brand cmp"
    "bonus bonus bonus"
    "dep   out   wag"
    "code  code  go";
  gap: 14px 12px;
  padding: 20px;
  background: #101116;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 24px 44px -38px #000;
  transition: border-color .18s, transform .18s, background .18s;
}
.card:hover { border-color: var(--lime-line); background: #14151a; transform: translateY(-2px); }

.card__rank {
  position: absolute; left: -1px; top: 20px;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 0 6px 6px 0;
  background: #24252c;
  color: #a6a6b2;
  font-size: 11px; font-variant-numeric: tabular-nums;
  display: grid; place-items: center;
}
.card__rank--top { background: var(--lime); color: var(--lime-ink); font-weight: 600; }

.card__brand { grid-area: brand; display: flex; align-items: center; gap: 12px; min-width: 0; padding-left: 18px; }
.card__bonus { grid-area: bonus; }
.card__dep { grid-area: dep; }
.card__out { grid-area: out; }
.card__wag { grid-area: wag; }
.card__code { grid-area: code; display: flex; align-items: center; }
.card__go { grid-area: go; }
.card__cmp { grid-area: cmp; justify-self: end; }

.logo-tile {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px; background: #1c1d23; border: 1px solid rgba(255, 255, 255, 0.09);
  display: grid; place-items: center; overflow: hidden;
}
.logo-tile img { width: 30px; height: 30px; object-fit: contain; }
.logo-tile span { font-size: 16px; font-weight: 700; color: var(--lime); }
.logo-tile--lg { width: 68px; height: 68px; border-radius: 20px; }
.logo-tile--lg img { width: 44px; height: 44px; }
.logo-tile--lg span { font-size: 24px; }

.bname { min-width: 0; }
.bname b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bname i { display: block; font-style: normal; font-size: 12px; color: var(--muted-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bonus b { display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.03em; color: var(--lime); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bonus i { display: block; font-style: normal; font-size: 12px; color: var(--muted-2); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.metric::before {
  content: attr(data-label);
  display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2); margin-bottom: 3px;
}
.num { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.num--muted { font-size: 13.5px; font-weight: 400; color: var(--muted-2); }

.code {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.05em;
  color: var(--lime); background: var(--lime-soft); border: 1px solid var(--lime-line);
  border-radius: 9px; padding: 6px 11px; cursor: pointer; white-space: nowrap;
  transition: background .15s;
}
.code:hover { background: rgba(201, 242, 77, 0.18); }
.code--lg { font-size: 16px; padding: 12px 20px; border-radius: 12px; text-align: center; }

.nocode { font-size: 12px; color: var(--muted-2); border: 1px dashed var(--line-2); border-radius: 9px; padding: 6px 11px; white-space: nowrap; }

.go {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; min-height: 38px; padding: 9px 14px;
  border: 0; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: background .14s, box-shadow .14s, transform .14s;
}
.go:hover { background: #d6ff5c; box-shadow: 0 12px 26px -14px rgba(201, 242, 77, .9); }
.go:active { transform: translateY(1px); }

.cmp {
  appearance: none; width: 22px; height: 22px; border-radius: 7px;
  border: 1.5px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.03); cursor: pointer;
  display: grid; place-items: center; margin: 0; transition: background .15s, border-color .15s;
}
.cmp:hover { border-color: var(--lime); }
.cmp:checked { background: var(--lime); border-color: var(--lime); }
.cmp:checked::after {
  content: ""; width: 9px; height: 5px;
  border-left: 2px solid var(--lime-ink); border-bottom: 2px solid var(--lime-ink);
  transform: rotate(-45deg) translateY(-1px);
}
.cmp:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.empty { padding: 60px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); grid-column: 1 / -1; }
.empty p { margin-bottom: 16px; }

.footnote { margin: 20px 2px 0; font-size: 12.5px; color: var(--muted-2); max-width: 78ch; line-height: 1.6; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 0; border-radius: 999px;
  background: var(--lime); color: var(--lime-ink);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -16px rgba(201, 242, 77, .9); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--lime-line); box-shadow: none; }
.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--block { width: 100%; }

.linkbtn { background: none; border: 0; padding: 0; font-size: 12.5px; color: var(--muted); cursor: pointer; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.linkbtn:hover { color: var(--lime); border-color: var(--lime-line); }

.iconbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; font-size: 12px; line-height: 1; }
.iconbtn:hover { color: var(--text); border-color: var(--line-2); }

/* ---------- секции ---------- */

.sec { margin-top: 58px; }
.sec-head { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.sec-head h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.035em; }
.sec-head p { font-size: 13.5px; color: var(--muted); max-width: 52ch; }

.voucher {
  margin-top: 54px; display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 32px 34px;
  background: linear-gradient(135deg, rgba(201, 242, 77, 0.09), rgba(201, 242, 77, 0.02));
  border: 1px solid var(--lime-line); border-radius: var(--r-lg);
}
.tag {
  display: inline-block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--lime); background: rgba(201, 242, 77, 0.12); border-radius: 6px; padding: 4px 9px; margin-bottom: 12px;
}
.voucher h2 { font-size: 24px; font-weight: 600; letter-spacing: -0.03em; }
.voucher p { margin-top: 10px; color: var(--muted); font-size: 14.5px; max-width: 56ch; }
.voucher b { color: var(--text); }
.voucher__src { font-size: 12.5px !important; color: var(--muted-2) !important; margin-top: 14px !important; }
.voucher__act { display: flex; flex-direction: column; gap: 10px; flex: none; min-width: 186px; }

.codes__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.codecard {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .16s, background .16s;
}
.codecard:hover { border-color: var(--lime-line); background: var(--surface-2); }
.codecard__brands { font-size: 12.5px; color: var(--muted-2); margin-top: 8px; line-height: 1.45; }

.trust { margin-top: 58px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 32px; border-top: 1px solid var(--line); }
.tnum { font-size: 12px; color: var(--lime); display: block; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.trust h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.trust p { font-size: 13.5px; color: var(--muted); line-height: 1.62; }

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

.ftr { margin-top: 64px; border-top: 1px solid var(--line); padding: 30px 0 48px; }
.ftr__in { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.ftr__brand { display: flex; gap: 10px; align-items: flex-start; }
.ftr__brand b { font-size: 14px; }
.ftr__brand p { font-size: 12.5px; color: var(--muted-2); margin-top: 2px; }
.ftr__links { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.ftr__links a:hover { color: var(--lime); }
.ftr__legal { width: 100%; font-size: 12px; color: var(--muted-2); max-width: 92ch; }
.ftr__legal b { color: var(--lime); }

/* ---------- панель сравнения ---------- */

.cmpbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(14, 15, 18, 0.94); backdrop-filter: blur(16px);
  border-top: 1px solid var(--lime-line);
  animation: slideUp .22s ease-out both;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cmpbar__in { max-width: var(--wrap); margin: 0 auto; padding: 13px 26px; display: flex; align-items: center; gap: 12px; }
.cmpbar__label { font-size: 12.5px; color: var(--muted-2); flex: none; }
.cmpbar__chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.cmpchip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; background: var(--surface-3); border-radius: 999px; font-size: 12.5px; }
.cmpchip button { background: none; border: 0; padding: 0; color: var(--muted-2); cursor: pointer; font-size: 13px; line-height: 1; }
.cmpchip button:hover { color: var(--text); }

/* ---------- модалка ---------- */

.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 5, 6, 0.78); backdrop-filter: blur(5px); }
.modal__panel {
  position: relative; width: min(1000px, 100%); max-height: 84vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 40px 90px -40px #000;
}
.modal__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.modal__head h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.modal__body { padding: 6px 24px 26px; }

.ctable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ctable th, .ctable td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable thead th { position: sticky; top: 69px; background: var(--surface); font-size: 13px; font-weight: 600; }
.ctable tbody th { font-weight: 400; color: var(--muted); font-size: 12.5px; width: 172px; }
.ctable .best { color: var(--lime); font-weight: 600; }
.ctable .brandrow { display: flex; align-items: center; gap: 9px; }
.ctable__cta th, .ctable__cta td { border-bottom: 0; padding-top: 18px; }
.ctable__cta .go { padding: 10px 14px; min-height: 0; }

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 10px);
  background: var(--lime); color: var(--lime-ink);
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 500;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Страница бренда
   ============================================================ */

.crumbs { padding: 22px 0 0; font-size: 12.5px; color: var(--muted-2); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--muted-2); }

.bhero { padding: 26px 0 34px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.bhero__top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.bhero h1 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.035em; font-weight: 600; max-width: 23ch; }
.bhero__lead { margin-top: 14px; font-size: 15.5px; color: var(--muted); max-width: 52ch; line-height: 1.6; }

.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.badge {
  font-size: 11.5px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.badge--ok { color: var(--lime); border-color: var(--lime-line); background: var(--lime-soft); }
.badge--new { color: #9ad0ff; border-color: rgba(154, 208, 255, 0.3); background: rgba(154, 208, 255, 0.08); }

.offer {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 84px;
}
.offer__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted-2); }
.offer__bonus { font-size: 26px; font-weight: 600; letter-spacing: -0.035em; color: var(--lime); line-height: 1.15; }
.offer__sub { font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }
.offer__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.offer__row span { color: var(--muted-2); }
.offer__row b { font-weight: 500; font-variant-numeric: tabular-nums; }

.offer__link {
  align-self: center; font-size: 12.5px; color: var(--muted-2);
  border-bottom: 1px solid var(--line-2); padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.offer__link:hover { color: var(--lime); border-color: var(--lime-line); }

.offer__vpn {
  display: flex; gap: 7px; align-items: flex-start;
  padding: 9px 11px; border-radius: 10px;
  background: var(--lime-soft); border: 1px solid var(--lime-line);
  font-size: 11.5px; line-height: 1.45; color: var(--lime);
}
.offer__vpn::before { content: "✓"; font-weight: 700; flex: none; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 8px 0 0; }
.bhero .facts { margin-top: 26px; grid-template-columns: repeat(2, 1fr); }
.fact { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.fact dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 4px; }
.fact dd { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.blayout { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; padding-top: 10px; }
.bmain { min-width: 0; }
.bside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }

.block { padding: 26px 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; padding-top: 4px; }
.block h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.025em; margin-bottom: 14px; }
.block h3 { font-size: 15px; font-weight: 600; margin: 18px 0 8px; }
.block p { font-size: 14.5px; color: var(--muted); line-height: 1.68; margin-bottom: 12px; max-width: 70ch; }
.block p b { color: var(--text); font-weight: 500; }

.plit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-top: 6px; }
.plit li { font-size: 14px; color: var(--muted); padding-left: 22px; position: relative; line-height: 1.5; }
.plit li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 10px; height: 5px; border-left: 1.5px solid var(--lime); border-bottom: 1.5px solid var(--lime);
  transform: rotate(-45deg);
}
.plit--minus li::before { border: 0; width: 8px; height: 1.5px; background: #ff8a6b; transform: none; top: 11px; }

.steps { counter-reset: s; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--text); font-size: 12px; font-weight: 600;
  display: grid; place-items: center;
}
.steps li b { color: var(--text); font-weight: 500; }

.faq { display: flex; flex-direction: column; gap: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 16px 0; font-size: 15px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted-2); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; color: var(--lime); }
.faq p { padding: 0 0 16px; font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 68ch; }

.side-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.side-card h3 { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.side-card p { font-size: 12.5px; color: var(--muted-2); line-height: 1.6; }
.side-list { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.side-list a { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.side-list a:last-child { border-bottom: 0; }
.side-list a:hover { color: var(--lime); }
.side-list .logo-tile { width: 30px; height: 30px; border-radius: 9px; }
.side-list .logo-tile img { width: 18px; height: 18px; }

/* ---------- сравнение (страница) ---------- */

.cmp-page { padding-top: 20px; }
.cmp-pick { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cmp-table th, .cmp-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp-table thead th { font-size: 15px; }
.cmp-table tbody th { color: var(--muted); font-size: 13px; font-weight: 400; width: 190px; }
.cmp-table .best { color: var(--lime); font-weight: 500; }
.cmp-table .ctable__cta .go { width: auto; min-width: 148px; padding: 10px 22px; }

/* ---------- адаптив ---------- */

@media (max-width: 1080px) {
  .nav { display: none; }
  .mnav { display: block; }
  .bhero { grid-template-columns: 1fr; gap: 22px; }
  .blayout { grid-template-columns: 1fr; }
  .bside { position: static; }
  .offer { position: static; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 40px 18px 28px; }
  .hero h1 { max-width: none; }
  .stats { display: grid; grid-template-columns: 1fr 1fr; }
  .stats > div { min-width: 0; }

  .bar { position: static; }
  .bar__in { flex-direction: column; align-items: stretch; gap: 12px; }
  .filters { flex-direction: column; align-items: stretch; gap: 13px; }
  .fgroup { flex-direction: column; align-items: flex-start; gap: 7px; }
  .fgroup + .fgroup { padding-left: 0; border-left: 0; padding-top: 13px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .chips { overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; max-width: 100%; }
  .chips::-webkit-scrollbar { display: none; }
  .sort select { width: 100%; }

  .list__hint { display: none; }
  .list__meta { flex-wrap: wrap; gap: 10px; }
  .list__meta > #result-line { width: 100%; }
  .list__meta .sort { margin-left: 0; flex: 1 1 auto; }

  .grid { grid-template-columns: 1fr; }

  .facts { grid-template-columns: 1fr 1fr; }
  .plit { grid-template-columns: 1fr; }

  .voucher { flex-direction: column; align-items: stretch; padding: 24px; }
  .voucher__act { flex-direction: row; }
  .voucher__act .btn { flex: 1; }
  .trust { grid-template-columns: 1fr; gap: 24px; }
  .codes__grid { grid-template-columns: 1fr; }
  .cmpbar__in { padding: 12px 18px; flex-wrap: wrap; }
  .cmpbar__label { display: none; }
}

@media (max-width: 560px) {
  .search { display: none; }
  .cmp { width: 26px; height: 26px; }
  .hdr__cta { display: none; }
  .hero h1 { font-size: 36px; }
  .card { padding: 18px; gap: 12px; }
  .bonus b { font-size: 19px; }
  .modal { padding: 0; }
  .modal__panel { max-height: 100vh; border-radius: 0; }
  .cmp-page #cmp-table { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
  .cmp-table { min-width: 560px; }
  .bhero h1 { font-size: 28px; }
  .offer__bonus { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- рубрики: статьи, хабы, сравнения ---------- */

.crumb { padding: 26px 0 0; font-size: 12.5px; color: var(--muted-2); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--lime); }
.crumb i { font-style: normal; opacity: .45; }

.art { max-width: 1120px; padding-bottom: 72px; }
.art h1 {
  font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.035em;
  font-weight: 600; margin: 18px 0 14px; max-width: 34ch;
  overflow-wrap: normal; hyphens: none; text-wrap: balance;
}
.art__lead { font-size: 16px; line-height: 1.62; color: var(--muted); max-width: 74ch; margin: 0 0 8px; }
.art__body { max-width: 78ch; }
.art__body h2 {
  font-size: 20px; font-weight: 600; letter-spacing: -0.02em;
  margin: 34px 0 12px; padding-top: 6px;
}
.art__body h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.art__body p { font-size: 15px; line-height: 1.68; color: #d6d6de; margin: 0 0 13px; }
.art__body ul, .art__body ol { margin: 0 0 16px; padding-left: 20px; }
.art__body li { font-size: 15px; line-height: 1.62; color: #d6d6de; margin-bottom: 7px; }
.art__body ul li::marker { color: var(--lime); }
.art__body ol li::marker { color: var(--lime); font-variant-numeric: tabular-nums; }
.art__body a { color: var(--text); text-decoration: underline; text-decoration-color: var(--lime-line); text-underline-offset: 3px; }
.art__body a:hover { color: var(--lime); }

.note {
  font-size: 12.5px; line-height: 1.55; color: var(--muted-2);
  border-left: 2px solid var(--lime-line); padding: 2px 0 2px 12px; margin: 14px 0 20px;
}

.hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin: 16px 0 8px; }
.hubcard {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 16px 15px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .15s, transform .15s, background .15s;
}
.hubcard:hover { border-color: var(--lime-line); background: var(--surface-2); transform: translateY(-1px); }
.hubcard b { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.hubcard span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.linkrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.linkrow a {
  font-size: 12.5px; padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: var(--surface);
  text-decoration: none; transition: color .15s, border-color .15s;
}
.linkrow a:hover { color: var(--lime); border-color: var(--lime-line); }

.subnav { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0 2px; }
.subnav a {
  font-size: 12.5px; padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); text-decoration: none;
  transition: color .15s, border-color .15s, background .15s;
}
.subnav a:hover { color: var(--text); border-color: var(--lime-line); }
.subnav a.is-active { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-weight: 600; }

.tablewrap { overflow-x: auto; margin: 16px 0 10px; border: 1px solid var(--line); border-radius: 14px; }
.tablewrap .ctable { min-width: 620px; }
.tablewrap .ctable thead th { position: static; }

.ctable--vs tbody th { width: 190px; }
.ctable--vs thead th { font-size: 13px; }

.logo-tile--xs { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
.code--sm { font-size: 11.5px; padding: 5px 9px; }

.vs {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px;
  padding: 22px; margin: 20px 0 6px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.vs__col { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.vs__col b { font-size: 16px; letter-spacing: -0.02em; }
.vs__col span:last-child { font-size: 12.5px; color: var(--muted); }
.vs__mid { font-size: 12px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .1em; }

@media (max-width: 700px) {
  .art h1 { max-width: none; }
  .vs { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .vs__mid { text-align: center; }
  .art__body h2 { margin-top: 28px; }
}

/* ---------- калькулятор отыгрыша ---------- */

.calc {
  margin: 20px 0 8px; padding: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2); border-radius: var(--r-lg);
  box-shadow: 0 24px 60px -40px #000, inset 0 1px 0 rgba(255, 255, 255, .05);
}

.calc__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

.calc__f {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .01em;
  color: var(--muted); text-transform: uppercase;
}
.calc__f input, .calc__f select {
  width: 100%; height: 42px; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--hair); border-radius: 11px;
  color: var(--text); font-family: var(--mono); font-size: 14px;
  outline: 0;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -moz-appearance: textfield;
}
.calc__f input::-webkit-outer-spin-button,
.calc__f input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc__f input:hover, .calc__f select:hover { border-color: rgba(255, 255, 255, .2); }
.calc__f input:focus, .calc__f select:focus {
  border-color: var(--lime-line); background: var(--surface-2);
  box-shadow: 0 0 0 3px rgba(201, 242, 77, .1);
}
.calc__f select { font-family: var(--sans); font-size: 13.5px; cursor: pointer; }

.calc__out {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.calc__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px dashed rgba(255, 255, 255, .06);
  font-size: 13.5px; color: var(--muted);
}
.calc__row b {
  font-family: var(--mono); font-size: 15px; font-weight: 600;
  color: var(--text); white-space: nowrap; letter-spacing: -.01em;
}
.calc__row--key { border-bottom: 0; color: var(--text); }
.calc__row--key b { font-size: 17px; color: var(--lime); }
.calc__row--key.is-minus b { color: #ff8f7a; }

.calc__verdict {
  margin: 14px 0 0; padding: 12px 14px;
  border-radius: 12px; font-size: 13.5px; line-height: 1.5;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  color: var(--muted);
}
.calc__verdict--ok { background: var(--lime-soft); border-color: var(--lime-line); color: #e8ffb0; }
.calc__verdict--warn { background: rgba(255, 196, 87, .09); border-color: rgba(255, 196, 87, .3); color: #ffd894; }
.calc__verdict--bad { background: rgba(255, 122, 99, .1); border-color: rgba(255, 122, 99, .3); color: #ffb3a4; }

.calc__plus { color: var(--lime); font-family: var(--mono); font-weight: 600; }
.calc__minus { color: #ff8f7a; font-family: var(--mono); font-weight: 600; }

@media (max-width: 900px) {
  .calc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .calc { padding: 15px; }
  .calc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .calc__out { grid-template-columns: 1fr; }
  .calc__row { font-size: 13px; }
  .calc__row b { font-size: 14px; }
}

.calc__foot { margin-top: 12px; display: flex; justify-content: flex-end; }
.calc__reset {
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--hair);
  color: var(--muted); font-family: var(--sans); font-size: 12.5px;
  transition: color .15s, border-color .15s, background .15s;
}
.calc__reset:hover { color: var(--text); border-color: var(--lime-line); background: rgba(255, 255, 255, .04); }

/* компактная сетка: узкая колонка на странице бренда */
.calc--compact .calc__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.calc--compact .calc__out { grid-template-columns: 1fr; gap: 0; }
