/* ===== casinova — premium dark slots theme (gold + purple glow) ===== */
:root {
  --primary: #f5c518;
  --accent: #8b5cf6;
  --bg: #0e0b14;
  --bg-soft: #181225;
  --text: #ece8f5;

  --muted: rgba(236, 232, 245, 0.62);
  --border: rgba(139, 92, 246, 0.22);
  --card: rgba(255, 255, 255, 0.03);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --glow-gold: 0 0 28px rgba(245, 197, 24, 0.35);
  --glow-purple: 0 0 60px rgba(139, 92, 246, 0.4);
  --maxw: 1200px;
}

* { 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: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); text-align: center; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

section { padding: 72px 24px; }
section > h2 { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  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: linear-gradient(135deg, #ffe07a, var(--primary));
  color: #1a1305;
  box-shadow: var(--glow-gold);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 0 38px rgba(245, 197, 24, 0.55); }
.btn-lg { padding: 16px 38px; font-size: 1.05rem; }
.btn-ghost {
  background: rgba(139, 92, 246, 0.12);
  color: var(--text);
  border: 1px solid var(--accent);
}
.btn-ghost:hover { transform: translateY(-2px); background: rgba(139, 92, 246, 0.22); box-shadow: var(--glow-purple); }

/* ===== Hero actions (register + login) ===== */
.hero-actions { display: flex; flex-direction: row; gap: 12px; flex-wrap: wrap; }

/* ===== CTA attention pulse (theme gold glow) ===== */
@keyframes pulse-cta {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 197, 24, 0.5); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 12px rgba(245, 197, 24, 0); }
}
.pulse {
  transform-origin: center;
  animation: pulse-cta 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}

/* ===== 18+ bar ===== */
.age-bar {
  background: linear-gradient(90deg, var(--accent), #6d28d9);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 16px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 11, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 28px;
}
/* Logo: glowing brand-name wordmark (no image) */
.site-header .logo {
  display: inline-flex;
  align-items: center;
}
.site-header .brand-name {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  line-height: 1;
  background: linear-gradient(180deg, #ffe9a8, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(245, 197, 24, 0.55));
  white-space: nowrap;
}
.site-nav { display: flex; gap: 26px; margin-left: auto; flex-wrap: wrap; }
.site-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--primary); }
.header-cta { margin-left: 8px; }

/* ===== Burger menu ===== */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav-burger:hover { border-color: var(--accent); }
.nav-burger .burger-close { display: none; }
.site-header.nav-open .nav-burger .burger-open { display: none; }
.site-header.nav-open .nav-burger .burger-close { display: inline; }

/* ===== Scroll reveal ===== */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ===== Countdown ===== */
.countdown-wrap { margin: 0 auto 26px; }
.countdown-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cd-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(14, 11, 20, 0.55);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.cd-num {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}
.cd-cap {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

/* ===== Hero ===== */
.hero { position: relative; padding-top: 56px; padding-bottom: 56px; overflow: hidden; }
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.hero-glow-1 { width: 520px; height: 520px; background: rgba(139, 92, 246, 0.45); top: -160px; left: -120px; }
.hero-glow-2 { width: 460px; height: 460px; background: rgba(245, 197, 24, 0.22); bottom: -180px; right: -100px; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid var(--accent);
  color: #d4c2ff;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
.hero h1 { background: linear-gradient(120deg, #fff, #d4c2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 520px; }

.rating-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 18px 0 22px; }
.rating-num { font-weight: 700; color: var(--primary); }
.rating-count { color: var(--muted); font-size: 0.9rem; }

.bonus-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 26px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.1), rgba(139, 92, 246, 0.12));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.bonus-amount { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.bonus-desc { color: var(--muted); font-size: 0.95rem; }
.terms { font-size: 0.78rem; color: var(--muted); margin-top: 14px; }

.hero-media img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow), var(--glow-purple);
}

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

/* ===== Features ===== */
.features-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.feature {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--glow-purple); }
.feature-icon { font-size: 2.2rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ===== Specs ===== */
.specs-wrap { max-width: 780px; margin: 32px auto 0; }
.specs-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}
.specs-table th, .specs-table td { padding: 16px 22px; text-align: left; font-size: 0.95rem; }
.specs-table th { color: var(--muted); font-weight: 600; width: 42%; }
.specs-table td { font-weight: 600; }
.specs-table tr + tr { border-top: 1px solid var(--border); }
.specs-table tr:nth-child(odd) { background: rgba(139, 92, 246, 0.05); }

/* ===== Popular Slots ===== */
.slots-grid {
  max-width: var(--maxw);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.slot-card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, box-shadow .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: linear-gradient(135deg, #ffe9a8, var(--primary));
  color: #1a1305;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(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: .85rem; }
.slot-rtp { color: var(--muted); font-size: .85rem; }
.slot-cta { margin: 10px 18px 18px; }

/* ===== Bonus block ===== */
.bonus-block { display: flex; justify-content: center; }
.bonus-block-inner {
  max-width: 1000px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(200px, 300px) 1fr;
  gap: 40px;
  align-items: center;
  background:
    radial-gradient(60% 90% at 16% 50%, rgba(245, 197, 24, 0.18), transparent 70%),
    linear-gradient(160deg, rgba(245, 197, 24, 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(245, 197, 24, 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; }
.bonus-block-text { color: var(--muted); margin: 0 0 18px; max-width: none; }
.bonus-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  max-width: none;
  text-align: left;
  display: grid;
  gap: 12px;
}
.bonus-list li { position: relative; padding-left: 32px; }
.bonus-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 800;
}

/* ===== Reviews ===== */
.reviews-grid {
  max-width: var(--maxw);
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.review-card {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.review-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a1305;
  background: linear-gradient(135deg, #ffe07a, var(--primary));
  box-shadow: var(--glow-gold);
  flex-shrink: 0;
}
.review-meta { display: flex; flex-direction: column; }
.review-name { font-weight: 600; }
.review-date { font-size: 0.82rem; color: var(--muted); }
.review-text { color: var(--muted); font-size: 0.95rem; margin: 12px 0 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 4px 22px;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* ===== Article (long-form SEO) ===== */
.article {
  max-width: 820px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.article-title { margin-bottom: 36px; }
.article-block { margin-bottom: 40px; }
.article-block:last-child { margin-bottom: 0; }
.article-block h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.6em;
}
.article-block p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}
.article-block a { color: var(--primary); text-decoration: underline; }
@media (max-width: 768px) {
  .article { padding-left: 20px; padding-right: 20px; }
  .article-block { margin-bottom: 32px; }
  .article-block h3 { font-size: 1.2rem; }
}

/* ===== Final CTA ===== */
.cta-final {
  position: relative;
  text-align: center;
  overflow: hidden;
  background: var(--bg-soft);
}
.cta-final-glow {
  position: absolute;
  width: 600px;
  height: 360px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.45), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
  pointer-events: none;
}
.cta-final h2, .cta-final .btn { position: relative; z-index: 1; }
.cta-final h2 { margin-bottom: 26px; }

/* ===== Footer ===== */
.site-footer {
  background: #08060d;
  border-top: 1px solid var(--border);
  padding: 48px 24px 36px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}
.site-footer > * { max-width: 900px; margin-left: auto; margin-right: auto; }
.disclaimer { font-size: 0.82rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin: 18px auto; }
.footer-links a { color: var(--muted); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--primary); }
.footer-badges { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 18px auto; }
.badge-18 {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.responsible { margin: 0; max-width: 560px; }
.responsible a { color: var(--primary); text-decoration: underline; }
.copyright { margin-top: 18px; font-size: 0.82rem; opacity: 0.8; }

/* ===== Sticky mobile CTA ===== */
.sticky-cta { display: none; }

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .bonus-block-inner { grid-template-columns: 1fr; gap: 22px; padding: 30px 22px; text-align: center; }
  .bonus-media { order: -1; }
  .bonus-media img { max-width: 180px; }
  .bonus-content, .bonus-content h2 { text-align: center; }
  .bonus-list { max-width: 420px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { order: -1; }
  .lead { max-width: none; }
}
@media (max-width: 768px) {
  section { padding: 56px 20px; }
  body { padding-bottom: 76px; }
  .age-bar { display: none; }
  /* Обе кнопки (регистрация + вход) в один ряд, чтобы были видны обе на мобиле */
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn-lg { flex: 1 1 0; width: auto; min-width: 0; padding-left: 14px; padding-right: 14px; }
  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background: rgba(14, 11, 20, 0.92);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.45);
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .sticky-cta.show { transform: none; opacity: 1; }
  .sticky-cta .btn { width: 100%; text-align: center; }
  .site-nav { display: none; }
  .header-inner { gap: 12px; position: static; }
  /* Logo stays left and pushes everything else to the right */
  .site-header .logo { margin-right: auto; order: 0; }
  /* Hide the header register button on mobile (it's also in the hero + dropdown)
     so the bar stays uncrowded: logo (left) … burger (right) */
  .header-cta { display: none; }
  /* Burger is the right-most element in the header bar */
  .nav-burger { display: inline-flex; margin-left: auto; order: 99; }
  .site-header.nav-open .site-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    padding: 8px 0;
    background: rgba(14, 11, 20, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-header.nav-open .site-nav a {
    padding: 14px 28px;
    font-size: 1rem;
    color: var(--text);
    border-top: 1px solid var(--border);
  }
  .site-header.nav-open .site-nav a:first-child { border-top: none; }
  .site-header.nav-open .site-nav a:hover { color: var(--primary); background: rgba(139, 92, 246, 0.1); }
}
@media (max-width: 420px) {
  section { padding: 44px 16px; }
  .hero h1 { font-size: 2rem; }
  .bonus-amount { font-size: 1.5rem; }
  .bonus-block-inner { padding: 32px 22px; }
  .btn-lg { width: 100%; }
  .header-inner { padding: 12px 16px; }
}
@media (max-width: 480px) {
  .site-header .brand-name { font-size: 1.25rem; }
}
