:root{
  --bg:#05080d;
  --panel:#0b1220;
  --text:#f8fafc;
  --muted:#a8b3c7;
  --gold:#f6c343;
  --gold2:#ff9f1c;
  --line:rgba(255,255,255,.10);
}

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

body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  background:radial-gradient(circle at 80% 10%,rgba(246,195,67,.18),transparent 30%),#05080d;
  color:var(--text);
  line-height:1.65;
}

a{color:inherit;text-decoration:none}
.container{max-width:1180px;margin:auto;padding:0 20px}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(5,8,13,.86);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}

.nav-wrap{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}

.logo{font-size:23px;font-weight:900;white-space:nowrap}
.logo span,.footer span{color:var(--gold)}

.nav{display:flex;gap:22px;color:#d1d5db;font-weight:700;font-size:14px}
.nav a:hover{color:var(--gold)}

.menu-btn{
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:white;
  width:44px;
  height:44px;
  border-radius:12px;
  font-size:22px;
}

.search-box{display:flex;gap:8px;min-width:250px}

.search-box input{
  width:100%;
  padding:12px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:white;
}

.search-box button{
  width:42px;
  height:42px;
  border:0;
  border-radius:50%;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  font-weight:900;
}

.hero{padding:74px 0 46px;border-bottom:1px solid var(--line)}

.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:38px;
  align-items:center;
}

.badge{
  display:inline-block;
  color:var(--gold);
  border:1px solid rgba(246,195,67,.35);
  background:rgba(246,195,67,.14);
  padding:9px 16px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
}

.hero h1{
  font-size:64px;
  line-height:1.04;
  margin:24px 0 20px;
  letter-spacing:-2px;
}

.hero p{color:#cbd5e1;font-size:19px;max-width:650px}

.hero-actions{display:flex;gap:14px;margin-top:30px}

.btn{
  border:1px solid var(--line);
  padding:15px 24px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
}

.primary{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#111}
.secondary{background:rgba(255,255,255,.06);color:white}

.hero-visual{
  min-height:360px;
  border:1px solid rgba(246,195,67,.25);
  border-radius:30px;
  padding:36px;
  background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.03));
  box-shadow:0 22px 90px rgba(0,0,0,.42);
}

.crown{
  width:128px;
  height:128px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(135deg,var(--gold),#7c4a03);
  color:#111;
  font-size:72px;
  margin-bottom:26px;
}

.section{padding:38px 20px}

.section-title{
  display:flex;
  align-items:end;
  justify-content:space-between;
  margin-bottom:20px;
}

.section-title h2{
  font-size:30px;
  border-left:5px solid var(--gold);
  padding-left:12px;
}

.section-title p{color:var(--muted)}
.section-title a{color:var(--gold);font-weight:900}

.article-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}

.post-card,.map-card{
  border:1px solid var(--line);
  border-radius:20px;
  padding:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  transition:.2s;
}

.post-card:hover,.map-card:hover{
  transform:translateY(-5px);
  border-color:rgba(246,195,67,.5);
}

.tag{
  display:inline-block;
  padding:6px 11px;
  border-radius:999px;
  background:#6d28d9;
  font-size:12px;
  font-weight:900;
  margin-bottom:25px;
}

.post-card h3{font-size:22px;margin-bottom:12px}
.post-card p{color:var(--muted);margin-bottom:16px}
.post-card small{color:#cbd5e1}

.topic-map{padding:20px 20px 50px}
.topic-map h2{font-size:30px;margin-bottom:8px}
.topic-map p{color:var(--muted);margin-bottom:20px}

.topic-map-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.map-card{text-align:center;font-weight:900}

.footer{
  border-top:1px solid var(--line);
  padding:36px 0;
  color:var(--muted);
}

.footer-grid{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:30px;
}

.footer h3,.footer h4{color:white;margin-bottom:12px}
.footer a{display:block;margin:6px 0;color:var(--muted)}

.sidebar{
  position:fixed;
  top:0;
  left:-340px;
  width:320px;
  height:100vh;
  z-index:100;
  background:#070b12;
  border-right:1px solid var(--line);
  padding:24px;
  transition:.25s;
  overflow-y:auto;
}

.sidebar.open{left:0}

.close-btn{
  float:right;
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  color:white;
  font-size:24px;
}

.sidebar h2{margin:46px 0 8px}
.sidebar p{color:var(--muted);margin-bottom:22px}

.side-group{
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  margin-bottom:14px;
  background:rgba(255,255,255,.04);
}

.side-group h3{margin-bottom:10px;color:var(--gold)}
.side-group a{display:block;color:#d1d5db;padding:7px 0}

.overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  z-index:90;
  display:none;
}

.overlay.show{display:block}

@media(max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .article-grid{grid-template-columns:1fr}
  .topic-map-grid{grid-template-columns:1fr 1fr}
  .nav{display:none}
  .hero h1{font-size:48px}
}

@media(max-width:620px){
  .nav-wrap{flex-wrap:wrap;padding:18px 0}
  .logo{font-size:28px}
  .search-box{width:100%;min-width:100%}
  .hero{padding:48px 0 32px}
  .hero h1{font-size:42px}
  .hero-actions{flex-direction:column}
  .btn{width:100%}
  .hero-visual{min-height:260px}
  .topic-map-grid{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}