/* База: раскладка и компоненты. Цвета, шрифты и радиусы — только через переменные темы. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font-body); }
img { max-width: 100%; height: auto; }
a { color: var(--link, var(--accent)); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; color: var(--heading, var(--text)); }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.75rem); margin-top: 1.8em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap, 1180px); margin: 0 auto; padding: 0 16px; }
.label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.muted-sm { font-size: .8rem; color: var(--muted); }
.page-title { margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .8em 1.4em; border: 0; border-radius: var(--radius-btn, var(--radius));
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-play { background: var(--cta); color: var(--cta-ink); }
.btn-play:hover { filter: brightness(1.08); }
.terms { display: block; font-size: .72rem; color: var(--muted); margin-top: .5em; }
.badge {
  display: inline-block; margin-top: 6px; padding: 3px 9px; border-radius: 999px;
  background: var(--badge-bg, var(--accent)); color: var(--badge-ink, var(--accent-ink));
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}

/* Панель разработки */
.devbar { background: #111; color: #ddd; font: 13px/1.4 system-ui, sans-serif; padding: 6px 0; }
.devbar .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.devbar a { color: #8fc7ff; }
.devbar a.on { color: #fff; font-weight: 700; text-decoration: none; }
.devbar b { background: #e33; color: #fff; padding: 1px 6px; border-radius: 3px; }
.devbar-note { color: #f6c453; margin-left: auto; }

/* Шапка */
.topnote { background: var(--surface-2); color: var(--muted); font-size: .72rem; padding: 4px 0; text-align: center; }
.site-header { position: relative; background: var(--header-bg, var(--surface)); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--header-ink, var(--text)); font-family: var(--font-head); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.site-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font-size: .9rem; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--header-ink, var(--text)); font-weight: 600; font-size: .95rem; text-decoration: none; }
.site-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: none; color: var(--header-ink, var(--text)); font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; flex-direction: column; gap: 0; background: var(--header-bg, var(--surface)); border-bottom: 1px solid var(--border); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 16px; border-top: 1px solid var(--border); }
}

/* Первый экран главной */
.hero { padding: 40px 0 28px; background: var(--hero-bg, transparent); color: var(--hero-ink, inherit); }
.hero h1 { color: var(--hero-ink, var(--heading, var(--text))); }
.hero .lead { max-width: 780px; font-size: 1.05rem; color: var(--hero-muted, var(--muted)); }
.hero .lead p:last-child { margin-bottom: 0; }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .85rem; color: var(--muted); }
.hero .meta-line { color: var(--hero-muted, var(--muted)); }
.meta-line a { color: inherit; }
.avatar { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .78rem; font-weight: 700; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Блоки */
.block { margin: 36px 0; }
.block > h2:first-child { margin-top: 0; }
.prose { max-width: var(--prose, 820px); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }

/* Логотип казино */
.logo { flex: none; display: grid; place-items: center; width: 112px; height: 64px; padding: 6px; overflow: hidden; border-radius: var(--radius); background: var(--brand, #333); color: #fff; font-weight: 800; font-size: 1rem; line-height: 1.1; text-align: center; }
.logo img { max-width: 100%; max-height: 100%; }
.logo-lg { width: 150px; height: 96px; font-size: 1.35rem; }
.logo-sm { width: 72px; height: 44px; font-size: .78rem; }

/* Оценка */
.rating { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.stars { font-size: 1rem; letter-spacing: 2px; color: transparent; background: linear-gradient(90deg, var(--star) var(--pct), var(--star-off, var(--border)) var(--pct)); -webkit-background-clip: text; background-clip: text; }
.rating-num { font-weight: 800; }
.rating-num small { font-weight: 400; color: var(--muted); }
.rating-lg .stars { font-size: 1.35rem; }
.rating-lg .rating-num { font-size: 1.3rem; }

/* Промокод */
.promo { display: flex; align-items: stretch; margin-bottom: 8px; overflow: hidden; border: 1px dashed var(--accent); border-radius: var(--radius); font-size: .82rem; text-align: left; }
.promo-label { display: none; }
.promo code { flex: 1; padding: 6px 10px; color: var(--text); font-family: ui-monospace, Consolas, monospace; font-weight: 700; letter-spacing: .05em; }
.promo button { padding: 0 12px; border: 0; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; }

/* Рейтинг: карточки */
.cards { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.card {
  display: grid; align-items: center; gap: 18px; padding: 18px;
  grid-template-columns: 36px auto minmax(0, 1fr) minmax(0, 1.3fr) 210px;
  grid-template-areas: "pos logo main bonus cta";
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card:first-child { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.card-pos { grid-area: pos; color: var(--muted); font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; text-align: center; }
.card > .logo { grid-area: logo; }
.card-main { grid-area: main; }
.card-main h3 { margin: 0 0 4px; font-size: 1.15rem; }
.card-bonus { grid-area: bonus; }
.card-bonus strong { display: block; margin: 2px 0 6px; font-size: 1.05rem; line-height: 1.35; }
.card-cta { grid-area: cta; text-align: center; }
.card-cta .btn { width: 100%; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; padding: 0; list-style: none; font-size: .8rem; color: var(--muted); }
.facts b { color: var(--text); font-weight: 600; }
.link-review { display: inline-block; margin-top: 8px; font-size: .85rem; }
@media (max-width: 900px) {
  .card { grid-template-columns: 28px auto minmax(0, 1fr); grid-template-areas: "pos logo main" "bonus bonus bonus" "cta cta cta"; gap: 12px 14px; }
}

/* Таблицы */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; min-width: 680px; border-collapse: collapse; font-size: .9rem; }
.data th, .data td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.data thead th { background: var(--surface-2); color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.data tbody tr:last-child td, .data tbody tr:last-child th { border-bottom: 0; }
.data .btn { padding: .5em 1em; font-size: .85rem; }
.data-center td, .data-center th { text-align: center; }
.data-center td:first-child, .data-center th:first-child { text-align: left; }
.tick { color: var(--good); font-weight: 700; }
.dash { color: var(--muted); }
table.specs { min-width: 0; }
.specs th { width: 38%; color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 2px 10px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; }

/* Методика и оценки */
.weights { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0; }
.weight { padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.weight-head { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.bar { height: 6px; overflow: hidden; border-radius: 3px; background: var(--surface-2); }
.bar span { display: block; height: 100%; max-width: 100%; background: var(--accent); }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; margin: 20px 0; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.score-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .9rem; }
.score-row .bar { grid-column: 1 / -1; }

/* Плюсы и минусы */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.proscons > div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.proscons h3 { font-size: 1rem; }
.proscons ul { margin: 0; padding: 0; list-style: none; }
.proscons li { position: relative; padding: 4px 0 4px 28px; }
.proscons li::before { position: absolute; left: 0; top: 6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: .8rem; font-weight: 700; line-height: 1; }
.pros li::before { content: "+"; background: var(--good); }
.cons li::before { content: "−"; background: var(--bad); }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { margin-bottom: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.faq summary { position: relative; padding: 14px 44px 14px 18px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 1.3rem; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 18px 14px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Автор */
.author-box { display: flex; gap: 16px; margin: 28px 0; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.author-box .avatar { width: 64px; height: 64px; font-size: 1.2rem; }
.author-box h3 { margin: 0 0 2px; }
.author-role { margin-bottom: 6px; font-size: .85rem; color: var(--muted); }
.author-box p { margin: 0; }

/* Ответственная игра */
.rg { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: var(--surface-2); border-radius: var(--radius); font-size: .9rem; }
.rg p { margin: 4px 0 6px; }
.age { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--bad); border-radius: 50%; color: var(--bad); font-weight: 800; font-size: .9rem; }

/* Чёрный список */
.blacklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.blacklist > div { padding: 14px; background: var(--surface); border: 1px solid var(--bad); border-radius: var(--radius); }
.blacklist strong { color: var(--bad); }
.blacklist p { margin: 4px 0 0; font-size: .9rem; }

/* Хлебные крошки */
.crumbs { padding-top: 14px; font-size: .8rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a { color: inherit; }

/* Обзор */
.review-hero {
  display: grid; grid-template-columns: auto minmax(0, 1fr) 320px; align-items: center; gap: 24px;
  margin: 16px 0; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.review-hero h1 { margin-bottom: 8px; }
.rh-facts { margin-top: 10px; }
.bonus-box { padding: 16px; background: var(--surface-2); border-radius: var(--radius); text-align: center; }
.bonus-box .bonus-text { display: block; margin: 4px 0 12px; font-size: 1.15rem; line-height: 1.3; }
.bonus-box .btn { width: 100%; }
@media (max-width: 900px) { .review-hero { grid-template-columns: auto minmax(0, 1fr); } .rh-offer { grid-column: 1 / -1; } }
@media (max-width: 520px) { .review-hero { grid-template-columns: 1fr; padding: 18px; } }

.review-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 36px; }
.review-aside { position: sticky; top: 16px; display: grid; gap: 16px; }
.aside-card { padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.aside-card .logo { margin: 0 auto 10px; }
.aside-card strong { display: block; margin: 8px 0 12px; line-height: 1.35; }
.aside-card .btn { width: 100%; }
.toc { padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; }
.toc ol { margin: 6px 0 0; padding-left: 1.2em; }
.toc li { margin: 4px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.summary { font-size: 1.06rem; }
.verdict { margin-top: 28px; padding: 4px 20px 8px; background: var(--surface); border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; }
.verdict h2 { margin-top: 16px; }
@media (max-width: 960px) {
  .review-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .review-aside { position: static; order: -1; margin-top: 8px; }
  .aside-card { display: none; }
}

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(0, 0, 0, .12);
  transform: translateY(110%); transition: transform .25s;
}
.sticky-cta.show { transform: none; }
.sc-text { flex: 1; min-width: 0; font-size: .85rem; line-height: 1.3; }
.sc-text strong, .sc-text span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sticky-cta .btn { flex: none; padding: .65em 1.1em; }
@media (min-width: 961px) { .sticky-cta { display: none; } }

/* Альтернативы */
.alts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.alt { display: grid; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.alt-head { display: flex; align-items: center; gap: 10px; }
.alt .link-review { margin-top: 0; text-align: center; }

/* Подвал */
.site-footer { margin-top: 56px; padding: 32px 0 24px; background: var(--footer-bg, var(--surface)); color: var(--footer-ink, var(--text)); border-top: 1px solid var(--border); font-size: .9rem; }
.site-footer .site-logo { color: inherit; }
.site-footer a { color: inherit; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 4px 0; }
.footer-tagline { margin-top: 10px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.rg-footer { padding: 0; background: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

.page-body { padding: 24px 0; }
.page-review .site-footer { padding-bottom: 88px; }

/* Рейтинг: фильтры и «показать ещё» */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip-btn { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; cursor: pointer; }
.chip-btn.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.toplist .is-more { display: none; }
.toplist.show-all .is-more, .toplist.filtered .is-more { display: grid; }
.toplist [hidden] { display: none !important; }
.btn-more { display: flex; margin: 16px auto 0; background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.nodep { margin: -2px 0 6px; color: var(--good); font-size: .85rem; font-weight: 600; }

/* Тематическая страница */
.topic-hero { padding: 20px 0 8px; }
.topic-hero .lead { margin-top: 10px; font-size: 1.05rem; color: var(--muted); }

/* Казино месяца */
.month { position: relative; padding: 24px; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); }
.month-label { position: absolute; top: -12px; left: 20px; padding: 2px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.month-body { display: grid; grid-template-columns: auto minmax(0, 1fr) 280px; align-items: center; gap: 24px; }
.month-main h2 { margin: 0 0 6px; }
.month-main .prose { margin-top: 10px; }
.month-offer { text-align: center; }
.month-offer .link-review { display: block; }
@media (max-width: 860px) { .month-body { grid-template-columns: 1fr; } }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 18px 18px 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 10px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.steps strong { display: block; margin-bottom: 4px; }
.steps p { margin: 0; font-size: .92rem; color: var(--muted); }

/* Разбор вейджера */
.wager-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.wager-calc > div:not(.op) { padding: 10px 14px; background: var(--surface-2); border-radius: var(--radius); }
.wager-calc b { display: block; font-size: 1.15rem; }
.wager-calc .op { font-size: 1.3rem; color: var(--muted); }
.wager-calc .wager-total { background: var(--accent); color: var(--accent-ink); }
.wager-calc .wager-total .label { color: inherit; opacity: .85; }

/* Перелинковка */
.links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.link-card { display: grid; gap: 4px; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); text-decoration: none; }
.link-card:hover { border-color: var(--accent); }
.link-card strong { color: var(--accent); }
.link-card span { font-size: .85rem; color: var(--muted); }

.footer-legal { margin-top: 20px; font-size: .8rem; color: var(--muted); }
.data code, .specs code { font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
