/* Leebet Casino — информационный сайт. Тёмная игровая стилистика, mobile-first. */

:root {
  --bg-primary: #0a0d1a;
  --bg-secondary: #0e1221;
  --bg-card: #131728;
  --bg-card-hover: #1a2035;
  --accent-gold: #f5c518;
  --accent-gold-dark: #d4a80f;
  --accent-purple: #7c3aed;
  --text-primary: #ffffff;
  --text-secondary: #aab1cc;
  --text-muted: #6b7394;
  --border-color: #232a48;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 14px;
  --gradient-hero: linear-gradient(135deg, rgba(10,13,26,.92) 0%, rgba(26,10,46,.88) 55%, rgba(10,13,26,.95) 100%);
  --gradient-gold: linear-gradient(135deg, #f5c518 0%, #ff9a1a 100%);
  --gradient-card: linear-gradient(145deg, #131728, #1a2035);
  --max-width: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  font-size: 16px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font: inherit; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ======= SKIP LINK ======= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent-gold);
  color: #111;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 2000;
  font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ======= HEADER ======= */
header.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 13, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo img { height: 34px; width: auto; }

.main-nav { display: none; align-items: center; gap: 2px; }

.main-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--text-primary); background: rgba(245,197,24,.08); }
.main-nav a[aria-current="page"] { color: var(--accent-gold); }

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}
.btn-primary { background: var(--gradient-gold); color: #16130a; box-shadow: 0 6px 20px rgba(245,197,24,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(245,197,24,.4); }
.btn-outline { background: transparent; color: var(--text-primary); border-color: var(--border-color); }
.btn-outline:hover { border-color: var(--accent-gold); color: var(--accent-gold); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 38px; }

.header-actions .btn { display: none; }

.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* ======= MOBILE MENU ======= */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  z-index: 999;
  background: var(--bg-secondary);
  overflow-y: auto;
  padding: 18px 16px 28px;
}
.mobile-menu.is-open { display: block; }

.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.mobile-menu nav a {
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.mobile-menu nav a[aria-current="page"],
.mobile-menu nav a:hover { color: var(--accent-gold); background: rgba(245,197,24,.07); border-color: rgba(245,197,24,.2); }

.mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; }

body.menu-open { overflow: hidden; }

/* ======= HERO ======= */
.hero {
  position: relative;
  background-image: var(--gradient-hero), url('/assets/images/background.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 44px 0 40px;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.age-badge-hero {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,197,24,.12);
  border: 1px solid rgba(245,197,24,.35);
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 50px;
  width: fit-content;
}

.hero-title {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.5px;
  max-width: 760px;
}
.hero-title span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc { font-size: 16px; color: var(--text-secondary); max-width: 620px; line-height: 1.7; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.hero-tag {
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 6px 12px;
  background: rgba(19,23,40,.6);
}

/* ======= SECTIONS ======= */
section.block { padding: 44px 0; }
.section-head { margin-bottom: 24px; max-width: 720px; }
.section-head h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; margin-bottom: 8px; }
.section-head p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.section-foot { margin-top: 22px; }

.bg-alt { background: var(--bg-secondary); }

/* ======= FEATURES ======= */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}
.feature-card .icon { font-size: 28px; margin-bottom: 10px; display: block; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ======= GAMES ======= */
.games-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.search-field { position: relative; flex: 1; min-width: 220px; max-width: 380px; }
.search-field input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 14px;
  min-height: 44px;
}
.search-field input::placeholder { color: var(--text-muted); }
.search-field .search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .6; font-size: 15px; }

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.game-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
  display: block;
}
.game-card:hover { transform: translateY(-3px); border-color: rgba(245,197,24,.35); }
.game-card-media { position: relative; aspect-ratio: 5/6; overflow: hidden; background: var(--bg-card); }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; }
.game-card-media::after {
  content: "Играть";
  position: absolute; inset: 0;
  background: rgba(8,10,20,.55);
  color: var(--accent-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  opacity: 0; transition: opacity .2s;
}
.game-card:hover .game-card-media::after,
.game-card:focus-visible .game-card-media::after { opacity: 1; }
.game-card-info { padding: 10px 12px; }
.game-card-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.games-empty {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
}
.games-empty.is-visible { display: block; }

.games-loadmore { display: flex; justify-content: center; margin-top: 22px; }

/* ======= QUICKLINKS ======= */
.quicklinks-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.quicklink-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quicklink-card .icon { font-size: 24px; }
.quicklink-card h3 { font-size: 16px; font-weight: 700; }
.quicklink-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; flex-grow: 1; }
.quicklink-card .quicklink-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.quicklink-card a.text-link { font-size: 14px; font-weight: 700; color: var(--accent-gold); }

/* ======= BONUS/PROMO CARDS (banner style, all lead to /banana) ======= */
.promo-banner {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.promo-banner::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--gradient-gold); }
.promo-banner h3 { font-size: 18px; font-weight: 800; }
.promo-banner p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ======= CONTENT / PROSE ======= */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 800; margin: 32px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 20px 0 8px; color: var(--text-primary); }
.prose p { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.prose ul, .prose ol { margin: 10px 0 16px 20px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { font-size: 15px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 8px; }
.prose a { color: var(--accent-gold); text-decoration: underline; text-decoration-color: rgba(245,197,24,.4); }
.prose a:hover { text-decoration-color: var(--accent-gold); }
.prose strong { color: var(--text-primary); }

.callout {
  border: 1px solid rgba(245,197,24,.3);
  background: rgba(245,197,24,.06);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 18px 0;
}
.callout strong { color: var(--accent-gold); }

.callout-warn {
  border: 1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.07);
}
.callout-warn strong { color: #ff8a8a; }

/* ======= PAGE HERO (inner pages) ======= */
.page-hero { padding: 28px 0 8px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb span[aria-hidden] { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-secondary); }

.page-h1 { font-size: clamp(26px, 5vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 10px; max-width: 760px; }
.page-lead { font-size: 16px; color: var(--text-secondary); max-width: 700px; line-height: 1.7; margin-bottom: 4px; }

/* ======= FAQ ACCORDION ======= */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-card); overflow: hidden; }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 16px 46px 16px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  min-height: 44px;
}
.faq-question::after {
  content: "+";
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent-gold);
  transition: transform .2s;
}
.faq-item.is-open .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer {
  padding: 0 18px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
}
.faq-item.is-open .faq-answer { padding: 0 18px 16px; }
.faq-answer p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ======= INTERNAL LINKS BOX ======= */
.links-box { border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-card); padding: 20px; margin-top: 24px; }
.links-box h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; font-weight: 700; }
.links-box ul { display: flex; flex-wrap: wrap; gap: 10px; }
.links-box a {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 14px;
}
.links-box a:hover { color: var(--accent-gold); border-color: rgba(245,197,24,.4); }

/* ======= RESPONSIBLE GAMBLING STRIP ======= */
.rg-strip {
  border: 1px solid rgba(239,68,68,.3);
  background: rgba(239,68,68,.05);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rg-strip h2 { font-size: 18px; font-weight: 800; }
.rg-strip p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ======= FOOTER ======= */
footer.site-footer { background: var(--bg-card); border-top: 1px solid var(--border-color); padding: 40px 0 20px; margin-top: 20px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 28px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 420px; margin-bottom: 10px; }
.footer-disclaimer { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 460px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.footer-col h4 { font-size: 12px; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13px; color: var(--text-muted); }
.footer-col a:hover { color: var(--accent-gold); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.footer-copy { font-size: 12px; color: var(--text-muted); }
.footer-age { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.age-pill { background: var(--text-muted); color: var(--bg-primary); font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 6px; }

/* ======= 404 ======= */
.error-page { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.error-code { font-size: clamp(48px, 12vw, 96px); font-weight: 900; color: var(--accent-gold); line-height: 1; }

/* ======= RESPONSIVE ======= */
@media (min-width: 640px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .quicklinks-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 880px) {
  .main-nav { display: flex; }
  .burger { display: none; }
  .header-actions .btn { display: inline-flex; }
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .quicklinks-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1.3fr 2fr; }
  .hero-title { max-width: 820px; }
}

@media (min-width: 1100px) {
  .games-grid { grid-template-columns: repeat(5, 1fr); }
}
