/* ============================================================
   Первый Бонус (firstbonus.ru) — тема оформления
   Один файл, без внешних зависимостей и веб-шрифтов.

   Тёмная тема: графитовый фон, панели чуть светлее, неоново-зелёный акцент.
   Логотипы букмекеров подключаются отдельными SVG из /assets/logos/
   и вписываются в единые плитки через .bk-logo: у знаков разный
   исходный размер (от 20×20 до 300×300), поэтому размер задаёт CSS.
   ============================================================ */

:root {
  --accent: #22e06a;
  --accent-dark: #16c256;
  --accent-contrast: #04120a; /* текст на неоново-зелёном: тёмный, иначе нечитаемо */
  --accent-soft: #0f2a1c;
  --accent-line: #1d4a34;
  --gold: #ffc34d;
  --gold-soft: #2c2515;
  --highlight: #22e06a;
  --highlight-soft: #14251b;
  --ink: #f1f5f8;             /* заголовки и основной «жирный» текст — светлые */
  --ink-soft: #d8e1e9;
  --text: #c2ccd7;
  --muted: #8593a2;
  --border: #202a35;
  --border-strong: #33414f;
  --bg: #0a0e13;
  --surface: #121821;
  --surface-alt: #171f2a;
  --dark-surface: #070a0e;    /* самые тёмные подложки: подвал, баннеры, шапка БК */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.65);
  --container: 1220px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background-color: var(--bg);
  /* Едва заметная сетка точек: на тёмном фоне даёт «фактуру», а не шум.
     Чистый CSS, без картинки — лишнего запроса нет. */
  background-image: radial-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 6px 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  letter-spacing: -0.012em;
}

h1 {
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 3px solid var(--highlight);
  outline-offset: 2px;
}

.muted {
  color: var(--muted);
  font-size: 0.9em;
}

.note {
  background: var(--highlight-soft);
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.95rem;
}

/* ------------------------------------------------------ иконки и логотипы */

.icon {
  display: block;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  flex: 0 0 auto;
  border-radius: 11px;
}

/* Единая плитка для знаков контор: белый фон, лёгкая рамка,
   object-fit: contain — чтобы логотипы любой пропорции не растягивались */
.bk-logo {
  display: block;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 4px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.table-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.compare-brand-logo {
  width: 32px;
  height: 32px;
  padding: 3px;
  border-radius: 6px;
}

.card-logo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
}

.rating-logo {
  width: 76px;
  height: 76px;
  padding: 8px;
  border-radius: 8px;
}

.bk-hero-logo {
  width: 88px;
  height: 88px;
  padding: 9px;
  border-radius: 10px;
  border-color: rgba(255, 255, 255, 0.22);
}

.aside-cta-logo {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
}

.nav-logo {
  width: 26px;
  height: 26px;
  padding: 2px;
  border-radius: 6px;
}

.nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent);
}

/* ------------------------------------------------------------ demo notice */

.demo-notice {
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 0.85rem;
  padding: 8px 0;
}

.demo-notice strong {
  color: var(--accent-contrast);
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand:hover {
  text-decoration: none;
}

/* Остаётся для аватаров авторов в редакции */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1b2733, var(--accent-dark));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  flex: 0 0 auto;
}

.brand-mark-sm {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-item > a:hover,
.nav-link:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: none;
}

.nav-item > a[aria-current="page"] {
  color: var(--accent-dark);
}

.nav-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.55;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  min-width: 260px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-menu-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 10px 26px;
  width: min(580px, calc(100vw - 40px));
}

.nav-menu-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 10px 26px;
  width: min(820px, calc(100vw - 40px));
}

.nav-item:hover > .nav-menu,
.nav-item:focus-within > .nav-menu,
.nav-item[data-open="true"] > .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu li + li {
  margin-top: 2px;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 6px;
  color: var(--text);
  font-size: 0.92rem;
}

.nav-menu a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: none;
}

.nav-col-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  padding: 0 9px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 800;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* Кнопка внутри выезжающей панели: на широком экране её заменяет .header-cta,
   поэтому в основном режиме она скрыта — иначе кнопка дублируется в шапке.
   Селектор усилен до .site-nav .nav-cta намеренно: правила .btn ниже по файлу
   задают display: inline-flex и при равной специфичности перебивали display: none. */
.site-nav .nav-cta {
  display: none;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  content: "";
  position: relative;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 4px;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--accent-contrast);
}

.btn-cta {
  background: var(--accent);
  color: var(--accent-contrast);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

.btn-cta:hover {
  background: var(--accent-dark);
  color: var(--accent-contrast);
}

.btn-ghost {
  background: var(--surface-alt);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Кнопки рейтинг-блока: крупные, «печатные», как на витрине бонусов */
.btn-bonus,
.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-bonus {
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-bonus:hover {
  background: var(--accent-dark);
  color: var(--accent-contrast);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

/* -------------------------------------------------------------- page header */

.page-header {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
  padding: 38px 0 32px;
  margin-bottom: 8px;
}

.page-header .eyebrow {
  margin: 0 0 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 800;
}

.page-header h1 {
  margin-bottom: 12px;
  max-width: 24ch;
}

.page-header .lead {
  font-size: 1.06rem;
  color: var(--text);
  max-width: 78ch;
  margin-bottom: 16px;
}

.page-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* --------------------------------------------------------------- structure */

.section {
  padding: 28px 0;
}

.section-tight {
  padding: 14px 0 6px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: 0 0 auto;
}

.section-more {
  margin-top: 20px;
}

.breadcrumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 11px 0;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: "›";
  margin-right: 6px;
  color: var(--muted);
}

.bullets,
.steps {
  margin: 0 0 1em;
  padding-left: 1.2em;
}

.bullets li,
.steps li {
  margin-bottom: 6px;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.steps li {
  position: relative;
  padding-left: 46px;
  margin-bottom: 12px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 0.9rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.stats li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 17px;
}

.stats strong {
  display: block;
  font-size: 1.4rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.stats span {
  font-size: 0.84rem;
  color: var(--muted);
}

.prose-section + .prose-section {
  margin-top: 28px;
}

/* ------------------------------------------------------------------ toolbar */

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(200px, 1.4fr) minmax(160px, 1fr) minmax(160px, 1fr) auto;
  gap: 12px;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input,
.field select {
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
}

.toolbar-counter {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* -------------------------------------------------------------------- table */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.offer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 800px;
}

.offer-table th,
.offer-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.offer-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-alt);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  z-index: 1;
}

.offer-table tbody tr:hover {
  background: var(--surface-alt);
}

.offer-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 700;
}

.table-brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.table-brand-name {
  display: block;
}

.table-brand-note {
  display: block;
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--muted);
}

.table-action {
  white-space: nowrap;
}

.table-more {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
}

.tag:hover {
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}

.tag:hover .icon {
  color: #fff;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.rating-stars {
  color: var(--gold);
  letter-spacing: 1.5px;
}

.rating-value {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.9rem;
}

.table-empty {
  margin-top: 14px;
  padding: 16px;
  background: var(--highlight-soft);
  border-radius: var(--radius-sm);
}

/* Ячейка таблицы с двумя строками (номинал + расшифровка). Обёртка нужна,
   чтобы на мобильных td оставался flex из двух элементов, а не расползался
   на три части: подпись, сумма и текст по краям. */
.cell-stack {
  display: grid;
  gap: 2px;
}

/* ------------------------------------------------------------ рейтинг-блок */

.rating-section {
  padding: 30px 0 10px;
}

.rating-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.rating-eyebrow {
  margin: 0 0 8px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 800;
}

.rating-title {
  margin: 0;
  font-size: clamp(1.45rem, 1.05rem + 1.7vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  line-height: 1.1;
}

.rating-all {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 3px;
}

.rating-all:hover {
  color: var(--accent);
  text-decoration: none;
}

.rating-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.rating-note-tag {
  flex: 0 0 auto;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  padding: 4px 10px;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.rating-note-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 92ch;
}

.rating-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rating-item {
  display: grid;
  grid-template-columns: 74px 290px minmax(0, 1fr) 236px;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.rating-item[data-rank="1"] {
  border-left-color: var(--accent);
  border-color: var(--accent-line);
}

.rating-item[data-rank="2"],
.rating-item[data-rank="3"] {
  border-left-color: var(--border-strong);
}

.rating-place {
  text-align: center;
  align-self: start;
}

.rating-place-num {
  display: block;
  font-size: 2.05rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.rating-item[data-rank="1"] .rating-place-num {
  color: var(--accent);
}

.rating-place-label {
  display: block;
  margin-top: 5px;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.rating-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.rating-id {
  min-width: 0;
}

.rating-name {
  margin: 0;
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.rating-name a {
  color: var(--ink);
}

.rating-name a:hover {
  color: var(--accent);
  text-decoration: none;
}

.rating-score-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 5px 0 0;
  font-size: 0.8rem;
}

.rating-score-row .rating-stars {
  font-size: 0.96rem;
  letter-spacing: 1px;
}

.rating-score {
  font-weight: 800;
  color: var(--ink);
}

.rating-votes {
  color: var(--muted);
}

.rating-info {
  min-width: 0;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.rating-offer {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--ink);
}

.rating-offer-label {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  margin-right: 4px;
}

.rating-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.81rem;
  color: var(--muted);
}

.rating-meta strong {
  color: var(--ink);
  font-weight: 700;
}

.rating-meta-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.rating-licence {
  display: inline-block;
  border: 1px solid var(--border-strong);
  padding: 2px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}

.rating-promo {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 10px;
  border: 1px dashed var(--accent);
  border-radius: 4px;
  background: var(--accent-soft);
  font-size: 0.81rem;
  max-width: 100%;
}

.rating-promo-label {
  color: var(--accent-dark);
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.rating-promo code {
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.rating-promo-copy {
  font: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 9px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  cursor: pointer;
}

.rating-promo-copy:hover {
  background: var(--accent);
  color: #fff;
}

.rating-actions {
  display: grid;
  gap: 8px;
}

/* -------------------------------------------------------------------- cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.card-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.card-title a {
  color: var(--ink);
}

.card-sub {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.card-head .rating {
  margin-left: auto;
}

.card-bonus {
  margin: 0;
  padding: 13px 15px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--ink);
}

.card-bonus-amount {
  display: block;
  font-size: 1.28rem;
  color: var(--accent-dark);
  letter-spacing: -0.02em;
}

.card-bonus .muted {
  display: block;
  font-weight: 400;
}

.card-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  font-size: 0.87rem;
}

.card-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-facts span {
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.link-card h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
  font-weight: 800;
}

.link-card p {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--text);
}

.link-card-meta {
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: none;
}

/* ---------------------------------------------------------------------- faq */

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 18px;
}

.faq-item summary {
  cursor: pointer;
  padding: 16px 34px 16px 0;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--accent);
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-answer {
  padding-bottom: 8px;
  color: var(--text);
}

/* ------------------------------------------------------------------- facts */

.facts {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-top: 16px;
}

.facts-title {
  font-size: 1rem;
  margin-bottom: 12px;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 20px;
  margin: 0;
}

.fact {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
  font-size: 0.91rem;
}

.fact dt {
  color: var(--muted);
}

.fact dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  color: var(--ink);
}

.promo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px dashed var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.promo-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-dark);
  font-weight: 800;
}

.promo code {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.promo-copy {
  font: inherit;
  font-size: 0.78rem;
  padding: 5px 10px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  cursor: pointer;
}

/* ------------------------------------------------------------ page layouts */

.bk-layout,
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.bk-hero {
  margin-bottom: 8px;
}

/* Шапка страницы букмекера: логотип и бонус на тёмной подложке */
.bk-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 300px);
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, #0b1119, #0f3223);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.bk-hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.bk-hero-name {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.bk-hero-sub {
  margin: 3px 0 8px;
  font-size: 0.85rem;
  color: #9fb0c0;
}

.bk-hero-offer {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.bk-hero-amount {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-soft);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.bk-hero-headline {
  margin: 4px 0 12px;
  font-size: 0.87rem;
  color: #c8d6e2;
}

.bk-hero-offer .btn {
  width: 100%;
}

.bk-hero-note {
  margin: 10px 0 0;
  font-size: 0.77rem;
  color: #93a5b4;
}

/* Рейтинг на тёмной подложке: обычные цвета нечитаемы, поэтому светлые */
.bk-hero-card .rating-stars {
  color: var(--gold-soft);
}

.bk-hero-card .rating-value {
  color: #fff;
}

.bk-aside,
.article-aside {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 16px;
}

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.89rem;
}

.toc-title {
  margin: 0 0 8px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 800;
}

.toc ol {
  margin: 0;
  padding-left: 1.1em;
}

.toc li {
  margin-bottom: 6px;
}

.aside-cta {
  background: linear-gradient(160deg, #0b1119, #124a30);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px;
}

.aside-cta-bonus {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}

.aside-cta-text {
  margin: 0 0 12px;
  font-size: 0.91rem;
  color: #d5e2ee;
}

.aside-cta .btn {
  width: 100%;
}

.aside-cta-note {
  margin: 10px 0 0;
  font-size: 0.77rem;
  color: #9fb0c0;
}

.section[id],
.prose-section[id] {
  scroll-margin-top: 92px;
}

/* --------------------------------------------------------------- pros/cons */

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pros,
.cons {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.pros h3 {
  color: var(--accent);
}

.cons h3 {
  color: #e8a86a;
}

/* ------------------------------------------------------- author & cta bands */

.author-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 22px 0;
}

.author-box-compact {
  margin: 0;
}

.author-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.author-role,
.author-focus {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.author-name {
  margin: 2px 0 6px;
  font-weight: 800;
}

.author-name a {
  color: var(--ink);
}

.author-bio {
  margin: 0 0 6px;
  font-size: 0.91rem;
}

.cta-band {
  background: linear-gradient(120deg, #0b1119, #0f3223);
  color: #e8eff5;
  padding: 32px 0;
  margin-top: 16px;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 6px;
}

.cta-band p {
  margin: 0;
  color: #b7c6d4;
  max-width: 60ch;
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related {
  margin: 24px 0;
}

.related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.related-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.93rem;
}

.related-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.sitemap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 32px;
}

.sitemap-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  break-inside: avoid;
  font-size: 0.91rem;
}

.sitemap-list span {
  color: var(--muted);
  font-size: 0.78rem;
}

.updated-stamp {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------- footer */

.site-footer {
  background: var(--dark-surface);
  color: var(--text);
  margin-top: 40px;
  border-top: 2px solid var(--border-strong);
}

/* Дисклеймер отдельной строкой над колонками */
.footer-disclaimer {
  margin: 0;
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr 1.15fr;
  gap: 30px;
  padding: 28px 0 30px;
}

.footer-col-title {
  margin: 0 0 14px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  font-weight: 800;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
}

/* Ссылки подчёркнуты цветом акцента — как в печатном указателе */
.site-footer a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-text {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-text a {
  color: var(--ink);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 18px 0 28px;
}

.footer-copyright {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-copyright a {
  color: var(--ink);
}

.age-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent);
}

.footer-responsible {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.8rem;
}

.footer-responsible a {
  color: var(--muted);
}

/* Правовые ссылки в колонке «О сайте»: колонка узкая, поэтому в две строки */
.footer-legal-links {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 0.82rem;
  justify-items: start;
}

/* ------------------------------------------------ сравнение и калькулятор */

.section-lead {
  max-width: 78ch;
  color: var(--muted);
  margin-bottom: 18px;
}

.table-note,
.data-note,
.market-note,
.facts-note {
  font-size: 0.87rem;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 14px 0 0;
}

.market-note {
  border-left: 4px solid var(--accent);
  color: var(--text);
  margin-bottom: 16px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 900px;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.compare-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-alt);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.compare-table tbody th {
  font-weight: 700;
}

.compare-table tbody tr:hover {
  background: var(--surface-alt);
}

.compare-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
}

.compare-brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.calc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.calc-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
}

.calc-output {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.calc-result {
  display: grid;
  gap: 4px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.calc-result span {
  font-size: 0.78rem;
  color: var(--accent-dark);
}

.calc-result strong {
  font-size: 1.32rem;
  color: var(--ink);
}

.calc-result-main {
  background: linear-gradient(150deg, #0b1119, #124a30);
}

.calc-result-main span {
  color: #cfe9da;
}

.calc-result-main strong {
  color: #fff;
}

.calc-hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.calc-details {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.calc-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.calc-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.91rem;
}

.calc-table th,
.calc-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.calc-table thead th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.calc-note {
  font-size: 0.81rem;
  color: var(--muted);
  margin: 12px 0 0;
}

/* --------------------------------------------------- баннеры и акции */

.banner-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}

.banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  align-items: center;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.banner:hover {
  text-decoration: none;
  border-color: var(--accent-line);
  transform: translateY(-1px);
}

.banner-logo {
  grid-row: span 2;
}

.banner-body {
  min-width: 0;
}

.banner-title {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--ink);
}

.banner-text {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  color: var(--muted);
}

.banner-cta {
  grid-column: 2;
  display: inline-flex;
  justify-content: center;
  justify-self: start;
  margin-top: 8px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.promo-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.promo-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promo-card-meta {
  min-width: 0;
}

.promo-card-bk {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.promo-card-bk a {
  color: var(--ink);
}

.promo-card-until {
  margin: 2px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.promo-card-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.promo-card-text {
  flex: 1;
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.promo-card-cta {
  margin-top: auto;
}

/* ------------------------------------------------------------------ новости */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.news-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--surface-alt);
  overflow: hidden;
}

.news-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Новость без снимка: не пустая дырка, а спокойная заливка */
.news-media-empty {
  background: linear-gradient(135deg, var(--surface-alt), var(--accent-soft));
}

.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}

.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.news-source {
  color: var(--accent);
  font-weight: 700;
}

.news-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.news-title a {
  color: var(--ink);
}

.news-title a:hover {
  color: var(--accent);
  text-decoration: none;
}

.news-excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: 0.86rem;
  color: var(--muted);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-more {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

/* ============================================================ адаптивность */

/* --- планшет: рейтинг перестраивается, кнопки уходят под текст ----------- */
@media (max-width: 1080px) {
  .rating-item {
    grid-template-columns: 62px minmax(0, 1fr) 210px;
    grid-template-areas:
      "place brand actions"
      "info  info  actions";
    align-items: start;
    gap: 12px 16px;
  }

  .rating-place {
    grid-area: place;
  }

  .rating-brand {
    grid-area: brand;
  }

  .rating-info {
    grid-area: info;
  }

  .rating-actions {
    grid-area: actions;
    align-self: center;
  }

  .bk-layout,
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .bk-aside,
  .article-aside {
    position: static;
  }

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

/* --- узкий планшет и телефон -------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 0 auto;
    width: min(420px, 100%);
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 16px 32px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-item > a,
  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 14px 10px;
    font-size: 1rem;
  }

  .nav-item > a {
    justify-content: flex-start;
  }

  .nav-menu,
  .nav-menu-two,
  .nav-menu-three {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--accent-soft);
    border-radius: 0;
    margin: 0 0 6px 10px;
    padding: 6px 0 6px 10px;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item[data-open="true"] > .nav-menu {
    display: grid;
  }

  .nav-cta {
    display: inline-flex;
    margin-top: 14px;
  }

  /* Усиливаем до .site-nav .nav-cta, чтобы перебить .btn (см. комментарий выше) */
  .site-nav .nav-cta {
    display: inline-flex;
  }

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

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

  .bk-hero-card {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Рейтинг: одна колонка, кнопки на всю ширину */
  .rating-item {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas:
      "place brand"
      "info  info"
      "actions actions";
    gap: 14px;
    padding: 16px;
  }

  .rating-place {
    align-self: center;
  }

  .rating-place-num {
    font-size: 1.75rem;
  }

  .rating-place-label {
    font-size: 0.55rem;
  }

  .rating-actions {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .rating-logo {
    width: 60px;
    height: 60px;
    padding: 6px;
  }

  .rating-name {
    font-size: 1.12rem;
  }

  .rating-offer {
    font-size: 0.92rem;
  }
}

/* --- телефон ------------------------------------------------------------- */
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 14px;
  }

  .page-header {
    padding: 24px 0 20px;
  }

  .section {
    padding: 22px 0;
  }

  .section-title {
    gap: 10px;
  }

  .rating-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .rating-all {
    font-size: 0.72rem;
  }

  .rating-note {
    flex-direction: column;
    gap: 8px;
  }

  .rating-note-text {
    font-size: 0.82rem;
  }

  /* Длинный слоган в шапке телефона не даёт кнопке меню поместиться */
  .brand-tagline {
    display: none;
  }

  .brand-text {
    min-width: 0;
  }

  /* Таблица каталога превращается в карточки */
  .offer-table {
    min-width: 0;
  }

  .offer-table thead {
    display: none;
  }

  .offer-table,
  .offer-table tbody,
  .offer-table tr,
  .offer-table td {
    display: block;
    width: 100%;
  }

  .offer-table tr {
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  .offer-table td {
    border: 0;
    padding: 6px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    text-align: right;
  }

  .offer-table td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-align: left;
    flex: 0 0 auto;
  }

  /* Первая ячейка: подпись сверху, логотип с названием под ней */
  .offer-table td:first-child {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: left;
    padding-bottom: 12px;
  }

  /* Ячейка действия: кнопка на всю ширину, ссылка под ней */
  .offer-table td.table-action {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
    padding-top: 10px;
  }

  .table-action {
    white-space: normal;
  }

  .table-action .btn {
    width: 100%;
  }

  .table-more {
    margin-top: 0;
    text-align: center;
  }

  /* Сумма не должна переноситься между числом и знаком рубля */
  .cell-stack {
    text-align: right;
    white-space: nowrap;
  }

  .cell-stack .muted {
    display: block;
    white-space: normal;
  }

  .catalog-toolbar,
  .footer-grid,
  .card-facts,
  .calc-fields,
  .calc-output,
  .stats {
    grid-template-columns: 1fr;
  }

  .sitemap-list {
    columns: 1;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .bk-hero-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* --- очень узкий телефон ------------------------------------------------- */
@media (max-width: 480px) {
  .rating-item {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 14px;
  }

  .rating-place-num {
    font-size: 1.5rem;
  }

  .rating-brand {
    gap: 10px;
  }

  .rating-logo {
    width: 52px;
    height: 52px;
    padding: 5px;
  }

  .rating-name {
    font-size: 1.02rem;
  }

  /* Кнопки друг под другом: «ПОЛУЧИТЬ БОНУС» не влезает в половину строки */
  .rating-actions {
    grid-template-columns: 1fr;
  }

  .btn-bonus,
  .btn-outline {
    min-height: 48px;
    font-size: 0.8rem;
  }

  .rating-meta {
    gap: 6px 12px;
    font-size: 0.78rem;
  }

  .rating-promo {
    width: 100%;
    justify-content: space-between;
  }

  .rating-promo-copy {
    padding: 5px 10px;
  }

  h1 {
    font-size: 1.6rem;
  }
}

/* Печать: убираем декор, оставляем читаемый текст */
@media print {
  body {
    background: #fff;
  }

  .site-header,
  .site-footer,
  .rating-actions,
  .nav-toggle {
    display: none;
  }
}

/* ======================= Нижняя рекламная полоса ======================= */
.sticky-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: linear-gradient(90deg, #2a0a0d 0%, #4a1015 45%, #2a0a0d 100%);
  border-top: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 -12px 30px rgba(0, 0, 0, .45);
  color: #fff;
}
.sticky-banner[hidden] { display: none; }
.sticky-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 46px 10px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.sticky-label {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  white-space: nowrap;
}
.sticky-text { min-width: 0; }
.sticky-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  white-space: nowrap;
}
.sticky-age {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  vertical-align: 3px;
}
.sticky-sub {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .85);
}
.sticky-note {
  margin: 0;
  flex: 1 1 auto;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .45);
  max-width: 340px;
}
.sticky-cta {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 26px;
  border-radius: 10px;
  background: var(--sticky-accent, #22e06a);
  color: #04120a;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
}
.sticky-cta:hover { filter: brightness(1.06); }
.sticky-close {
  position: absolute;
  top: 8px; right: 10px;
  width: 28px; height: 28px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, .75);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.sticky-close:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }
/* место под полосу, чтобы она не перекрывала подвал */
body:has(.sticky-banner) { padding-bottom: 78px; }

@media (max-width: 900px) {
  .sticky-inner { flex-wrap: wrap; gap: 8px 12px; padding: 10px 40px 10px 14px; }
  .sticky-title { font-size: 16px; white-space: normal; }
  .sticky-note { display: none; }
  .sticky-cta { width: 100%; margin-left: 0; min-height: 40px; }
  body:has(.sticky-banner) { padding-bottom: 128px; }
}
@media (max-width: 560px) {
  .sticky-label { display: none; }
  .sticky-sub { font-size: 12px; }
}

/* вариант с картинкой */
.sticky-banner-image { background: #0d0d10; }
.sticky-banner-image .sticky-image-link { display: block; max-width: 1320px; margin: 0 auto; line-height: 0; }
.sticky-banner-image img { display: block; width: 100%; max-height: 150px; object-fit: contain; }
.sticky-banner-image .sticky-close { top: 6px; right: 8px; background: rgba(0,0,0,.45); }
body:has(.sticky-banner-image) { padding-bottom: 160px; }
@media (max-width: 720px) {
  .sticky-banner-image img { max-height: 120px; }
  body:has(.sticky-banner-image) { padding-bottom: 130px; }
}

/* баннеры с картинкой */
.banner-image { padding: 0; overflow: hidden; display: block; }
.banner-image picture, .banner-image img { display: block; width: 100%; height: auto; }
.banner-image img { max-height: 130px; object-fit: cover; }
.promo-row { padding: 22px 0; }
.promo-row-inner { display: flex; gap: 14px; flex-wrap: wrap; }
.promo-row-item { flex: 1 1 320px; display: block; border-radius: 14px; overflow: hidden; text-decoration: none; }
.promo-row-item img, .promo-row-item picture { display: block; width: 100%; height: auto; }
.promo-row-text {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--dark-surface, #121821); border: 1px solid var(--border, #22303f);
}
.promo-row-title { display: block; color: var(--ink, #e8eef4); font-weight: 600; }
.promo-row-sub { display: block; color: var(--muted, #8fa3b5); font-size: 13px; }