/*
  mono-classic — обзорный сайт монобренда.

  Тема оперирует ролями цветов, а не значениями: фон, текст, акцент и цвета
  шапки приходят из палитры проекта отдельным <style> в <head>. Остальные
  оттенки выводятся из них через color-mix, поэтому светлый бренд остаётся
  светлым, а тёмный тёмным, даже если часть ролей не заполнена.

  Страница держится на чередовании: полосы через одну идут на своём фоне,
  а внутри полос меняется способ подачи — карточки, таблица, текст со
  скриншотом, аккордеон. Сплошной поток одинаковых абзацев читается черновиком.
*/

:root {
  --bg: #0b1220;
  --text: #dfe5f0;
  --heading: #ffffff;
  --accent: #ffb300;
  --accent-text: #111111;
  --accent-hover: #d99700;
  --header-bg: #070b16;
  --header-fg: #ffffff;

  --surface: color-mix(in srgb, var(--text) 6%, var(--bg));
  --surface-2: color-mix(in srgb, var(--text) 3%, var(--bg));
  --border: color-mix(in srgb, var(--text) 18%, var(--bg));
  --muted: color-mix(in srgb, var(--text) 68%, var(--bg));

  --container: 1160px;
  --narrow: 78ch;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 2px 4px rgb(0 0 0 / 10%), 0 16px 40px rgb(0 0 0 / 16%);

  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.4rem, 1.24rem + 0.75vw, 1.95rem);
  --step-3: clamp(1.95rem, 1.5rem + 1.9vw, 3.1rem);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* ─── Шапка ─────────────────────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  color: var(--header-fg);
}

.header__inner,
.subnav__inner,
.footer__inner,
.section__inner,
.hero__inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 60px;
  padding-block: 0.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  gap: 0.15rem;
  margin-inline-end: auto;
  min-width: 0;
}

.nav a {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  opacity: 0.82;
  white-space: nowrap;
  font-size: 0.92rem;
}

.nav a:hover {
  background: color-mix(in srgb, var(--header-fg) 14%, transparent);
  opacity: 1;
}

.nav:empty {
  display: none;
}

.nav:empty + .header__actions {
  margin-inline-start: auto;
}

.header__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ─── Выпадающее меню (только узкий экран) ──────────────────────────── */

.menu {
  display: none;
  position: relative;
  flex-shrink: 0;
}

.menu__button {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--header-fg) 40%, transparent);
  border-radius: var(--radius-sm);
}

.menu__button::-webkit-details-marker {
  display: none;
}

/* Три полоски одной коробкой: две — тени, чтобы не плодить разметку. */
.menu__button span,
.menu__button span::before,
.menu__button span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.menu__button span {
  position: relative;
}

.menu__button span::before {
  position: absolute;
  top: -6px;
}

.menu__button span::after {
  position: absolute;
  top: 6px;
}

.menu__panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  z-index: 25;
  min-width: 14rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem;
  background: var(--header-bg);
  border: 1px solid color-mix(in srgb, var(--header-fg) 20%, transparent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.menu__panel a {
  padding: 0.6rem 0.7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--header-fg);
}

.menu__panel a:hover {
  background: color-mix(in srgb, var(--header-fg) 12%, transparent);
}

.menu__panel .btn {
  margin-top: 0.4rem;
  color: var(--header-fg);
  border-color: color-mix(in srgb, var(--header-fg) 40%, transparent);
}

/* Кнопки в шапке стоят на фоне бренда, а не на фоне страницы. */
.header .btn--ghost {
  color: inherit;
  border-color: color-mix(in srgb, var(--header-fg) 45%, transparent);
}

.header .btn--ghost:hover {
  background: color-mix(in srgb, var(--header-fg) 14%, transparent);
}

/* Второй ряд: ссылки на подстраницы. */
.subnav {
  background: color-mix(in srgb, var(--header-fg) 8%, var(--header-bg));
  border-top: 1px solid color-mix(in srgb, var(--header-fg) 12%, transparent);
  font-size: 0.9rem;
}

.subnav__inner {
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav__inner::-webkit-scrollbar {
  display: none;
}

.subnav a {
  padding: 0.55rem 0.7rem;
  text-decoration: none;
  color: var(--header-fg);
  opacity: 0.8;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.subnav a:hover {
  opacity: 1;
  border-bottom-color: var(--accent);
}

/* ─── Кнопки ────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  /* Край плашки. На тёмной странице совпадает с заливкой и не виден; на
     светлой — единственное, что отделяет жёлтую кнопку от белой страницы. */
  border: 1px solid var(--accent-edge, transparent);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.1rem;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-text);
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  background: var(--accent-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn--ghost {
  background: transparent;
  color: var(--heading);
  border-color: var(--border);
}

.btn--ghost:hover {
  background: var(--surface);
}

.btn--lg {
  padding: 0.9rem 1.8rem;
  font-size: var(--step-1);
}

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

/* ─── Типографика ───────────────────────────────────────────────────── */

.title,
.section__title,
.prose h2,
.prose h3,
.intro h2,
.intro h3 {
  color: var(--heading);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.title {
  font-size: var(--step-3);
  margin: 0 0 1rem;
}

.section__title {
  font-size: var(--step-2);
  margin: 0 0 1.25rem;
}

.prose h3,
.intro h3 {
  font-size: var(--step-1);
  margin: 1.75rem 0 0.5rem;
}

.prose p,
.intro p {
  margin: 0 0 1rem;
}

.prose > :last-child,
.intro > :last-child {
  margin-bottom: 0;
}

.prose a,
.intro a {
  color: color-mix(in srgb, var(--accent) 72%, var(--heading));
  text-underline-offset: 3px;
}

/* ─── Полосы и ритм ─────────────────────────────────────────────────── */

.main {
  display: block;
}

.section {
  padding-block: clamp(2rem, 1.4rem + 2vw, 3.5rem);
  scroll-margin-top: 72px;
}

/*
  Каждая вторая полоса — на своём фоне: так границы блоков видны без линеек.
  Считается по месту в потоке, а не классом в шаблоне: набор блоков у сайтов
  разный, и вручную расставленные полосы вставали бы парами.
*/
.main > .section:not(.hero):nth-of-type(odd) {
  background: var(--surface);
}

.prose {
  max-width: var(--narrow);
}

/* ─── Списки как чеклист ────────────────────────────────────────────── */

.section--list .prose ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: 0.5rem;
}

.section--list .prose ul > li {
  position: relative;
  padding-inline-start: 1.9rem;
  padding-block: 0.15rem;
}

.section--list .prose ul > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.75rem;
  height: 0.4rem;
  border-inline-start: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.section--list .prose ol {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.section--list .prose ol > li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 2.6rem;
}

.section--list .prose ol > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

/* ─── Врезки ────────────────────────────────────────────────────────── */

/*
  Автор размечает смысл врезки классом, тема решает, как она выглядит.
  Четыре роли: дисклеймер, предупреждение, расчёт, помощь при зависимости.
*/
.note {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-inline-start: 3px solid var(--muted);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  font-size: 0.95rem;
}

.note p {
  margin: 0 0 0.6rem;
}

.note > :last-child {
  margin-bottom: 0;
}

.note strong {
  color: var(--heading);
}

/* Дисклеймер про партнёрские ссылки: обязателен, но не кричит. */
.note--disclosure {
  color: var(--muted);
  font-size: 0.88rem;
  background: transparent;
  border-inline-start-color: var(--border);
}

/* Предупреждение — единственная врезка, которая имеет право на акцент. */
.note--warning {
  border-inline-start-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
}

/* Расчёт: моноширинный, чтобы столбик цифр читался столбиком. */
.note--takeaway {
  font-variant-numeric: tabular-nums;
  border-inline-start-color: var(--heading);
}

/*
  Помощь при игровой зависимости. Единственный блок, который не должен
  теряться на фоне остального текста, — поэтому рамка целиком, а не полоса.
*/
.note--rg {
  border: 1px solid color-mix(in srgb, var(--heading) 30%, var(--border));
  border-radius: var(--radius);
  background: var(--surface-2);
}

.note--rg a {
  font-weight: 600;
}

/* Отбивка «мы не официальный сайт»: мелко, в конце, но читаемо. */
.note--independent {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 1rem 0 0;
}

/*
  Цитата в тексте — это врезка: дисклеймер про партнёрские ссылки,
  предупреждение про лимит ставки, блок про ответственную игру. Все они должны
  читаться как «остановись и прочти», а не как обычный абзац.
*/
.prose blockquote,
.intro blockquote {
  margin: 1.25rem 0;
  padding: 1rem 1.25rem;
  border-inline-start: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.95rem;
}

.prose blockquote p,
.intro blockquote p {
  margin: 0 0 0.6rem;
}

.prose blockquote > :last-child,
.intro blockquote > :last-child {
  margin-bottom: 0;
}

.prose blockquote strong,
.intro blockquote strong {
  color: var(--heading);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ─── Таблицы ───────────────────────────────────────────────────────── */

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.section--table .prose {
  max-width: none;
  /* Широкие таблицы прокручиваются внутри полосы, а не ломают страницу. */
  overflow-x: auto;
}

.prose th,
.prose td {
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0.9rem;
  text-align: start;
  vertical-align: top;
}

/* Подпись таблицы: она объясняет, что в таблице, и обязана быть над ней. */
.prose caption {
  caption-side: top;
  text-align: start;
  padding: 0 0 0.6rem;
  font-weight: 700;
  color: var(--heading);
}

.prose thead th {
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: var(--heading);
  font-weight: 700;
  white-space: nowrap;
}

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

.prose tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--text) 3%, transparent);
}

/* ─── Текст со скриншотом сбоку ─────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: 2rem;
  align-items: start;
}

.split__shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}

/* ─── Первый экран ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding-block: clamp(2rem, 1.2rem + 3vw, 4rem);
  background: var(--header-bg);
  isolation: isolate;
}

/*
  Баннер казино фоном. Затемнение обязательно: скриншоты у брендов и светлые,
  и тёмные, а текст поверх один и тот же.

  Баннеров два — широкий и вертикальный. Браузер не скачивает фон из правила,
  которое не применилось, поэтому телефон получает только свой файл, а не оба.
*/
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)), var(--hero-image, none);
  background-size: cover;
  background-position: center;
}

/* Ссылка на полный список игр — под короткой выборкой морды. */
.games__more {
  margin-top: 1.25rem;
  text-align: center;
}

.games__more a {
  color: var(--accent);
  font-weight: 600;
}

/* Страница ошибки. Своя, а не хостера: человеку нужно куда уйти. */
.notfound {
  text-align: center;
}

.notfound__code {
  font-size: clamp(3.5rem, 12vw, 6rem);
  line-height: 1;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.notfound__text {
  max-width: 46ch;
  margin-inline: auto;
  color: var(--muted);
}

.notfound__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

@media (max-width: 700px) {
  .hero::before {
    background-image: linear-gradient(rgb(0 0 0 / 72%), rgb(0 0 0 / 82%)),
      var(--hero-image-mobile, var(--hero-image, none));
  }
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 22rem);
  grid-template-areas:
    "title offer"
    "text  offer";
  align-content: start;
  gap: 0 2rem;
}

.hero .title {
  grid-area: title;
  color: #ffffff;
}

.hero__text {
  grid-area: text;
  color: #f2f4f8;
  max-width: 62ch;
}

.hero .intro {
  margin-bottom: 1.5rem;
}

.hero__terms {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  opacity: 0.75;
}

/*
  Карточка оффера — то, ради чего страницу открыли, и единственное место, где
  тема позволяет себе яркость. Шапка карточки на акцентном цвете: без неё блок
  читается ещё одной полоской шапки, а не предложением.
*/
.offer {
  grid-area: offer;
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  align-self: start;
}

.offer .btn {
  width: 100%;
}

/*
  Плашка под логотип — акцент, подмешанный в фон, а не чистый акцент. Логотипы
  брендов бывают любые, и светлый логотип на среднем по светлоте акценте
  теряется: у Rivo кремовый логотип на зелёном #3FA34D давал контраст 2.5.
  Подмешанный тон сохраняет направление палитры: у тёмного бренда плашка
  тёмная, у светлого светлая — и логотип читается в обоих случаях.
*/
.offer__head {
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 0.9rem 1.25rem;
  background: color-mix(in srgb, var(--accent) 22%, var(--bg));
  color: var(--heading);
  border-bottom: 3px solid var(--accent);
}

.offer__head img {
  height: 42px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.offer__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.25rem;
  text-align: center;
}

.offer__name {
  font-weight: 800;
  font-size: var(--step-1);
  color: inherit;
  text-align: center;
}

.offer__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0;
}

.offer__value {
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.15;
  color: var(--heading);
  margin: 0;
  text-wrap: balance;
}

.offer__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* ─── Оглавление ────────────────────────────────────────────────────── */

.toc-block {
  padding-block: 1.5rem;
}

.toc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  padding: 0.5rem 1.1rem;
}

.toc__head {
  cursor: pointer;
  font-weight: 700;
  color: var(--heading);
  padding-block: 0.6rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.toc__head::-webkit-details-marker {
  display: none;
}

.toc__head::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-inline-end: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.toc[open] .toc__head::before {
  transform: rotate(-135deg);
}

.toc__list {
  columns: 2;
  gap: 2rem;
  margin: 0 0 0.75rem;
  padding-inline-start: 1.2rem;
  font-size: 0.95rem;
}

.toc__list li {
  break-inside: avoid;
  margin-bottom: 0.3rem;
}

.toc__list a {
  color: var(--muted);
  text-underline-offset: 3px;
}

.toc__list a:hover {
  color: var(--heading);
}

/* ─── Карточки игр ──────────────────────────────────────────────────── */

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Подпись под картинкой, кнопка внутри карточки и прижата к низу. */
.card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.85rem;
  margin-top: auto;
}

.card__title {
  font-weight: 600;
  color: var(--heading);
  line-height: 1.3;
  margin: 0;
}

.card .btn {
  width: 100%;
  padding-block: 0.5rem;
  font-size: 0.95rem;
}

/* ─── Отзывы ────────────────────────────────────────────────────────── */

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

.review {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.review__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.review__name {
  font-weight: 700;
  color: var(--heading);
}

.review__stars {
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.review__text {
  margin: 0;
  color: var(--muted);
}

/* ─── FAQ аккордеоном ───────────────────────────────────────────────── */

.faq__list {
  display: grid;
  gap: 0.5rem;
  max-width: var(--narrow);
}

.faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 0 1.1rem;
}

.faq__question {
  cursor: pointer;
  font-weight: 600;
  color: var(--heading);
  padding-block: 0.9rem;
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::before {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  line-height: 1.4;
  flex-shrink: 0;
}

.faq__item[open] .faq__question::before {
  content: "−";
}

.faq__answer {
  color: var(--muted);
  padding-bottom: 1rem;
}

.faq__answer > :first-child {
  margin-top: 0;
}

.faq__answer > :last-child {
  margin-bottom: 0;
}

/* ─── Повтор действия ───────────────────────────────────────────────── */

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border));
}

.cta__text {
  margin: 0;
  font-size: var(--step-1);
  font-weight: 800;
  color: var(--heading);
  text-wrap: balance;
}

.cta__terms {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ─── Подвал ────────────────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding-block: 2rem 6rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.footer__brand {
  margin-inline-end: auto;
  font-weight: 700;
  color: var(--heading);
}

.footer__brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.footer__nav:empty {
  display: none;
}

.footer__nav a {
  text-decoration: none;
}

.footer__nav a:hover {
  text-decoration: underline;
}

.footer__legal {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding-top: 1.25rem;
  font-size: 0.85rem;
  display: grid;
  gap: 0.5rem;
}

.footer__legal p {
  margin: 0;
}

.footer__marks {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mark {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.78rem;
}

/* ─── Липкая нижняя полоса ──────────────────────────────────────────── */

.bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--accent) 14%, var(--header-bg));
  color: var(--header-fg);
  border-top: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.bar__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.bar__bonus {
  font-weight: 800;
  color: var(--header-fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar__terms {
  font-size: 0.75rem;
  opacity: 0.7;
}

.bar .btn {
  margin-inline-start: auto;
  flex-shrink: 0;
}

/* ─── Узкие экраны ──────────────────────────────────────────────────── */

@media (max-width: 960px) {
  /* Заголовок, карточка оффера, потом текст: бонус не уезжает под вступление,
     но и не встаёт выше названия страницы. */
  .hero__inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "offer"
      "text";
    gap: 1.25rem;
  }

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

  .split__shot {
    max-width: 260px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .toc__list {
    columns: 1;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  /* Меню на телефоне переносится, липкой шапке это стоило бы полэкрана —
     главное действие держит нижняя полоса. */
  .header {
    position: static;
  }

  .header__inner {
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    padding-block: 0.6rem;
  }

  /*
    Одна строка вместо трёх. Якоря и подстраницы уходят в выпадающее меню,
    в шапке остаются логотип, меню и регистрация: первый экран нужен офферу,
    а не навигации.
  */
  .header__inner {
    flex-wrap: nowrap;
  }

  .nav,
  .subnav,
  .header__actions .btn--ghost {
    display: none;
  }

  .nav + .header__actions {
    margin-inline-start: auto;
  }

  .menu {
    display: block;
    order: 3;
  }

  .header__actions {
    margin-inline-start: auto;
  }

  .header__actions .btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .section {
    padding-block: 1.75rem;
  }

  /* У карточки оффера своя шапка во всю ширину — внешних полей у неё нет. */
  .offer__body,
  .cta {
    padding: 1.15rem;
  }

  /* Главные кнопки во всю ширину: на телефоне в них целятся большим пальцем. */
  .cta .btn--lg,
  .hero__text .btn--lg {
    width: 100%;
  }

  .bar__terms {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before {
    transition: none !important;
  }
}
