/* ===========================================================
   Leebet Casino — информационный сайт
   Стили: mobile-first, без сторонних библиотек
   =========================================================== */

:root {
  --bg: #0b0c14;
  --bg-elevated: #12131f;
  --bg-card: #171929;
  --bg-card-hover: #1f2236;
  --border: #262a42;
  --text: #eef0f8;
  --text-muted: #a8adc4;
  --text-dim: #767c99;
  --accent: #ffb020;
  --accent-strong: #ff8a00;
  --accent-contrast: #1a1200;
  --success: #35d68a;
  --danger: #ff5c6c;
  --link: #8fb4ff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  --container: 1180px;
  --focus-ring: 0 0 0 3px rgba(255, 176, 32, 0.55);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(143, 180, 255, 0.35);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 5vw, 2.7rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }

p { margin: 0 0 1em; color: var(--text-muted); }

ul, ol {
  color: var(--text-muted);
  padding-left: 1.3em;
}

li { margin-bottom: 0.5em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* ===================== Header ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 12, 20, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  height: 32px;
  width: auto;
}

.brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: 0.3px;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  cursor: pointer;
}

.menu-toggle .icon-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.menu-toggle .icon-bar::before,
.menu-toggle .icon-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
}

.menu-toggle .icon-bar::before { top: -6px; }
.menu-toggle .icon-bar::after { top: 6px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav {
  position: fixed;
  inset: 0;
  top: 61px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 18px 16px 32px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 90;
}

.primary-nav.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.primary-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.primary-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.primary-nav a[aria-current="page"] {
  color: var(--accent);
}

.primary-nav a:hover {
  background: var(--bg-card);
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }

  .header-inner { padding: 14px 24px; }

  .primary-nav {
    position: static;
    top: auto;
    inset: auto;
    background: transparent;
    border-top: none;
    padding: 0;
    overflow: visible;
    transform: none;
    opacity: 1;
    visibility: visible;
    flex: 1;
    margin: 0 16px;
  }

  .primary-nav ul {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px;
  }

  .primary-nav a {
    padding: 8px 12px;
    border-bottom: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
  }
}

/* ===================== Buttons ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.2;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: var(--accent-contrast);
  box-shadow: 0 8px 22px rgba(255, 138, 0, 0.28);
}

.btn-primary:hover { box-shadow: 0 10px 26px rgba(255, 138, 0, 0.4); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover { background: var(--bg-card-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-sm { padding: 9px 16px; font-size: 0.9rem; min-height: 38px; }
.btn-block { width: 100%; }

.header-actions .btn { padding: 9px 16px; font-size: 0.9rem; min-height: 38px; }

/* ===================== Hero ===================== */

.hero {
  position: relative;
  background-color: #0b0c14;
  background-image:
    linear-gradient(180deg, rgba(9, 10, 16, 0.55) 0%, rgba(9, 10, 16, 0.88) 65%, var(--bg) 100%),
    url("../images/background.webp");
  background-size: cover;
  background-position: center;
  padding: 44px 0 40px;
}

.hero-inner {
  max-width: 760px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(23, 25, 41, 0.85);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.badge-18 {
  color: var(--danger);
  border-color: rgba(255, 92, 108, 0.5);
}

.hero p.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 10px;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 14px;
}

/* ===================== Sections ===================== */

section {
  padding: 44px 0;
}

section.tight { padding: 28px 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-head p { margin-bottom: 0; }

.alt-bg { background: var(--bg-elevated); }

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ===================== Grids / Cards ===================== */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.feature-card,
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 176, 32, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
  font-weight: 800;
}

.feature-card h3, .info-card h3 { margin-bottom: 8px; }
.feature-card p, .info-card p { margin-bottom: 0; font-size: 0.95rem; }

/* ===================== Game cards ===================== */

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

@media (min-width: 560px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .games-grid { grid-template-columns: repeat(5, 1fr); }
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.game-card .thumb {
  display: block;
  aspect-ratio: 200 / 240;
  width: 100%;
  background: var(--bg-elevated);
  overflow: hidden;
}

.game-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card .card-body {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.game-card .card-body h3,
.game-card .card-body .game-name {
  font-size: 0.95rem;
  margin: 0;
  font-weight: 700;
}

.game-card .btn {
  margin-top: auto;
  width: 100%;
}

.games-empty {
  text-align: center;
  padding: 48px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

/* Slots page toolbar */

.slots-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.search-field {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}

.search-field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.95rem;
}

.search-field input::placeholder { color: var(--text-dim); }

.results-count {
  color: var(--text-dim);
  font-size: 0.88rem;
}

.load-more-wrap {
  text-align: center;
  margin-top: 26px;
}

/* ===================== FAQ ===================== */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 18px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 400;
}

.faq-item[open] summary::after { content: "\2212"; }

.faq-item .faq-answer {
  padding: 0 0 16px;
  margin: 0;
  color: var(--text-muted);
}

/* ===================== Steps / lists ===================== */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px 16px 54px;
  position: relative;
  margin-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.steps li strong { color: var(--text); }

/* ===================== Callout ===================== */

.callout {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 20px 0;
}

.callout.warn { border-left-color: var(--danger); }
.callout.safe { border-left-color: var(--success); }
.callout p:last-child { margin-bottom: 0; }

/* ===================== Breadcrumbs ===================== */

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-dim);
  padding: 14px 0 0;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: var(--text-dim);
}

.breadcrumbs a { color: var(--text-dim); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

/* ===================== Prose (content pages) ===================== */

.prose {
  max-width: 760px;
  margin: 0 auto;
}

.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* ===================== CTA banner ===================== */

.cta-banner {
  background: linear-gradient(135deg, #1c1430 0%, #241134 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

.cta-banner h2 { margin-bottom: 10px; }
.cta-banner p { max-width: 560px; margin: 0 auto 18px; }
.cta-banner .cta-row { justify-content: center; margin-top: 0; }

/* ===================== Footer ===================== */

.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { font-size: 0.9rem; }

.footer-col h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 9px; }

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--text); }

.footer-disclaimer {
  border-top: 1px solid var(--border);
  margin-top: 28px;
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-disclaimer p { margin: 0; color: var(--text-dim); max-width: 640px; }

.age-mark {
  flex-shrink: 0;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-weight: 800;
}

/* ===================== 404 ===================== */

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 16px;
}

.error-page .code {
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0;
  line-height: 1;
}

/* ===================== Utility ===================== */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
