/* ═══════════════════════════════════════════════════
   CASINO OF GOLD – style.css
   Aesthetic: Dark luxury with gold accents + 3D depth
   Fonts: Oswald (headings) + Source Sans 3 (body)
   ═══════════════════════════════════════════════════ */

/* ── CSS VARIABLES ─────────────────────────────────── */
:root {
  --gold:        #D4AF37;
  --gold-light:  #F5D060;
  --gold-dark:   #A8880E;
  --bg-deep:     #0A0A0F;
  --bg-card:     #12121A;
  --bg-card2:    #1A1A26;
  --border:      rgba(212, 175, 55, 0.18);
  --border-glow: rgba(212, 175, 55, 0.45);
  --text-main:   #E8E8F0;
  --text-muted:  #8888A8;
  --text-gold:   #D4AF37;
  --red:         #E63946;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --shadow-gold: 0 0 24px rgba(212,175,55,.30), 0 4px 16px rgba(0,0,0,.6);
  --shadow-card: 0 8px 32px rgba(0,0,0,.55);
  --header-h:    72px;
  --transition:  0.25s ease;
  --font-head:   'Oswald', sans-serif;
  --font-body:   'Source Sans 3', sans-serif;
}

/* ── RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-main);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  text-align: center;
  line-height: 1.2;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: #0A0A0F;
  box-shadow: 0 4px 18px rgba(212,175,55,.45);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212,175,55,.65);
  color: #0A0A0F;
}
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}
.btn-outline:hover {
  background: rgba(212,175,55,.08);
  color: var(--gold-light);
}

.btn-xl {
  padding: 18px 48px;
  font-size: 1.15rem;
  border-radius: var(--radius-md);
  letter-spacing: .02em;
}
.btn-lg  { padding: 14px 36px; font-size: 1.05rem; }
.btn-icon { font-size: 1.2em; }

.w-full { width: 100%; justify-content: center; }

/* Pulse animation for main CTA */
.pulse-btn {
  animation: pulseCTA 2.4s ease-in-out infinite;
}
@keyframes pulseCTA {
  0%,100% { box-shadow: 0 4px 18px rgba(212,175,55,.45); }
  50%      { box-shadow: 0 4px 36px rgba(212,175,55,.80), 0 0 60px rgba(212,175,55,.25); }
}

/* ── HEADER ──────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,.5);
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 24px;
}

/* Logo */
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 42px;
  width: auto;
  display: none; /* Hidden until real URL provided */
}
.logo-img[src]:not([src="YOUR_LOGO_URL_HERE"]) {
  display: block;
}
.logo-fallback {
  font-family: var(--font-head);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
}
.logo-gold {
  color: var(--gold);
  margin: 0 3px;
}

/* Nav */
.header-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  gap: 4px;
  margin-right: 8px;
}
.lang-btn {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: .04em;
}
.lang-btn:hover,
.lang-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(212,175,55,.07);
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
  background: rgba(12,12,20,.97);
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; }

/* ── HERO BONUS ──────────────────────────────────────── */
.hero-bonus {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bonus__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%,
    rgba(168,136,14,.18) 0%,
    rgba(10,10,15,0) 70%),
    linear-gradient(180deg, #0D0D16 0%, #050508 100%);
  z-index: 0;
}

/* Glowing center orb */
.hero-bonus__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,55,.12) 0%, transparent 70%);
  pointer-events: none;
  animation: orbPulse 4s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { opacity: .7; transform: translate(-50%,-60%) scale(1); }
  50%      { opacity: 1;  transform: translate(-50%,-60%) scale(1.08); }
}

/* Particles container */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Hero content card */
.hero-bonus__card {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 64px 40px 56px;
  max-width: 760px;
  background: linear-gradient(145deg,
    rgba(26,26,38,.85) 0%,
    rgba(18,18,26,.9) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(212,175,55,.07),
    inset 0 1px 0 rgba(255,255,255,.06),
    var(--shadow-gold);
  backdrop-filter: blur(8px);
}

/* Decorative corner lines */
.hero-bonus__card::before,
.hero-bonus__card::after {
  content: '';
  position: absolute;
  width: 48px; height: 48px;
  border-color: var(--gold);
  border-style: solid;
}
.hero-bonus__card::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
  border-radius: var(--radius-lg) 0 0 0;
}
.hero-bonus__card::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
  border-radius: 0 0 var(--radius-lg) 0;
}

.hero-bonus__badge {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(212,175,55,.12);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 20px;
  color: var(--gold-light);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-bonus__title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.hero-bonus__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 20px;
}

.hero-bonus__amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
}
.bonus-big {
  font-family: var(--font-head);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1;
}
.bonus-big em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bonus-spins {
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .04em;
}

.hero-bonus__hint {
  margin-top: 18px;
  font-size: .78rem;
  color: var(--text-muted);
  opacity: .8;
}

/* ── STATS SECTION ───────────────────────────────────── */
.stats-section {
  padding: 64px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  overflow: hidden;
  cursor: default;
  transform-style: preserve-3d;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(212,175,55,.06) 0%,
    transparent 60%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-6px) rotateX(3deg);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-gold);
}

.stat-card__icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(212,175,55,.5));
}

.stat-card__val {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card__label {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 400;
}

.stat-card__bar {
  margin-top: 16px;
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}
.stat-card__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px;
  width: 0;
  transition: width 1.4s cubic-bezier(.4,0,.2,1);
}

/* ── CONTENT SECTION ─────────────────────────────────── */
.content-section {
  padding: 40px 20px 64px;
}

.content-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  max-width: 860px;
  margin: 0 auto;
}

/* Typography within article */
.content-article h2 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.content-article h2:first-child { margin-top: 0; }

.content-article h3 {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 32px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.content-article p {
  margin-bottom: 18px;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.75;
}

/* Tables — применяется ко всем <table> внутри статьи без классов */
.content-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 28px;
  font-size: .95rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.content-article table thead tr {
  background: rgba(212,175,55,.1);
  border-bottom: 2px solid var(--border-glow);
}
.content-article table thead th {
  padding: 12px 16px;
  text-align: left;
  color: var(--gold-light);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.content-article table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background var(--transition);
}
.content-article table tbody tr:hover {
  background: rgba(212,175,55,.04);
}
.content-article table tbody td {
  padding: 11px 16px;
  color: var(--text-main);
}

/* Lists — применяется ко всем <ul> и <ol> внутри статьи без классов */
.content-article ul,
.content-article ol {
  margin: 16px 0 24px 0;
  padding-left: 0;
  list-style: none;
}
.content-article ul li,
.content-article ol li {
  position: relative;
  padding: 8px 12px 8px 32px;
  margin-bottom: 4px;
  border-radius: var(--radius-sm);
  font-size: .97rem;
  color: var(--text-main);
  transition: background var(--transition);
}
.content-article ul li:hover,
.content-article ol li:hover {
  background: rgba(212,175,55,.04);
}

/* Маркер для <ul> — ромбик */
.content-article ul li::before {
  content: '◆';
  position: absolute;
  left: 10px;
  color: var(--gold);
  font-size: .6rem;
  top: 12px;
}

/* Нумерация для <ol> — автоматический счётчик */
.content-article ol {
  counter-reset: ol-counter;
}
.content-article ol li {
  counter-increment: ol-counter;
}
.content-article ol li::before {
  content: counter(ol-counter, decimal-leading-zero);
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 600;
  color: var(--gold);
  top: 9px;
  left: 8px;
}

/* Inline CTA */
.cta-inline {
  text-align: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

/* ── CAROUSEL SECTION ────────────────────────────────── */
.carousel-section {
  padding: 64px 0;
  overflow: hidden;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 36px;
  text-align: center;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  margin: 10px auto 0;
  border-radius: 2px;
}

.carousel-track-wrapper {
  overflow: hidden;
  padding: 12px 0 20px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  padding: 0 calc((100vw - 1160px) / 2);
  padding-left: max(20px, calc((100vw - 1160px) / 2));
  will-change: transform;
}

.game-card {
  flex: 0 0 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
  position: relative;
}
.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-gold);
}
.game-card__thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  overflow: hidden;
}
.game-card__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--red);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.game-card__badge--gold {
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  color: #0a0a0f;
}
.game-card__body {
  padding: 14px 16px;
}
.game-card__name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 4px;
}
.game-card__provider {
  font-size: .8rem;
  color: var(--text-muted);
}
.game-card__play {
  display: block;
  margin: 12px 16px 16px;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}
.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border-glow);
  background: var(--bg-card);
  color: var(--gold);
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-btn:hover {
  background: rgba(212,175,55,.12);
  border-color: var(--gold);
  box-shadow: 0 0 14px rgba(212,175,55,.3);
}

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(212,175,55,.25);
  border: none;
  cursor: pointer;
  transition: all .3s;
  padding: 0;
}
.carousel-dot.active {
  width: 24px;
  background: var(--gold);
}

/* ── AUTHOR SECTION ──────────────────────────────────── */
.author-section {
  padding: 32px 20px 64px;
}

.author-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  max-width: 860px;
  margin: 0 auto;
}

.author-avatar {
  flex-shrink: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(212,175,55,.35);
  background: var(--bg-card2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.author-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.author-img[src]:not([src="YOUR_AUTHOR_PHOTO_URL_HERE"]) {
  display: block;
}
.author-img[src]:not([src="YOUR_AUTHOR_PHOTO_URL_HERE"]) ~ .author-avatar-fallback {
  display: none;
}
.author-avatar-fallback {
  font-size: 2.2rem;
  opacity: .5;
}

.author-info { flex: 1; }
.author-name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.author-title {
  font-size: .85rem;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.author-bio {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: #060608;
  padding: 28px 0;
}
.footer-inner {
  text-align: center;
}
.footer-legal {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 760px;
  margin: 0 auto;
}
.footer-legal strong {
  color: var(--text-main);
}

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(212,175,55,.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(212,175,55,.6); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .header-nav { display: none; }
  .burger { display: flex; }

  .hero-bonus__card {
    padding: 40px 24px 36px;
    border-radius: var(--radius-md);
    margin: 0 12px;
  }
  .hero-bonus__card::before,
  .hero-bonus__card::after { display: none; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat-card { padding: 22px 16px; }
  .stat-card__val { font-size: 2.2rem; }

  .content-article {
    padding: 28px 20px;
    border-radius: var(--radius-md);
  }
  .content-article h2 { font-size: 1.4rem; }
  .content-article h3 { font-size: 1.1rem; }

  .content-article table { font-size: .85rem; display: block; overflow-x: auto; }
  .content-article table thead th,
  .content-article table tbody td { padding: 9px 10px; }

  .carousel-track {
    padding-left: 16px;
  }
  .game-card { flex: 0 0 180px; }
  .game-card__thumb { height: 130px; font-size: 2.8rem; }

  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px 20px;
  }
  .author-name, .author-title { margin-bottom: 6px; }

  .btn-xl { padding: 16px 32px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 18px 12px; }
  .stat-card__val { font-size: 1.9rem; }
  .stat-card__icon { font-size: 1.8rem; }

  .hero-bonus__card { padding: 32px 16px 28px; }
  .bonus-big { font-size: 2.4rem; }

  .btn-xl { padding: 14px 24px; font-size: .95rem; }

  .content-article { padding: 22px 14px; }
}