:root {
  --bg: #0b1220;
  --panel: #121b2e;
  --panel-soft: #18233a;
  --text: #eef4ff;
  --muted: #aab7d1;
  --line: rgba(255,255,255,0.08);
  --accent: #6ee7ff;
  --accent-2: #4f8cff;
  --good: #22c55e;
  --warn: #f59e0b;
  --critical: #ef4444;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(79,140,255,0.15), transparent 30%),
    radial-gradient(circle at top left, rgba(110,231,255,0.12), transparent 28%),
    var(--bg);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 60px;
}

.container.narrow {
  width: min(860px, calc(100% - 32px));
}

.hero {
  padding: 48px 0 28px;
}

.hero-badge,
.question-area,
.status-pill,
.question-number {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--muted);
  font-size: 14px;
}

h1, h2 {
  margin-top: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin: 16px 0 14px;
}

h2 {
  font-size: 26px;
  margin-bottom: 14px;
}

.lead,
.summary-text,
.page-head p,
.card p,
li,
label,
input,
textarea,
span {
  line-height: 1.6;
}

.lead {
  max-width: 860px;
  color: var(--muted);
  font-size: 18px;
}

.hero-box,
.info-grid,
.form-grid {
  display: grid;
  gap: 18px;
}

.hero-box {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 30px 0;
}

.hero-box-item,
.card,
.option,
.notice {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-box-item {
  padding: 20px;
}

.hero-box-item strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
}

.hero-box-item span {
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, opacity 0.18s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #08101c;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,0.04);
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 24px;
}

.card {
  padding: 24px;
}

.page-head {
  margin-bottom: 24px;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 16px;
}

.form-card {
  padding: 28px;
}

.question-block {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}

.question-block legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin-bottom: 10px;
}

.question-text {
  margin: 12px 0 14px;
  font-size: 18px;
  font-weight: 700;
}

.options {
  display: grid;
  gap: 10px;
}

.options {
  display: grid;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.option:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(110,231,255,0.28);
  transform: translateY(-1px);
}

.option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  background: transparent;
  display: inline-block;
  position: relative;
  margin: 0;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.option input[type="radio"]::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  transform: scale(0);
  transition: transform 0.18s ease;
}

.option input[type="radio"]:checked {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(110,231,255,0.12);
}

.option input[type="radio"]:checked::after {
  transform: scale(1);
}

.option span {
  display: block;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

.option:has(input[type="radio"]:checked) {
  border-color: rgba(110,231,255,0.45);
  background: rgba(110,231,255,0.08);
} 


.form-actions {
  margin-top: 24px;
}

.score-box {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 20px 0;
}

.score-number {
  font-size: 56px;
  font-weight: 800;
}

.score-number span {
  font-size: 22px;
  color: var(--muted);
  margin-left: 8px;
}

.score-percent {
  font-size: 24px;
  color: var(--accent);
  font-weight: 700;
}

.status-pill {
  font-weight: 700;
  margin-bottom: 18px;
}

.status-good {
  color: #d8ffe5;
  background: rgba(34,197,94,0.14);
  border-color: rgba(34,197,94,0.32);
}

.status-warning {
  color: #fff0cf;
  background: rgba(245,158,11,0.14);
  border-color: rgba(245,158,11,0.32);
}

.status-critical {
  color: #ffd7d7;
  background: rgba(239,68,68,0.14);
  border-color: rgba(239,68,68,0.32);
}

.metric {
  margin-bottom: 18px;
}

.metric-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.metric-head span {
  color: var(--muted);
}

.metric-bar {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.form-grid {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
}

textarea {
  resize: vertical;
}

.notice {
  padding: 14px 16px;
  margin-bottom: 18px;
}

.notice.success {
  border-color: rgba(34,197,94,0.32);
  background: rgba(34,197,94,0.12);
}

.notice.error {
  border-color: rgba(239,68,68,0.32);
  background: rgba(239,68,68,0.12);
}

@media (max-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .field.full {
    grid-column: auto;
  }

  .metric-head {
    flex-direction: column;
  }

  .score-number {
    font-size: 42px;
  }
} 


.chart-card {
  margin-top: 24px;
}

.chart-intro {
  color: var(--muted);
  margin-bottom: 18px;
}

.chart-wrap {
  position: relative;
  width: 100%;
  min-height: 420px;
}

.chart-wrap canvas {
  width: 100% !important;
  height: 460px !important;
}

@media (max-width: 720px) {
  .chart-wrap {
    min-height: 320px;
  }

  .chart-wrap canvas {
    height: 320px !important;
  }
} 