/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --bg-primary:    #141929;
  --bg-secondary:  #1a2035;
  --bg-table:      #1f2640;
  --border:        rgba(255,255,255,0.08);

  --gold:          #f5c518;
  --green:         #22c55e;
  --red:           #ef4444;

  --text-primary:  #f0f4ff;
  --text-secondary:#8b97b8;
  --text-muted:    #576280;

  --font: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-w: 1200px;
  --pad: 0 24px;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 25, 41, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo img { height: 38px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 16px;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}
.burger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  transition: 0.2s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile header bonus button — hidden on desktop */
.mobile-header-btn { display: none; }

/* ============================================
   HERO
   ============================================ */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.hero h1 {
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 780px;
}

.hero-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-date span {
  color: var(--gold);
  font-weight: 600;
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.8;
}

/* ============================================
   WRAPPER
   ============================================ */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad);
}

/* ============================================
   SECTION TITLE
   ============================================ */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 700px;
}

/* ============================================
   CASINO TABLE (как в референсе)
   ============================================ */
.casino-section { padding: 0 0 56px; }

.casino-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
}

.casino-table thead tr {
  border-bottom: 1px solid var(--border);
}

.casino-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 14px 20px;
  text-align: left;
}

.casino-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.casino-table tbody tr:last-child { border-bottom: none; }

.casino-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.casino-table td {
  padding: 18px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.casino-table td:first-child {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  width: 40px;
}

.td-logo { width: 160px; }

.td-logo img {
  width: 120px;
  height: 44px;
  object-fit: contain;
}

.td-bonus { color: var(--green); font-weight: 500; }

.td-score {
  font-weight: 700;
  font-size: 17px;
  color: var(--gold);
  white-space: nowrap;
}

.btn-cta {
  display: inline-block;
  background: var(--gold);
  color: #141929;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}

.btn-cta:hover {
  background: #ffd93d;
}

/* ============================================
   SEO TEXT — двухколоночный как в референсе
   ============================================ */
.seo-section { padding: 0 0 56px; }

.seo-section p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Двухколоночный блок */
.two-col--mt { margin-top: 32px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 32px 0;
}

.two-col-item h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.two-col-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* H2 в SEO */
.seo-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
}

.seo-section h2:first-child { margin-top: 0; }

.seo-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 28px 0 12px;
}

.seo-section h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.seo-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
}

.seo-section ul li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 22px;
  position: relative;
  line-height: 1.7;
}

.seo-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

/* ============================================
   RTP TABLE
   ============================================ */
.rtp-section { padding: 0 0 56px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-secondary);
}

.data-table thead tr { border-bottom: 1px solid var(--border); }

.data-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  padding: 13px 18px;
  text-align: left;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.data-table td {
  padding: 13px 18px;
  font-size: 14px;
  color: var(--text-secondary);
}

.data-table td:first-child { color: var(--text-primary); font-weight: 500; }

.rtp-val   { color: var(--green); font-weight: 600; }
.vol-high  { color: var(--red); }
.vol-mid   { color: #f59e0b; }
.check-yes { color: var(--green); }
.check-no  { color: var(--text-muted); }

/* ============================================
   BONUS TABLE
   ============================================ */
.bonus-section { padding: 0 0 56px; }

/* ============================================
   PAYMENT TABLE
   ============================================ */
.payment-section { padding: 0 0 56px; }

/* ============================================
   FAQ
   ============================================ */
.faq-section { padding: 0 0 56px; }

.faq-list { display: flex; flex-direction: column; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font);
  transition: color 0.2s;
}

.faq-question:hover { color: var(--gold); }

.faq-icon {
  font-size: 22px;
  line-height: 1;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item.open .faq-answer { max-height: 400px; }

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 56px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--pad);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.footer-brand img { height: 34px; margin-bottom: 16px; }

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.footer-copy { font-size: 13px; color: var(--text-muted); }

.footer-right {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 560px;
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border: 2px solid var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   ANIMATE ON SCROLL
   ============================================ */
.fade-in {
  opacity: 1;
  transform: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   STICKY MOBILE BONUS BAR
   ============================================ */
.mobile-bonus-bar {
  display: none;
}

/* ============================================
   MOBILE CASINO CARDS (replaces table on mobile)
   ============================================ */
.casino-cards-mobile {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.casino-card-m {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 16px;
  display: grid;
  grid-template-columns: 32px 90px 1fr;
  grid-template-rows: auto auto auto;
  gap: 0 12px;
  align-items: start;
}

.casino-card-m-rank {
  grid-row: 1 / 3;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
  padding-top: 4px;
}

.casino-card-m-rank.top { color: var(--gold); }

.casino-card-m-logo {
  grid-row: 1 / 3;
  width: 90px;
  height: 40px;
  object-fit: contain;
}

.casino-card-m-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.casino-card-m-bonus {
  font-size: 13px;
  color: #22c55e;
  font-weight: 500;
  margin-top: 3px;
  line-height: 1.4;
}

.casino-card-m-cta {
  grid-column: 1 / -1;
  margin-top: 14px;
  display: block;
  width: 100%;
  background: var(--gold);
  color: #141929;
  font-size: 14px;
  font-weight: 700;
  padding: 13px;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font);
}

.casino-card-m-cta:hover { background: #ffd93d; }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .two-col    { grid-template-columns: 1fr; gap: 24px; }
  .casino-table .td-score { display: none; }
}

@media (max-width: 640px) {
  /* Nav */
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 24px;
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .burger { display: flex; }

  /* Mobile header bonus button — inline with logo */
  .mobile-bonus-bar { display: none; }

  .mobile-header-btn {
    display: inline-block !important;
    background: var(--gold);
    color: #141929;
    font-size: 12px;
    font-weight: 700;
    padding: 9px 14px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font);
    transition: background 0.2s;
    flex-shrink: 0;
  }

  .mobile-header-btn:hover { background: #ffd93d; }

  /* Hide desktop table, show mobile cards */
  .casino-table-wrap { display: none; }
  .casino-cards-mobile { display: flex; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-right { flex-direction: column; }
  .footer-disclaimer { max-width: 100%; }

  /* Data tables */
  .data-table { font-size: 13px; }
  .data-table td, .data-table th { padding: 10px 10px; }

  /* Hero */
  .hero { padding: 24px 16px 32px; }
  .content-wrap { padding: 0 16px; }
}

.hero-p2 { margin-top: 12px; }
.table-scroll { overflow-x: auto; }
.risk-low  { color: var(--green); }
.risk-mid  { color: #f59e0b; }
.risk-high { color: var(--red); }

/* Section images */
.rtp-section img,
.bonus-section img,
.payment-section img {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-bottom: 28px;
}