/* ===== McLuck Casino — global theme ===== */
:root {
  --bg: #0a0a0d;
  --bg-2: #0f0e13;
  --surface: #17151c;
  --surface-2: #1f1c26;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f4f8;
  --muted: #a8a2b2;
  --primary: #ff2d7a;
  --primary-600: #e51c67;
  --gold: #f5b942;
  --green: #46d17a;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1080px;
  --nav-h: 68px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.5em;
  letter-spacing: 0.2px;
}
h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-top: 1.2em; }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); margin-top: 1em; }
p { margin: 0 0 1em; }
strong { color: #fff; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(36px, 6vw, 72px) 0; }
/* .narrow historically centered a 900px column; now it matches the main
   container so every section shares the same left edge (consistent gutters).
   Readable line length is handled by capping paragraph width below. */
.narrow { max-width: var(--maxw); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #ff4a8d, var(--primary-600));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 45, 122, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(255, 45, 122, 0.5); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: var(--border-strong); }
.btn-outline:hover { border-color: #fff; color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--nav-h);
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 30px; width: auto; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.nav__links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
.nav__links a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav__cta { margin-left: 10px; flex-shrink: 0; }
.nav__links .btn { display: none; }
.nav__toggle, .nav__toggle-label { display: none; }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: transparent;
}
.burger span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  /* Ambient background image (a true "фон" — used as a CSS background behind
     content, darkened on the left so headline/CTA stay legible). NOT a promo
     banner and NOT a card image. */
  background:
    linear-gradient(90deg, rgba(9, 8, 12, 0.93) 0%, rgba(9, 8, 12, 0.62) 60%, rgba(9, 8, 12, 0.45) 100%),
    radial-gradient(120% 90% at 82% 12%, rgba(245, 150, 40, 0.18), rgba(10, 10, 13, 0) 55%),
    url('/images/bg-2.webp') center / cover no-repeat,
    var(--bg);
}
/* Text-only hero (no right-hand media): content spans a single column over the
   ambient background. */
.hero--text .hero__inner { grid-template-columns: 1fr; }
.hero--text .hero__content { max-width: 720px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  /* vertical only — keep the .container's horizontal padding (was being
     zeroed by the shorthand, which made hero text touch the edges on mobile) */
  padding-block: clamp(40px, 7vw, 88px);
}
.hero__content h1 { margin-bottom: 0.35em; }
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); margin-bottom: 1.4em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { position: relative; }
.hero__media a { display: block; }
.hero__media img { border-radius: var(--radius-lg); width: auto; max-width: 100%; max-height: 440px; margin-inline: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
/* Dense game gallery — small, compact thumbnails that auto-fit the row */
.game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card h3 { margin-top: 0; }
.card--pad0 { padding: 0; overflow: hidden; }

/* Game / thumb cards */
.thumb-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.thumb-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.thumb-card a { display: block; }
.thumb-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.thumb-card__label { padding: 10px 12px; font-weight: 600; font-size: 0.9rem; color: var(--text); }

/* Feature list */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { padding-left: 30px; position: relative; }
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--green), #1c8a47);
}

/* Promo banner */
.promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: center;
  background: linear-gradient(120deg, rgba(255, 45, 122, 0.12), rgba(245, 185, 66, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.promo img { border-radius: var(--radius); }
.callout {
  background: linear-gradient(135deg, rgba(255, 45, 122, 0.16), rgba(255, 45, 122, 0.04));
  border: 1px solid rgba(255, 45, 122, 0.35);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 20px;
}
.callout p { margin: 0; }
.callout strong, .callout b { color: var(--gold); }

/* ===== Tables ===== */
.table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 20px; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; min-width: 460px; background: var(--surface); }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.96rem; }
thead th { background: var(--surface-2); color: #fff; font-weight: 700; white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
td:first-child { color: #fff; font-weight: 600; }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #fff;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { padding: 14px 0; margin: 0; color: var(--muted); }

/* Tier cards */
.tier {
  text-align: center;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 20px;
}
.tier__gem { font-size: 2.4rem; line-height: 1; margin-bottom: 10px; }
.tier__name { text-transform: uppercase; letter-spacing: 1px; font-weight: 800; color: var(--gold); margin-bottom: 12px; }

/* ===== Responsible gambling strip ===== */
.rg-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--muted);
  font-size: 0.95rem;
}
.rg-strip .age { color: var(--gold); font-weight: 800; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 48px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); font-size: 0.95rem; }
.footer-col a:hover { color: #fff; }
.footer-logo img { height: 34px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 32px; padding-top: 22px; color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.footer-badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; color: var(--muted); font-weight: 700; }
.footer-badges .b18 { border: 2px solid var(--muted); border-radius: 50%; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; }

/* ===== Prose spacing for content pages ===== */
.prose h2 { border-left: 3px solid var(--primary); padding-left: 14px; }
/* Cap running-text line length for readability while keeping the left edge
   aligned with headings, grids and banners (do not centre). */
.prose > section > .container > p,
.prose > section > .container > .narrow > p { max-width: 74ch; }
.prose ul { padding-left: 20px; }
.prose ul li { margin-bottom: 8px; }
.prose a { color: var(--gold); }
.figure { margin: 0 0 24px; }
.figure img { border-radius: var(--radius); width: 100%; border: 1px solid var(--border); }
.figure--thumb img { width: auto; max-width: 340px; max-height: 440px; margin-inline: auto; }
.figure figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 8px; text-align: center; }

/* ===== Full-width promo banner (wide scene images used as backgrounds) ===== */
.banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  min-height: 300px;
  display: flex;
  align-items: center;
}
.banner__bg-link { position: absolute; inset: 0; z-index: 0; display: block; }
.banner__bg-link img { width: 100%; height: 100%; object-fit: cover; max-height: none; }
.banner__bg-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 8, 12, 0.95) 0%, rgba(9, 8, 12, 0.72) 48%, rgba(9, 8, 12, 0.18) 100%);
}
.banner__content { position: relative; z-index: 1; padding: clamp(24px, 4vw, 46px); max-width: 560px; }
.banner__content h2 { margin-top: 0; }
.banner__content p { margin-bottom: 18px; }

/* ===== Jackpot tiers ===== */
.jackpot-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 22px; }
.jackpot-tier {
  text-align: center;
  padding: 22px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative;
}
.jackpot-tier .icon { font-size: 1.9rem; line-height: 1; }
.jackpot-tier .name { font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; font-size: 1.05rem; }
.jackpot-tier .sub { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.jackpot-tier.t1 .name { color: #cd7f42; }
.jackpot-tier.t2 .name { color: #cfd3da; }
.jackpot-tier.t3 .name { color: var(--gold); }
.jackpot-tier.t4 .name { color: var(--primary); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1080px) {
  .nav__cta { display: none; }
  .burger { display: flex; }
  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    margin: 0;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-140%);
    transition: transform 0.28s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }
  .nav__links a { padding: 12px 10px; font-size: 1rem; border-radius: 8px; }
  .nav__links .btn { display: flex; margin-top: 10px; color: #fff; }
  .nav__toggle:checked ~ .nav__links { transform: translateY(0); }
  .nav__toggle:checked ~ .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .nav__toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .jackpot-tiers { grid-template-columns: repeat(2, 1fr); }
  .promo { grid-template-columns: 1fr; }
  .promo .promo__media { order: -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .banner__content { max-width: 100%; }
  .banner__bg-link::after { background: linear-gradient(180deg, rgba(9, 8, 12, 0.55), rgba(9, 8, 12, 0.92)); }
}

@media (max-width: 440px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .btn { width: 100%; }
  .hero__actions .btn { width: 100%; }
}
