/* ==========================================================================
   superbetbrasil.org — template
   style.css
   ========================================================================== */

/* ---------- 1. Переменные ---------- */
:root {
  --bg: #0d0d0e;
  --card: #1c1c1e;
  --card-2: #252528;
  --card-3: #303034;
  --line: #333338;
  --red: #e3121b;
  --red-hover: #ff2a33;
  --red-dark: #3a0306;
  --red-deep: #1f0204;
  --lime: #dcf20a;
  --lime-hover: #ebff3a;
  --purple: #6b1a5e;
  --text: #f4f4f5;
  --muted: #a7a7ad;
  --radius: 12px;
  --radius-sm: 8px;
  --pill: 999px;
  --container: 1200px;
  --header-h: 80px;
  --shadow: 0 12px 34px rgba(0, 0, 0, .55);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  display: flex; flex-direction: column;
  font-family: var(--font); font-size: 15px; line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(120% 420px at 50% -120px, #5a0309 0%, #2a0104 45%, transparent 80%),
    var(--bg);
  background-repeat: no-repeat;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; }

.container { width: 100%; max-width: calc(var(--container) + 32px); margin: 0 auto; padding: 0 16px; }

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

/* Иконки = эмодзи / текстовые символы внутри <span class="ico"> */
.ico {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 20px; height: 20px;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  font-size: 17px; font-style: normal; font-weight: 400; line-height: 1;
  user-select: none;
}
.ico--glyph { font-family: var(--font); font-weight: 700; font-size: 20px; }
.ico--sm { width: 16px; height: 16px; font-size: 13px; }
.ico--lg { width: 28px; height: 28px; font-size: 24px; }

@media (min-width: 992px) { .mobile-only { display: none !important; } }
@media (max-width: 991px) { .desktop-only { display: none !important; } }

/* ---------- 3. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: var(--pill);
  font-size: 15px; font-weight: 700; white-space: nowrap;
  transition: background .2s, color .2s, transform .15s;
}
.btn:active { transform: scale(.97); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--dark { background: rgba(255, 255, 255, .1); color: #fff; }
.btn--dark:hover { background: rgba(255, 255, 255, .18); }
.btn--lime { background: var(--lime); color: #1a1a1a; }
.btn--lime:hover { background: var(--lime-hover); }
.btn--lg { height: 54px; padding: 0 30px; font-size: 18px; font-weight: 600; }

.circle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); transition: background .2s;
}
.circle-btn:hover { background: rgba(255, 255, 255, .2); }

/* ---------- 4. Шапка ---------- */
.header { position: sticky; top: 0; z-index: 50; padding: 14px 0 0; }
.header__bar {
  display: flex; align-items: center; gap: 24px;
  min-height: var(--header-h); padding: 0 28px 0 38px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: 40px;
  background: linear-gradient(90deg, #3d0307 0%, #4a1216 45%, #2c0204 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: background .3s, box-shadow .3s;
}
.header.is-scrolled .header__bar { box-shadow: var(--shadow); background: linear-gradient(90deg, #2a0204, #3c0d10 45%, #210103); }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 38px; width: auto; }

.nav { display: flex; align-items: center; gap: 22px; margin-left: 70px; }
.nav a {
  display: flex; align-items: center; gap: 9px;
  font-size: 19px; font-weight: 700; color: #fff; opacity: .92;
  transition: opacity .2s, color .2s;
}
.nav a:hover { opacity: 1; color: #ffd6d8; }
.nav a.is-active { color: #fff; opacity: 1; text-shadow: 0 0 14px rgba(255, 60, 70, .6); }
.nav__sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .3); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* поиск под шапкой */
.search-bar { margin-top: 10px; }
.search-bar[hidden] { display: none; }
.search-bar input {
  width: 100%; height: 48px; padding: 0 20px;
  border: 1px solid var(--line); border-radius: var(--pill);
  background: var(--card); color: var(--text); outline: none;
}
.search-bar input:focus { border-color: var(--red); }

/* ---------- 5. Мобильное меню ---------- */
.drawer {
  position: fixed; inset: 0 0 0 auto; z-index: 70;
  width: min(86vw, 320px); padding: 20px 18px 30px;
  background: #151517; border-left: 1px solid var(--line);
  overflow-y: auto; box-shadow: var(--shadow);
  transform: translateX(100%); transition: transform .3s ease;
}
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer__top .logo img { height: 28px; }
.drawer__close { display: flex; color: var(--muted); }
.drawer__close:hover { color: #fff; }
.drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.drawer__title { margin: 18px 0 6px; padding: 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__list a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; transition: background .2s;
}
.drawer__list a:hover { background: var(--card); }
.drawer__list a.is-active { background: var(--red-dark); color: #fff; }

.overlay {
  position: fixed; inset: 0; z-index: 65; background: rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
body.menu-open { overflow: hidden; }
body.menu-open .drawer { transform: none; }
body.menu-open .overlay { opacity: 1; visibility: visible; }

/* ---------- 6. Главная: общие блоки ---------- */
.home { padding-top: 30px; }
.home > * + * { margin-top: 30px; }

.display {
  margin: 0;
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: 46px; line-height: .95; letter-spacing: .01em; text-transform: uppercase; color: #fff;
}

/* бонусные карточки */
.bonus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.bonus {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 330px; padding: 30px;
  border-radius: var(--radius);
}
.bonus--sport { background: radial-gradient(circle at 75% 60%, #ff3b3b 0%, #d71920 45%, #b5141a 100%); }
.bonus--casino { background: radial-gradient(circle at 75% 55%, #a3317f 0%, #6e1d5f 50%, #4a1043 100%); }
.bonus__img {
  position: absolute; right: 0; bottom: 0; z-index: -1;
  width: 52%; height: 100%; object-fit: cover; object-position: left bottom;
}
.bonus__text { max-width: 290px; margin: 22px 0 auto; font-size: 17px; line-height: 1.5; }
.bonus .btn { margin-top: 28px; }

/* блок приложения */
.app {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px;
  min-height: 300px; padding: 30px 30px 0;
  border-radius: var(--radius); background: var(--card);
}
.app__body { align-self: start; padding-bottom: 30px; }
.app__text { margin: 18px 0 26px; font-size: 18px; }
.app__img { align-self: end; justify-self: center; width: 100%; max-width: 440px; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  min-width: 165px; height: 54px; padding: 0 16px;
  border-radius: var(--radius-sm); background: #f2f2f2; color: #111;
  transition: background .2s, transform .15s;
}
.store:hover { background: #fff; transform: translateY(-2px); }
.store .ico { font-size: 24px; width: 26px; height: 26px; }
.store__text { display: flex; flex-direction: column; line-height: 1.1; }
.store__small { font-size: 10px; font-weight: 600; text-transform: uppercase; color: #555; }
.store__big { font-size: 17px; font-weight: 800; }

/* плитки-преимущества */
.features { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.feature {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  min-height: 124px; padding: 18px 14px;
  border-radius: var(--radius); background: var(--card);
  font-size: 16px; font-weight: 500; line-height: 1.3; text-align: center;
  transition: background .2s, transform .2s;
}
.feature:hover { background: var(--card-2); transform: translateY(-3px); }
.feature .ico { width: 30px; height: 30px; font-size: 24px; }

/* промо-карточки */
.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.promo {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start;
  min-height: 330px; padding: 30px;
  border-radius: var(--radius); background: var(--card);
}
.promo__img {
  position: absolute; right: 0; bottom: 0; z-index: -1;
  width: 50%; height: 100%; object-fit: contain; object-position: right center;
}
.promo__text { max-width: 220px; margin: 18px 0 auto; font-size: 17px; line-height: 1.5; }
.promo .btn { margin-top: 26px; }
.promo .display { font-size: 42px; max-width: 340px; }

/* ряд игр */
.games__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.games__head .display { font-size: 36px; }
.games__nav { display: flex; gap: 8px; margin-left: auto; }
.games__more { font-size: 15px; font-weight: 700; color: var(--red-hover); white-space: nowrap; }
.games__more:hover { color: #ff6970; }
.track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 16px) / 6);
  gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.game {
  position: relative; display: block; overflow: hidden; scroll-snap-align: start;
  border-radius: var(--radius); background: var(--card);
}
.game[hidden] { display: none; }
.game img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .35s; }
.game:hover img { transform: scale(1.06); }
.game__badge {
  position: absolute; top: 8px; left: 8px;
  padding: 2px 8px; border-radius: var(--pill);
  background: var(--red); font-size: 11px; font-weight: 800; text-transform: uppercase;
}
.game__badge--lime { background: var(--lime); color: #111; }
.game__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 12px; text-align: center;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .45));
  opacity: 0; transition: opacity .25s;
}
.game:hover .game__overlay, .game:focus-visible .game__overlay { opacity: 1; }
.game__name { font-size: 14px; font-weight: 700; }
.game__provider { font-size: 12px; color: var(--muted); }
.game__play {
  display: flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%; background: var(--red); font-size: 18px;
}
.game__play .ico { margin-left: 3px; }

/* ==========================================================================
   7. КОНТЕНТНАЯ ЧАСТЬ — main.content
   Пишите обычный HTML внутри <main class="content">, без обёрток.
   ========================================================================== */
.content {
  min-width: 0;
  margin: 30px 0 50px; padding: 40px 44px;
  border-radius: var(--radius); background: var(--card);
  font-size: 16px; line-height: 1.75; color: #dcdce0;
  overflow-wrap: break-word;
}
.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }

.content h1, .content h2, .content h3, .content h4, .content h5, .content h6 { color: #fff; line-height: 1.2; }
.content h1, .content h2 {
  font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .01em;
}
.content h1 { font-size: 46px; margin: 0 0 20px; line-height: 1; }
.content h2 { font-size: 34px; margin: 44px 0 16px; line-height: 1.05; }
.content h3 { font-size: 22px; font-weight: 800; margin: 32px 0 12px; }
.content h4 { font-size: 18px; font-weight: 700; margin: 24px 0 10px; }
.content h5, .content h6 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }

.content p { margin: 0 0 16px; }
.content a { color: var(--red-hover); text-decoration: underline; text-underline-offset: 3px; }
.content a:hover { color: #ff6970; }
.content strong, .content b { color: #fff; font-weight: 700; }
.content mark { padding: 0 4px; border-radius: 3px; background: var(--lime); color: #111; }
.content small { font-size: 13px; color: var(--muted); }

.content ul, .content ol { margin: 0 0 18px; padding-left: 24px; }
.content li { margin-bottom: 8px; }
.content li > ul, .content li > ol { margin: 8px 0 0; }
.content ul li::marker { color: var(--red); }
.content ol li::marker { color: var(--red); font-weight: 800; }

.content img {
  display: block; max-width: 100%; height: auto;
  margin: 26px auto; border-radius: var(--radius);
}
.content figure { margin: 26px 0; }
.content figure img { margin: 0 auto; }
.content figcaption { margin-top: 8px; font-size: 13px; text-align: center; color: var(--muted); }

.content table {
  width: 100%; margin: 26px 0;
  border-collapse: separate; border-spacing: 0;
  border-radius: var(--radius-sm); overflow: hidden;
  background: var(--card-2); font-size: 15px; line-height: 1.5;
}
.content caption { padding: 0 0 10px; font-size: 14px; color: var(--muted); text-align: left; }
.content th { padding: 13px 16px; text-align: left; font-weight: 700; background: var(--red); color: #fff; }
.content td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.content tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.content tbody tr:hover { background: rgba(227, 18, 27, .1); }

.content blockquote {
  margin: 26px 0; padding: 18px 24px;
  border-left: 4px solid var(--lime); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--card-2); font-style: italic;
}
.content blockquote p:last-child { margin-bottom: 0; }
.content hr { height: 1px; margin: 34px 0; border: 0; background: var(--line); }
.content code { padding: 2px 6px; border-radius: 4px; background: var(--card-3); font-size: .9em; }
.content pre { margin: 26px 0; padding: 16px; overflow-x: auto; border-radius: var(--radius-sm); background: var(--bg); }
.content pre code { padding: 0; background: none; }
.content iframe, .content video {
  display: block; width: 100%; max-width: 100%; height: auto;
  aspect-ratio: 16 / 9; margin: 26px 0; border: 0; border-radius: var(--radius);
}
.content dl { margin: 0 0 18px; }
.content dt { font-weight: 700; color: #fff; }
.content dd { margin: 0 0 10px 18px; color: var(--muted); }
.content details { margin: 0 0 10px; padding: 16px 20px; border-radius: var(--radius-sm); background: var(--card-2); }
.content summary { cursor: pointer; font-weight: 700; color: #fff; }
.content details[open] summary { margin-bottom: 10px; color: var(--lime); }

/* ---------- 8. Футер ---------- */
.footer { margin-top: auto; padding: 46px 0 28px; background: #232325; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1.7fr; gap: 40px; }
.footer__title {
  margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid #3c3c41;
  font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1; text-transform: uppercase; color: #fff;
}
.footer__title--mt { margin-top: 34px; }
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: 12px; }
.footer__list a { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; color: #cfcfd4; transition: color .2s; }
.footer__list a:hover { color: #fff; }

.footer__stores { display: flex; flex-direction: column; gap: 10px; }
.mini-store { display: inline-flex; align-items: center; gap: 8px; color: #cfcfd4; transition: color .2s; }
.mini-store:hover { color: #fff; }
.mini-store .ico { width: 22px; height: 22px; font-size: 18px; filter: grayscale(1) brightness(1.6); }
.mini-store span { display: flex; flex-direction: column; line-height: 1.05; }
.mini-store small { font-size: 9px; }
.mini-store b { font-size: 16px; font-weight: 500; }

.pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 6px; background: #2e2e31;
  font-size: 14px; color: #e3e3e7;
}

.footer__strong { margin: 0 0 12px; font-size: 17px; font-weight: 700; color: #e3e3e7; }
.footer__text { margin: 0 0 18px; font-size: 17px; line-height: 1.5; color: #cfcfd4; }
.orgs { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.badge-18 {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border: 2px solid #cfcfd4; border-radius: 50%;
  font-weight: 900; font-size: 15px; color: #cfcfd4;
}
.org {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid #45454b; color: #e3e3e7;
  font-size: 15px; font-weight: 800; letter-spacing: .02em;
  transition: border-color .2s, background .2s;
}
.org:hover { border-color: #fff; background: rgba(255, 255, 255, .05); }
.org small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid #3c3c41;
  font-size: 14px; color: var(--muted);
}
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: #fff; }

/* ---------- 9. Кнопка «наверх» ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 22px; z-index: 45;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.to-top:hover { background: var(--red-hover); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- 10. 404 ---------- */
.error-page {
  display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center;
  padding: 70px 16px; text-align: center;
}
.error-page__code {
  display: flex; align-items: center; gap: .06em;
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(110px, 22vw, 210px); line-height: 1; color: #fff;
}
.error-wheel {
  position: relative; width: .72em; height: .72em; border-radius: 50%;
  background: conic-gradient(var(--red) 0 30deg, #fff 30deg 60deg, var(--red) 60deg 90deg, var(--lime) 90deg 120deg,
              var(--red) 120deg 150deg, #fff 150deg 180deg, var(--red) 180deg 210deg, var(--lime) 210deg 240deg,
              var(--red) 240deg 270deg, #fff 270deg 300deg, var(--red) 300deg 330deg, var(--lime) 330deg 360deg);
  box-shadow: 0 0 0 .04em #7a0a10, 0 0 50px rgba(227, 18, 27, .45);
  animation: spin 8s linear infinite;
}
.error-wheel::after {
  content: "S"; position: absolute; inset: 30%; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--red); border: .02em solid #fff;
  font-size: .28em; font-style: normal; color: #fff;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-page h1 { margin: 26px 0 10px; font-family: var(--font-display); font-style: italic; font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 5vw, 46px); line-height: 1; }
.error-page p { max-width: 520px; margin: 0 0 28px; font-size: 17px; color: var(--muted); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.error-page__links a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: var(--pill); background: var(--card); font-size: 14px; font-weight: 600; }
.error-page__links a:hover { background: var(--card-2); }

/* ==========================================================================
   11. Адаптив
   ========================================================================== */
@media (max-width: 1240px) {
  .nav { margin-left: 30px; gap: 16px; }
  .nav a { font-size: 17px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__col--wide { grid-column: span 3; }
}

@media (max-width: 991px) {
  .header { padding-top: 8px; }
  .header__bar { min-height: 60px; padding: 0 10px 0 20px; gap: 10px; border-radius: 30px; }
  .logo img { height: 26px; }
  .btn { height: 36px; padding: 0 14px; font-size: 14px; }
  .circle-btn { width: 36px; height: 36px; }

  .home { padding-top: 20px; }
  .home > * + * { margin-top: 18px; }
  .display { font-size: 36px; }

  .bonus-grid, .promo-grid { grid-template-columns: 1fr; gap: 18px; }
  .bonus, .promo { min-height: 280px; padding: 24px; }

  .app { grid-template-columns: 1fr; padding: 24px 24px 0; gap: 10px; }
  .app__body { padding-bottom: 0; }
  .app__img { max-width: 360px; }

  /* плитки — горизонтальная прокрутка */
  .features {
    display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%;
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .features::-webkit-scrollbar { display: none; }
  .feature { scroll-snap-align: start; min-height: 112px; font-size: 15px; }

  .track { grid-auto-columns: calc((100% - 2 * 12px) / 3.3); gap: 12px; }
  .games__head .display { font-size: 30px; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer__col--wide { grid-column: span 2; }

  .to-top { right: 14px; bottom: 16px; width: 44px; height: 44px; }
}

@media (max-width: 768px) {
  .content { margin: 20px 0 34px; padding: 24px 16px; font-size: 15px; line-height: 1.7; }
  .content h1 { font-size: 34px; }
  .content h2 { font-size: 27px; margin-top: 32px; }
  .content h3 { font-size: 19px; }
  .content h4 { font-size: 17px; }

  /* таблицы на телефоне скроллятся по горизонтали, а не растягивают экран */
  .content table {
    display: block; width: 100%; max-width: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    white-space: nowrap; font-size: 14px;
  }
  .content th, .content td { padding: 10px 12px; }
  .content blockquote { padding: 14px 16px; }
}

@media (max-width: 560px) {
  .header__actions .btn--dark { display: none; }
  .display { font-size: 32px; }
  .promo .display { font-size: 32px; }
  .bonus__img { width: 58%; opacity: .9; }
  .bonus__text, .promo__text { max-width: 60%; font-size: 15px; }
  .btn--lg { height: 48px; padding: 0 24px; font-size: 16px; }
  .stores { flex-direction: column; }
  .store { width: 100%; }
  .track { grid-auto-columns: calc((100% - 12px) / 2.3); }
  .games__head .display { font-size: 26px; }
  .bonus__img { width: 48%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__col--wide { grid-column: auto; }
  .footer__title { font-size: 22px; }
  .footer__list a, .footer__text { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
