:root {
  --bg: #0b2148;
  --bg-deep: #081833;
  --header: #0d2851;
  --panel: #14356a;
  --card: #163a70;
  --card-2: #1a4179;
  --tab: #1f477e;
  --tab-on: #102a52;
  --blue: #4aa9f8;
  --blue-2: #86c9ff;
  --btn: #2585e8;
  --text: rgba(255, 255, 255, 0.78);
  --muted: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --max: 1180px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  font-family: "Montserrat", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { color: #fff; line-height: 1.2; margin: 0 0 0.6em; }

.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.btn, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
}
.btn { background: var(--btn); color: #fff; }
.btn:hover { background: #3b96ef; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(134, 201, 255, 0.55);
}
.btn-ghost:hover { background: rgba(74, 169, 248, 0.12); }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.header__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
}
.logo img { width: 64px; height: 64px; object-fit: contain; }
.header__actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.burger span, .burger span:before, .burger span:after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  margin: 0 auto;
}
.burger span:before, .burger span:after {
  content: "";
  position: absolute;
  left: 0;
}
.burger span:before { top: -6px; }
.burger span:after { top: 6px; }

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 24, 51, 0.95) 0%, rgba(8, 24, 51, 0.84) 45%, rgba(8, 24, 51, 0.62) 100%),
    url("/images/back2.webp") center top / cover no-repeat,
    #0b2148;
  padding: 72px 0 110px;
  min-height: 520px;
}
.hero__grid {
  position: relative;
  max-width: 560px;
}
.hero h1 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.hero p { font-size: 20px; max-width: 520px; color: #fff; margin: 0 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.filter {
  margin-top: -42px;
  position: relative;
  z-index: 2;
}
.filter__box {
  background: var(--panel);
  border-radius: 22px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  background: transparent;
  border: 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
}
.tab.is-on { background: var(--tab-on); }
.tab:hover { background: var(--tab); }
select.filter__select {
  background: #1d4b86;
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  padding: 0 14px;
  min-width: 220px;
  cursor: pointer;
}

.section { padding: 42px 0; }
.section h2.kicker {
  font-size: 22px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}
.games {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px 14px;
}
.game { display: block; color: #fff; }
.game[hidden] { display: none; }
.game__pic {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1.05;
  background: #10284f;
}
.game__pic img { width: 100%; height: 100%; object-fit: cover; }
.game__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(8, 20, 46, 0.45);
  opacity: 0;
  transition: opacity 0.2s;
}
.game:hover .game__play { opacity: 1; }
.game__play span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--blue);
  display: grid;
  place-items: center;
}
.game__play span:before {
  content: "";
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #0d2851;
  margin-left: 3px;
}
.game h3 { font-size: 14px; margin: 10px 0 2px; }
.game p { margin: 0; color: var(--muted); font-size: 13px; }
.more { display: flex; justify-content: center; margin-top: 28px; }

.providers { display: flex; gap: 12px; overflow: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.provider {
  flex: 0 0 160px;
  scroll-snap-align: start;
  height: 74px;
  border-radius: 14px;
  background: #12325f;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  color: #d7ecff;
  border: 1px solid var(--line);
}
.provider:hover { background: #1a4278; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.arrows { display: flex; gap: 8px; }
.arrows button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #12325f;
  color: #fff;
  cursor: pointer;
}

.seo { padding-bottom: 20px; }
.prose {
  background: linear-gradient(180deg, rgba(22, 58, 112, 0.35), rgba(13, 40, 81, 0.2));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 28px 8px;
}
.prose h2 { font-size: 28px; margin-top: 1.4em; }
.prose h3 { font-size: 20px; margin-top: 1.2em; }
.prose p { margin: 0 0 1em; }
.prose img.fig {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 8px 0 18px;
}
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: #173e78; color: #fff; font-size: 14px; }
td { font-size: 14px; }

.faq details {
  background: #12325f;
  border-radius: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 700;
  color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:after { content: "+"; float: right; color: var(--blue); }
.faq details[open] summary:after { content: "–"; }
.faq details p { margin: 0; padding: 0 18px 16px; }

.footer { background: #091c3d; margin-top: 20px; padding: 36px 0 24px; }
.footer__grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
}
.footer nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.footer h2 { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-2); }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 8px 0; }
.footer a:hover { color: #fff; }
.pays { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.pay {
  background: #12325f;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.legal {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.age {
  flex: 0 0 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid #e35b5b;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 13px;
}

.page-hero { padding: 36px 0 10px; }
.page-hero h1 { font-size: 36px; color: var(--blue); text-transform: uppercase; }

.empty { text-align: center; color: var(--muted); padding: 24px 0 8px; }

@media (max-width: 1100px) {
  .games { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .hero__grid, .footer__grid { grid-template-columns: 1fr; }
  .footer nav { grid-template-columns: 1fr 1fr; }
  .header__actions { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .header__actions.is-open {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    background: #102c5c;
    padding: 12px;
    border-radius: 14px;
    flex-direction: column;
    box-shadow: var(--shadow);
  }
  .header__actions.is-open .btn,
  .header__actions.is-open .btn-ghost { display: flex; width: 100%; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .filter__box { flex-direction: column; align-items: stretch; }
  .hero {
    padding: 36px 0 88px;
    min-height: 420px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(8, 24, 51, 0.9) 0%, rgba(8, 24, 51, 0.72) 100%),
      url("/images/back2.webp") 72% top / cover no-repeat,
      #0b2148;
  }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .prose { padding: 18px 14px 4px; }
}
