:root {
  color-scheme: dark;
  --bg: #070403;
  --bg-soft: #120907;
  --panel: #1b0f0c;
  --panel-2: #25140f;
  --line: rgba(231, 179, 102, .22);
  --line-strong: rgba(255, 216, 128, .44);
  --text: #f7efe4;
  --muted: #c8b4a0;
  --gold: #f6c866;
  --purple: #8f42ff;
  --green: #58e640;
  --shadow: 0 22px 60px rgba(0, 0, 0, .48);
  --radius: 8px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at 18% 0%, rgba(143, 66, 255, .16), transparent 31rem), radial-gradient(circle at 80% 12%, rgba(88, 230, 64, .10), transparent 28rem), linear-gradient(180deg, #060302 0%, #0b0503 36%, #070403 100%);
  color: var(--text);
  line-height: 1.65;
}
a { color: #ffd37a; text-decoration: none; }
a:hover { color: #fff0b8; }
img { max-width: 100%; display: block; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(9, 4, 3, .94); border-bottom: 1px solid rgba(246, 200, 102, .18); backdrop-filter: blur(14px); }
.topbar { width: min(1240px, calc(100% - 32px)); margin: 0 auto; min-height: 82px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.brand img, .footer-brand img { filter: drop-shadow(0 8px 20px rgba(143, 66, 255, .45)); }
.brand img { width: 235px; height: auto; }
.main-nav { display: flex; justify-content: center; gap: 8px; align-items: center; }
.main-nav a { padding: 10px 12px; color: #eadbcb; font-weight: 800; text-transform: uppercase; font-size: 13px; border-bottom: 2px solid transparent; }
.main-nav a[aria-current="page"], .main-nav a:hover { color: #fff; border-color: var(--gold); }
.header-actions { display: flex; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 18px; border-radius: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: 0; color: #fff; border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 10px 24px rgba(0,0,0,.35); }
.btn-ghost { background: linear-gradient(180deg, #4d3027, #24100d); }
.btn-green { background: linear-gradient(180deg, #7ff060 0%, #229518 48%, #0f5c0c 100%); }
.btn-large { min-height: 52px; padding-inline: 28px; }
.burger, .menu-toggle { display: none; }
.breadcrumbs { width: min(1180px, calc(100% - 32px)); margin: 20px auto 0; color: var(--muted); font-size: 14px; }
.breadcrumbs a::after { content: "/"; color: #806b56; margin: 0 9px; }
.content-shell { width: min(1180px, calc(100% - 32px)); margin: 18px auto 0; }
.hero { position: relative; overflow: hidden; display: block; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #120805; box-shadow: var(--shadow); }
.hero-media { position: relative; overflow: hidden; aspect-ratio: 1904 / 826; background: #090403; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,4,3,.96) 0%, rgba(7,4,3,.82) 33%, rgba(7,4,3,.16) 66%, rgba(7,4,3,.02) 100%); pointer-events: none; }
.hero::after { display: none; }
.hero-copy { position: absolute; inset: 0 auto auto 0; z-index: 1; width: min(760px, 66%); padding: clamp(22px, 2.8vw, 36px); }
.hero-under { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 18px clamp(24px, 3.4vw, 42px) 20px; background: linear-gradient(180deg, rgba(16,7,5,.96), rgba(9,4,3,.98)); border-top: 1px solid rgba(246, 200, 102, .22); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 16px; color: #fff7ea; }
h1 { font-size: clamp(30px, 3.2vw, 44px); text-wrap: balance; }
h2 { font-size: clamp(26px, 3.4vw, 40px); margin-top: 44px; }
h3 { font-size: clamp(20px, 2vw, 25px); margin-top: 28px; color: #ffe4a3; }
p { margin: 0 0 18px; color: #ead8c7; }
.hero p { font-size: 13px; line-height: 1.42; color: #f4e7d8; max-width: 78ch; }
.hero-cta { margin: 0; }
.hero-under .notice { margin: 0; }
.notice, .author-box, .pros-cons, .faq-item, .toc, table { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(37,20,15,.92), rgba(18,9,7,.94)); border-radius: var(--radius); }
.notice { padding: 16px 18px; color: #fff1d2; }
.toc { margin: 22px 0 34px; overflow: hidden; }
.toc summary { cursor: pointer; padding: 18px 20px; font-weight: 900; color: #fff; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; float: right; color: var(--gold); font-size: 24px; line-height: 1; }
.toc[open] summary::after { content: "-"; }
.toc ul { margin: 0; padding: 0 20px 18px 38px; columns: 2; column-gap: 36px; }
.toc li { break-inside: avoid; margin: 6px 0; color: #b99264; }
section:not(.hero) { margin: 0 0 22px; }
ul, ol { color: #ead8c7; padding-left: 24px; }
li { margin-bottom: 8px; }
.pros-cons { padding: 22px; display: grid; gap: 10px; }
.author-box, .faq-item { padding: 22px; margin: 18px 0; }
table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 22px 0 30px; overflow: hidden; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid rgba(231,179,102,.15); vertical-align: top; }
th { color: #fff1bf; background: rgba(246, 200, 102, .08); font-weight: 900; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
.site-footer { margin-top: 70px; background: #050201; border-top: 1px solid var(--line); }
.footer-inner { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0; display: grid; grid-template-columns: auto 1fr; gap: 22px 34px; align-items: center; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: flex-end; }
.footer-inner p { grid-column: 1 / -1; margin: 0; color: #a88f7b; font-size: 14px; }
@media (max-width: 900px) {
  .topbar { width: calc(100% - 32px); max-width: 1240px; grid-template-columns: auto 1fr auto; min-height: 74px; gap: 10px; padding: 10px 0 12px; }
  .brand { grid-column: 1; grid-row: 1; }
  .brand img { width: 170px; height: auto; }
  .burger { display: inline-flex; grid-column: 3; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: #1b0f0c; }
  .burger span { width: 22px; height: 2px; background: #fff0c7; }
  .header-actions { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; display: flex; flex-direction: column; gap: 8px; min-width: 0; width: 100%; }
  .header-actions .btn { min-width: 0; width: 100%; min-height: 38px; padding: 8px 10px; font-size: 12px; white-space: nowrap; text-transform: none; }
  .main-nav { display: none; grid-column: 1 / -1; grid-row: 3; width: 100%; padding: 0 0 4px; flex-direction: column; align-items: stretch; }
  .main-nav a { border: 1px solid rgba(246,200,102,.14); border-radius: 8px; background: rgba(37,20,15,.78); }
  .menu-toggle:checked ~ .main-nav { display: flex; }
  .content-shell, .breadcrumbs { width: calc(100% - 32px); max-width: 1180px; }
  .hero { display: block; aspect-ratio: auto; }
  .hero-media { position: relative; inset: auto; aspect-ratio: 1904 / 826; border-bottom: 1px solid rgba(246, 200, 102, .22); }
  .hero-media img { object-fit: cover; }
  .hero-media::after { background: linear-gradient(180deg, rgba(7,4,3,.08) 0%, rgba(7,4,3,.32) 100%); }
  .hero-copy { position: relative; inset: auto; width: 100%; padding: 20px 18px 10px; }
  .hero-under { display: block; padding: 0 18px 22px; background: transparent; border-top: 0; }
  .hero-under .hero-cta { margin-top: 18px; }
  .hero p { font-size: 16px; }
  .toc ul { columns: 1; }
  table { display: block; width: 100%; overflow: visible; white-space: normal; background: transparent; border: 0; }
  table thead { display: none; }
  table tbody, table tr, table th, table td { display: block; width: 100%; }
  table tr {
    margin: 0 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(37,20,15,.94), rgba(18,9,7,.96));
  }
  table th, table td { border-bottom: 1px solid rgba(231,179,102,.13); padding: 12px 14px; }
  table tr:last-child th, table tr:last-child td { border-bottom: 1px solid rgba(231,179,102,.13); }
  table tr th:last-child, table tr td:last-child { border-bottom: 0; }
  table tbody th { color: #fff1bf; background: rgba(246, 200, 102, .08); }
  table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: #d5ab68;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-inner nav { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .topbar, .content-shell, .breadcrumbs, .footer-inner { width: calc(100% - 32px); max-width: 1180px; }
  .brand img { width: 160px; }
  .header-actions .btn { font-size: 13px; padding-inline: 6px; }
  h1 { font-size: 29px; }
  h2 { font-size: 25px; }
  .notice, .author-box, .pros-cons, .faq-item { padding: 16px; }
  .toc summary { padding: 16px; }
  .toc ul { padding: 0 16px 16px 32px; }
}
