/* ============================================================
   QwickBirr — qwickbirr.casino
   Общий стиль всех страниц. Палитра снята с бренд-референса.
   ============================================================ */

@font-face {
  font-family: "Noto Sans Ethiopic";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-ethiopic-ethiopic.woff2") format("woff2");
  unicode-range: U+030E, U+1200-1399, U+2D80-2DDE, U+AB01-AB2E, U+1E7E0-1E7E6, U+1E7E8-1E7EB, U+1E7ED-1E7EE, U+1E7F0-1E7FE;
}
@font-face {
  font-family: "Noto Sans Ethiopic";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/noto-sans-ethiopic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg-header: #04231a;
  --bg-page: #0b3a28;
  --bg-panel: #0a2f21;
  --bg-card: #10402c;
  --bg-card-hover: #155238;
  --gold: #f7d420;
  --gold-dark: #d4b310;
  --green-cta: #3fbf5a;
  --green-cta-hover: #4fd46c;
  --purple: #7b2fe0;
  --purple-hover: #8f4af0;
  --magenta: #d1189b;
  --red-badge: #d32f2f;
  --text: #ffffff;
  --muted: #9fc0b0;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --container: 1200px;
}

/* ---------- База / anti-overflow ---------- */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-page);
  color: var(--text);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans Ethiopic", "Abyssinica SIL", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Типографика ---------- */

h1, h2, h3, h4, h5 {
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 800;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-align: center;
  margin: 28px 0 18px;
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
  border-left: 5px solid var(--green-cta);
  padding-left: 14px;
  margin-top: 1.8em;
}

h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: #fff; margin-top: 1.4em; }
h4 { font-size: 1.1rem; color: var(--muted); margin-top: 1.2em; }

p { margin: 0 0 1em; }

.lead {
  max-width: 820px;
  margin: 0 auto 22px;
  font-size: 1.06rem;
  color: var(--muted);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.92rem;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  text-align: center;
}

.btn-green { background: var(--green-cta); color: #04231a; }
.btn-green:hover { background: var(--green-cta-hover); color: #04231a; transform: translateY(-1px); }

.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-hover); color: #fff; }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid var(--green-cta);
}
.btn-outline:hover { background: var(--green-cta); color: #04231a; }

.btn-lg { padding: 15px 38px; font-size: 1.05rem; }

/* ---------- Header ---------- */

.site-header {
  background: var(--bg-header);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo img { width: 130px; height: 48px; object-fit: contain; }

.logo-text {
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--gold);
  text-transform: uppercase;
  line-height: 1;
}
.logo-text small {
  display: block;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .btn { padding: 9px 20px; }


.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}
.main-nav a:hover { background: var(--bg-card); color: var(--gold); }

@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-bottom: 4px; }
  .main-nav {
    order: 5;
    flex-basis: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
    padding: 2px 0 4px;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { padding: 6px 12px; font-size: 0.88rem; flex-shrink: 0; }
  .header-actions .btn { padding: 8px 14px; font-size: 0.8rem; }
}

@media (max-width: 640px) {
  .header-actions .btn-purple { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding: 8px 10px; font-size: 0.74rem; }
  .logo-text { font-size: 1.1rem; }
}

/* ---------- Лента категорий игр (иконки) ---------- */

.game-nav {
  background: var(--bg-header);
  border-bottom: 1px solid var(--line);
}
.game-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.game-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 86px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  position: relative;
  text-align: center;
  white-space: nowrap;
}
.game-nav a:hover, .game-nav a.active { background: var(--bg-card); color: var(--gold); }
.game-nav a.active { box-shadow: inset 0 -3px 0 var(--green-cta); }
.game-nav .ico { font-size: 1.3rem; line-height: 1; }
.game-nav .new {
  position: absolute;
  top: 2px;
  right: 6px;
  background: var(--red-badge);
  color: #fff;
  font-size: 0.58rem;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
}

/* ---------- Hero ---------- */

.hero { padding: 4px 0 8px; }

.hero-shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin: 0;
}
.hero-shot img { width: 100%; height: auto; }

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 6px;
}

/* ---------- Контентные секции ---------- */

.content { padding: 10px 0 40px; }

.content section { margin-bottom: 8px; }

figure.inline-img {
  margin: 22px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-panel);
}
figure.inline-img img { width: 100%; height: auto; }
figure.inline-img figcaption {
  padding: 10px 16px;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg-panel);
}

/* ---------- Таблицы ---------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin: 18px 0 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--bg-panel);
  font-size: 0.95rem;
}

th, td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg-header);
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
}

tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg-card); }

/* ---------- Spin & Win (колесо) ---------- */

.spin-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: radial-gradient(ellipse at 70% 30%, #155238 0%, var(--bg-panel) 65%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  margin: 24px 0;
}

.wheel-wrap {
  position: relative;
  width: min(320px, 80vw);
  margin: 0 auto;
  aspect-ratio: 1;
}

.wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 10px solid var(--gold);
  box-shadow: 0 0 0 6px #04231a, 0 0 40px rgba(247, 212, 32, 0.35);
  background: conic-gradient(
    var(--purple) 0 45deg,
    var(--green-cta) 45deg 90deg,
    var(--magenta) 90deg 135deg,
    var(--gold) 135deg 180deg,
    var(--purple) 180deg 225deg,
    var(--green-cta) 225deg 270deg,
    var(--magenta) 270deg 315deg,
    var(--gold) 315deg 360deg
  );
  animation: wheel-idle 24s linear infinite;
}

@keyframes wheel-idle { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .wheel { animation: none; }
}

.wheel-ico {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wheel-ico svg { width: 26px; height: 26px; }

.wheel-hub {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 26%;
  height: 26%;
  border-radius: 50%;
  background: var(--bg-header);
  border: 4px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-weight: 900;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid var(--red-badge);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  z-index: 2;
}

.spin-copy h2 { margin-top: 0; }

@media (max-width: 768px) {
  .spin-block { grid-template-columns: 1fr; padding: 24px 18px; }
}

/* ---------- Карточки (промо) ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 20px 0;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.card .card-img { aspect-ratio: 16 / 9; background: var(--bg-panel); overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.1rem; color: var(--gold); }
.card-body p { margin: 0; font-size: 0.92rem; color: var(--muted); flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 6px; }

@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Карточки игр ---------- */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.game-card {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3;
  transition: transform 0.15s ease;
}
.game-card:hover { transform: scale(1.04); }
.game-card img { width: 100%; height: 100%; object-fit: cover; }

.game-card .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 9px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
}
.badge-new { background: var(--green-cta); color: #04231a; }
.badge-tournament { background: var(--purple); }
.badge-jackpot { background: var(--magenta); }

.game-card .game-title {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px 10px 8px;
  font-size: 0.85rem;
  font-weight: 700;
  background: linear-gradient(transparent, rgba(4, 35, 26, 0.95));
}

/* ---------- FAQ ---------- */

.faq-list { margin: 18px 0; }

.faq-item {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 700;
  color: var(--gold);
  list-style: none;
  position: relative;
  padding-right: 42px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--green-cta);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--muted); }

/* ---------- Инфобоксы ---------- */

.notice {
  border-left: 5px solid var(--gold);
  background: var(--bg-panel);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 18px 0;
}
.notice.rg { border-left-color: var(--magenta); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-header);
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 36px 0 24px;
  font-size: 0.92rem;
}

.footer-providers {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.footer-providers img { height: 28px; width: auto; opacity: 0.75; }
.footer-providers img:hover { opacity: 1; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.footer-cols .col-h {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin-bottom: 8px; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--gold); }

@media (max-width: 768px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .footer-cols { grid-template-columns: 1fr; } }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  justify-content: space-between;
  color: var(--muted);
}

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
}
.footer-social a:hover { background: var(--green-cta); color: #04231a; }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--red-badge);
  color: var(--red-badge);
  font-weight: 900;
  flex-shrink: 0;
}

/* ---------- Хлебные крошки ---------- */

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 14px 0 4px;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span[aria-current] { color: var(--gold); }

/* ---------- Пошаговые карточки ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.step {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
}
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green-cta);
  color: #04231a;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.step p { margin: 0; font-size: 0.94rem; color: var(--muted); }
.step .step-title { color: #fff; font-weight: 700; margin-bottom: 6px; display: block; }

@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
}
.cta-row.center-row { justify-content: center; }

.cta-banner {
  margin: 34px 0 10px;
  padding: 30px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 0%, #155238 0%, var(--bg-header) 80%);
  text-align: center;
}
.cta-banner-title {
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  font-weight: 800;
  color: var(--gold);
  margin: 0 0 18px;
}

@media (max-width: 560px) {
  .cta-row .btn { flex: 1 1 100%; }
  .cta-row.center-row .btn { flex: 1 1 100%; }
}

/* ---------- Утилиты ---------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
