:root {
  --primary: #ea580c;
  --secondary: #1f1410;
  --accent: #fb923c;
  --bg: #0b1220;
  --surface: #121a2b;
  --text: #f4f7fb;
  --muted: #a7b4c8;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%),
    var(--bg);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  row-gap: 0.45rem;
  min-height: 72px;
}
.brand-logo { max-height: 40px; width: auto; }
.header-nav {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem 0.85rem;
  margin-left: auto;
  min-width: 0;
  max-width: none;
  overflow: visible;
  color: var(--muted);
  font-size: 0.92rem;
}
.header-nav a {
  white-space: nowrap;
  flex-shrink: 0;
}
.header-nav a:hover { color: var(--text); }
.header-cta { display: flex; gap: 0.6rem; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.65rem 1.15rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 35%, transparent);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.btn-lg { padding: 0.9rem 1.4rem; font-size: 1.05rem; }

.hero { padding: 3rem 0 2rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

/* Баннер с уже нарисованным текстом: только картинка */
.hero[data-cms-hero-captions="0"] .hero-copy,
.hero.is-hero-captions-off .hero-copy {
  display: none;
}
.hero[data-cms-hero-captions="0"] .hero-grid,
.hero.is-hero-captions-off .hero-grid {
  grid-template-columns: 1fr;
}
.banner {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  object-fit: cover;
  min-height: 260px;
  background: var(--surface);
}
.media-go {
  display: block;
  cursor: pointer;
}
.media-go:hover .banner,
.media-go:hover .section-media {
  filter: brightness(1.05);
}
.brand {
  cursor: pointer;
}

.intro, .facts, .content-section, .faq { padding: 1rem 0 2.5rem; }
.intro-copy,
.content-card,
.split-card {
  background: color-mix(in srgb, var(--surface) 94%, var(--secondary));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.1rem, 3vw, 2rem);
}
.split-card {
  display: flow-root;
  box-shadow: var(--shadow);
}
.split-card .media-go {
  float: left;
  width: min(44%, 340px);
  max-width: 100%;
  margin: 0.15rem 1.35rem 1rem 0;
  display: block;
  overflow: visible;
  height: auto;
}
.split-card-reverse .media-go {
  float: right;
  margin: 0.15rem 0 1rem 1.35rem;
}
.split-card .prose {
  display: block;
  min-width: 0;
}
.split-card .prose > .btn,
.split-card .prose > a.btn {
  display: inline-block;
  margin-top: 0.75rem;
}
.section-media {
  display: block;
  border-radius: var(--radius);
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  background: #1a2438;
}
.bonus-line {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  margin: 0.35rem 0 0.75rem;
}

.prose h2, .prose h3 { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2rem; }
.prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.35rem; }
.facts-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
}
.facts-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.025);
}
.facts-table th,
.facts-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: top;
}
.facts-table tr:last-child th,
.facts-table tr:last-child td { border-bottom: 0; }
.facts-table th {
  width: 34%;
  color: var(--text);
  font-weight: 700;
}
.facts-table td { color: var(--muted); }
.prose .facts-table-wrap {
  margin: 1rem 0 1.25rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}
.prose table.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.prose .facts-table th,
.prose .facts-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}
.prose .facts-table th {
  width: 38%;
  color: var(--text);
  font-weight: 650;
}
.prose .facts-table td { color: var(--muted); }
.prose h3 {
  margin: 1.25rem 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.35;
}
.prose ul,
.prose ol {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
}
.prose li { margin: 0.3rem 0; }
.structured-copy {
  color: var(--muted);
  white-space: pre-line;
  margin-bottom: 1rem;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.faq-item h3 {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  line-height: 1.35;
}
.faq-item p {
  margin: 0;
}
.faq details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.7rem;
}
.faq summary { cursor: pointer; font-weight: 700; }

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.85rem;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-nav a:hover { color: var(--text); }
.footer-meta { opacity: 0.75; font-size: 0.8rem; }

.legal-page { padding: 2rem 0 3rem; }
.breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.55;
}
.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li:last-child {
  color: var(--text);
}
.legal-card {
  background: color-mix(in srgb, var(--surface) 94%, var(--secondary));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.1rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.legal-back { margin: 0 0 1rem; display: none; }
.legal-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1.25rem;
}
.legal-body h2 {
  margin: 1.4rem 0 0.55rem;
  font-size: 1.15rem;
}
.legal-body p { color: var(--muted); margin: 0 0 0.85rem; }
.legal-body ul { color: var(--muted); padding-left: 1.2rem; }

.btn-block { width: 100%; }

.bonus-popup[hidden] { display: none !important; }
.bonus-popup {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.bonus-popup-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(3, 8, 18, 0.72);
  backdrop-filter: blur(4px);
  cursor: pointer;
}
.bonus-popup-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  padding: 1.25rem 1.25rem 1.1rem;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, color-mix(in srgb, var(--surface) 92%, var(--primary)), var(--secondary));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  text-align: center;
  pointer-events: auto;
}
.bonus-popup-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  z-index: 10;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.bonus-popup-image {
  position: relative;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
}
.bonus-popup-title {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
}
.bonus-popup-text {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}
.bonus-popup-dismiss {
  margin-top: 0.65rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body.bonus-popup-open { overflow: hidden; }

.games-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.games-catalog-title {
  margin: 0 0 0.15rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.2;
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  order: -1;
  overflow: hidden;
}
.games-grid:empty { display: none; }
.game-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background: color-mix(in srgb, var(--surface) 88%, #000);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.game-card-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #121a2b;
}
.game-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem 0.85rem;
  border-top: 2px solid var(--accent, #22c55e);
}
.game-card-name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}
.game-card-provider {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 860px) {
  .header-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .split-card .media-go,
  .split-card-reverse .media-go {
    float: none;
    width: 100%;
    margin: 0 0 1rem;
  }
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

/* TraffBoard: chrome popup+footer */
.bonus-popup[hidden] { display: none !important; }
.bonus-popup {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  display: grid !important;
  place-items: center !important;
  padding: 1rem !important;
}
.bonus-popup-backdrop {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  background: rgba(4, 6, 10, 0.78) !important;
  cursor: pointer !important;
}
.bonus-popup-card {
  position: relative !important;
  z-index: 1 !important;
  pointer-events: auto !important;
  width: min(400px, 100%) !important;
  padding: 1.2rem !important;
  text-align: center !important;
}
.bonus-popup-close {
  position: absolute !important;
  top: 0.45rem !important;
  right: 0.45rem !important;
  z-index: 10 !important;
  width: 2.25rem !important;
  height: 2.25rem !important;
  display: grid !important;
  place-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff !important;
  font-size: 1.35rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}
.bonus-popup-image {
  position: relative !important;
  z-index: 0 !important;
  pointer-events: none !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: 0.5rem !important;
  margin-bottom: 0.75rem !important;
}
.split-card .media-go {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}
.split-card .section-media,
#bonus .section-media,
#login .section-media {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}
.bonus-popup-dismiss {
  margin-top: 0.55rem !important;
  border: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  cursor: pointer !important;
  text-decoration: underline !important;
  pointer-events: auto !important;
}
.site-footer {
  margin-top: 1rem !important;
  padding: 1.75rem 0 2.25rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 0.88rem !important;
}
.site-footer .footer-inner {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.75rem !important;
}
.site-footer .footer-nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem 1rem !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.site-footer .footer-nav a {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
.site-footer img,
.site-footer ul,
.site-footer .footer-brand,
.site-footer .footer-payments,
.site-footer .payment-list {
  display: none !important;
}
body.bonus-popup-open { overflow: hidden !important; }

/* TraffBoard: header nav — все пункты видны (перенос, без обрезки) */
.header-inner {
  flex-wrap: wrap !important;
  align-items: center !important;
  row-gap: 0.45rem !important;
}
.header-nav {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0.35rem 0.75rem !important;
  max-width: none !important;
  overflow: visible !important;
  min-width: 0 !important;
}
.header-nav a {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.header-cta {
  display: flex !important;
  flex-shrink: 0 !important;
  gap: 0.5rem !important;
}

/* TraffBoard: сетка слотов (защита от поломки ИИ) */
#games {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}
#games > .wrap,
#games .games-section,
#games .content-card {
  box-sizing: border-box !important;
  width: min(1140px, calc(100% - 2rem)) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  overflow-x: hidden !important;
}
.games-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important;
  width: 100% !important;
  min-width: 0 !important;
}
.games-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0.75rem !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: relative !important;
  left: auto !important;
  right: auto !important;
  inset: auto !important;
  transform: none !important;
  overflow: hidden !important;
  order: -1 !important; /* над заголовком/описанием при flex */
}
.games-grid:empty { display: none !important; }
.games-grid > *,
.game-card,
.game-card * {
  box-sizing: border-box !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
.game-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  text-decoration: none !important;
  color: #fff;
  background: #121a2b;
}
.game-card-thumb {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #121a2b;
}
.game-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem 0.75rem 0.8rem;
  border-top: 2px solid var(--accent, #38bdf8);
  background: color-mix(in srgb, var(--surface, #1a2a44) 92%, #000);
}
.game-card-name {
  position: static !important;
  display: block;
  padding: 0 !important;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  background: none !important;
}
.game-card-provider {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 960px) {
  .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 520px) {
  .games-grid { grid-template-columns: 1fr !important; }
}
