/* ==========================================================================
   lilbet Review — RU hub (портал-витрина)
   Палитра: глубокий индиго + неон циан/магента. Собственная вёрстка:
   слайдер, плитки категорий, сетка игр с демо, ленты. Не пересекается
   с russia (базовый шаблон) и russia-2 (тёмный премиум).
   ========================================================================== */

:root {
  --bg:      #090a1c;
  --bg-2:    #0d0f26;
  --surface: #151833;
  --surface-2: #1c2044;
  --line:    rgba(255,255,255,.09);
  --line-2:  rgba(255,255,255,.16);

  --ink:   #f3f3fb;
  --ink-2: #a4a6cc;
  --ink-3: #6f719c;

  --cyan:    #22d3ee;
  --violet:  #7c5cff;
  --magenta: #f43f8e;
  --gold:    #ffc857;
  --lime:    #9ae65c;

  --grad: linear-gradient(100deg, var(--cyan), var(--violet) 52%, var(--magenta));
  --grad-soft: linear-gradient(100deg, rgba(34,211,238,.16), rgba(124,92,255,.16) 52%, rgba(244,63,142,.16));

  --sans: "Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;
  --display: "Segoe UI Variable Display","Segoe UI Semibold","Segoe UI",system-ui,sans-serif;
  --mono: "Cascadia Mono",Consolas,ui-monospace,monospace;

  --r: 16px;
  --r-s: 11px;
  --maxw: 1240px;
  --shadow: 0 20px 50px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: -30% 0 auto 0; height: 70vh; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 45% at 15% 30%, rgba(124,92,255,.20), transparent 70%),
    radial-gradient(45% 40% at 85% 15%, rgba(34,211,238,.16), transparent 72%),
    radial-gradient(40% 35% at 60% 45%, rgba(244,63,142,.12), transparent 72%);
}
.wrap { width: min(var(--maxw), calc(100% - 36px)); margin-inline: auto; position: relative; z-index: 1; }
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.18; margin: 0; }
p { margin: 0 0 14px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 600 15.5px/1 var(--display); white-space: nowrap;
  transition: transform .18s, box-shadow .22s, background .18s, opacity .18s;
}
.btn-main {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px rgba(124,92,255,.42), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(124,92,255,.55), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-gold { background: linear-gradient(150deg, #ffe08a, var(--gold) 45%, #e0a52e); color: #22190a; box-shadow: 0 10px 28px rgba(255,200,87,.3); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-sm { padding: 9px 17px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ---------- шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 60; background: rgba(9,10,28,.82); backdrop-filter: blur(18px) saturate(150%); border-bottom: 1px solid var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 18px/1 var(--display); letter-spacing: -.02em; }
.brand .mark { width: 32px; height: 30px; display: grid; place-items: center; flex: none; }
.brand .mark img { width: 100%; height: auto; filter: drop-shadow(0 3px 10px rgba(124,92,255,.55)); }
.brand .wordmark { display: grid; gap: 2px; }
.brand .wordmark b { font: 700 17px/1 var(--display); letter-spacing: -.02em; }
.brand .wordmark span { color: var(--ink-3); font: 600 9.5px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; }
.brand small { color: var(--ink-3); font: 400 13px/1 var(--sans); }
.topnav { display: flex; gap: 2px; margin-inline-start: auto; }
.topnav a { padding: 8px 12px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: .18s; }
.topnav a:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.topnav a.on { color: #fff; background: rgba(124,92,255,.28); }
.tools { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.lang a { padding: 6px 11px; font: 600 13px/1.3 var(--sans); color: var(--ink-2); text-decoration: none; }
.lang a.on { background: var(--ink); color: #0d0f26; }

/* ---------- полоса категорий ---------- */
.cats { border-bottom: 1px solid var(--line); background: rgba(13,15,38,.6); }
.cats .wrap { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: thin; }
.cats::-webkit-scrollbar { height: 4px; }
.cat {
  flex: none; display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2); text-decoration: none; font: 600 14px/1 var(--display); white-space: nowrap;
  transition: .18s;
}
.cat svg { color: var(--cyan); flex: none; }
.cat:hover { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-1px); }
.cat:nth-child(2n) svg { color: var(--violet); }
.cat:nth-child(3n) svg { color: var(--magenta); }

/* ---------- заголовок страницы ---------- */
.pagehead { padding: 26px 0 2px; }
.pagehead h1 { font-size: clamp(24px, 3.4vw, 36px); line-height: 1.12; }
.pagehead h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pagehead p { color: var(--ink-2); font-size: 15.5px; max-width: 84ch; margin: 10px 0 0; }

/* ---------- слайдер ---------- */
.slider { position: relative; margin-top: 24px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.slides { display: flex; transition: transform .55s cubic-bezier(.22,1,.36,1); }
.slide {
  flex: 0 0 100%; min-height: 400px; padding: 48px 52px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .7fr); gap: 30px; align-items: center;
  background-color: #0d1130; background-repeat: no-repeat;
  background-position: right center; background-size: cover;
  position: relative; overflow: hidden;
}
/* Фон — абстракция, нарисованная под сайт (свои SVG, без сторонних прав).
   Текстовая колонка живёт в чистой тёмной зоне слева, поэтому дополнительная
   шторка нужна только на узких экранах — см. медиазапрос ниже. */
.slide::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: transparent; }
.slide.s1 { background-image: url("art/abstract-1.svg"); }
.slide.s2 { background-image: url("art/abstract-2.svg"); }
.slide.s3 { background-image: url("art/abstract-3.svg"); }
.slide.s4 { background-image: url("art/abstract-4.svg"); }
.slide > * { position: relative; z-index: 1; }
.slide .copy { max-width: 46ch; }
.slide .tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 12px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.slide h2 { font-size: clamp(26px, 3.6vw, 44px); line-height: 1.08; margin-bottom: 12px; }
.slide h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide p { color: var(--ink-2); font-size: 16.5px; max-width: 52ch; margin-bottom: 22px; }
.slide .row { display: flex; gap: 11px; flex-wrap: wrap; align-items: center; }
.slide .fine { color: var(--ink-3); font-size: 12.5px; margin: 14px 0 0; }

.slide-art { display: grid; gap: 12px; }
.art-pill { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 20px; border-radius: var(--r); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(6px); }
.art-pill .l { color: var(--ink-2); font-size: 13.5px; }
.art-pill .v { font: 700 22px/1 var(--mono); letter-spacing: -.03em; }
.art-pill .v.c { color: var(--cyan); } .art-pill .v.m { color: var(--magenta); } .art-pill .v.g { color: var(--gold); }

.sl-nav { position: absolute; inset: auto 0 18px 0; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.sl-dot { width: 30px; height: 4px; border-radius: 999px; border: 0; padding: 0; cursor: pointer; background: rgba(255,255,255,.24); transition: .22s; }
.sl-dot.on { background: var(--grad); width: 46px; }
.sl-arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(9,10,28,.6); color: #fff; backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line-2); display: grid; place-items: center; transition: .18s; }
.sl-arr:hover { background: rgba(124,92,255,.6); }
.sl-arr.prev { left: 16px; } .sl-arr.next { right: 16px; }

/* ---------- плитки фич ---------- */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.feat { background: var(--surface); border-radius: var(--r); padding: 20px 22px; box-shadow: inset 0 0 0 1px var(--line); transition: .2s; }
.feat:hover { background: var(--surface-2); transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2); }
.feat .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); margin-bottom: 13px; }
.feat:nth-child(2) .ic { color: var(--violet); }
.feat:nth-child(3) .ic { color: var(--magenta); }
.feat:nth-child(4) .ic { color: var(--gold); }
.feat h3 { font-size: 16px; margin-bottom: 5px; }
.feat p { color: var(--ink-2); font-size: 14px; margin: 0; }

/* ---------- секции ---------- */
.sec { padding: 58px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.sec-head h2 { font-size: clamp(24px, 3.2vw, 34px); }
.sec-head .sub { color: var(--ink-2); font-size: 15.5px; margin: 8px 0 0; max-width: 68ch; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 600 11.5px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 10px; }
.kicker::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* ---------- лента RTP ----------
   Ширина как у остальных блоков (внутри .wrap). Движение задаётся из JS,
   чтобы лента ехала независимо от системной настройки анимаций. */
.tickerbox {
  position: relative; margin-top: 18px; padding: 12px 0; overflow: hidden;
  border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
}
.tickerbox::before, .tickerbox::after { content: ""; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.tickerbox::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.tickerbox::after { right: 0; background: linear-gradient(270deg, var(--bg-2), transparent); }
.ticker-row { display: flex; gap: 30px; width: max-content; will-change: transform; padding-inline: 20px; }
.tick { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.tick b { color: var(--ink); font-weight: 600; }
.tick .rtp { font-family: var(--mono); color: var(--lime); font-weight: 700; }
.tick .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--violet); }

/* ---------- вкладки ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab { padding: 9px 18px; border-radius: 999px; border: 0; cursor: pointer; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 600 14px/1 var(--display); transition: .18s; }
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab.on { background: var(--grad); color: #fff; box-shadow: 0 8px 22px rgba(124,92,255,.4); }

/* ---------- сетка игр ---------- */
.games { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
/* колонка + margin-top:auto на кнопках — иначе строки разной длины
   («Spribe · краш-игра» против «Pragmatic Play · высокая волатильность»)
   поднимают кнопки на разную высоту */
.game { display: flex; flex-direction: column; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: .2s; position: relative; }
.game:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 36px rgba(0,0,0,.45); }
.game-cover { aspect-ratio: 4 / 5; position: relative; display: grid; place-items: center; overflow: hidden; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; }
/* заглушка, пока нет реальной обложки */
.game-cover.ph { background: linear-gradient(150deg, #241a52, #10143a 55%, #0c1030); }
.game-cover.ph::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 34%, rgba(124,92,255,.34), transparent 62%); }
.game-cover.ph.c2 { background: linear-gradient(150deg, #0c3346, #0d1a3c 55%, #0c1030); }
.game-cover.ph.c2::after { background: radial-gradient(circle at 50% 34%, rgba(34,211,238,.3), transparent 62%); }
.game-cover.ph.c3 { background: linear-gradient(150deg, #3a1039, #1d1038 55%, #0c1030); }
.game-cover.ph.c3::after { background: radial-gradient(circle at 50% 34%, rgba(244,63,142,.3), transparent 62%); }
.game-cover.ph.c4 { background: linear-gradient(150deg, #3a2c0d, #1f1a34 55%, #0c1030); }
.game-cover.ph.c4::after { background: radial-gradient(circle at 50% 34%, rgba(255,200,87,.28), transparent 62%); }
.ph-mark { position: relative; z-index: 1; font: 700 30px/1 var(--display); color: rgba(255,255,255,.9); letter-spacing: -.03em; text-align: center; padding: 0 12px; text-shadow: 0 4px 20px rgba(0,0,0,.5); }
.game-rtp { position: absolute; z-index: 2; top: 10px; left: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(9,10,28,.76); backdrop-filter: blur(6px); font: 700 11.5px/1 var(--mono); color: var(--lime); box-shadow: inset 0 0 0 1px rgba(154,230,92,.3); }
.game-hot { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 4px 9px; border-radius: 999px; background: var(--grad); font: 700 10.5px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.game-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.game-body h3 { font-size: 14.5px; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-body .prov { color: var(--ink-3); font-size: 12.5px; min-height: 2.9em; }
.game-act { display: flex; gap: 7px; margin-top: auto; padding-top: 11px; }
.game-act .btn { flex: 1; padding: 9px 10px; font-size: 13px; }

/* модалка демо */
.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 20px; background: rgba(5,6,18,.86); backdrop-filter: blur(8px); }
.modal.open { display: grid; }
.modal-box { width: min(1000px, 100%); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.modal-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; }
.modal-head .demo-badge { padding: 4px 10px; border-radius: 999px; background: rgba(154,230,92,.14); color: var(--lime); font: 700 11px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.modal-head .x { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.08); color: var(--ink); font-size: 18px; line-height: 1; }
.modal-head .x:hover { background: var(--magenta); color: #fff; }
.modal-frame { aspect-ratio: 16 / 10; background: #05060f; }
.modal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-foot { display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; border-top: 1px solid var(--line); }
.modal-foot p { margin: 0; color: var(--ink-3); font-size: 13px; }

/* ---------- карточки ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border-radius: var(--r); padding: 22px 24px; box-shadow: inset 0 0 0 1px var(--line); transition: .2s; }
.card:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.card .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); margin-bottom: 14px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.card ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.card li { display: flex; gap: 9px; color: var(--ink-2); font-size: 14.5px; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--violet); }
.card b { color: var(--ink); }
.card.hi { background: linear-gradient(150deg, rgba(124,92,255,.16), var(--surface) 58%); box-shadow: inset 0 0 0 1px rgba(124,92,255,.32); }
.card .tagline { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--grad); font: 700 11px/1.5 var(--display); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 12px; }

/* ---------- таблица ---------- */
.tscroll { overflow-x: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--bg-2); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--surface); color: var(--ink-3); font: 600 11.5px/1.3 var(--display); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(255,255,255,.03); }
table.data .num { font-family: var(--mono); }
table.data tr.me { background: linear-gradient(90deg, rgba(124,92,255,.16), transparent); }
table.data tr.me td:first-child { box-shadow: inset 3px 0 0 var(--violet); }
.yes { color: var(--lime); font-weight: 600; }
.no { color: var(--ink-3); }
.note { color: var(--ink-3); font-size: 12.5px; margin: 12px 0 0; }

/* ---------- баннер приложения ---------- */
.apk {
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
  padding: 30px 34px; border-radius: 20px; position: relative; overflow: hidden;
  background: linear-gradient(115deg, #131a44, #1d1145 60%, #2a0f36);
  box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow);
}
.apk::before { content: ""; position: absolute; inset: -60% auto auto -10%; width: 60%; height: 220%; background: radial-gradient(circle, rgba(34,211,238,.22), transparent 62%); }
/* вариант с фирменным креативом на фоне */
.apk.has-art { background-repeat: no-repeat; background-position: right center; background-size: cover; min-height: 260px; }
.apk.has-art::before {
  inset: 0; width: auto; height: auto;
  background: linear-gradient(90deg, rgba(9,10,28,.96) 0%, rgba(9,10,28,.9) 32%, rgba(9,10,28,.5) 58%, rgba(9,10,28,0) 80%);
}
.apk > * { position: relative; }
.apk h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; }
.apk p { color: var(--ink-2); font-size: 15px; margin: 0; max-width: 62ch; }
.apk .row { display: flex; gap: 11px; flex-wrap: wrap; }

/* ---------- SEO-текст ---------- */
.copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.copy-block { background: var(--surface); border-radius: var(--r); padding: 24px 26px; box-shadow: inset 0 0 0 1px var(--line); }
.copy-block h2 { font-size: 19px; margin-bottom: 10px; }
.copy-block h3 { font-size: 16px; margin: 16px 0 8px; }
.copy-block p { color: var(--ink-2); font-size: 14.5px; }
.copy-block p:last-child { margin-bottom: 0; }
.copy-block ol, .copy-block ul { color: var(--ink-2); font-size: 14.5px; padding-left: 20px; margin: 0 0 12px; display: grid; gap: 6px; }
.copy-block b { color: var(--ink); }

/* ---------- FAQ ---------- */
.faq { border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 17px 22px; display: flex; align-items: center; gap: 14px; font: 600 16px/1.4 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: rgba(255,255,255,.03); }
.faq summary::after { content: "+"; margin-inline-start: auto; font: 400 22px/1 var(--sans); color: var(--cyan); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--ink-2); font-size: 14.5px; max-width: 92ch; }

/* ---------- автор / доверие ---------- */
.author { display: grid; grid-template-columns: auto 1fr; gap: 20px; background: var(--surface); border-radius: var(--r); padding: 24px 26px; box-shadow: inset 0 0 0 1px var(--line); }
.ava { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font: 700 20px/1 var(--display); color: #fff; flex: none; }
.author h3 { font-size: 18px; }
.author .role { color: var(--cyan); font-size: 13.5px; font-weight: 600; margin: 3px 0 10px; }
.author p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 12.5px; }
.chip svg { color: var(--lime); flex: none; }

/* ---------- дисклеймер ---------- */
.disclaimer { display: flex; gap: 16px; align-items: flex-start; margin-top: 22px; padding: 20px 22px; border-radius: var(--r); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-3); font-size: 13px; line-height: 1.6; }
.badge18 { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(244,63,142,.14); box-shadow: inset 0 0 0 1px rgba(244,63,142,.4); color: var(--magenta); font: 700 14px/1 var(--mono); }

/* ---------- подвал ---------- */
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 38px 0 42px; background: var(--bg-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot-grid h4 { font-size: 14px; margin-bottom: 12px; color: var(--ink); }
.foot-grid a { display: block; color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 4px 0; }
.foot-grid a:hover { color: var(--cyan); }
.foot-grid p { color: var(--ink-3); font-size: 13.5px; }
.foot-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- прилипшая CTA ---------- */
.sticky { position: fixed; inset: auto 0 0 0; z-index: 70; display: none; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 18px; background: rgba(9,10,28,.93); backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); transform: translateY(110%); transition: transform .3s cubic-bezier(.22,1,.36,1); }
.sticky.show { transform: none; }
.sticky .t b { display: block; font: 600 14.5px/1.3 var(--display); }
.sticky .t span { color: var(--ink-3); font-size: 12.5px; }

/* ---------- посадочные страницы слотов ---------- */
.crumbs { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 20px 0 6px; font-size: 13.5px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs .cur { color: var(--ink); }

.slot-top { display: grid; grid-template-columns: 1.25fr .9fr; gap: 34px; align-items: center; padding: 22px 0 6px; }
.slot-top h1 { font-size: clamp(27px, 4vw, 40px); margin-bottom: 14px; }
.slot-top .lede { color: var(--ink-2); font-size: 16.5px; margin-bottom: 22px; }
.slot-cta { display: flex; gap: 11px; flex-wrap: wrap; }
.slot-facts table.data { min-width: 0; }
.slot-facts table.data td:first-child { color: var(--ink-3); white-space: nowrap; }
.slot-facts table.data td:last-child { text-align: right; font-weight: 600; }

.demo-frame { position: relative; border-radius: var(--r); overflow: hidden; background: #05060f; box-shadow: inset 0 0 0 1px var(--line); aspect-ratio: 16 / 10; }
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-cover { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.demo-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.42) saturate(1.15); transform: scale(1.08); }
.demo-play {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 11px;
  padding: 16px 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--grad); color: #fff; font: 600 17px/1 var(--display);
  box-shadow: 0 14px 38px rgba(124,92,255,.5), inset 0 1px 0 rgba(255,255,255,.28);
  transition: transform .18s, box-shadow .22s;
}
.demo-play:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 20px 48px rgba(124,92,255,.6), inset 0 1px 0 rgba(255,255,255,.3); }
.demo-status { pointer-events: none; position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 30px; color: var(--ink-2); font-size: 15px; }
.demo-status.err { pointer-events: auto; }
.demo-status b { font: 700 19px/1.3 var(--display); color: var(--ink); }
.demo-status p { margin: 0; max-width: 52ch; font-size: 14.5px; }
.demo-status .spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); border-top-color: var(--cyan); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.related { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.relcard { display: block; border-radius: var(--r-s); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; transition: .2s; }
.relcard:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--line-2), 0 14px 28px rgba(0,0,0,.4); }
.relcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.relcard span { display: block; padding: 9px 11px 11px; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.alertbox { display: flex; gap: 16px; margin-top: 16px; padding: 22px 26px; border-radius: var(--r); background: linear-gradient(150deg, rgba(244,63,142,.09), var(--surface) 58%); box-shadow: inset 0 0 0 1px rgba(244,63,142,.24); border-left: 3px solid var(--magenta); }
.alertbox h3 { font-size: 17px; margin-bottom: 8px; }
.alertbox p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

@media (max-width: 900px) {
  .slot-top { grid-template-columns: 1fr; gap: 24px; }
  .related { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .demo-frame { aspect-ratio: 4 / 3; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 10px 0 6px; }
.nf-code {
  font-size: clamp(80px, 15vw, 150px); font-weight: 700; line-height: .9; letter-spacing: -.05em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 40px rgba(124,92,255,.35)); margin-bottom: 10px;
}
.notfound h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 12px; }
.notfound .lede { color: var(--ink-2); font-size: 16.5px; max-width: 58ch; margin: 0 auto 24px; }
.notfound .slot-cta { justify-content: center; }
.nf-card { display: block; text-decoration: none; }
.nf-card:hover { transform: translateY(-3px); }

/* ---------- legal-страницы ---------- */
.doc { max-width: 74ch; padding: 46px 0 10px; }
.doc h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.doc .upd { color: var(--ink-3); font-size: 13.5px; margin-bottom: 30px; }
.doc h2 { font-size: 21px; margin: 32px 0 10px; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc ul, .doc ol { padding-left: 20px; display: grid; gap: 8px; margin: 0 0 14px; }
.doc a { color: var(--cyan); }
.doc .callout { background: var(--surface); border-radius: var(--r-s); padding: 18px 22px; margin: 22px 0; box-shadow: inset 0 0 0 1px var(--line); border-left: 3px solid var(--violet); }
.doc .callout p:last-child { margin-bottom: 0; }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .slide { grid-template-columns: 1fr; padding: 34px 28px 54px; min-height: 0; }
  /* на узком экране картинка уезжает под текст — включаем шторку */
  .slide::before { background: linear-gradient(180deg, rgba(9,10,28,.92) 0%, rgba(9,10,28,.86) 60%, rgba(9,10,28,.94) 100%); }
  .slide-art { display: none; }
  .cards, .cards.two, .cards.four, .copy { grid-template-columns: 1fr; }
  .games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apk { grid-template-columns: 1fr; }
  .sl-arr { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .sec { padding: 42px 0; }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats { grid-template-columns: 1fr; }
  .author { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .sticky { display: flex; }
  body { padding-bottom: 70px; }
  .modal { padding: 0; align-items: stretch; }
  .modal-box { border-radius: 0; height: 100%; display: flex; flex-direction: column; }
  .modal-frame { flex: 1; aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .ticker-row { animation: none; }
}
