/* =========================================================================
   Mostbet UZ (uzbekreview.com / mostbet.uzbekreview.com) — base stylesheet
   Owner map: tokens + reset + header/footer/nav/cookie/to-top/crumbs = tech-seo.
   The full-width tile-mosaic sections, the bottom-centre floating pill-menu
   (signature layout feature) and the category filter chips with live counter
   are appended BELOW by html-front — do not remove or reorder anything above
   the "html-front appends below" marker.
   ========================================================================= */

:root{
  /* Brand tokens — почти чёрный + оранжевый (см. TEMPLATE_SPEC.md) */
  --bg:#0A0E14;
  --bg-2:#141A24;
  --accent:#428CDC;
  --cta:#FB4F01;
  --card:#1B2330;
  --card-2:#232C3B;
  --text-inv:#F3F7FC;
  --muted:rgba(243,247,252,.66);
  --radius:16px;
  --wrap:1160px;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-inv);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* Numbers — tabular figures site-wide (bonus amounts, limits, widgets…) */
.num, time, output { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--cta); color: #fff;
  padding: 10px 18px; border-radius: var(--radius);
  font-weight: 700; z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius); padding: 11px 22px; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap; font-size: .95rem;
}
.btn-cta { background: var(--cta); color: #17100A; }
.btn-cta:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: rgba(243, 247, 252, .3); color: var(--text-inv); }
.btn-ghost:hover { border-color: var(--text-inv); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(243, 247, 252, .1);
}
.header-inner {
  display: flex; align-items: center; gap: 16px; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.1rem; color: var(--text-inv);
  margin-right: auto;
}
.brand img { border-radius: 8px; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 22px; }
.nav-list a { color: rgba(243, 247, 252, .72); font-weight: 600; font-size: .95rem; }
.nav-list a:hover,
.nav-list a[aria-current="page"] { color: var(--text-inv); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.nav-toggle {
  display: none; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border: 1px solid rgba(243, 247, 252, .22); border-radius: var(--radius);
  color: var(--text-inv);
}
.burger, .burger::before, .burger::after {
  display: block; width: 18px; height: 2px; background: var(--text-inv); position: relative;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { position: relative; }
  .nav-list {
    position: absolute; right: 0; top: calc(100% + 12px);
    flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--card); border: 1px solid rgba(243, 247, 252, .12);
    border-radius: var(--radius); padding: 10px; min-width: 190px;
    display: none;
  }
  .nav-list.open { display: flex; }
  .nav-list a { display: block; padding: 8px 10px; width: 100%; }
}

/* ---------- Breadcrumbs (content depth-1 pages only — home is the
   canonical-target and carries emoji-schema crumbs instead, no visible nav) ---------- */
.crumbs {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px 20px;
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: rgba(243, 247, 252, .6); }
.crumbs a { color: rgba(243, 247, 252, .6); }
.crumbs a:hover { color: var(--text-inv); }
.crumbs [aria-current="page"] { color: var(--text-inv); }

/* ---------- "Last updated" line (home only) ---------- */
.last-updated { text-align: center; color: rgba(243, 247, 252, .55); font-size: .85rem; padding: 24px 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); padding-block: 32px; margin-top: 40px; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer-brand { font-weight: 800; font-size: 1.05rem; color: var(--text-inv); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-nav a { color: rgba(243, 247, 252, .68); font-size: .9rem; }
.footer-nav a:hover { color: var(--text-inv); }
.footer-note, .footer-copy { max-width: 760px; color: rgba(243, 247, 252, .5); font-size: .8rem; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgba(243, 247, 252, .35); font-weight: 800; font-size: .72rem;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 500;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  max-width: 720px; margin-inline: auto;
  background: var(--card); color: var(--text-inv);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
.cookie-banner p { font-size: .85rem; color: var(--text-inv); flex: 1 1 260px; }
.cookie-banner a { color: var(--accent); font-weight: 600; }
.cookie-banner[hidden] { display: none; }
/* NOTE for html-front: the bottom-centre floating pill-menu (signature
   layout feature) also docks near the viewport bottom. Keep it above this
   banner (higher z-index, e.g. >500) or add a bottom offset so they never
   overlap — the same pattern as the sticky-CTA note in sibling projects. */

/* ---------- Back-to-top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px;
  border-radius: 50%; border: none; background: var(--cta); color: #fff;
  font-size: 1.15rem; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 400;
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { filter: brightness(1.08); }
/* NOTE for html-front: on <768px this may need a bottom offset so it clears
   the floating pill-menu / cookie banner. */

/* =========================================================================
   html-front appends the full-width tile-mosaic sections, the bottom-centre
   floating pill-menu and the category filter-chips-with-live-counter styles
   below this line.
   ========================================================================= */

:root{
  --z-dropdown:100; --z-sticky:200; --z-pillnav:550; --z-overlay:900;
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-6:24px; --space-8:32px; --space-12:48px; --space-16:64px;
  --measure:720px;
}

/* ---------- Section rhythm ---------- */
.section{ padding-block: clamp(var(--space-8), 6vw, var(--space-16)); }
.section-alt{ background: var(--bg-2); }

/* ---------- Prose (narrow measure, ~720px) — verbatim article text ---------- */
.prose{
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: 20px;
}
.prose > * + *{ margin-top: var(--space-4); }
.prose h1{ font-size: clamp(1.7rem, 3.6vw + .8rem, 2.6rem); line-height: 1.2; font-weight: 800; }
.prose h2{ font-size: clamp(1.35rem, 2vw + .8rem, 1.8rem); line-height: 1.25; font-weight: 800; margin-top: var(--space-12); }
.prose h2:first-child{ margin-top: 0; }
.prose h3{ font-size: 1.15rem; font-weight: 700; margin-top: var(--space-8); color: var(--accent); }
.prose p{ color: rgba(243,247,252,.86); }
.prose ul{ display: grid; gap: var(--space-3); }
.prose li{
  position: relative; padding-left: 22px; color: rgba(243,247,252,.86);
}
.prose li::before{
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--cta);
}
.prose a{ color: var(--accent); text-decoration: underline; }

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent); background: rgba(66,140,220,.12);
  border: 1px solid rgba(66,140,220,.3); border-radius: 999px;
  padding: 6px 14px; margin-bottom: var(--space-4);
}

.hero-ctas{ display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* ---------- Tables (verbatim article tables + widget access table) ---------- */
.table-wrap{ overflow-x: auto; border-radius: var(--radius); border: 1px solid rgba(243,247,252,.12); }
.prose table{ min-width: 480px; }
.prose th, .prose td{ text-align: left; padding: 12px 16px; font-size: .92rem; }
.prose thead th{ background: var(--card-2); color: var(--text-inv); font-weight: 700; }
.prose tbody tr:nth-child(odd){ background: rgba(243,247,252,.03); }
.prose tbody td{ color: rgba(243,247,252,.82); border-top: 1px solid rgba(243,247,252,.08); }

@media (max-width: 640px){
  .prose table, .prose thead, .prose tbody, .prose tr, .prose td{ display: block; }
  .prose thead{ display: none; }
  .prose table{ min-width: 0; }
  .prose tr{ border-top: 1px solid rgba(243,247,252,.12); padding: var(--space-3) var(--space-4); }
  .prose tr:first-child{ border-top: 0; }
  .prose td{
    display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3);
    padding: 6px 0; border-top: 0;
  }
  .prose td::before{
    content: attr(data-label); font-weight: 700; color: var(--muted); flex-shrink: 0;
  }
}

/* ---------- Full-bleed tile mosaic (signature layout) ---------- */
.mosaic-head{ max-width: var(--measure); margin-inline: auto; padding-inline: 20px; margin-bottom: var(--space-6); }
.mosaic-title{ font-size: 1.3rem; font-weight: 800; margin: 0 0 var(--space-2); }
.mosaic-sub{ color: var(--muted); font-size: .92rem; margin: 0; }

.chip-row{
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  max-width: var(--measure); margin: 0 auto var(--space-6); padding-inline: 20px;
}
.chip{
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border-radius: 999px; border: 1px solid rgba(243,247,252,.22);
  background: var(--card); color: rgba(243,247,252,.8);
  font-weight: 700; font-size: .88rem; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover{ border-color: var(--accent); }
.chip[aria-pressed="true"]{ background: var(--accent); border-color: var(--accent); color: #fff; }
.chip:focus-visible, .pill-nav button:focus-visible, .btn:focus-visible, .btn-ghost:focus-visible{
  outline: 2px solid var(--text-inv); outline-offset: 2px;
}

.tile-counter{
  max-width: var(--measure); margin: 0 auto var(--space-4); padding-inline: 20px;
  font-size: .82rem; color: var(--muted);
}

.tile-mosaic{
  display: grid; gap: 2px; background: rgba(243,247,252,.08);
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
}
.tile{
  background: var(--card); padding: var(--space-6) var(--space-4);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: 128px; text-align: center;
}
.tile img{ max-height: 34px; width: auto; object-fit: contain; filter: grayscale(0) brightness(1.05); }
.tile-icon{
  width: 40px; height: 40px; border-radius: 12px; background: rgba(66,140,220,.14);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.tile-name{ font-size: .82rem; font-weight: 700; color: rgba(243,247,252,.75); }
.tile[hidden]{ display: none; }

@media (prefers-reduced-motion: no-preference){
  .tile{ transition: transform .15s ease; }
  .tile:hover{ transform: translateY(-2px); }
}

/* ---------- Widget panels (bonus / promo / payments) — chrome, not article prose ---------- */
.widget{
  max-width: var(--measure); margin-inline: auto; padding-inline: 20px;
  margin-top: var(--space-8);
}
.widget-panel{
  background: var(--card); border: 1px solid rgba(243,247,252,.1);
  border-radius: var(--radius); padding: var(--space-6);
}
.widget-title{ font-size: 1.05rem; font-weight: 800; margin: 0 0 var(--space-3); }
.widget-copy{ color: rgba(243,247,252,.78); font-size: .95rem; margin: 0 0 var(--space-4); }
.widget-copy:last-child{ margin-bottom: 0; }

.stat-grid{
  display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-bottom: var(--space-4);
}
.stat-card{
  background: var(--card-2); border-radius: 12px; padding: var(--space-4);
  text-align: center;
}
.stat-value{ display: block; font-size: 1.5rem; font-weight: 800; color: var(--cta); }
.stat-label{ display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; }

.payment-strip{
  background: none; border: 0; padding: 0;
  display: grid; gap: 2px; background: rgba(243,247,252,.08);
  grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
  border-radius: var(--radius); overflow: hidden;
}
.payment-strip .tile{ min-height: 92px; padding: var(--space-4); }
.payment-strip .tile img{ max-height: 28px; }

/* ---------- Floating pill-menu (bottom-centre, scrollspy) ---------- */
.pill-nav{
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  z-index: var(--z-pillnav);
  display: flex; align-items: center; gap: 2px;
  background: rgba(27, 35, 48, .92); backdrop-filter: blur(8px);
  border: 1px solid rgba(243,247,252,.14); border-radius: 999px;
  padding: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  max-width: calc(100vw - 24px); overflow-x: auto;
}
.pill-nav button{
  flex-shrink: 0; padding: 9px 16px; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: rgba(243,247,252,.68);
  white-space: nowrap;
}
.pill-nav button[aria-current="location"]{ background: var(--cta); color: #fff; }
/* Only the pages that actually render the pill-menu (home) get the body
   offset — main.js adds this class when it finds a .pill-nav in the DOM, so
   inner pages (no pill-menu) don't carry dead bottom padding. */
body.has-pillnav{ padding-bottom: 84px; }

@media (max-width: 640px){
  .pill-nav{ gap: 0; }
  .pill-nav button{ padding: 9px 12px; font-size: .78rem; }
}

/* Offset the shared to-top button and cookie banner (owned above the marker)
   so neither collides with the floating pill-menu, per the NOTEs left next
   to .to-top / .cookie-banner. Only pages carrying `body.has-pillnav` (home)
   render the pill-menu, so inner pages keep the original bottom-16/18
   positions untouched. */
body.has-pillnav .cookie-banner{ bottom: 84px; z-index: calc(var(--z-pillnav) + 10); }
@media (max-width: 900px){
  body.has-pillnav .to-top{ bottom: 78px; }
}
