/* ==========================================================================
   WOWBet — wowbet-apk-uz.com
   Yagona uslub fayli (barcha sahifalar uchun bir xil)
   Brend ranglari: #8840fc · #ffffff · #2b2e4f · #131524 · sayt foni yorug’
   ========================================================================== */

/* ---------- Tokenlar ---------- */
:root {
  --font-display: 'Manrope', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;

  --accent: #8840fc;
  --accent-strong: #6f27e0;
  --accent-soft: oklch(0.955 0.028 300);
  --accent-line: oklch(0.86 0.06 300);

  --bg: oklch(0.974 0.007 300);
  --surface: #ffffff;
  --surface-2: oklch(0.985 0.004 300);
  --fg: #2b2e4f;
  --muted: oklch(0.48 0.035 285);
  --border: oklch(0.9 0.012 300);

  --ink: #131524;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px oklch(0.32 0.05 285 / 0.06);
  --shadow: 0 12px 32px oklch(0.32 0.05 285 / 0.09);
  --shadow-lg: 0 22px 56px oklch(0.32 0.05 285 / 0.16);
  --container: 1220px;
  --header-h: 72px;
}

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

* { margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
picture { display: block; }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

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

/* ---------- Tipografika ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  color: var(--fg);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(28px, 3.6vw, 42px); }
h2 {
  font-size: clamp(22px, 2.4vw, 31px);
  margin: 0 0 16px;
  scroll-margin-top: 96px;
}
h3 {
  font-size: clamp(18px, 1.7vw, 21px);
  margin: 26px 0 10px;
  scroll-margin-top: 96px;
}
h4 { font-size: 17px; }

p { margin: 0 0 15px; }
strong, b { font-weight: 700; color: var(--fg); }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin: 0 0 8px; }
li::marker { color: var(--accent); font-weight: 700; }

/* ---------- Tugmalar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none !important;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px oklch(0.55 0.19 300 / 0.32);
}
.btn-primary:hover { background: var(--accent-strong); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: var(--surface);
  color: var(--accent-strong);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent-soft); color: var(--accent-strong); transform: translateY(-1px); }
.btn-lg { padding: 16px 34px; font-size: 16.5px; min-height: 52px; }
.btn-sm { padding: 10px 18px; font-size: 14px; min-height: 40px; }
.btn-block { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }

/* ---------- Sarlavha (header) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none !important;
}
.logo img { width: 148px; height: auto; }
.logo:hover img { opacity: .88; }

.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav li { margin: 0; }
.main-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent-strong); text-decoration: none; }
.main-nav a.active { background: var(--accent-soft); color: var(--accent-strong); }

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

.burger {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Asosiy tartib: kontent + yon panel ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 34px;
  align-items: start;
  padding-bottom: 40px;
}
.content { min-width: 0; }

main { display: block; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 30px;
  align-items: center;
  padding: 34px 0 10px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}
.hero-text p { font-size: 17px; color: var(--muted); max-width: 56ch; }
.hero-media { display: flex; justify-content: center; }
.hero-media a {
  display: block;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 26px 64px oklch(0.55 0.19 300 / 0.26), var(--shadow-lg);
  background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-media a:hover { transform: translateY(-3px); }
.hero-media img { width: auto; max-height: 560px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}
.hero-facts li {
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}
.hero-facts span { color: var(--accent-strong); font-family: var(--font-display); font-weight: 800; }

/* ---------- Yon panel ---------- */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  display: grid;
  gap: 14px;
  align-content: start;
}
.side-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.side-eyebrow {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
.side-score {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--fg);
}
.side-score span { font-size: 17px; color: var(--muted); font-weight: 700; }
.side-stars {
  margin: 8px 0 10px;
  color: var(--accent);
  font-size: 15px;
  letter-spacing: 2px;
}
.side-card p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.side-card p:last-child { margin-bottom: 0; }
.side-cta { margin-top: 2px; }

.side-title {
  font-size: 15px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.side-facts { list-style: none; padding: 0; margin: 0; }
.side-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13.5px;
}
.side-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.side-facts dt, .side-facts .k { color: var(--muted); }
.side-facts .v { font-weight: 700; color: var(--fg); text-align: right; }

.side-links { list-style: none; padding: 0; margin: 0; }
.side-links li { margin: 0; }
.side-links a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.side-links li:last-child a { border-bottom: 0; padding-bottom: 0; }
.side-links a:hover { color: var(--accent-strong); text-decoration: none; }

.side-age {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.side-age .side-eyebrow { color: oklch(0.82 0.03 300); }
.side-age strong { color: #fff; display: block; font-family: var(--font-display); font-size: 15px; margin-bottom: 6px; }
.side-age p { color: oklch(0.86 0.02 300); font-size: 13px; margin: 0; }

/* ---------- Table of Contents ---------- */
.toc {
  margin: 26px 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.toc > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
  list-style: none;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .2s ease;
}
.toc[open] > summary::after { transform: rotate(225deg) translateY(-1px); }
.toc > summary:hover { color: var(--accent-strong); }
.toc-list { padding: 0 20px 18px; border-top: 1px solid var(--border); }
.toc-list ol {
  margin: 14px 0 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 28px;
}
.toc-list li { margin: 0 0 8px; break-inside: avoid; font-size: 15px; }
.toc-list a { color: var(--fg); font-weight: 600; }
.toc-list a:hover { color: var(--accent-strong); }

/* ---------- Bo’limlar ---------- */
section { scroll-margin-top: 92px; }
.content > section:not(.hero, .page-head) { padding: 30px 0 6px; border-top: 1px solid var(--border); }
.content > section.hero + .toc + section { border-top: 0; }

.section-shot {
  display: block;
  margin: 20px 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s ease, transform .18s ease;
}
.section-shot:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.section-shot img { width: 100%; }

/* ---------- Ro’yxatlar ---------- */
.list-check { list-style: none; padding: 0; }
.list-check li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.list-check li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: .62em;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Jadvallar ---------- */
.table-scroll {
  margin: 20px 0 22px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-line) transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--surface);
  /* Chet soyalari: jadval yon tomonga surilishini ko’rsatadi (15px = katak cheti) */
  background-image:
    linear-gradient(to right, var(--surface) 0, var(--surface) 5px, oklch(1 0 0 / 0) 15px),
    linear-gradient(to left, var(--surface) 0, var(--surface) 5px, oklch(1 0 0 / 0) 15px),
    linear-gradient(to right, oklch(0.42 0.05 285 / 0.2), oklch(0.42 0.05 285 / 0)),
    linear-gradient(to left, oklch(0.42 0.05 285 / 0.2), oklch(0.42 0.05 285 / 0));
  background-position: left center, right center, left center, right center;
  background-repeat: no-repeat;
  background-size: 15px 100%, 15px 100%, 15px 100%, 15px 100%;
  background-attachment: local, local, scroll, scroll;
  box-shadow: var(--shadow-sm);
}
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-track { background: transparent; }
.table-scroll::-webkit-scrollbar-thumb {
  background: var(--accent-line);
  border-radius: var(--radius-pill);
}
table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 15px;
}
caption {
  padding: 15px 18px 13px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
th, td {
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
thead th {
  background: var(--surface-2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; color: var(--fg); }
tbody tr:hover { background: var(--accent-soft); }

/* ---------- Callout ---------- */
.note {
  margin: 20px 0 22px;
  padding: 16px 18px 16px 20px;
  border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 15px;
}
.note p:last-child { margin-bottom: 0; }
.note strong { color: var(--accent-strong); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin: 18px 0 6px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.faq-item > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--fg);
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: '+';
  margin-left: auto;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.faq-item[open] > summary::after { content: '\2212'; }
.faq-item > summary:hover { background: var(--accent-soft); color: var(--accent-strong); }
.faq-body { padding: 0 18px 16px; border-top: 1px solid var(--border); }
.faq-body p { margin: 14px 0 0; font-size: 15.5px; }

/* ---------- Muallif bloki ---------- */
.author-block { padding: 30px 0 6px; border-top: 1px solid var(--border); }
.author-card {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.author-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
}
.author-name {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--fg);
}
.author-role { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--accent-strong); }
.author-card p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 20px 0 4px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
}
.breadcrumbs li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: '-'; color: var(--muted); }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--accent-strong); }
.breadcrumbs [aria-current] { color: var(--fg); font-weight: 700; }

/* ---------- Sahifa sarlavhasi (ichki) ---------- */
.page-head { padding: 8px 0 4px; }
.page-head p { font-size: 17px; color: var(--muted); max-width: 62ch; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  background: var(--ink);
  color: oklch(0.88 0.015 300);
  font-size: 14.5px;
}
.site-footer a { color: oklch(0.93 0.01 300); }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1.15fr 1fr 1.15fr;
  gap: 30px;
  padding: 46px 0 34px;
}
.footer-col h4 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.footer-logo { display: inline-block; margin-bottom: 14px; }
.footer-logo img { width: 152px; }
.footer-desc { font-size: 14px; color: oklch(0.83 0.015 300); }
.footer-col ul { list-style: none; margin: 0 0 18px; padding: 0; }
.footer-col li { margin: 0 0 9px; }
.footer-col ul a { font-weight: 600; }

.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pay-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: var(--radius-sm);
  background: oklch(1 0 0 / 0.07);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.footer-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-icons a, .footer-icons span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid oklch(1 0 0 / 0.16);
  border-radius: var(--radius-sm);
  background: oklch(1 0 0 / 0.07);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
}
.footer-icons a:hover { background: oklch(1 0 0 / 0.14); color: #fff; text-decoration: none; }

.footer-age {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid oklch(1 0 0 / 0.12);
}
.age-badge {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid oklch(1 0 0 / 0.5);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}
.age-note { margin: 0; font-size: 13.5px; color: oklch(0.85 0.015 300); }

.footer-bottom {
  padding: 18px 0 26px;
  border-top: 1px solid oklch(1 0 0 / 0.12);
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  padding: 0;
  font-size: 13px;
  color: oklch(0.78 0.015 300);
}

/* ---------- Mobil CTA paneli ---------- */
.cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: none;
  gap: 10px;
  padding: 8px 14px calc(10px + env(safe-area-inset-bottom));
  background: oklch(0.16 0.02 285 / 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid oklch(1 0 0 / 0.12);
  transform: translateY(110%);
  transition: transform .24s ease;
}
.cta-bar .btn { flex: 1 1 0; min-height: 40px; padding: 4px; }
.cta-bar .btn-outline {
  background: transparent;
  color: #fff;
  border-color: oklch(1 0 0 / 0.55);
}
.cta-bar .btn-outline:hover { background: oklch(1 0 0 / 0.12); color: #fff; }
body.cta-visible .cta-bar { transform: translateY(0); }

/* ---------- Moslashuvchanlik ---------- */
@media (max-width: 1120px) {
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 26px; }
}

@media (max-width: 980px) {
  :root { --header-h: 66px; }

  .burger { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 10px 20px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 13px 14px; font-size: 16px; border-radius: var(--radius-sm); }

  .header-inner { position: relative; }
  .header-actions { margin-left: auto; }
  .header-cta { display: none; }

  /* align-items: stretch — aks holda bo’limlar jadval kengligiga cho’zilib ketadi */
  .layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .content { display: contents; }
  .layout > .content > *,
  .layout > .sidebar { width: 100%; min-width: 0; max-width: 100%; }
  .hero { order: 1; padding-top: 22px; }
  .sidebar { order: 2; position: static; margin-top: 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toc { order: 3; }
  .content > section:not(.hero, .page-head) { order: 4; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero-media {  }
  .hero-media img { max-height: 550px; }
  .side-links-card { display: none; }
  .toc-list ol { columns: 1; }

  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; padding: 36px 0 26px; }
  .cta-bar { display: flex; }
  body.cta-visible { padding-bottom: 60px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .sidebar { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .cta-row .btn { width: 100%; }
  .author-card { flex-direction: column; gap: 14px; }
  .footer-age { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-facts li { font-size: 13px; }

  /* Jadval: surilish masofasini qisqartirish va vertikal zichlik */
  table { min-width: 520px; font-size: 14.5px; }
  caption { padding: 14px 18px 12px; }
  th, td { padding: 11px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 20px 0;
  justify-content: space-between;
}
.payment-item img {
  display: block;
  box-shadow: none;
  margin: 0 !important;
  border-radius: 0;
  border: none;
  max-width: 70px;
  max-height: 30px;
}
.footer-icons {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  align-items: center;
  gap: 10px;
}
.footer-icons .pay-icon {
  display: flex;
  align-items: center;
}
.footer-icons .pay-icon span {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  font-size: 12px;
  border-radius: 100%;
  border: 1px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-icons .pay-icon img {
  filter: brightness(100);
}
.main-title {
  display: flex;
  align-items: center;
}

.main-title .__right {
  margin-left: 60px;
  flex: 0 0 240px;
}
@media (max-width:800px) {
  .payments-grid {
    gap: 16px;
  }
  .payment-item img {
    max-width: 65px;
    max-height: 30px;
  }

  .table-wrap {
    overflow-x: scroll;
  }

      .main-title .__right {
    margin-left: 20px;
    flex: 0 0 220px;
  }
}
@media (max-width:639.98px) {
      .main-title {
    flex-direction: column;
  }

  .main-title .__right {
    margin-left: 0;
    flex: inherit;
  }
  .main-title .__right img {
    width: 300px !important;
  }
}