:root {
  --bg: #121212;
  --surface: #1a1a1a;
  --surface-border: #2a2a2a;
  --text: #f0f0f0;
  --muted: #b8b8b8;
  --accent: #e53935;
  --accent-2: #ff4d4d;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--surface-border);
  background: #0f0f0f;
  position: sticky;
  top: 0;
}
.nav-wrap { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0; }
.brand { color: var(--text); text-decoration: none; font-weight: 700; }
.brand span { color: var(--accent); }
.nav-list { display: flex; gap: 1rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.nav-list a { color: var(--text); text-decoration: none; padding: 0.4rem 0.65rem; border-radius: 0.45rem; }
.nav-list a:hover, .nav-list a.active { background: #222; color: var(--accent-2); }

main { padding: 2rem 0 3rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: 0 0 0 1px rgba(229,57,53,0.08) inset;
}
.hero { margin-bottom: 1.25rem; }
.badge { color: var(--accent-2); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }

.grid { display: grid; gap: 1rem; }
.two-col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.three-col { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--surface-border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-2); }

.cta-group { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .8rem; }
.text-link { color: var(--accent-2); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.search-input {
  width: 100%;
  margin-top: .3rem;
  padding: .7rem .8rem;
  border-radius: .6rem;
  border: 1px solid #3a3a3a;
  background: #131313;
  color: var(--text);
}
.input-label { font-weight: 600; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--surface-border);
  background: #0f0f0f;
  padding: 1rem 0;
}
.footer-wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { list-style: none; display: flex; gap: 1rem; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-2); }

.small-note { color: var(--muted); font-size: .92rem; }

@media (max-width: 640px) {
  .nav-wrap { flex-direction: column; align-items: flex-start; gap: .6rem; }
}
