:root {
  --bg: #f4f7fb;
  --surface: rgba(255,255,255,0.92);
  --surface-strong: #ffffff;
  --text: #142033;
  --muted: #5f6d84;
  --line: rgba(20,32,51,0.09);
  --primary: #2d63ff;
  --primary-2: #204fd5;
  --gold: #b98a1f;
  --success: #0c8a55;
  --danger: #c63d3d;
  --radius: 20px;
  --shadow: 0 24px 60px rgba(24,43,77,0.10);
}
* { box-sizing: border-box; }
html, body { margin:0; padding:0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: radial-gradient(circle at top left, #ffffff 0%, #eef4ff 32%, var(--bg) 100%); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
.shell { width:min(1180px, calc(100% - 32px)); margin:0 auto; }
.site-header { position:sticky; top:0; z-index:20; backdrop-filter: blur(14px); background:rgba(244,247,251,0.76); border-bottom:1px solid var(--line); }
.topbar { display:flex; align-items:center; justify-content:space-between; min-height:78px; gap:20px; }
.brand { font-weight:800; letter-spacing:-0.02em; color:var(--text); font-size:1.2rem; }
.brand span { color:var(--primary); }
.nav { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.page { padding:32px 0 60px; min-height: calc(100vh - 150px); }
.site-footer { padding:24px 0 50px; color:var(--muted); }
.footer-grid { display:flex; justify-content:space-between; gap:20px; border-top:1px solid var(--line); padding-top:22px; }
.hero { display:grid; grid-template-columns: 1.4fr 0.8fr; gap:28px; align-items:stretch; margin-bottom:28px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.9rem); line-height:1.02; margin:.2rem 0 1rem; max-width: 12ch; letter-spacing:-0.04em; }
.hero p, .lead { font-size:1.05rem; color:var(--muted); max-width: 62ch; }
.hero-actions { display:flex; gap:12px; margin-top:20px; flex-wrap:wrap; }
.card, .list-card { background: var(--surface); border:1px solid rgba(255,255,255,0.68); box-shadow: var(--shadow); border-radius: var(--radius); }
.card { padding:22px; }
.card-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.training-card { min-height: 210px; }
.list-cards { display:flex; flex-direction:column; gap:14px; }
.list-card { padding:18px 20px; display:flex; justify-content:space-between; align-items:center; gap:16px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; margin: 10px 0 18px; }
.compact-head { margin-top: 4px; }
.section-head h1, .section-head h2, .card h1, .card h2 { margin:0; letter-spacing:-0.03em; }
.eyebrow { text-transform:uppercase; letter-spacing:.14em; color:var(--primary); font-weight:700; font-size:.78rem; }
.pill-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:12px; }
.pill { display:inline-flex; align-items:center; padding:7px 11px; border-radius:999px; background:rgba(45,99,255,0.09); color:var(--primary); font-size:.82rem; font-weight:700; }
.pill-gold { background:rgba(185,138,31,0.12); color:var(--gold); }
.stats-panel { display:flex; flex-direction:column; justify-content:center; gap:16px; }
.stat strong, .stat-card strong { display:block; font-size:2rem; letter-spacing:-0.04em; }
.stat span, .stat-card span, .small-muted { color:var(--muted); }
.meta-right, .meta-list { color:var(--muted); }
.meta-list { display:flex; gap:16px; flex-wrap:wrap; }
.detail-hero { margin-bottom:18px; }
.two-col { display:grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .85fr); gap:18px; }
.admin-two-col { align-items:start; }
.admin-layout { display:grid; grid-template-columns: 260px minmax(0, 1fr); gap:18px; }
.sidebar-nav { display:flex; flex-direction:column; gap:6px; position:sticky; top:100px; }
.sidebar-nav a { padding:12px 14px; border-radius:14px; color:var(--text); }
.sidebar-nav a:hover { background:rgba(45,99,255,0.08); color:var(--primary); }
.stack { display:flex; flex-direction:column; gap:18px; }
.prose h2, .prose h3 { margin-top:0; }
.prose h3 { margin-top:20px; }
.session-mini { padding:14px 0; border-top:1px solid var(--line); }
.session-mini:first-of-type { border-top:0; padding-top:0; }
.btn { appearance:none; border:0; display:inline-flex; align-items:center; justify-content:center; background:linear-gradient(180deg, #3b73ff 0%, #2458ec 100%); color:#fff; min-height:46px; padding:0 18px; border-radius:14px; font-weight:700; box-shadow: 0 16px 30px rgba(45,99,255,0.24); cursor:pointer; }
.btn:hover { color:#fff; filter:brightness(.97); }
.btn-secondary { background:#fff; color:var(--text); border:1px solid var(--line); box-shadow:none; }
.btn-sm { min-height:38px; padding:0 14px; }
.form-grid { display:grid; gap:16px; }
.two-up { grid-template-columns: repeat(2, minmax(0,1fr)); }
.span-2 { grid-column: 1 / -1; }
label { display:grid; gap:8px; font-weight:600; }
.input { width:100%; border:1px solid rgba(20,32,51,0.12); border-radius:14px; padding:12px 14px; background:#fff; color:var(--text); min-height:46px; font: inherit; }
.input:focus { outline:none; border-color:rgba(45,99,255,0.5); box-shadow:0 0 0 4px rgba(45,99,255,0.12); }
.input-area { min-height:110px; resize:vertical; }
.input-area.lg { min-height:180px; }
.check-row { display:flex; align-items:center; gap:10px; min-height:46px; font-weight:600; }
.auth-card { max-width:520px; margin: 28px auto; }
.wide-card { max-width:980px; }
.toolbar { display:flex; gap:12px; align-items:center; margin-bottom:18px; }
.table { width:100%; border-collapse:collapse; }
.table th, .table td { text-align:left; padding:14px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.table th { font-size:.88rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.clean-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.flash-stack { display:grid; gap:10px; margin-bottom:18px; }
.flash { border-radius:14px; padding:14px 16px; font-weight:600; }
.flash-success { background: rgba(12,138,85,0.10); color: var(--success); }
.flash-danger { background: rgba(198,61,61,0.10); color: var(--danger); }
.flash-warning { background: rgba(185,138,31,0.12); color: var(--gold); }
.mail-preview { background:#fafcff; border:1px solid var(--line); border-radius:16px; padding:16px; color:var(--muted); margin:12px 0; }
@media (max-width: 1000px) {
  .hero, .two-col, .admin-layout, .card-grid, .grid-4, .grid-3, .two-up { grid-template-columns: 1fr; }
  .footer-grid, .toolbar, .topbar, .nav { flex-direction:column; align-items:flex-start; }
  .topbar { padding:12px 0; }
}
