/* SITRA V8 — bot-base.css
   Базовая типографика, layout, sticky TOC, sortable tables, FAQ-anchors, accessibility. */

:root {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-2: #16223d;
  --text: #e6edf7;
  --text-muted: #9aa6bd;
  --primary-color: #2b7fff;
  --primary-rgb: 43, 127, 255;
  --accent-color: #f59e0b;
  --accent-rgb: 245, 158, 11;
  --border: rgba(255, 255, 255, 0.08);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-strong: 0 12px 30px rgba(0, 0, 0, 0.4);
  --container: 1180px;
  --grid-color: rgba(43, 127, 255, 0.14);
  --gap: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

/* Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 999;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--accent-color); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Layout */
main { padding: 24px 0 64px; }
main > * { max-width: var(--container); padding: 0 20px; margin: 0 auto 36px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header__top {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin: 0 auto;
  padding: 14px 20px;
}
.site-logo {
  color: var(--text); text-decoration: none; font-weight: 700;
  font-size: 18px; letter-spacing: 0.2px;
}
.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: transparent; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--text); }
.nav-links {
  display: flex; gap: 14px; padding: 0; margin: 0; list-style: none;
}
.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 14px;
  padding: 6px 10px; border-radius: var(--radius-sm);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.04); }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; right: 12px; top: calc(100% + 6px);
    background: var(--surface); padding: 12px;
    border-radius: var(--radius-md); border: 1px solid var(--border);
    min-width: 200px;
  }
  .nav-links[data-state="open"] { display: flex; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin: 10px 0 0; }
.breadcrumbs__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs__list li::after { content: "›"; margin-left: 6px; color: var(--text-muted); opacity: 0.7; }
.breadcrumbs__list li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--text-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative; padding: 40px 0 24px; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(var(--primary-rgb),0.12), rgba(var(--accent-rgb),0.04));
  border: 1px solid var(--border);
}
.hero__inner { padding: 0 20px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 12px; }
.hero__lead { color: var(--text-muted); max-width: 720px; font-size: 17px; }
.hero__cta { margin-top: 18px; }

/* Cards */
.intent-cards__grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.intent-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: transform .15s ease, border-color .15s ease;
}
.intent-card:hover { transform: translateY(-2px); border-color: rgba(var(--primary-rgb), 0.6); }
.intent-card h3 { margin: 0; font-size: 17px; }
.intent-card p { color: var(--text-muted); margin: 0; font-size: 14px; }

/* TOC sticky */
.intent-toc, .faq-cluster__toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 12px 16px;
  font-size: 14px;
}
.intent-toc[data-sticky], .faq-cluster__toc[data-sticky] {
  position: sticky; top: 72px; z-index: 5;
}
.intent-toc ol, .faq-cluster__toc ol { list-style: decimal; padding-left: 20px; margin: 6px 0; }
.intent-toc a, .faq-cluster__toc a { color: var(--text-muted); text-decoration: none; }
.intent-toc a:hover, .faq-cluster__toc a:hover,
.intent-toc a[aria-current="true"], .faq-cluster__toc a[aria-current="true"] {
  color: var(--text);
}

/* Tables */
.data-table-wrap { overflow: hidden; }
.data-table-wrap__source { color: var(--text-muted); font-size: 13px; margin-top: 0; }
.data-table-wrap__scroll { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.data-table thead th { background: var(--surface-2); color: var(--text); font-weight: 600; cursor: default; }
.data-table--sortable thead th[data-sort] {
  cursor: pointer; user-select: none;
}
.data-table--sortable thead th[data-sort]::after {
  content: " ↕"; opacity: 0.5; font-size: 11px;
}
.data-table--sortable thead th[aria-sort="ascending"]::after { content: " ↑"; opacity: 1; }
.data-table--sortable thead th[aria-sort="descending"]::after { content: " ↓"; opacity: 1; }
.data-table tbody tr:hover { background: rgba(var(--primary-rgb), 0.04); }

/* First-hand */
.first-hand {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px;
}
.first-hand__meta { color: var(--text-muted); font-size: 13px; }
.first-hand__steps { padding-left: 22px; }
.first-hand__steps li { margin-bottom: 6px; }
.first-hand__verdict { margin-top: 12px; }

/* Methodology */
.methodology-box {
  background: var(--surface-2); border: 1px dashed var(--border);
  border-radius: var(--radius-md); padding: 18px;
}
.methodology-box__criteria { padding-left: 22px; }

/* Freshness */
.freshness-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(var(--primary-rgb), 0.15);
  color: var(--text);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  border: 1px solid rgba(var(--primary-rgb), 0.4);
}
.freshness-badge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.2);
}

/* CTA */
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(135deg, rgba(var(--primary-rgb),0.18), rgba(var(--accent-rgb),0.10));
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.cta-box__title { display: block; font-size: 16px; }
.cta-box__sub { color: var(--text-muted); font-size: 13px; }
.cta-box__btn {
  background: var(--primary-color);
  color: #fff; text-decoration: none; font-weight: 600;
  padding: 10px 18px; border-radius: var(--radius-sm);
}
.cta-box__btn:hover { background: #4a93ff; }

/* FAQ */
.faq__list { display: grid; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; transition: transform .15s; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 8px 0 0; color: var(--text-muted); }

/* Internal links */
.internal-links__list { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.internal-links__list li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.internal-links__list a { color: var(--text); text-decoration: none; font-weight: 600; }
.internal-links__list span { color: var(--text-muted); font-size: 13px; display: block; margin-top: 4px; }

/* Author */
.author-card {
  display: flex; gap: 14px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  align-items: flex-start;
}
.author-card__photo img { border-radius: 50%; }
.author-card__name { font-size: 15px; margin: 0 0 2px; }
.author-card__role, .author-card__experience { color: var(--text-muted); font-size: 13px; margin: 2px 0; }
.author-card__updated { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* Disclaimer */
.disclaimer-18 {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 13px;
}
.disclaimer-18__badge {
  display: inline-block; font-weight: 700;
  background: rgba(239, 68, 68, 0.8); color: #fff;
  padding: 4px 10px; border-radius: 999px;
}
.responsible-gaming {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px;
  margin-top: 14px;
  font-size: 14px;
}
.responsible-gaming__links { padding-left: 22px; }

/* Video */
.video-block__embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; }
.video-block__embed iframe { width: 100%; height: 100%; border: 0; }
.video-block__transcript { margin-top: 12px; }
.video-block__transcript-body { color: var(--text-muted); font-size: 14px; }

/* Reveal animation */
[data-reveal] { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Footer */
.site-footer { padding: 32px 20px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }
.site-footer__copy { margin: 14px 0 0; }

/* Comments / reviews */
.reviews { display: grid; gap: 12px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px; }
.review-card__header { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.review-card__name { font-weight: 600; color: var(--text); }
.review-card__text { margin: 8px 0 0; }
