:root {
  /* Backgrounds and surfaces */
  --bg: #1a0505;
  --bg-header: #4a0404;
  --bg-footer: #2b0202;
  --bg-card: #3d0a0a;
  --bg-surf: #660e0e;
  --bg-surf2: #8b1818;

  /* Accents */
  --accent: #ffb700;
  --accent2: #ff4d00;

  /* Helpers */
  --accent-red: #ff2a2a;
  --neon: #fffb00;
  --success: #26d926;

  /* Text */
  --text: #ffffff;
  --text-light: #ffd700;
  --text2: #ffc0c0;

  /* Decor */
  --border: rgba(255, 215, 0, 0.2);
  --shadow: 0 4px 20px rgba(255, 77, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent2); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-header);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 20px;
}

.logo-link { display: inline-flex; align-items: center; }
.logo-img { height: 40px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav a {
  color: var(--text);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--bg-surf); color: var(--text-light); }
.main-nav a.active { color: var(--accent); }

.play-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #1a0505 !important;
  padding: 10px 22px !important;
  border-radius: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  box-shadow: 0 2px 12px rgba(255, 183, 0, 0.5);
  transition: transform .15s, box-shadow .2s;
}
.play-btn:hover {
  background: linear-gradient(135deg, var(--accent2), var(--accent)) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255, 77, 0, 0.6) !important;
  color: #1a0505 !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 24px;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  cursor: pointer;
}

/* ===== Layout ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

main { padding: 30px 0 60px; }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surf));
  border-radius: 14px;
  padding: 36px;
  margin-bottom: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.4rem;
  line-height: 1.15;
  color: var(--text-light);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.hero-text p { font-size: 1.05rem; color: var(--text2); margin-bottom: 22px; }

.hero-img {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 24px rgba(255, 183, 0, 0.3);
}

.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #1a0505 !important;
  padding: 14px 32px;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 183, 0, 0.5);
  transition: transform .15s, box-shadow .2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 77, 0, 0.6);
  color: #1a0505 !important;
}

.cta-block {
  background: linear-gradient(135deg, var(--bg-surf), var(--bg-surf2));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 36px 0;
}
.cta-block h2 { color: var(--text-light); margin-bottom: 14px; }
.cta-block p { color: var(--text2); margin-bottom: 22px; }

/* ===== Headings ===== */
h1 { font-size: 2.2rem; color: var(--text-light); margin-bottom: 18px; line-height: 1.2; }
h2 { font-size: 1.7rem; color: var(--text-light); margin: 32px 0 14px; line-height: 1.25; }
h3 { font-size: 1.25rem; color: var(--accent); margin: 24px 0 10px; line-height: 1.3; }

p { margin-bottom: 16px; color: var(--text); }

/* ===== Content blocks ===== */
.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 26px;
}

.page-image {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 0 0 28px;
  box-shadow: var(--shadow);
}

ul, ol { margin: 14px 0 18px 24px; color: var(--text); }
li { margin-bottom: 8px; }
ul li::marker { color: var(--accent); }
ol li::marker { color: var(--accent); font-weight: 700; }

/* ===== Tables ===== */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  background: var(--bg-surf);
  border-radius: 10px;
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: var(--bg-surf2);
  color: var(--text-light);
  font-weight: 700;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255, 183, 0, 0.06); }

/* ===== Cards grid ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 22px 0;
}
.feature-card {
  background: var(--bg-surf);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: transform .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.feature-card h3 { margin-top: 0; color: var(--text-light); }
.feature-card .icon { font-size: 1.8rem; margin-bottom: 10px; }

/* ===== Stats ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.stat-item {
  background: linear-gradient(135deg, var(--bg-surf), var(--bg-surf2));
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
}
.stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.stat-label { font-size: .9rem; color: var(--text2); }

/* ===== Breadcrumbs ===== */
.breadcrumbs {
  font-size: .9rem;
  color: var(--text2);
  margin-bottom: 18px;
  padding: 10px 0;
}
.breadcrumbs a { color: var(--accent); }
.breadcrumbs span { margin: 0 6px; color: var(--text2); }

/* ===== FAQ ===== */
.faq-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin: 30px 0;
}
.faq-section h2 { margin-top: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-weight: 700;
  color: var(--text-light);
  cursor: pointer;
  padding: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
}
details[open] .faq-q::after { content: "−"; }
.faq-a { padding: 10px 0 4px; color: var(--text2); }

/* ===== Author box ===== */
.author-box {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surf));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 40px 0 20px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: center;
}
.author-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 {
  color: var(--text-light);
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.author-info .author-role {
  color: var(--accent);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.author-info p { font-size: .92rem; color: var(--text2); margin: 0; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-footer);
  border-top: 2px solid var(--border);
  padding: 36px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 28px;
}
.footer-col h4 { color: var(--text-light); font-size: 1rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text2); font-size: .92rem; }
.footer-col a:hover { color: var(--accent); }
.footer-col p { color: var(--text2); font-size: .9rem; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  text-align: center;
  color: var(--text2);
  font-size: .85rem;
}
.age-badge {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50%;
  margin-right: 8px;
}

/* ===== Tags ===== */
.tag {
  display: inline-block;
  background: var(--bg-surf2);
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 16px;
  font-size: .82rem;
  margin: 2px 4px 2px 0;
  border: 1px solid var(--border);
}

/* ===== 404 ===== */
.page-404 {
  text-align: center;
  padding: 80px 20px;
}
.page-404 .big {
  font-size: 7rem;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 4px 20px rgba(255, 77, 0, 0.5);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 24px; }
  .hero-text h1 { font-size: 1.9rem; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 12px;
    left: 12px;
    background: var(--bg-header);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; text-align: center; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
  .hero { padding: 20px; }
  .hero-text h1 { font-size: 1.6rem; }
  .content-block, .faq-section { padding: 18px; }
  .author-box { grid-template-columns: 90px 1fr; padding: 18px; gap: 14px; }
  .author-avatar { width: 90px; height: 90px; }
  .page-404 .big { font-size: 5rem; }
  .cta-block { padding: 22px 18px; }
  .data-table { font-size: .9rem; }
  .data-table th, .data-table td { padding: 9px 8px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 10px 14px; gap: 10px; }
  .container { padding: 0 14px; }
  .hero-text h1 { font-size: 1.4rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat-value { font-size: 1.4rem; }
}
