/* ТЁМА 3 — стили лобби-казино. Донор снят 19.08.2026 (кто именно — в README).
   CSS написан свой: у донора это 893 КБ Bootstrap 4 + его платформа, тащить такой
   пласт в прод — и вес, и футпринт на всю сетку. Здесь повторены раскладка,
   ритм секций, пропорции плиток и палитра, снятая пипеткой с его же скриншота:
   #0b0b0b фон лобби, #1f1f1f плитка, #e50914 главная кнопка, #f5f5f1 лента
   выигрышей, #ff3d47 акцент оффера, #141414 светлый низ.
   Перекраска — через config.COLORS (ключ = hex ниже, значение = твой). */

:root {
  --bg-lobby: #0b0b0b;
  --bg-tile: #1f1f1f;
  --bg-light: #141414;      /* ключ перекраски остаётся ради config.COLORS */
  --bg-white: #ffffff;
  /* Поверхности сайта: фон страницы и панели поверх него. Раньше низ был светлым —
     на границе с лобби получался резкий стык, теперь гамма одна на всю страницу. */
  --surface: #141414;
  --surface-2: #1c1c1c;
  --surface-3: #232323;
  --line: rgba(255, 255, 255, .12);
  --accent: #e50914;
  --accent-hot: #f5f5f1;
  --accent-gold: #ff3d47;
  --ink: #141414;
  --ink-dim: #8d8d8d;
  --on-dark: #ffffff;
  --on-dark-dim: rgba(255, 255, 255, .72);
  --radius: 10px;
  --radius-lg: 18px;
  --wrap: 1240px;
  --gap: 16px;
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--on-dark);
  background: var(--surface);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 14px; }

/* ─── кнопки ─────────────────────────────────────────────── */
.c-btn {
  display: inline-block;
  padding: 11px 24px;
  border: 0;
  border-radius: 100px;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform .12s ease, filter .12s ease;
}
.c-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.c-btn:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 2px; }
.c-btn--primary { background: var(--accent); color: #ffffff; }
.c-btn--hot { background: var(--accent-hot); color: #141414; }
.c-btn--ghost { background: transparent; color: var(--on-dark); padding: 11px 14px; }
.c-btn--lg { padding: 15px 34px; font-size: 17px; }

/* ─── ссылка «к содержимому»: видна только при табуляции ──── */
.c-skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--accent); color: #ffffff; padding: 10px 18px;
  border-radius: 0 0 10px 0; font-weight: 800;
}
.c-skip:focus { left: 0; }

/* ─── шапка ──────────────────────────────────────────────── */
.c-header { background: var(--bg-lobby); color: var(--on-dark); }
.c-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.c-header__burger {
  display: flex; flex-direction: column; gap: 4px;
  background: none; border: 0; padding: 6px; cursor: pointer;
}
.c-header__burger span { display: block; width: 22px; height: 3px; border-radius: 2px; background: var(--on-dark); }
.c-header__burger:focus-visible { outline: 2px solid var(--accent-gold); }
.c-header__logo { margin: 0 auto 0 8px; display: flex; align-items: center; }
.c-header__logo-text { font-size: 22px; font-weight: 800; letter-spacing: .5px; color: var(--on-dark); }
/* height + flex:none обязательны: у `width:auto` внутри flex-строки шапки
   ширина схлопывалась в ноль и логотип пропадал молча — на скриншоте пусто,
   в DOM элемент на месте и картинка загружена. */
.c-header__logo-img { height: 38px; width: auto; flex: none; max-height: none; }
.c-header__aux { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.c-header__link { font-size: 15px; }

/* ─── верхняя навигация: «таблетки» с иконками ───────────── */
.c-mainnav { background: var(--bg-lobby); color: var(--on-dark); }
.c-mainnav__list {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 6px 16px 14px;
  display: flex;
  gap: 10px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.c-mainnav__list::-webkit-scrollbar { display: none; }
.c-mainnav__item a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  background: var(--bg-tile);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--on-dark);
}
.c-mainnav__item a:hover { filter: brightness(1.15); }
.c-mainnav__item.is-active a { background: var(--bg-white); color: var(--bg-lobby); }
.c-mainnav__icon { flex: none; }

/* ─── мобильное меню ─────────────────────────────────────── */
.c-menu-mob { display: none; background: var(--bg-tile); color: var(--on-dark); padding: 14px 16px 20px; }
.c-menu-mob.is-open { display: block; }
.c-menu-mob__list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.c-menu-mob__item a { display: block; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,.12); }

/* ─── герой-карусель ─────────────────────────────────────── */
.c-hero { background: var(--bg-lobby); color: var(--on-dark); padding: 6px 0 24px; }
.c-hero__track {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  display: grid;
  grid-auto-flow: column;
  /* следующий слайд подглядывает справа — как у донора */
  grid-auto-columns: min(1180px, 93%);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.c-hero__track::-webkit-scrollbar { display: none; }
.c-hero__slide {
  scroll-snap-align: center;
  position: relative;
  min-width: 0;
  display: grid;
  /* 1085: слайд full-bleed — кадр лежит фоном на всю площадь, текст поверх
     вуали слева. У донора картинка занимала правые 62% и маскот в ней резался. */
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-tile);
  min-height: 420px;
}
.c-hero__content {
  padding: 36px 32px;
  position: relative;
  z-index: 2;
  max-width: 640px;
}
.c-hero__kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--on-dark-dim);
  margin-bottom: 10px;
}
.c-hero__title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.05;
  font-weight: 900;
  color: var(--accent-gold);
}
.c-hero__text { font-size: clamp(15px, 1.6vw, 20px); font-weight: 700; margin-bottom: 20px; }
/* Кадр — подложка слайда: занимает его целиком, текст ложится поверх. */
.c-hero__art { position: absolute; inset: 0; height: 100%; z-index: 1; }
/* Вуаль поверх кадра: в JPEG она уже впечатана, но на узком экране слайд
   режется по cover от центра и левый тёмный край уходит — тогда работает эта. */
.c-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 6, 7, .90) 0%, rgba(8, 6, 7, .70) 34%,
                              rgba(8, 6, 7, .22) 66%, rgba(8, 6, 7, .06) 100%);
}
.c-hero__slide--noart { grid-template-columns: minmax(0, 1fr); background: linear-gradient(115deg, var(--bg-tile) 0%, var(--bg-lobby) 100%); }
.c-hero__img, .c-hero__video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* видео в слайде — фон, а не контент: без звука, без контролов, циклом */
.c-hero__video { pointer-events: none; }

.c-hero__stage { position: relative; }

.c-hero__foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.c-hero__terms { margin: 0; font-size: 11px; line-height: 1.45; color: var(--on-dark-dim); max-width: 70ch; }
/* Стрелки — по краям ленты, вертикально по центру: как в лобби операторов. */
.c-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 0 0 4px;
  border: 0; border-radius: 50%;
  background: rgba(10, 14, 26, .62);
  color: var(--on-dark);
  font-size: 28px; line-height: 1; cursor: pointer;
  transition: background .15s ease;
}
.c-hero__arrow--prev { left: 22px; }
.c-hero__arrow--next { right: 22px; }
.c-hero__arrow:hover { background: rgba(10, 14, 26, .85); }
.c-hero__arrow:focus-visible, .c-hero__dot:focus-visible { outline: 3px solid var(--accent-gold); outline-offset: 2px; }
.c-hero__dots { display: flex; gap: 7px; margin-left: auto; }
.c-hero__dot {
  width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .35); cursor: pointer;
}
.c-hero__dot.is-active { background: var(--accent); width: 26px; border-radius: 100px; }

/* ─── лента выигрышей ────────────────────────────────────── */
.c-winners { background: var(--accent-hot); color: #141414; }
.c-winners__list {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 16px;
  list-style: none;
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.c-winners__list::-webkit-scrollbar { display: none; }
.c-winners__item {
  display: flex; align-items: baseline; gap: 8px;
  white-space: nowrap; font-size: 13px; scroll-snap-align: start;
}
.c-winners__game { font-weight: 800; }
.c-winners__amount { font-weight: 800; }
.c-winners__badge { background: #141414; color: #fff; border-radius: 100px; padding: 1px 8px; font-size: 11px; }
.c-winners__who { opacity: .75; }

/* ─── лобби с рядами игр ─────────────────────────────────── */
.c-lobby { background: var(--bg-lobby); color: var(--on-dark); padding: 8px 0 40px; }
.c-lobby__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.c-rail { margin-top: 30px; }
.c-rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.c-rail__title { font-size: 18px; font-weight: 800; }
.c-rail__more { font-size: 14px; color: var(--accent); font-weight: 700; }
/* Раньше ряд был лентой с горизонтальной прокруткой: полоса скролла торчала
   поперёк секции, а хвост ряда обрывался на середине карточки. Теперь это
   ровная сетка — 6 карточек в строке, ряд из 12 складывается в два полных
   этажа без единой дыры. */
.c-rail__list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--gap);
}
.c-rail__item { min-width: 0; }

.c-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; }
/* 2:3 — родной формат обложек игр: они ложатся в рамку целиком,
   без полей по краям и без обрезанного названия. */
.c-tile__thumb { display: block; position: relative; aspect-ratio: 2 / 3; background: var(--bg-tile); }
.c-tile__img { width: 100%; height: 100%; object-fit: cover; }
.c-tile__badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--accent-gold); color: #1a0508;
  font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 100px;
}
.c-tile__overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26, 0, 66, .55);
  opacity: 0; transition: opacity .15s ease;
}
.c-tile:hover .c-tile__overlay, .c-tile:focus-visible .c-tile__overlay { opacity: 1; }
.c-tile__play {
  background: var(--accent); color: #ffffff;
  padding: 9px 18px; border-radius: 100px; font-weight: 800; font-size: 14px;
}
.c-tile__meta { display: block; padding: 8px 2px 0; }
.c-tile__meta { display: block; padding: 8px 2px 0; min-height: 44px; }
.c-tile__name {
  display: block; font-size: 13px; font-weight: 700; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.c-tile__vendor { display: block; font-size: 11px; color: var(--on-dark-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── карточки бонусов ───────────────────────────────────── */
.c-bcards { background: var(--surface); padding: 34px 0; }
.c-bcards__list {
  max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px;
}
.c-bcard { background: var(--surface-2); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.c-bcard__art { background: var(--bg-tile); aspect-ratio: 16 / 9; }
.c-bcard__art img { width: 100%; height: 100%; object-fit: cover; }
.c-bcard__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.c-bcard__kicker { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--on-dark-dim); }
.c-bcard__title { margin: 0; font-size: 20px; line-height: 1.25; }
.c-bcard__text { margin: 0; color: var(--on-dark-dim); }
.c-bcard__body .c-btn { align-self: start; margin-top: auto; }
.c-bcard__terms { margin: 6px 0 0; font-size: 11px; color: var(--on-dark-dim); }

/* ─── платёжки ───────────────────────────────────────────── */
.c-pay { background: var(--surface-2); }
.c-pay__inner { max-width: var(--wrap); margin: 0 auto; padding: 22px 16px; }
.c-pay__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 34px;
}
.c-pay__item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border-radius: 10px; padding: 10px 14px 8px; min-width: 96px;
}
.c-pay__img { max-height: 26px; width: auto; }
.c-pay__name { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #b3b3b3; }

/* ─── промокод ───────────────────────────────────────────── */
.c-promo {
  max-width: var(--wrap); margin: 0 auto; padding: 22px 16px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.c-promo__title { font-size: 18px; font-weight: 800; }
.c-promo__code {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 18px; cursor: pointer;
  border: 2px dashed var(--accent); border-radius: var(--radius);
  background: var(--surface-2); color: var(--on-dark);
}
.c-promo__val { font-size: 22px; font-weight: 900; letter-spacing: 2px; }
.c-promo__act { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--on-dark-dim); }
.c-promo__code:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.c-promo__code.is-copied { border-style: solid; border-color: var(--accent); }
.c-promo__note { margin: 0; font-size: 13px; color: var(--on-dark-dim); }

/* ─── шапка внутренней страницы ──────────────────────────── */
.c-pagehead { background: var(--bg-lobby); color: var(--on-dark); }
.c-pagehead__inner { max-width: var(--wrap); margin: 0 auto; padding: 30px 16px 34px; }
.c-pagehead__title { margin: 0; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; }

/* ─── статья ─────────────────────────────────────────────── */
.c-article { background: var(--surface); }
.c-article__inner { max-width: 900px; margin: 0 auto; padding: 34px 16px 40px; }
.c-article h2 { font-size: clamp(21px, 2.6vw, 27px); line-height: 1.25; margin: 30px 0 12px; scroll-margin-top: 80px; }
.c-article h3 { font-size: 19px; margin: 22px 0 8px; }
.c-article ul, .c-article ol { margin: 0 0 16px; padding-left: 22px; }
.c-article li { margin-bottom: 7px; }
.c-article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.c-note { background: var(--surface-2); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; }
.c-table-wrap { overflow-x: auto; margin: 0 0 18px; }
.c-table { border-collapse: collapse; width: 100%; min-width: 480px; }
.c-table th, .c-table td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; font-size: 15px; }
.c-table th { background: var(--surface-2); font-weight: 800; }

/* ─── FAQ ────────────────────────────────────────────────── */
.c-faq { background: var(--surface); }
.c-faq__inner { max-width: 900px; margin: 0 auto; padding: 30px 16px 40px; }
.c-faq__title { margin: 0 0 16px; font-size: clamp(21px, 2.6vw, 27px); }
.c-faq__item { background: var(--surface-2); border-radius: var(--radius); margin-bottom: 10px; padding: 4px 18px; }
.c-faq__q { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; }
.c-faq__q::-webkit-details-marker { display: none; }
.c-faq__q::after { content: "+"; float: right; font-size: 20px; line-height: 1; color: var(--on-dark-dim); }
.c-faq__item[open] .c-faq__q::after { content: "–"; }
.c-faq__a { padding-bottom: 8px; color: var(--on-dark-dim); }

/* ─── подвал ─────────────────────────────────────────────── */
.c-footer { background: var(--surface-2); color: var(--on-dark-dim); font-size: 14px; }
.c-footer__nav {
  max-width: var(--wrap); margin: 0 auto; padding: 34px 16px 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 22px;
}
.c-footer__title { display: block; margin-bottom: 10px; font-size: 15px; font-weight: 800; color: var(--on-dark); }
.c-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.c-footer__list a:hover { text-decoration: underline; }
.c-footer__legal {
  max-width: var(--wrap); margin: 0 auto; padding: 22px 16px;
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
  font-size: 12px; line-height: 1.55;
}
.c-footer__age {
  display: inline-block; margin-bottom: 8px;
  border: 2px solid var(--on-dark); border-radius: 50%;
  width: 36px; height: 36px; line-height: 32px; text-align: center;
  font-weight: 900; color: var(--on-dark);
}
.c-footer__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.c-footer__badge { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-size: 11px; letter-spacing: .5px; }
.c-footer__bottom {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 16px 30px;
  border-top: 1px solid var(--line); font-size: 12px;
}

/* ─── баннер про хранение выбора ─────────────────────────── */
.c-cookie {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: 40; width: min(760px, calc(100% - 24px));
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--bg-tile); color: var(--on-dark);
  padding: 14px 18px; border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.c-cookie[hidden] { display: none; }
.c-cookie__text { margin: 0; font-size: 13px; flex: 1 1 320px; }
.c-cookie__btn { flex: none; }

/* ─── адаптив ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .c-rail__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .c-rail__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .c-header__link { display: none; }
  /* на узком слайд становится картинкой-фоном с текстом поверх — как в мобильной вёрстке донора */
  .c-hero__slide { grid-template-columns: minmax(0, 1fr); min-height: 330px; }
  .c-hero__art { position: absolute; inset: 0; }
  /* На узком экране кадр режется по центру, поэтому вуаль плотнее и с опорой
     на низ: заголовок и кнопка обязаны читаться на любом кадре. */
  .c-hero__art::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(8, 6, 7, .72) 0%, rgba(8, 6, 7, .46) 52%,
                                rgba(8, 6, 7, .28) 100%);
  }
  .c-hero__content { padding: 22px 20px; max-width: none; }
  .c-hero__stage { position: relative; }

.c-hero__foot { flex-direction: column; align-items: flex-start; }
  .c-hero__nav { margin-left: 0; }
}

@media (max-width: 560px) {
  .c-rail__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-header__logo { margin-left: 0; }
  .c-header__logo-text { font-size: 18px; }
  .c-btn { padding: 10px 18px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .c-btn { transition: none; }
}

/* ─── добавлено на сборке 1075 ────────────────────────────────
   1. Стрелки карусели ложились поверх текста слайда (левая съедала первую букву
      абзаца). Контенту дан отступ под стрелку, кнопка стала контрастнее;
      на мобиле стрелок нет — там свайп и точки.
   2. Иллюстрация ("img") и ряд обложек ("games") внутри стены текста:
      статья на 2000+ слов без картинок не дочитывается.
   3. Заголовок секции карточек-акций: без него после H1 сразу шли H3. */
.c-hero__arrow {
  background: rgba(19, 12, 7, .82);
  border: 1px solid rgba(255, 255, 255, .22);
}
@media (min-width: 901px) {
  .c-hero__content { padding-left: 84px; }
}
@media (max-width: 900px) {
  .c-hero__arrow { display: none; }
}

.c-figure { margin: 26px 0; }
.c-figure__img {
  width: 100%; height: auto; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.c-figure__cap {
  margin-top: 8px; font-size: 13px; line-height: 1.45;
  color: var(--on-dark-dim); text-align: center;
}
.c-article__rail { margin: 30px 0; }
.c-article__rail .c-rail { margin: 0; }

.c-bcards__title {
  max-width: var(--wrap); margin: 0 auto 18px; padding: 0 16px;
  font-size: clamp(20px, 2.4vw, 26px);
}

/* ─── липкая лента с оффером ─────────────────────────────── */
/* Всплывает после первого экрана, крестик гасит её на все страницы (localStorage).
   Сидит НАД cookie-баннером по z-index, но ниже его по экрану: пока баннер виден,
   лента приподнята — иначе они наезжают друг на друга на мобиле. */
.c-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: var(--bg-tile); color: var(--on-dark);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .45);
  transform: translateY(110%); transition: transform .28s ease;
}
.c-sticky[hidden] { display: none; }
.c-sticky.is-on { transform: translateY(0); }
.c-sticky__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: nowrap;
}
.c-sticky__offer { font-size: 17px; font-weight: 900; line-height: 1.25; }
.c-sticky__code {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 8px 14px; cursor: pointer; font: inherit;
  background: transparent; color: var(--on-dark);
  border: 2px dashed var(--accent); border-radius: var(--radius);
}
.c-sticky__code-key { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--on-dark-dim); }
.c-sticky__code-val { font-size: 16px; font-weight: 900; letter-spacing: 1.5px; }
.c-sticky__code:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.c-sticky__code.is-copied { border-style: solid; }
.c-sticky__btn { flex: none; margin-left: auto; }
.c-sticky__close {
  flex: none; width: 34px; height: 34px; padding: 0; cursor: pointer;
  font-size: 22px; line-height: 1; background: transparent; color: var(--on-dark-dim);
  border: 1px solid var(--line); border-radius: 50%;
}
.c-sticky__close:hover { color: var(--on-dark); }
.c-sticky__close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (max-width: 760px) {
  /* На узком лента перестраивается в две строки: оффер сверху, код и кнопка снизу.
     Кнопка тянется во всю ширину — по ней и целятся пальцем. */
  .c-sticky__inner { flex-wrap: wrap; gap: 10px 12px; padding: 10px 12px 12px; }
  .c-sticky__offer { flex: 1 1 100%; font-size: 15px; padding-right: 38px; }
  .c-sticky__code { flex: 0 0 auto; padding: 7px 12px; }
  .c-sticky__code-val { font-size: 14px; }
  .c-sticky__btn { flex: 1 1 auto; margin-left: 0; text-align: center; }
  .c-sticky__close { position: absolute; top: 8px; right: 10px; width: 30px; height: 30px; font-size: 19px; }
  .c-sticky { padding-bottom: env(safe-area-inset-bottom); }
}
