:root {
  --bg: #f2f1ed;
  --card: #ffffff;
  --ink: #1d1c22;
  --ink-soft: #4c4a57;
  --muted: #8a8894;
  --line: #e4e2dc;
  --head: #171715;
  --side: #1d1c1f;
  --side-card: #242328;
  --side-ink: #e9e7ef;
  --accent: #7b2ff7;
  --accent-2: #b14dff;
  --cta: #e9ee3c;
  --cta-ink: #17170f;
  --radius: 14px;
  --side-w: 250px;
  --header: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---- варіанти сайтів ---- */
.v2 {
  --bg: #121214;
  --card: #1c1c21;
  --ink: #f1f0f5;
  --ink-soft: #c3c1cc;
  --muted: #8f8d99;
  --line: #2b2a31;
  --accent: #a46bff;
  --radius: 12px;
  --font: "Manrope", system-ui, sans-serif;
}
.v3 {
  --bg: #f4f1fa;
  --line: #e2dcf0;
  --side: #1b1428;
  --side-card: #251b37;
  --accent: #6a1fe0;
  --radius: 20px;
}
.v4 {
  --bg: #f6f6f3;
  --accent: #5b2bd6;
  --radius: 8px;
  --font: "Montserrat", system-ui, sans-serif;
}
.v5 {
  --bg: #17141f;
  --card: #211d2c;
  --ink: #f3f1f8;
  --ink-soft: #c9c4d6;
  --muted: #958fa6;
  --line: #2f2a3d;
  --side: #120f19;
  --side-card: #1d1828;
  --accent: #b77bff;
  --radius: 16px;
  --font: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  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 18px;
  background: var(--head);
  border-bottom: 1px solid #26252a;
}
.logo img { height: 30px; width: auto; }
.header-actions { margin-left: auto; display: flex; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn-ghost { color: #fff; background: #2b2a30; }
.btn-cta { color: var(--cta-ink); background: var(--cta); }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 11px 10px;
  border: 0;
  border-radius: 10px;
  background: #2b2a30;
  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(7.5px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---- sidebar ---- */
.sidenav {
  position: fixed;
  top: var(--header);
  left: 0;
  bottom: 0;
  width: var(--side-w);
  padding: 14px 12px 24px;
  overflow-y: auto;
  background: var(--side);
  z-index: 40;
}
.side-app { position: relative; display: flex; align-items: center; height: 72px; padding: 0 14px; border-radius: 12px; overflow: hidden; background: linear-gradient(90deg, #2a0a4d, #8e00e0); color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; line-height: 1.2; }
.side-app span { position: relative; z-index: 1; }
.side-app img { position: absolute; right: 10px; top: 50%; transform: translateY(-50%) rotate(-8deg); width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4)); }
.side-box { margin-top: 12px; padding: 8px; background: var(--side-card); border-radius: 12px; color: var(--side-ink); }
.side-h { margin: 6px 8px 8px; font-size: 13px; font-weight: 800; opacity: .75; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.side-box .ico { width: 22px; height: 22px; object-fit: contain; }
.side-box a:hover, .side-box a[aria-current="page"] { background: rgba(255, 255, 255, .08); }
.side-box svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.backdrop { position: fixed; inset: var(--header) 0 0 0; background: rgba(0, 0, 0, .55); z-index: 35; }

/* ---- layout ---- */
.layout { margin-left: var(--side-w); min-width: 0; }
.main { max-width: 1120px; margin: 0 auto; padding: 18px 22px 40px; }

/* ---- hero ---- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #120618;
}
.hero-img { position: absolute; top: 0; left: calc(72% - 680px); height: 100%; width: auto; max-width: none; }
.hero-stadion { background: radial-gradient(circle at 60% 30%, #7a1a63 0%, #3a0b33 40%, #0c0610 100%); }
.hero-art-wrap { background: radial-gradient(circle at 72% 45%, #c13cff 0%, #6a14c9 28%, #2a0a4d 58%, #0c0612 100%); }
.hero-art-wrap::after { content: ""; position: absolute; right: 8%; top: 50%; width: 360px; height: 360px; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 220, 120, .25) 0%, rgba(255, 220, 120, 0) 65%); }
.hero-art { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); z-index: 1; display: flex; align-items: center; }
.hero-art img { width: 100px; height: 100px; object-fit: contain; margin-left: -26px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .5)); }
.hero-art img:nth-child(2) { width: 130px; height: 130px; position: relative; z-index: 2; }
.hero-art img:nth-child(1) { transform: rotate(-10deg) translateY(18px); }
.hero-art img:nth-child(3) { transform: rotate(8deg) translateY(-14px); }
.v4 .hero-art { right: auto; left: 5%; }
.v4 .hero-art-wrap { background: radial-gradient(circle at 28% 45%, #c13cff 0%, #6a14c9 28%, #2a0a4d 58%, #0c0612 100%); }
.v4 .hero-art-wrap::after { right: auto; left: 8%; }
.hero-stadion::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 4, 18, .95) 0%, rgba(10, 4, 18, .75) 30%, rgba(10, 4, 18, 0) 50%); }
.hero-text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 28px; color: #fff; max-width: 52%; }
.v2 .hero-stadion::before, .v5 .hero-stadion::before { background: linear-gradient(90deg, rgba(10, 4, 18, .95) 0%, rgba(10, 4, 18, .75) 30%, rgba(10, 4, 18, 0) 50%); }
.v4 .hero { justify-content: flex-end; }
.v4 .hero-img { right: auto; left: 0; }
.hero-sloty { background: radial-gradient(circle at 85% 50%, #3d1078 0%, #1c0836 45%, #0c0612 80%); }
.hero-sloty .hero-img { left: auto; right: 0; top: 0; width: auto; height: 100%; max-width: 70%; object-fit: cover; object-position: 100% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
.v4 .hero-sloty { background: radial-gradient(circle at 15% 50%, #3d1078 0%, #1c0836 45%, #0c0612 80%); }
.v4 .hero-sloty .hero-img { right: auto; left: 0; object-position: 0% 50%; -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 30%); mask-image: linear-gradient(270deg, transparent 0%, #000 30%); }
.v4 .hero-stadion::before { background: linear-gradient(270deg, rgba(10, 4, 18, .92) 0%, rgba(10, 4, 18, .7) 35%, rgba(10, 4, 18, 0) 65%); }
.v4 .hero-text { align-items: flex-end; text-align: right; }
.hero-kicker { margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 14px; }
.hero-title { margin: 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.12; font-weight: 800; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }
.hero-note { margin: 0; font-size: 12px; opacity: .75; }
.hero .btn-cta { min-height: 42px; padding: 0 24px; font-size: 15px; }

/* ---- chips ---- */
.chips { display: flex; gap: 8px; margin: 14px 0 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.chips .ico { width: 24px; height: 24px; object-fit: contain; }

/* ---- sections ---- */
.games, .month, .sports, .promos, .crypto { margin-top: 26px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sec-title { margin: 0; font-size: 19px; font-weight: 800; }
.sec-all { font-size: 14px; font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }

.games-row {
  display: grid;
  column-gap: 14px;
  grid-auto-flow: column;
  grid-auto-columns: 100px;
  justify-content: start;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.tile { scroll-snap-align: start; display: block; text-decoration: none; }
.tile { width: 100px; }
.tile img { width: 100px; height: 100px; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.tile-name { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.month-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.win {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
}
.win img { grid-row: 1 / 3; width: 56px; height: 56px; object-fit: contain; }
.win-name { font-weight: 700; font-size: 14px; align-self: end; }
.win-sum { font-weight: 800; font-style: italic; color: var(--accent); align-self: start; }

.sports-row { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.sport {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.sport img { width: 52px; height: 52px; object-fit: contain; }

.crypto-link img { width: 100%; border-radius: var(--radius); }

.promo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 170px;
  padding: 20px 18px 20px 22px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.promo-a { background: radial-gradient(circle at 85% 50%, #c13cff 0%, #6a14c9 45%, #2a0a4d 100%); }
.promo-b { background: radial-gradient(circle at 85% 50%, #ff4d8d 0%, #9b1561 45%, #36081f 100%); }
.promo-txt { display: flex; flex-direction: column; gap: 6px; max-width: 62%; }
.promo-t { font-size: 20px; font-weight: 800; line-height: 1.15; text-transform: uppercase; font-style: italic; }
.promo-s { font-size: 14px; opacity: .9; }
.promo-btn { align-self: flex-start; margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: var(--cta); color: var(--cta-ink); font-weight: 800; font-size: 13px; }
.promo-card img { width: 130px; height: auto; flex: 0 0 auto; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .4)); }

.vip {
  position: relative;
  margin-top: 28px;
  min-height: 210px;
  display: flex;
  align-items: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(circle at 78% 50%, #7b2ff7 0%, #3a0e74 40%, #120a1e 100%);
}
.vip-art { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; }
.vip-art img { width: 120px; height: 120px; object-fit: contain; margin-left: -18px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45)); }
.vip-art img:nth-child(2) { width: 150px; height: 150px; }
.vip-text { position: relative; padding: 26px 28px; color: #fff; max-width: 55%; }
.vip-title { margin: 0 0 4px; font-size: 24px; font-weight: 800; }
.vip-sub { margin: 0 0 14px; opacity: .85; }

/* ---- article ---- */
.content { margin: 40px auto 0; max-width: 860px; }
.page-tech .content { margin-top: 10px; }
article { color: var(--ink-soft); }
article h1 { color: var(--ink); font-size: clamp(26px, 3.2vw, 34px); line-height: 1.2; margin: 0 0 16px; font-weight: 800; }
article h2 { color: var(--ink); font-size: clamp(21px, 2.4vw, 25px); line-height: 1.3; margin: 34px 0 12px; font-weight: 800; }
article h3 { color: var(--ink); font-size: 18px; margin: 22px 0 8px; font-weight: 700; }
article p { margin: 0 0 14px; }
article strong { color: var(--ink); }
article a { color: var(--accent); font-weight: 600; }
article ul, article ol { margin: 0 0 16px; padding-left: 22px; }
article li { margin-bottom: 6px; }
article li::marker { color: var(--accent); font-weight: 800; }
article table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 20px;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
  box-shadow: 0 0 0 1px var(--line);
}
article th, article td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
article thead th { background: var(--accent); color: #fff; }
article tbody th { width: 38%; color: var(--ink); font-weight: 700; }
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: var(--radius); }
article figcaption { font-size: 13px; margin-top: 8px; text-align: center; color: var(--muted); }
.v4 article h2 { padding-bottom: 6px; border-bottom: 3px solid var(--cta); display: inline-block; }

/* ---- footer ---- */
.site-footer { margin-top: 40px; padding: 34px 22px 100px; background: var(--card); border-top: 1px solid var(--line); color: var(--ink-soft); }
.foot-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.foot-h { margin: 0 0 10px; font-weight: 800; color: var(--ink); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 7px; }
.foot-grid a { text-decoration: none; font-size: 14px; }
.foot-grid a:hover { color: var(--accent); }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay li { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; margin: 0; }
.age { width: 46px; height: 46px; margin: 14px 0 0; display: flex; align-items: center; justify-content: center; border: 2px solid var(--ink-soft); border-radius: 50%; font-weight: 800; }
.legal { max-width: 1120px; margin: 26px auto 0; font-size: 13px; text-align: center; color: var(--muted); }

/* ---- sticky ---- */
.sticky {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 24px);
  padding: 10px 44px 10px 14px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(90deg, #3a0e74, #7b2ff7);
  box-shadow: 0 10px 30px rgba(30, 10, 60, .45);
  transform: translateY(150%);
  transition: transform .35s ease;
}
.sticky.show { transform: none; }
.sticky-gift { width: 40px; height: 40px; }
.sticky-text { margin: 0; font-size: 15px; }
.sticky-close { position: absolute; top: 6px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 17px; cursor: pointer; }

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .games-row { grid-auto-columns: calc((100% - 4 * 10px) / 5.4); }
  .sports-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .burger { display: flex; }
  .sidenav { transform: translateX(-105%); transition: transform .25s ease; width: min(290px, 86vw); }
  .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: 32px; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .main { padding: 14px 16px 30px; }
  .hero, .v4 .hero { display: block; min-height: 0; background: #14071f; }
  .hero-stadion::before { display: none; }
  .hero-img, .v4 .hero-img { position: static; display: block; width: 100%; height: 130px; object-fit: cover; object-position: 50% 50%; -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent 100%); mask-image: linear-gradient(180deg, #000 65%, transparent 100%); }
  .hero-sloty .hero-img, .v4 .hero-sloty .hero-img { position: static; display: block; max-width: none; width: 100%; height: 120px; object-fit: cover; object-position: 86% 50%; -webkit-mask-image: none; mask-image: none; }
  .v4 .hero-sloty .hero-img { object-position: 14% 50%; }
  .hero-art, .v4 .hero-art { position: static; transform: none; justify-content: center; padding-top: 20px; }
  .hero-art img { width: 96px; height: 96px; margin-left: -16px; }
  .hero-art img:nth-child(2) { width: 130px; height: 130px; }
  .hero-art-wrap::after { right: 50%; top: 90px; width: 260px; height: 260px; transform: translate(50%, -50%); }
  .hero-art-wrap, .v4 .hero-art-wrap { background: radial-gradient(circle at 50% 25%, #c13cff 0%, #6a14c9 30%, #2a0a4d 62%, #0c0612 100%); }
  .hero-text, .v4 .hero-text { max-width: none; align-items: center; text-align: center; padding: 6px 16px 22px; }
  .hero-title { font-size: 23px; }
  .hero .btn-cta { width: 100%; max-width: 320px; }
  .games-row { grid-auto-columns: 92px; justify-content: start; }
  .tile, .tile img { width: 92px; }
  .tile img { height: 92px; }
  .month-row { grid-template-columns: 1fr; }
  .sports-row { display: flex; overflow-x: auto; scrollbar-width: none; }
  .sport { flex: 0 0 100px; }
  .promo-row { grid-template-columns: 1fr; }
  .vip { min-height: 280px; align-items: flex-end; }
  .vip-art { top: 20px; left: 50%; right: auto; transform: translateX(-50%); }
  .vip-art img { width: 90px; height: 90px; }
  .vip-art img:nth-child(2) { width: 110px; height: 110px; }
  .promo-t { font-size: 17px; }
  .promo-card img { width: 96px; }
  .vip-text { max-width: none; padding: 20px; }
  .vip-title { font-size: 21px; }
  .content { margin-top: 30px; }
  article table { display: block; overflow-x: auto; }
  article th, article td { padding: 8px 10px; font-size: 14px; min-width: 96px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .sticky { left: 10px; right: 10px; bottom: 8px; justify-content: space-between; padding: 8px 40px 8px 12px; }
  .sticky-gift { display: none; }
  .sticky-text { font-size: 13.5px; white-space: nowrap; }
}
@media (max-width: 360px) {
  .logo img { height: 28px; }
  .header-actions .btn { padding: 0 10px; font-size: 13px; }
  .games-row { grid-auto-columns: 88px; }
  .tile, .tile img { width: 88px; }
  .tile img { height: 88px; }
  .foot-grid { grid-template-columns: 1fr; }
}
