@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url("/assets/fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url("/assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url("/assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url("/assets/fonts/manrope-latin-800-normal.woff2") format("woff2"); }

/* Палитра в стиле Stake */
:root {
  --bg-0: #0f212e;      /* сайдбар, футер, поля */
  --bg-1: #1a2c38;      /* основной фон */
  --bg-2: #213743;      /* карточки */
  --bg-3: #2f4553;      /* hover, активные табы, линии */
  --bg-4: #3d5564;
  --text: #ffffff;
  --text-2: #b1bad3;
  --text-3: #7a8fa6;
  --blue: #1475e1;
  --blue-h: #1a83f5;
  --green: #00e701;
  --green-h: #1fff20;
  --green-ink: #05080a;
  --warn: #ffb020;
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --side: 240px;
  --top: 60px;
  --shadow: 0 0 3px rgba(0,0,0,.2), 0 1px 3px rgba(0,0,0,.25);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 64px); }
body { margin: 0; background: var(--bg-1); color: var(--text-2); font: 400 16px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: #fff; }
h1, h2, h3 { color: var(--text); line-height: 1.25; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 2.2em; }
h3 { font-size: 1.1rem; margin-top: 1.6em; font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
strong, b { color: var(--text); font-weight: 700; }
.ico { width: 18px; height: 18px; flex-shrink: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 999; background: #fff; color: #000; padding: 8px 12px; border-radius: var(--r-sm); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Логотип */
.logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.2rem; white-space: nowrap; }
.logo-mark { width: 32px; height: 32px; flex: none; border-radius: var(--r); background: var(--bg-0); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), var(--shadow); overflow: hidden; }
.logo-mark svg { display: block; width: 100%; height: 100%; }
.logo .logo-tld { color: var(--text-3); font-weight: 700; font-size: .8em; }

/* Сайдбар */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--bg-0); z-index: 60; overflow-y: auto; padding: 0 12px 24px; box-shadow: 4px 0 16px rgba(0,0,0,.35); transform: translateX(-100%); visibility: hidden; transition: transform .2s ease, visibility 0s .2s; scrollbar-width: thin; scrollbar-color: var(--bg-3) transparent; }
.side-head { height: var(--top); display: flex; align-items: center; justify-content: space-between; padding: 0 0 0 6px; }
.side-close { background: transparent; border: 0; color: var(--text-2); padding: 8px; border-radius: var(--r-sm); cursor: pointer; }
.side-close:hover { background: var(--bg-3); color: #fff; }
.side-close .ico { width: 20px; height: 20px; }
body.menu-open .sidebar { transform: none; visibility: visible; transition: transform .2s ease; }
body.menu-open { overflow: hidden; }
.side-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 14px; }
.side-tile { position: relative; overflow: hidden; height: 64px; border-radius: var(--r); display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 8px 10px; color: #fff; font-weight: 800; text-decoration: none; font-size: .95rem; box-shadow: var(--shadow); }
.side-tile .ico { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; opacity: .9; }
.tile-casino { background: linear-gradient(135deg, #1f7a3d, #0b4d24 70%); }
.tile-sports { background: linear-gradient(135deg, #1765c1, #0b3c78 70%); }
.side-tile:hover { filter: brightness(1.12); color: #fff; }
.side-tile[aria-current] { outline: 2px solid rgba(255,255,255,.6); }
.side-group { background: var(--bg-1); border-radius: var(--r); padding: 6px; margin-bottom: 12px; }
.side-group ul { list-style: none; margin: 0; padding: 0; }
.side-group li { margin: 0; }
.side-group a { display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 600; font-size: .93rem; }
.side-group a .ico { color: var(--text-2); }
.side-group a:hover, .side-group a[aria-current] { background: var(--bg-3); }
.side-group a[aria-current] .ico { color: #fff; }
.side-note { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-3); padding: 4px 8px; margin: 0; }
.badge-18 { border: 2px solid var(--text-3); border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; font-weight: 800; font-size: .72rem; color: var(--text-2); flex-shrink: 0; }
.scrim { position: fixed; inset: 0; background: rgba(5,10,15,.6); z-index: 55; }
.scrim[hidden] { display: none; }

/* Основная колонка */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell > main { flex: 1; }
.topbar { position: sticky; top: 0; z-index: 50; height: var(--top); background: var(--bg-1); box-shadow: 0 4px 6px -1px rgba(0,0,0,.2), 0 2px 4px -1px rgba(0,0,0,.12); }
.topbar-in { max-width: 1200px; height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 12px; }
.topbar-logo { display: block; }
.burger { display: inline-flex; background: transparent; border: 0; color: var(--text); padding: 8px; margin-left: -8px; border-radius: var(--r-sm); cursor: pointer; }
.burger .ico { width: 22px; height: 22px; }
.burger:hover { background: var(--bg-3); }
.top-actions { margin-left: auto; display: flex; gap: 8px; }

@media (max-width: 1000px) {
  .topbar-in { padding: 0 16px; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 560px) {
  .top-actions .hide-xs { display: none; }
  .topbar .logo .logo-tld { display: none; }
  .topbar-in { gap: 8px; }
}

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--r-sm); border: 0; background: var(--blue); color: #fff; font: 700 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer; box-shadow: var(--shadow); transition: background .15s, transform .1s; white-space: nowrap; }
.btn:hover { background: var(--blue-h); color: #fff; }
.btn:active { transform: scale(.98); }
.btn-green { background: var(--green); color: var(--green-ink); }
.btn-green:hover { background: var(--green-h); color: var(--green-ink); }
.btn-ghost { background: var(--bg-3); color: #fff; }
.btn-ghost:hover { background: var(--bg-4); }
.btn-sm { padding: 10px 16px; font-size: .9rem; }

/* Hero */
.hero { min-height: 0; background: radial-gradient(900px 380px at 85% -20%, rgba(20,117,225,.28), transparent 65%), radial-gradient(600px 300px at 0% 120%, rgba(0,231,1,.07), transparent 60%), var(--bg-0); padding: 26px 0 34px; }
.crumbs { font-size: .85rem; color: var(--text-3); margin-bottom: 14px; font-weight: 600; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { margin: 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: center; }
.lead { font-size: 1.05rem; line-height: 1.6; color: var(--text); max-width: 640px; margin-bottom: 20px; }
.intro { font-size: 1.05rem; color: var(--text); margin-bottom: 1.6em; }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-3); font-size: .85rem; font-weight: 600; margin: 4px 0 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.offer-card { position: relative; background: var(--bg-2); border-radius: var(--r-lg); padding: 0 20px 20px; overflow: hidden; box-shadow: var(--shadow); }
.offer-art { position: relative; height: 84px; margin: 0 -20px 16px; background: linear-gradient(120deg, #0b4d24 0%, #1475e1 100%); overflow: hidden; }
.offer-art span { position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.offer-art span:nth-child(1) { width: 160px; height: 160px; right: -30px; top: -50px; }
.offer-art span:nth-child(2) { width: 90px; height: 90px; right: 110px; top: 40px; background: rgba(0,231,1,.35); }
.offer-art span:nth-child(3) { width: 40px; height: 40px; left: 30px; top: 30px; background: rgba(255,255,255,.2); }
.offer-card .tag { position: absolute; top: 14px; left: 16px; z-index: 1; display: inline-block; background: #fff; color: var(--bg-0); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: var(--r-sm); margin-bottom: 8px; }
.offer-card .big { font-size: 1.15rem; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.offer-card ul { list-style: none; padding: 0; margin: 0 0 16px; }
.offer-card li { padding-left: 24px; position: relative; color: var(--text-2); font-weight: 600; font-size: .93rem; }
.offer-card li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.offer-card .btn { width: 100%; }
.offer-card .fine { font-size: .76rem; color: var(--text-3); margin: 10px 0 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero .offer-card { display: none; } }

/* Табы разделов (как вкладки Stake) */
.tabs { position: sticky; top: var(--top); z-index: 40; background: var(--bg-1); padding: 12px 0; border-bottom: 1px solid rgba(47,69,83,.6); }
.tabs ul { position: relative; list-style: none; margin: 0 auto; max-width: 1200px; padding: 0 24px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.tabs ul::-webkit-scrollbar { display: none; }
.tabs li { margin: 0; flex-shrink: 0; }
.tabs a { display: block; padding: 9px 16px; border-radius: 999px; background: var(--bg-0); color: var(--text); text-decoration: none; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.tabs a:hover { background: var(--bg-3); }
.tabs a.active { background: var(--bg-3); box-shadow: inset 0 0 0 1px var(--bg-4); }
@media (max-width: 1000px) { .tabs ul { padding: 0 16px; } }

/* Контент */
.page { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; }
/* Одна ширина для всего сайта: шапка, первый экран и весь контент — контейнер 1200px. */
.content { max-width: none; }
.content > section:first-child > h2:first-child { margin-top: 0; }
@media (max-width: 1000px) { .page { padding: 24px 16px 96px; } }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-radius: var(--r); background: var(--bg-0); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; }
th { color: var(--text-2); font-weight: 700; font-size: .85rem; }
tbody tr:nth-child(even) > * { background: var(--bg-2); }
th[scope="row"] { color: #fff; font-weight: 700; font-size: inherit; }
td { color: var(--text-2); }
td:first-child { color: #fff; font-weight: 700; }
.facts tbody th { width: 38%; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 1.4em; }
.card { background: var(--bg-2); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 1rem; }
.card p { margin: 0; color: var(--text-2); font-size: .9rem; }
.card .kicker { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--green); font-weight: 800; margin-bottom: 4px; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, background .15s; }
a.card:hover { transform: translateY(-3px); background: var(--bg-3); }

/* Плитки игр */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px 10px; margin-bottom: 1.6em; }
.game { display: flex; flex-direction: column; gap: 6px; }
.game .art { position: relative; aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden; padding: 12px; display: flex; align-items: flex-end; background: linear-gradient(160deg, var(--g1, #1475e1), var(--g2, #0f212e)); box-shadow: var(--shadow); transition: transform .2s; }
.game .art::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; right: -60%; top: -45%; background: rgba(255,255,255,.1); }
.game .art::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; left: -15%; top: 30%; background: rgba(0,0,0,.15); }
.game:hover .art { transform: translateY(-4px); }
.game b { position: relative; z-index: 1; color: #fff; font-size: 1.05rem; font-weight: 800; line-height: 1.15; text-transform: uppercase; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.game span { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: .78rem; font-weight: 600; }
.game span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* Шаги */
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 4px 0 14px 50px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: var(--r); background: var(--bg-3); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.steps > li strong { display: block; }


.note { background: var(--bg-0); border-left: 4px solid var(--blue); border-radius: var(--r-sm); padding: 14px 16px; margin: 0 0 1.2em; }
.note.warn { border-left-color: var(--warn); }
.note p:last-child { margin: 0; }

.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(110deg, #123f6e, var(--bg-2) 70%); border-radius: var(--r-lg); padding: 18px 20px; margin: 1.6em 0; box-shadow: var(--shadow); }
.cta-box .cta-title { margin: 0; font-weight: 800; color: #fff; font-size: 1.05rem; }
.cta-box .cta-sub { margin: 2px 0 0; font-weight: 600; color: var(--text-2); font-size: .85rem; }


.faq details { background: var(--bg-2); border-radius: var(--r); margin-bottom: 8px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; color: #fff; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 16px 14px; }
.faq details > div p:last-child { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.chips li { margin: 0; background: var(--bg-0); border-radius: var(--r-sm); padding: 8px 12px; font-size: .86rem; font-weight: 700; color: var(--text); }


.legal h2 { font-size: 1.2rem; }

/* Футер */
.site-footer { background: var(--bg-0); padding: 40px 0 28px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .footer-grid > div:first-child { grid-column: 1 / -1; max-width: 560px; } }
.site-footer h2 { font-size: .95rem; color: #fff; margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { margin-bottom: 10px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.badge { background: var(--bg-2); border-radius: var(--r-sm); padding: 5px 10px; font-weight: 800; color: #fff; font-size: .8rem; }
.disclaimer { border-top: 1px solid var(--bg-3); margin-top: 28px; padding-top: 18px; font-size: .8rem; line-height: 1.6; color: var(--text-3); text-align: center; }
.disclaimer p { max-width: 900px; margin: 0 auto .8em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Нижнее меню на телефоне, как в приложении Stake */
.bottom-nav { display: none; }
@media (max-width: 1000px) {
  .bottom-nav { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--bg-0); box-shadow: 0 -2px 8px rgba(0,0,0,.3); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
  .bottom-nav li { margin: 0; }
  .bottom-nav a, .bottom-nav button { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 8px; background: none; border: 0; color: var(--text-2); font: 700 .72rem/1 var(--font); text-decoration: none; cursor: pointer; }
  .bottom-nav .ico { width: 22px; height: 22px; }
  .bottom-nav a[aria-current], .bottom-nav a:hover, .bottom-nav button:hover { color: #fff; }
  .site-footer { padding-bottom: 90px; }
}

.e404 { text-align: center; padding: 48px 0 24px; }
.e404 .code { font-size: 5rem; font-weight: 800; color: var(--blue); line-height: 1; }

/* Топ-игры */
.top-games { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 12px; margin: 0 0 .8em; }
.tg { display: grid; grid-template-columns: 84px 1fr; gap: 12px; background: var(--bg-2); border-radius: var(--r); padding: 10px; box-shadow: var(--shadow); }
.tg .art { position: relative; aspect-ratio: 3/4; border-radius: var(--r-sm); overflow: hidden; padding: 8px; display: flex; align-items: flex-end; background: linear-gradient(160deg, var(--g1), var(--g2)); }
.tg .art::before { content: ""; position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; right: -60%; top: -45%; background: rgba(255,255,255,.12); }
.tg .art b { position: relative; color: #fff; font-size: .72rem; font-weight: 800; line-height: 1.1; text-transform: uppercase; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.tg .rank { position: absolute; top: 6px; left: 6px; background: rgba(15,33,46,.85); color: #fff; font-size: .7rem; font-weight: 800; padding: 2px 6px; border-radius: var(--r-sm); }
.tg-body h3 { margin: 2px 0 2px; font-size: 1rem; }
.tg .prov { margin: 0 0 8px; font-size: .8rem; font-weight: 600; color: var(--text-3); }
.tg dl { margin: 0; display: grid; gap: 3px; }
.tg dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; border-top: 1px solid rgba(47,69,83,.7); padding-top: 3px; }
.tg dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 700; }
.tg dd { margin: 0; font-size: .85rem; font-weight: 800; color: #fff; text-align: right; }
.tg dl div:first-child dd { color: var(--green); }
.fine-print { font-size: .8rem; color: var(--text-3); margin-bottom: 1.6em; }

/* Пошаговые инструкции */
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin: 0 0 1.4em; }
.howto-card { background: var(--bg-2); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.howto-card h3 { margin: 0 0 12px; font-size: 1.02rem; display: flex; align-items: center; gap: 10px; }
.howto-card h3 .ico { width: 22px; height: 22px; color: var(--blue-h); }
.howto-card ol { counter-reset: s; list-style: none; padding: 0; margin: 0 0 12px; flex: 1; }
.howto-card li { counter-increment: s; position: relative; padding-left: 34px; margin-bottom: 10px; font-size: .92rem; }
.howto-card li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--bg-3); color: #fff; font-weight: 800; font-size: .78rem; display: grid; place-items: center; }
.howto-card .more { font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--blue-h); }
.howto-card .more:hover { color: #fff; }
@media (max-width: 400px) { .howto { grid-template-columns: 1fr; } }

/* Меню: шире на планшете и десктопе */
@media (min-width: 768px) {
  :root { --side: 360px; }
  .sidebar { padding: 0 16px 28px; }
  .side-head { height: 68px; }
  .side-head .logo { font-size: 1.3rem; }
  .side-tiles { gap: 10px; margin-bottom: 16px; }
  .side-tile { height: 88px; font-size: 1.1rem; padding: 12px 14px; }
  .side-tile .ico { width: 32px; height: 32px; right: 12px; top: 12px; }
  .side-group { padding: 8px; margin-bottom: 14px; }
  .side-group a { gap: 14px; padding: 13px 12px; font-size: 1.02rem; }
  .side-group a .ico { width: 21px; height: 21px; }
  .side-note { font-size: .88rem; padding: 6px 10px; }
}
@media (max-width: 767px) {
  .sidebar { width: min(320px, 86vw); }
}

/* Превью игр */
.art.has-img { padding: 0; background: var(--bg-0); }
.art.has-img::before, .art.has-img::after { display: none; }
.art.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art.has-img b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tg .art.has-img .rank { z-index: 1; }

/* Скриншоты приложения в рамке телефона */
.phones { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 20px; margin: 4px 0 1.6em; }
.phones .phone { width: 100%; max-width: 280px; justify-self: center; }
.phones:not(.single) .phone:first-child { justify-self: start; }
.phones:not(.single) .phone:last-child { justify-self: end; }
.phones.single { grid-template-columns: minmax(0, 1fr); }
.phones.single .phone { max-width: 240px; justify-self: start; }
.phone { margin: 0; }
.phone-frame { position: relative; border-radius: 28px; padding: 8px; background: #0b1720; box-shadow: 0 0 0 2px var(--bg-3), 0 12px 30px rgba(0,0,0,.45); }
.phone-frame img { width: 100%; height: auto; border-radius: 21px; display: block; }
.phone figcaption { text-align: center; margin-top: 10px; font-size: .86rem; font-weight: 700; color: var(--text-2); }
@media (max-width: 700px) {
  .phones { grid-template-columns: repeat(var(--n, 3), 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .phones .phone { scroll-snap-align: start; }
  .phones.single { grid-template-columns: minmax(0, 220px); }
}

/* Раздел с одним скриншотом: текст слева, телефон справа — раздел занимает всю ширину */
@media (min-width: 701px) {
  .content section:has(> .phones.single) { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 40px; align-items: start; }
  .content section:has(> .phones.single) > * { grid-column: 1; }
  .content section:has(> .phones.single) > h2 { grid-column: 1 / -1; }
  .content section:has(> .phones.single) > .phones.single { grid-column: 2; grid-row: 2 / span 6; margin: 0; }
  .content section:has(> .phones.single) .phones.single .phone { max-width: none; }
}

/* Блок с кнопкой на телефоне: текст и кнопка на всю ширину */
@media (max-width: 600px) {
  .cta-box .cta-text, .cta-box .btn { width: 100%; }
}

/* Одна инструкция в разделе: шаги в ряд на всю ширину */
.howto.single { grid-template-columns: 1fr; }
.howto.single .howto-card ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px 20px; margin-bottom: 0; }
.howto.single .howto-card li { margin-bottom: 0; }

/* Соцсети в футере */
.social { margin-top: 28px; }
.social ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 10px; }
.social li { margin: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--bg-2); color: var(--text-2); transition: background .15s, color .15s; }
.social a:hover { background: var(--bg-3); color: #fff; }
.social .ico { width: 20px; height: 20px; }
.site-footer .social + .disclaimer { margin-top: 20px; }

/* Картинка первого экрана */
.hero-art { margin: 0; display: flex; justify-content: center; }
.hero-art { overflow: hidden; }
.hero-art img { width: 100%; max-width: 400px; height: auto; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); mask-image: radial-gradient(circle at 50% 50%, #000 52%, transparent 71%); }
.hero-phone .phone-frame { width: 230px; transform: rotate(4deg); }
.hero-art.hero-phone { overflow: visible; padding: 12px 0; }
.hero-phone img { -webkit-mask-image: none; mask-image: none; max-width: none; transform: none; }
/* Скриншот Stake в первом экране */
.hero-grid.has-shot { grid-template-columns: 1.1fr 1fr; gap: 40px; }
.hero-shot { position: relative; margin: 0; padding: 22px 6px 30px 0; perspective: 1400px; }
.shot-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: var(--bg-0); box-shadow: 0 24px 48px rgba(0,0,0,.45), 0 0 0 6px rgba(20,117,225,.10); transform: rotateY(-12deg) rotateX(4deg) rotate(1deg); transform-origin: 60% 50%; }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-phone { position: absolute; left: -14px; bottom: 4px; width: 22%; border-radius: 14px; overflow: hidden; border: 3px solid #0b1620; box-shadow: 0 16px 32px rgba(0,0,0,.5); transform: rotate(-6deg); }
.shot-phone img { display: block; width: 100%; height: auto; }
.shot-tag { position: absolute; top: 0; right: 0; background: var(--blue); color: #fff; font-weight: 800; font-size: 1.1rem; padding: 10px 20px; border-radius: var(--r); box-shadow: 0 10px 24px rgba(20,117,225,.35); transform: rotate(4deg); white-space: nowrap; }
@media (max-width: 1100px) { .hero-grid.has-shot { grid-template-columns: 1.3fr 1fr; gap: 28px; } }
@media (max-width: 860px) { .hero .hero-shot { display: none; } .hero-grid.has-shot { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .hero .hero-art { display: none; } }

/* Иконки у заголовков разделов и в карточках */
.h-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); background: var(--bg-2); color: var(--blue-h); margin-right: 12px; vertical-align: -6px; box-shadow: var(--shadow); }
.h-ico .ico { width: 20px; height: 20px; }
.card { position: relative; }
.card-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); background: linear-gradient(135deg, rgba(20,117,225,.25), rgba(0,231,1,.12)); color: #fff; margin-bottom: 10px; }
.card-ico .ico { width: 20px; height: 20px; }

/* Иллюстрация рядом с вводным абзацем раздела */
.text-art { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: center; margin-bottom: 1em; }
.text-art p:last-child { margin-bottom: 0; }
.sec-art { margin: 0; aspect-ratio: 1; overflow: hidden; }
.sec-art img { width: 100%; height: auto; transform: scale(1.45); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 50%, transparent 70%); mask-image: radial-gradient(circle at 50% 50%, #000 50%, transparent 70%); }
@media (max-width: 700px) {
  .text-art { grid-template-columns: minmax(0, 1fr) 110px; gap: 12px; align-items: start; }
}

.side-title { margin: 4px 10px 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }

/* Дата обновления в конце страницы, перед футером */
.meta-line.updated { margin: 32px 0 0; padding-top: 16px; border-top: 1px solid var(--bg-3); }

/* Больше воздуха между блоками */
.content > section { margin-top: 72px; }
.content > section:first-child { margin-top: 0; }
.content > section > h2 { margin-top: 0; margin-bottom: 18px; }
.content > section > h3 { margin-top: 32px; margin-bottom: 12px; }
.content p { margin-bottom: 1.15em; }
.content .table-wrap, .content .cards, .content .howto, .content .games, .content .top-games,
.content .phones, .content .chips, .content .steps { margin-top: 24px; margin-bottom: 28px; }
.content .note { margin-top: 24px; margin-bottom: 24px; }
.content .cta-box { margin-top: 36px; margin-bottom: 36px; }
.content .faq details { margin-bottom: 10px; }
.content > section > :last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .content > section { margin-top: 56px; }
}

/* Маркированные списки в карточках инструкций */
.howto-card ul { list-style: none; padding: 0; margin: 0 0 12px; flex: 1; }
.howto-card ul > li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: .92rem; }
.howto-card ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.e404 > p:last-child { margin-bottom: 0; }

/* ===== Мобильная версия ===== */
@media (max-width: 600px) {
  /* Зоны нажатия не меньше 44px */
  .burger { padding: 11px; }
  .topbar .logo, .site-footer .logo { min-height: 44px; }
  td, th { overflow-wrap: anywhere; }
  .top-actions .btn-sm { min-height: 44px; padding: 10px 14px; }
  .crumbs a { display: inline-block; padding: 12px 0; }
  .crumbs { margin-bottom: 4px; }
  .btn { min-height: 44px; }
  .tabs a { display: flex; align-items: center; min-height: 44px; }
  .social a { width: 44px; height: 44px; }
  .skip:focus { display: inline-flex; align-items: center; min-height: 44px; }
  .hero { padding-top: 12px; }
  /* Кнопки первого экрана — во всю ширину */
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; min-height: 48px; }
  /* Шрифт не меньше 12px */
  .card .kicker, .offer-card .tag, .tg dt, .tg .rank, .side-title { font-size: .75rem; }
  .bottom-nav a, .bottom-nav button { font-size: .75rem; min-height: 56px; }
  /* Таблицы из 3+ колонок — карточками */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack th { display: block; width: auto; }
  table.stack tr { padding: 12px 14px; border-bottom: 1px solid var(--bg-3); }
  table.stack tbody tr:nth-child(even) > * { background: transparent; }
  table.stack tbody tr:nth-child(even) { background: var(--bg-2); }
  table.stack td, table.stack th { padding: 4px 0; border: 0; }
  table.stack th[scope="row"] { font-size: 1rem; padding-bottom: 6px; }
  table.stack td { display: grid; grid-template-columns: minmax(96px, 40%) 1fr; gap: 10px; align-items: baseline; }
  table.stack td::before { content: attr(data-label); font-size: .75rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; }
  table.stack td[data-label=""] { display: block; }
  table.stack td[data-label=""]::before { display: none; }
  .facts tbody th { width: 42%; }
}
