:root {
  --bg: #e3e1fb;
  --bg-2: #d6d3f7;
  --panel: #efeefe;
  --ink: #2b2272;
  --ink-soft: #5b55a8;
  --head: #1b1976;
  --head-2: #2f1f8f;
  --violet: #6a3df0;
  --violet-2: #8b5cff;
  --lime: #8be32a;
  --lime-2: #4fb20f;
  --line: #c9c5f1;
  --radius: 14px;
  --side: 248px;
  --header: 64px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: linear-gradient(90deg, var(--head) 0%, var(--head-2) 55%, #5a2fc4 100%);
  box-shadow: 0 2px 14px rgba(20, 10, 80, .35);
}

.logo img { height: 46px; width: auto; border-radius: 8px; }

.header-actions { margin-left: auto; display: flex; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .28);
}

.btn-main {
  color: #fff;
  background: linear-gradient(180deg, var(--violet-2), var(--violet));
  box-shadow: 0 4px 0 #3d1fa6, 0 6px 16px rgba(106, 61, 240, .35);
}

.btn-cta {
  color: #18320a;
  background: linear-gradient(180deg, #b6f55a 0%, var(--lime) 45%, var(--lime-2) 100%);
  box-shadow: 0 5px 0 #2f7a07, 0 8px 20px rgba(80, 180, 20, .35);
  font-family: "Lilita One", "Figtree", sans-serif;
  font-weight: 800;
  font-synthesis: none;
  font-size: 20px;
  min-height: 52px;
  padding: 0 34px;
  border-radius: 999px;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.burger span { display: block; height: 3px; border-radius: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.nav-open .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ---------- Side navigation ---------- */
.sidenav {
  position: fixed;
  top: var(--header);
  left: 0;
  bottom: 0;
  width: var(--side);
  padding: 14px 12px 20px;
  overflow-y: auto;
  background: var(--panel);
  border-right: 1px solid var(--line);
  z-index: 40;
}

.side-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.side-promo a {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  height: 92px;
  padding: 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  background: radial-gradient(circle at 70% 25%, #6c5bff 0%, #2b23a3 60%, #1b1976 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15);
}
.sp-ico { font-size: 28px; line-height: 1; }

.side-menu ul { list-style: none; margin: 0; padding: 6px; background: #fff; border-radius: 14px; }
.side-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--violet);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
}
.side-menu a:hover, .side-menu a[aria-current="page"] { background: var(--bg); }
.side-menu svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.side-cta {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #3b2bb8, #7c3df0);
}
.side-cta-k { display: block; font-size: 12px; opacity: .85; text-transform: uppercase; font-weight: 700; }
.side-cta-v { display: block; font-family: "Lilita One", "Figtree", sans-serif;
  font-weight: 800;
  font-synthesis: none; font-size: 20px; line-height: 1.2; margin-top: 4px; }

.backdrop { position: fixed; inset: var(--header) 0 0 0; background: rgba(15, 10, 50, .5); z-index: 35; }

/* ---------- Layout ---------- */
.layout { margin-left: var(--side); min-width: 0; }
.main { padding: 16px 20px 40px; max-width: 1480px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: stretch;
  min-height: 360px;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
  background: radial-gradient(circle at 20% 40%, #4a2fb0 0%, #2b1f87 45%, #1a1666 100%);
  border-bottom: 3px solid var(--violet-2);
}
.hero-img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.hero-text {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 20px;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 1;
}
.hero-kicker {
  margin: 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .25);
  font-size: 15px;
}
.hero-title {
  margin: 0;
  font-family: "Lilita One", "Figtree", sans-serif;
  font-weight: 800;
  font-synthesis: none;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(20, 10, 70, .5);
}
.hero-note { margin: 0; font-size: 13px; opacity: .75; }

/* ---------- Categories ---------- */
.cats {
  display: flex;
  gap: 10px;
  margin: 18px 0 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 0 var(--line);
  text-decoration: none;
  font-weight: 700;
  color: var(--ink);
}
.cats a span { font-size: 20px; }

/* ---------- Game rows ---------- */
.games { margin-top: 26px; }
.games-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.games-title { margin: 0; font-size: 21px; font-weight: 800; }
.games-all { font-size: 13px; font-weight: 800; color: var(--violet); text-decoration: none; text-transform: uppercase; white-space: nowrap; }

.games-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 6 * 14px) / 7);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 2px 2px 10px;
  scrollbar-width: thin;
}
.tile {
  position: relative;
  scroll-snap-align: start;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px rgba(60, 40, 160, .2);
  text-decoration: none;
  transition: transform .18s;
}
.tile:hover { transform: translateY(-4px); }
.tile img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.games-live .tile img { aspect-ratio: 5 / 11; }
.games-sport .tile img { aspect-ratio: 5 / 6; }
.tile-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 8px 8px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(20, 12, 70, .9));
  opacity: 0;
  transition: opacity .18s;
}
.tile:hover .tile-name, .tile:focus .tile-name { opacity: 1; }
.games-sport .tile-name {
  opacity: 1;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  background: linear-gradient(180deg, transparent, #3b2bb8 70%);
}

/* ---------- Promo ---------- */
.promo {
  position: relative;
  margin-top: 34px;
  border-radius: 22px;
  overflow: hidden;
  min-height: 230px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, #0d0a3a 0%, #1c1260 45%, #2d1a7c 100%);
  border-top: 3px solid var(--violet-2);
}
.promo img {
  position: absolute;
  right: 0; top: 0;
  width: 70%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}
.promo-text { position: relative; padding: 32px 40px; color: #fff; }
.promo-title { margin: 0 0 18px; font-size: 26px; font-weight: 800; line-height: 1.25; }

/* ---------- Article ---------- */
.content { max-width: 920px; margin: 44px auto 0; }
.page-tech .content { margin-top: 10px; }

article { color: var(--ink-soft); }
article h1 { color: var(--ink); font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 18px; font-weight: 800; }
article h2 { color: var(--violet); font-size: clamp(21px, 2.4vw, 26px); line-height: 1.3; margin: 36px 0 12px; font-weight: 800; }
article h3 { color: var(--ink); font-size: 19px; margin: 24px 0 8px; font-weight: 800; }
article h4 { color: var(--ink); font-size: 17px; margin: 18px 0 6px; }
article p { margin: 0 0 14px; }
article strong { color: var(--ink); }
article a { color: var(--violet); font-weight: 700; }
article ul, article ol { margin: 0 0 16px; padding-left: 22px; }
article li { margin-bottom: 6px; }
article li::marker { color: var(--violet); font-weight: 800; }
article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 6px 0 20px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  font-size: 15px;
}
article th, article td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #ecebfb; }
article thead th { background: var(--violet); color: #fff; font-weight: 700; }
article tbody th { width: 38%; color: var(--ink); font-weight: 700; background: #f6f5ff; }
article tbody tr:last-child th, article tbody tr:last-child td { border-bottom: 0; }
article figure { margin: 22px 0; }
article figure img { width: 100%; border-radius: 16px; aspect-ratio: 914 / 420; object-fit: cover; object-position: 60% 35%; }
article figcaption { font-size: 13px; margin-top: 8px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  padding: 40px 20px 110px;
  color: #c9c2ff;
  background:
    radial-gradient(circle at 15% 0%, rgba(140, 90, 255, .25), transparent 40%),
    linear-gradient(180deg, #1b1976 0%, #3a0f7a 100%);
}
.site-footer .wrap { max-width: 1100px; margin: 0 auto; }
.footer-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.footer-logo img { height: 46px; width: auto; border-radius: 8px; }
.footer-claim { margin: 0; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-h { margin: 0 0 10px; color: #fff; font-weight: 800; font-size: 16px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { text-decoration: none; font-size: 15px; }
.footer-cols a:hover { color: #fff; text-decoration: underline; }
.pay { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 32px 0 20px; padding: 0; }
.pay li { padding: 8px 18px; border-radius: 999px; background: #6a1fd1; color: #fff; font-weight: 800; font-size: 14px; }
.age { width: 50px; height: 50px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; border: 2px solid #8b7bff; border-radius: 50%; color: #c9c2ff; font-weight: 800; }
.legal { margin: 0; text-align: center; font-size: 13px; }

/* ---------- Sticky bar ---------- */
.sticky {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(680px, calc(100% - 24px));
  padding: 10px 44px 10px 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(90deg, #1b1976, #4a25b8);
  box-shadow: 0 10px 30px rgba(20, 10, 80, .45);
  transform: translate(-50%, 140%);
  transition: transform .35s ease;
}
.sticky.show { transform: translate(-50%, 0); }
.sticky img { width: 68px; border-radius: 6px; flex: 0 0 auto; }
.sticky-text { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.3; }
.sticky-text b { font-family: "Lilita One", "Figtree", sans-serif;
  font-weight: 800;
  font-synthesis: none; font-weight: 400; font-size: 18px; }
.sticky .btn-cta { min-height: 42px; font-size: 16px; padding: 0 20px; }
.sticky-close {
  position: absolute;
  top: 6px; right: 8px;
  width: 28px; height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .games-row { grid-auto-columns: calc((100% - 4 * 14px) / 5.3); }
}

@media (max-width: 1024px) {
  .burger { display: flex; }
  .sidenav { transform: translateX(-105%); transition: transform .25s ease; width: min(290px, 86vw); box-shadow: 8px 0 30px rgba(20, 10, 80, .3); }
  .nav-open .sidenav { transform: none; }
  .layout { margin-left: 0; }
}

@media (max-width: 760px) {
  :root { --header: 58px; }
  .site-header { padding: 0 12px; gap: 10px; }
  .logo img { height: 38px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .main { padding: 0 16px 30px; }
  .hero {
    display: block;
    min-height: 0;
    margin: 0 -16px;
    border-radius: 0 0 20px 20px;
    background: #1a1666;
  }
  .hero-img {
    position: static;
    height: 250px;
    object-position: 70% 25%;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  }
  .hero-text { margin-top: -40px; padding: 0 16px 26px; gap: 12px; }
  .hero-title { font-size: 30px; }
  .btn-cta { width: 100%; max-width: 320px; }
  .games-row { grid-auto-columns: 38%; gap: 10px; }
  .games-live .games-row { grid-auto-columns: 30%; }
  .games-title { font-size: 17px; }
  .promo { min-height: 300px; align-items: flex-end; }
  .promo img { width: 100%; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 85%); mask-image: linear-gradient(180deg, #000 30%, transparent 85%); object-position: 55% 20%; }
  .promo-text { padding: 20px; }
  .promo-title { font-size: 21px; }
  .content { margin-top: 32px; }
  article table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  article th, article td { padding: 8px 10px; font-size: 14px; min-width: 84px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .sticky { gap: 10px; padding: 8px 40px 8px 10px; bottom: 8px; }
  .sticky img { display: none; }
  .sticky-text span { display: none; }
  .sticky-text b { font-size: 15px; }
  .sticky .btn-cta { min-height: 38px; font-size: 14px; padding: 0 14px; width: auto; }
}

@media (max-width: 360px) {
  .header-actions .btn { padding: 0 10px; font-size: 12px; }
  .logo img { height: 32px; }
  .hero-title { font-size: 26px; }
  .footer-cols { grid-template-columns: 1fr; }
  .games-row { grid-auto-columns: 44%; }
}
