/* ===== megariches — dark luxury casino theme (sidebar + gold) ===== */
:root {
  --primary: #e7b94e;          /* gold */
  --accent: #c8881f;           /* deep gold */
  --bg: #0c0709;               /* near-black, warm */
  --bg-soft: #160d10;          /* panels */
  --text: #f3ece4;

  --gold-grad: linear-gradient(180deg, #f6d98b 0%, #d9a93f 50%, #b87d22 100%);
  --muted: rgba(243, 236, 228, 0.6);
  --border: rgba(231, 185, 78, 0.16);
  --card: rgba(255, 255, 255, 0.025);
  --card-2: rgba(255, 255, 255, 0.04);
  --radius: 16px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --glow-gold: 0 0 26px rgba(231, 185, 78, 0.3);
  --header-h: 68px;
  --side-w: 270px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 600px at 100% 0%, rgba(140, 30, 20, 0.35), transparent 60%),
    radial-gradient(700px 500px at 0% 30%, rgba(90, 20, 15, 0.28), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.18; margin: 0 0 0.5em; font-weight: 800; }
h2 { font-family: "Montserrat", sans-serif; font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-grad);
  color: #2a1c05;
  box-shadow: var(--glow-gold);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 0 36px rgba(231, 185, 78, 0.5); }
.btn-ghost {
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 15px 40px; font-size: 1.05rem; }

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 185, 78, 0.5); }
  50% { box-shadow: 0 0 0 12px rgba(231, 185, 78, 0); }
}
.pulse { animation: pulse-cta 1.9s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* ===== Logo — glowing gold brand wordmark ===== */
.logo { display: inline-flex; align-items: center; }
.brand-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(231, 185, 78, 0.55));
  white-space: nowrap;
}
.sidebar-logo .brand-name { font-size: 1.75rem; }
.footer-logo .brand-name { font-size: 2rem; }

/* ===== Top header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(10, 6, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* ===== Layout: sidebar + main ===== */
.layout {
  display: grid;
  grid-template-columns: var(--side-w) 1fr;
  align-items: start;
  max-width: 1600px;
  margin: 0 auto;
}

/* ===== Sidebar ===== */
.sidebar {
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 26px 18px;
  background: rgba(0, 0, 0, 0.32);
  border-right: 1px solid var(--border);
}
.sidebar-logo { display: none; margin: 0 auto 22px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--text);
  transition: background 0.18s ease, color 0.18s ease;
}
.side-nav a .ico { color: var(--primary); font-size: 0.8rem; }
.side-nav a:hover { background: var(--card-2); }
.side-nav a:first-child,
.side-nav a.active {
  background: linear-gradient(90deg, rgba(231, 185, 78, 0.16), rgba(231, 185, 78, 0.04));
  box-shadow: inset 3px 0 0 var(--primary);
}

/* ===== Main column ===== */
.main { min-width: 0; padding: 0 30px 40px; }
.main > section { padding: 38px 0; }
.main > section > h2,
.main > section > h1 { text-align: left; margin-bottom: 1em; }
.main > section > h2::after,
.main > section > h1::after {
  content: "";
  display: block;
  width: 64px; height: 3px;
  margin-top: 10px;
  border-radius: 3px;
  background: var(--gold-grad);
}

/* ===== Hero banner ===== */
.hero { padding-top: 26px !important; }
.hero-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: relative;
  z-index: 2;
  max-width: 60%;
  padding: 44px 40px;
  background: linear-gradient(90deg, rgba(8, 5, 6, 0.92) 40%, rgba(8, 5, 6, 0) 100%);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--primary);
  text-transform: uppercase;
}
.hero-overlay .hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}
.hero-overlay .btn { align-self: flex-start; min-width: 240px; }
.hero-overlay .terms { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* ===== Category chip bar ===== */
.chip-bar {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.chip .ico { color: var(--primary); }
.chip:hover { background: var(--card-2); }

/* ===== Article intro ===== */
.big-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 0.4em;
}
.lead { color: var(--muted); font-size: 1.02rem; max-width: 760px; }
.rating-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.rating-num { font-weight: 800; color: var(--primary); }
.rating-count { color: var(--muted); font-size: 0.9rem; }

/* ===== Stars ===== */
.stars { display: inline-flex; gap: 2px; font-size: 1.05rem; line-height: 1; }
.stars .full { color: var(--primary); }
.stars .empty { color: rgba(255, 255, 255, 0.22); }
.stars .half { position: relative; color: rgba(255, 255, 255, 0.22); }
.stars .half::before { content: "★"; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: var(--primary); }

/* ===== Features ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-icon { font-size: 1.8rem; margin-bottom: 8px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ===== Bonus block ===== */
.bonus-block-inner {
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(60% 90% at 16% 50%, rgba(231, 185, 78, 0.20), transparent 70%),
    linear-gradient(160deg, rgba(231, 185, 78, 0.10), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px;
  box-shadow: var(--shadow);
}
.bonus-media { display: flex; justify-content: center; }
.bonus-media img {
  width: 100%;
  max-width: 280px;
  border-radius: 18px;
  filter: drop-shadow(0 14px 36px rgba(231, 185, 78, 0.45));
  animation: bonus-float 4s ease-in-out infinite;
}
@keyframes bonus-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .bonus-media img { animation: none; } }
.bonus-content { text-align: left; }
.bonus-content h2 {
  text-align: left;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
}
.bonus-block-text { color: var(--muted); margin: 0 0 18px; }
.countdown-wrap { margin: 18px 0; }
.countdown-label { display: block; color: var(--primary); font-weight: 700; margin-bottom: 10px; }
.countdown { display: inline-flex; gap: 10px; }
.cd-cell {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 60px;
  text-align: center;
}
.cd-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.cd-cap { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; }
.bonus-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  text-align: left;
}
.bonus-list li { position: relative; padding-left: 26px; font-size: 0.92rem; }
.bonus-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 800; }

@media (max-width: 720px) {
  .bonus-block-inner { grid-template-columns: 1fr; gap: 22px; padding: 30px 22px; text-align: center; }
  .bonus-media img { max-width: 180px; }
  .bonus-content { text-align: center; }
  .bonus-content h2 { text-align: center; }
  .bonus-list { max-width: 420px; margin-left: auto; margin-right: auto; }
}

/* ===== Specs ===== */
.specs-wrap { overflow-x: auto; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.specs-table th { color: var(--muted); font-weight: 600; width: 40%; }
.specs-table td { font-weight: 600; }
.specs-table tr:nth-child(odd) { background: var(--card); }

/* ===== Popular Slots ===== */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.slot-card {
  display: flex;
  flex-direction: column;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.slot-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--glow-gold); }
.slot-thumb { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.slot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slot-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-grad);
  color: #2a1c05;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.slot-info { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 6px; }
.slot-info h3 { margin: 0; font-size: 1.05rem; }
.slot-provider { color: var(--primary); font-weight: 600; font-size: 0.85rem; }
.slot-rtp { color: var(--muted); font-size: 0.85rem; }
.slot-cta { margin: 10px 18px 18px; }

/* ===== Reviews ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  color: #2a1c05;
  background: var(--gold-grad);
}
.review-meta { display: flex; flex-direction: column; }
.review-name { font-weight: 700; }
.review-date { font-size: 0.8rem; color: var(--muted); }
.review-text { color: var(--muted); font-size: 0.93rem; margin: 10px 0 0; }

/* ===== Article ===== */
.article { max-width: 820px; }
.article-title { font-family: "Montserrat", sans-serif; }
.article-block h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.25rem;
  margin-top: 1.2em;
  color: var(--primary);
}
.article-block p { color: rgba(243, 236, 228, 0.82); }

/* ===== Final CTA ===== */
.cta-final {
  text-align: center;
  background: linear-gradient(160deg, rgba(231, 185, 78, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 24px !important;
  margin: 10px 0;
}
.main > section.cta-final > h2 { text-align: center; }
.main > section.cta-final > h2::after { margin-left: auto; margin-right: auto; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 4px 22px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 18px 0;
  position: relative;
  padding-right: 36px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); margin: 0 0 18px; }

/* ===== Footer ===== */
.site-footer {
  text-align: center;
  padding: 50px 0 30px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
}
.footer-logo { justify-content: center; margin-bottom: 22px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 22px;
}
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }
.reg-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 22px;
}
.reg-badge {
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: rgba(243, 236, 228, 0.78);
  opacity: 0.85;
}
.badge-18 {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2px solid var(--muted);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--text);
}
.disclaimer { color: var(--muted); font-size: 0.8rem; max-width: 820px; margin: 0 auto 12px; }
.responsible { color: var(--muted); font-size: 0.82rem; max-width: 700px; margin: 0 auto 12px; }
.responsible a { color: var(--primary); }
.copyright { color: var(--muted); font-size: 0.82rem; margin: 0; }

/* ===== Reveal animation ===== */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Burger (mobile only) ===== */
.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.nav-burger .burger-close { display: none; }

/* ===== Sticky mobile CTA ===== */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  padding: 12px 16px;
  background: transparent;
  pointer-events: none;
  text-align: center;
  transform: translateY(140%);
  transition: transform 0.3s ease;
  display: none;
}
.sticky-cta .btn {
  display: inline-flex;
  width: auto;
  min-width: 220px;
  pointer-events: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
  animation: none;
}
.sticky-cta.show { transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  :root { --side-w: 220px; }
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  /* На мобиле убираем кнопки Login/Register из шапки — остаётся логотип + бургер */
  .header-actions { display: none; }
  .nav-burger { display: block; }

  .sidebar {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 280px;
    max-width: 84vw;
    height: calc(100vh - var(--header-h));
    z-index: 55;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    border-right: 1px solid var(--border);
    background: #0a0507;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open .nav-burger .burger-open { display: none; }
  body.nav-open .nav-burger .burger-close { display: inline; }

  .main { padding: 0 18px 30px; }
  .hero-overlay { max-width: 100%; padding: 30px 22px; }
  .sticky-cta { display: block; }
}

@media (max-width: 560px) {
  .header-inner { padding: 0 14px; gap: 8px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 9px 14px; font-size: 0.82rem; }
  .brand-name { font-size: 1.25rem; }
  .hero-banner, .hero-overlay { min-height: 300px; }
  .bonus-list { grid-template-columns: 1fr; }
}
