/* ==========================================================================
   Aviatrix — Crash Game Review
   Brand palette:
   - BG:        #FFFFFF
   - Menu:      #F3F2F7
   - Header:    #FFCC2A (accent yellow)
   - Button:    #17161D (deep dark)
   - Accent:    #8a3ab9 (Aviatrix purple, used as brand logo color)
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --menu: #F3F2F7;
  --header: #FFCC2A;
  --btn: #17161D;
  --btn-text: #FFFFFF;
  --accent: #8a3ab9;
  --accent-2: #5b2a8a;
  --text: #17161D;
  --text-muted: #555160;
  --border: #E5E2EE;
  --card: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(23, 22, 29, 0.06);
  --shadow-md: 0 8px 24px rgba(23, 22, 29, 0.08);
  --shadow-lg: 0 16px 40px rgba(138, 58, 185, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-2); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--btn); color: var(--btn-text);
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============== Header ============== */
.site-header {
  background: var(--header);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 0 rgba(0,0,0,0.05);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 20px; min-height: 70px;
}
.brand img {
  height: 44px; width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.12));
}
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 8px;
  background: var(--menu);
  border-radius: 999px;
  padding: 6px;
}
.main-nav a {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: background .2s ease, color .2s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: var(--btn); color: var(--btn-text);
}
.header-cta {
  white-space: nowrap;
}
.burger {
  display: none;
  background: var(--btn); border: 0; border-radius: 10px;
  width: 44px; height: 44px; cursor: pointer;
  padding: 0; align-items: center; justify-content: center;
  flex-direction: column; gap: 4px;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--btn-text); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav { background: var(--menu); border-top: 1px solid rgba(0,0,0,.06); }
.mobile-nav ul {
  list-style: none; margin: 0; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-nav a {
  display: block; padding: 12px 14px; border-radius: 10px;
  background: var(--bg); color: var(--text); font-weight: 600;
}
.mobile-nav a.btn-primary { background: var(--btn); color: var(--btn-text); text-align: center; }

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 12px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  text-transform: uppercase; cursor: pointer; border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--btn); color: var(--btn-text);
  box-shadow: 0 4px 14px rgba(23,22,29,.25);
}
.btn-primary:hover {
  background: #2a2834; color: var(--btn-text);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(23,22,29,.32);
}
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-arrow::after { content: "→"; font-size: 18px; }

/* ============== Hero ============== */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255,204,42,.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(138,58,185,.18), transparent 60%),
    var(--bg);
  padding: 70px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.12; margin: 0 0 18px;
  letter-spacing: -.02em;
  color: var(--text);
}
.hero h1 span { color: var(--accent); }
.hero .lead {
  font-size: 19px; color: var(--text-muted);
  margin: 0 0 28px; max-width: 56ch;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 28px;
}
.hero-meta .pill {
  background: var(--menu); border-radius: 999px;
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.hero-meta .pill strong { color: var(--accent); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
  background: #1c1733;
}
.hero-image img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ============== Quick facts table ============== */
.facts {
  background: var(--menu);
  border-radius: var(--radius-lg);
  padding: 28px 28px 8px;
  margin: 40px 0;
  border: 1px solid var(--border);
}
.facts h2 { margin: 0 0 18px; font-size: 22px; }
.facts-table {
  width: 100%; border-collapse: collapse;
}
.facts-table th, .facts-table td {
  text-align: left; padding: 12px 8px;
  border-bottom: 1px solid rgba(23,22,29,.08);
  font-size: 15px; vertical-align: top;
}
.facts-table th { width: 38%; font-weight: 600; color: var(--text-muted); }
.facts-table tr:last-child th, .facts-table tr:last-child td { border-bottom: 0; }
.facts-table td strong { color: var(--accent); }

/* ============== Sections ============== */
.section { padding: 60px 0; }
.section-tight { padding: 36px 0; }
.section h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.18; margin: 0 0 18px;
  letter-spacing: -.01em;
}
.section h3 {
  font-size: clamp(20px, 2vw, 24px);
  margin: 28px 0 12px;
}
.section p { margin: 0 0 16px; color: #2a2832; }
.section ul, .section ol { padding-left: 22px; margin: 0 0 18px; }
.section li { margin-bottom: 8px; }
.section li::marker { color: var(--accent); font-weight: 700; }

.lead-text { font-size: 19px; color: var(--text-muted); }

/* Two columns helpers */
.two-col {
  display: grid; gap: 36px;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}
.two-col.reverse { grid-template-columns: 1fr 1.2fr; }
.two-col .media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--menu);
}
.two-col .media img { width: 100%; height: 100%; object-fit: cover; }

/* Stat cards */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin: 28px 0 8px;
}
.stat {
  background: var(--menu);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.stat .num { font-size: 28px; font-weight: 800; color: var(--accent); display: block; }
.stat .lbl { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Pros & Cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin: 22px 0; }
.proscons .box {
  background: var(--menu); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
}
.proscons .box h3 { margin-top: 0; }
.proscons .box ul { list-style: none; padding: 0; margin: 0; }
.proscons .box li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
}
.proscons .pros li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: #1aa564; font-weight: 800;
}
.proscons .cons li::before {
  content: "!"; position: absolute; left: 0; top: 0;
  color: #d97706; font-weight: 800;
  background: rgba(217,119,6,.12); width: 20px; height: 20px;
  border-radius: 50%; text-align: center; line-height: 20px; font-size: 13px;
}

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 70px;
  background: var(--menu);
  border-radius: var(--radius);
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 16px;
}
.steps li strong { display: block; font-size: 17px; margin-bottom: 4px; }

/* Highlight blocks */
.note {
  background: linear-gradient(135deg, rgba(138,58,185,.08), rgba(255,204,42,.10));
  border-left: 4px solid var(--accent);
  padding: 18px 22px; border-radius: 10px;
  margin: 22px 0; color: var(--text);
}
.note strong { color: var(--accent); }
.warn {
  background: rgba(217,119,6,.08);
  border-left: 4px solid #d97706;
  padding: 18px 22px; border-radius: 10px;
  margin: 22px 0; font-size: 15px;
}

/* TOC */
.toc {
  background: var(--menu);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 28px 0;
}
.toc h2 { font-size: 19px; margin: 0 0 12px; }
.toc ol { columns: 2; column-gap: 30px; padding-left: 22px; }
.toc li { break-inside: avoid; margin-bottom: 6px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #5b2a8a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 36px;
  margin: 40px 0;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  box-shadow: var(--shadow-lg);
}
.cta-banner h3,
.section .cta-banner h3 { margin: 0 0 6px; color: #ffffff; font-size: 24px; }
/* Перебиваем .section p { color: #2a2832 } и подобные правила */
.cta-banner p,
.section .cta-banner p,
.container .cta-banner p { margin: 0; color: #ffffff; opacity: .95; }
.cta-banner strong,
.cta-banner b { color: #FFCC2A; font-weight: 800; }
.cta-banner a:not(.btn) { color: #FFCC2A; text-decoration: underline; }
.cta-banner .btn {
  background: var(--header); color: var(--btn);
}
.cta-banner .btn:hover { background: #ffd84a; color: var(--btn); }

/* Promo block */
.promo {
  display: flex; align-items: center; gap: 18px;
  background: var(--header);
  border-radius: var(--radius);
  padding: 16px 22px; margin: 28px 0;
  border: 2px dashed rgba(23,22,29,.25);
}
.promo .code {
  background: var(--btn); color: var(--btn-text);
  padding: 8px 14px; border-radius: 8px;
  font-family: "Courier New", monospace;
  font-size: 18px; font-weight: 800; letter-spacing: .12em;
}
.promo span { font-weight: 600; color: var(--text); }

/* Comparison table */
.cmp-table {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.cmp-table th, .cmp-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  font-size: 15px; text-align: left;
}
.cmp-table thead th {
  background: var(--menu); color: var(--text); font-weight: 700;
}
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table td strong { color: var(--accent); }

/* FAQ */
.faq details {
  background: var(--menu); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 0 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 17px;
  padding: 18px 0;
  list-style: none;
  position: relative; padding-right: 30px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 24px; color: var(--accent); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p, .faq details > ul { padding-bottom: 18px; margin-top: 0; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin: 28px 0;
}
.gallery figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--menu); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.gallery figure img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%; height: auto;
}
.gallery figcaption {
  padding: 10px 14px; font-size: 13px; color: var(--text-muted);
}

/* Breadcrumbs (legacy в страницах — оставлено для обратной совместимости) */
.crumbs {
  font-size: 14px; color: var(--text-muted);
  padding: 14px 0; margin-top: 8px;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-current] { color: var(--text); font-weight: 600; }
.crumbs .sep { margin: 0 8px; opacity: .5; }

/* Breadcrumbs Bar (новая микроразметка) */
.breadcrumbs-bar {
  background: var(--menu);
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-size: 14px;
  padding: 10px 0;
}
.breadcrumbs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  color: var(--text-muted);
}
.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
}
.breadcrumbs-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s ease;
}
.breadcrumbs-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.breadcrumbs-item [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}
.breadcrumbs-sep {
  margin: 0 10px;
  opacity: .55;
  color: var(--text-muted);
}
@media (max-width: 420px) {
  .breadcrumbs-bar { font-size: 12px; padding: 8px 0; }
  .breadcrumbs-sep { margin: 0 6px; }
}

/* Author / opinion */
.opinion {
  background: var(--menu);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 26px 0;
  border-left: 4px solid var(--header);
  position: relative;
}
.opinion::before {
  content: "“"; position: absolute; right: 18px; top: -4px;
  font-size: 72px; color: rgba(138,58,185,.18); font-family: Georgia, serif;
  line-height: 1;
}
.opinion strong { color: var(--accent); }

/* ============== Footer ============== */
.site-footer {
  background: var(--btn); color: #cfcdda; margin-top: 60px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding: 50px 20px 30px;
}
.footer-col h3 { color: #fff; font-size: 17px; margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #cfcdda; font-size: 15px; }
.footer-col a:hover { color: var(--header); }
.footer-note { font-size: 14px; line-height: 1.6; color: #9b97ad; margin-top: 14px; }
.footer-bottom {
  border-top: 1px solid #2a2834;
  padding: 18px 20px 26px;
  font-size: 13px; color: #8b87a0;
}
.footer-bottom p { margin: 0; }

/* ============== Responsive ============== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-image { max-width: 520px; margin: 0 auto; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .main-nav, .header-cta { display: none; }
  .burger { display: inline-flex; }
  .hero { padding: 40px 0 36px; }
  .section { padding: 40px 0; }
  .proscons { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .cta-banner { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 20px 20px; }
  .promo { flex-direction: column; align-items: flex-start; }
  .facts { padding: 20px; }
  .facts-table th, .facts-table td { padding: 10px 4px; font-size: 14px; }
  .facts-table th { width: 50%; }
  .opinion { padding: 18px 20px; }
  .steps li { padding: 16px 14px 14px 60px; }
  .steps li::before { left: 12px; width: 32px; height: 32px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 28px; }
  .btn { padding: 12px 20px; font-size: 14px; }
  .hero .lead { font-size: 16px; }
}

/* Print friendly */
@media print {
  .site-header, .site-footer, .cta-banner, .burger, .header-cta { display: none; }
  body { color: #000; background: #fff; }
}

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