/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:      #f5c842;
  --gold-2:    #ff9a3c;
  --gold-glow: rgba(245, 200, 66, 0.18);
  --bg:        #07080f;
  --bg-2:      #0d0f1e;
  --surface:   #111528;
  --surface-2: #181c35;
  --glass:     rgba(14, 17, 36, 0.82);
  --border:    rgba(255, 255, 255, 0.07);
  --border-gold: rgba(245, 200, 66, 0.22);
  --text:      #f0f2fc;
  --muted:     #7e88a8;
  --danger:    #f04f5c;

  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg) url("background.webp") center / cover no-repeat fixed;
  color: var(--text);
}

/* ===== PAGE OVERLAY ===== */
.page {
  min-height: 100vh;
  background: linear-gradient(
    175deg,
    rgba(7, 8, 15, 0.72) 0%,
    rgba(7, 8, 15, 0.94) 60%,
    rgba(7, 8, 15, 0.98) 100%
  );
}

/* ===== LAYOUT ===== */
.container {
  width: min(1200px, 94%);
  margin-inline: auto;
}

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 18, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

/* ===== LOGO ===== */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
}

.logo-text {
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAV LINKS ===== */
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ===== BUTTONS ===== */
.cta-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(110deg, var(--gold) 0%, var(--gold-2) 100%);
  color: #1a0900;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(245, 200, 66, 0.22);
}

.btn.primary:hover {
  box-shadow: 0 6px 28px rgba(245, 200, 66, 0.38);
}

.btn.lg {
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 12px;
}

/* ===== HERO ===== */
.hero {
  padding: 80px 0 60px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 28px;
}

/* ===== STATS ROW ===== */
.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat strong {
  font-size: 1.55rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ===== BONUS CARD ===== */
.bonus-card {
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border-gold);
  border-radius: 24px;
  padding: 36px 32px;
  position: relative;
  overflow: hidden;
}

.bonus-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(245, 200, 66, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.bonus-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.bonus-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bonus-amount {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.bonus-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 60px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-title span {
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-link {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0.8;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.section-link:hover { opacity: 1; }

/* ===== GAMES GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 14px;
}

.game-card {
  display: block;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.game-card img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.game-card::after {
  content: "▶ Играть";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.22s ease;
  letter-spacing: 0.04em;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  border-color: var(--border-gold);
}

.game-card:hover img { transform: scale(1.04); }
.game-card:hover::after { opacity: 1; }

/* ===== PROMO CARDS ===== */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.promo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.promo:hover {
  border-color: var(--border-gold);
  transform: translateY(-3px);
}

.promo-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-glow);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.promo h3, .promo h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.promo p {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}

/* ===== WINS FEED ===== */
.wins-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
}

.wins-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.wins-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3bf57c;
  box-shadow: 0 0 8px rgba(59, 245, 124, 0.7);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

.wins-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.wins-head p {
  color: var(--muted);
  font-size: 0.82rem;
  margin-left: auto;
}

#wins-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#wins-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  animation: slide-in 0.38s ease;
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

#wins-list li strong {
  color: var(--gold);
  font-weight: 700;
}

/* ===== SEO CONTENT ===== */
.seo-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.seo-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.seo-block h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.seo-block p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ===== FAQ ===== */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color 0.18s;
}

.faq-item:hover { border-color: var(--border-gold); }

.faq-item h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}

.faq-item p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== INTERNAL LINKS ===== */
.internal-links .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.internal-links .nav-links a {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.internal-links .nav-links a:hover {
  color: var(--text);
  border-color: var(--border-gold);
  background: var(--gold-glow);
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.18s;
}

.footer-links a:hover { color: var(--text); }

/* ===== HERO CARD (alternate pages) ===== */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border-gold);
  border-radius: 22px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top left, rgba(245, 200, 66, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-card p { color: var(--muted); font-size: 0.9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 52px 0 40px;
  }
  .bonus-card { padding: 28px 22px; }
}

@media (max-width: 720px) {
  .nav {
    flex-direction: column;
    gap: 12px;
    padding: 12px 0;
  }
  .nav-links { gap: 2px; }
  .cta-group { width: 100%; justify-content: center; }
  .stats { gap: 16px; }
  .section { padding: 44px 0; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
