:root {
  --bg: #0f1218;
  --bg-2: #171b22;
  --card: #1a1e27;
  --line: rgba(255,255,255,.08);
  --text: #e4e4e7;
  --muted: #a0a8b4;
  --accent: #cd412b;
  --accent-2: #e07a4c;
  --ok: #3dd68c;
  --danger: #f07178;
  --nav-h: 64px;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  font-family: Inter, Segoe UI, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.shell { min-height: 100vh; display: flex; flex-direction: column; background:
  radial-gradient(1200px 500px at 80% -10%, rgba(205,65,43,.25), transparent 55%),
  linear-gradient(180deg, rgba(15,18,24,.72), rgba(15,18,24,.92)),
  var(--hero, none) center/cover fixed; }
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 18px; padding: 0 22px; background: rgba(15,18,24,.92); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.brand img { height: 36px; width: 36px; object-fit: contain; }
.nav-links { display: flex; gap: 4px; flex: 1; overflow: auto; }
.nav-links a, .btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 12px; cursor: pointer; }
.nav-links a.active, .nav-links a:hover { color: white; background: linear-gradient(180deg, rgba(180,63,44,.25), rgba(181,63,44,.9)); }
.btn-accent { background: linear-gradient(180deg, #e15a3a, var(--accent)); color: white !important; }
.btn-ghost { border-color: var(--line); color: var(--text) !important; background: #12151c; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
main { flex: 1; padding: 28px 0 48px; }
.hero { padding: 54px 0 20px; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: .95; margin: 0 0 12px; text-transform: uppercase; }
.hero h1 span { color: var(--accent-2); }
.lead { color: var(--muted); max-width: 640px; font-size: 18px; }
.grid { display: grid; gap: 14px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: rgba(26,30,39,.92); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); font-weight: 800; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 14px; }
th { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
input, select, textarea { width: 100%; background: #0f1218; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; }
label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form { display: grid; gap: 12px; }
.flash { background: rgba(61,214,140,.12); border: 1px solid rgba(61,214,140,.4); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.errors { background: rgba(240,113,120,.12); border: 1px solid rgba(240,113,120,.45); padding: 10px 12px; border-radius: 8px; }
footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); background: #0c0f14; }
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.side { background: #10141b; border-right: 1px solid var(--line); padding: 16px; }
.side a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.side a:hover, .side a.active { background: #1c222c; color: white; }
.admin main { padding: 22px; }
.pager { display: flex; gap: 8px; margin-top: 12px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #222; }
.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 520px; z-index: 30; }
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .nav { height: auto; flex-wrap: wrap; padding: 10px; }
}
