:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3fb;
  --text: #1c2434;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --border: #dbe3ef;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 18px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #f4f7fb 100%);
  color: var(--text);
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  background: #0f172a;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .2px;
}
.nav-links { display: flex; gap: 12px; flex-wrap: wrap; }
.nav-links a {
  color: #cbd5e1;
  padding: 10px 14px;
  border-radius: 12px;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.hero {
  padding: 48px 0 24px;
}
.hero-grid, .grid-2, .grid-3, .stats-grid {
  display: grid;
  gap: 20px;
}
.hero-grid, .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3, .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card h1, .card h2, .card h3 { margin-top: 0; }
.badge, .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}
.badge { background: #dbeafe; color: #1d4ed8; }
.status-success { background: #dcfce7; color: #166534; }
.status-danger { background: #fee2e2; color: #991b1b; }
.status-warning { background: #ffedd5; color: #9a3412; }
.muted { color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-outline { background: #fff; color: var(--text); border: 1px solid var(--border); }
.btn-danger { background: var(--danger); }
.btn-success { background: var(--success); }
.btn-warning { background: var(--warning); }
.form-grid { display: grid; gap: 16px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font: inherit;
}
textarea { min-height: 120px; }
.table-wrap { overflow: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
th { background: var(--surface-2); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.alert {
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 16px;
  font-weight: 600;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #ffedd5; color: #9a3412; }
.kpi {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}
.kpi .value { font-size: 34px; font-weight: 800; margin: 8px 0 4px; }
.center-card { max-width: 520px; margin: 50px auto; }
.question-box {
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background: #fff;
}
.option-list { display: grid; gap: 10px; margin-top: 14px; }
.option-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.timer {
  position: sticky;
  top: 84px;
  z-index: 50;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  box-shadow: var(--shadow);
}
.score-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 800;
  background: conic-gradient(#2563eb calc(var(--p) * 1%), #dbeafe 0);
  color: #0f172a;
  margin-bottom: 12px;
}
.footer { padding: 24px 0 48px; color: var(--muted); text-align: center; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .hero-grid, .grid-2, .grid-3, .stats-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .timer { top: 120px; flex-direction: column; align-items: flex-start; gap: 10px; }
}
:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #e9eef7;
  --text: #142033;
  --muted: #5f6f86;
  --primary: #0f2747;
  --primary-dark: #0a1d36;
  --primary-soft: #d9e4f2;
  --success: #1f7a4d;
  --danger: #c0392b;
  --warning: #b7791f;
  --border: #cfd9e6;
  --shadow: 0 12px 28px rgba(15, 39, 71, 0.10);
  --radius: 18px;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: linear-gradient(180deg, #eef3f9 0%, #f7f9fc 100%);
  color: var(--text);
}

.topbar {
  background: linear-gradient(135deg, #081a33 0%, #0f2747 100%);
  color: #fff;
}

.nav-links a {
  color: #d8e3f0;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,.10);
  color: #fff;
  text-decoration: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}

.timer {
  position: sticky;
  top: 84px;
  z-index: 50;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #081a33 0%, #0f2747 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(8, 26, 51, 0.22);
}

.btn {
  background: var(--primary);
  color: #fff;
}

.btn:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
}