:root {
  --bg: #f6f4ef;
  --panel: #fcfcfb;
  --ink: #1d2b53;
  --muted: #6e7891;
  --line: #d9dfe8;
  --brand: #2258d8;
  --brand-dark: #1d2b53;
  --accent: #e0b52b;
  --error: #e35d4a;
  --shadow: 0 8px 24px rgba(20, 34, 66, 0.04);
  --zone-1-bg: #f7d8d3;
  --zone-2-bg: #dfe8ff;
  --zone-3-bg: #f3ead0;
  --zone-4-bg: #d9eee2;
  --zone-1: #e35d4a;
  --zone-2: #3b6fe3;
  --zone-3: #e0b52b;
  --zone-4: #44b97a;
  --badge-1-bg: #fde9e4;
  --badge-2-bg: #eef3ff;
  --badge-3-bg: #fcf3d9;
  --badge-4-bg: #e6f6ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1240px, calc(100vw - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(246, 244, 239, 0.88);
  border-bottom: 1px solid rgba(217, 223, 232, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.site-brand {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-weight: 600;
}

.site-nav__form {
  margin: 0;
}

.site-nav__button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav__button:hover {
  color: var(--brand);
}

.hero,
.quiz-shell {
  padding: 3.75rem 0 4.5rem;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 2.25rem;
  align-items: start;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--brand-dark);
}

h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
}

.hero__copy {
  max-width: 46rem;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
}

.question-card__prompt,
.result-card p {
  font-size: 1.05rem;
  color: var(--muted);
}

.hero__actions,
.question-card__footer {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.hero__panel,
.question-card,
.result-card,
.auth-card {
  background: var(--panel);
  border: 1px solid #eceff4;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.hero__panel {
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
}

.stat-card {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(217, 223, 232, 0.9);
}

.stat-card__label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.button--primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 24px rgba(34, 88, 216, 0.18);
}

.button--secondary {
  color: var(--brand);
  background: #fff;
  border-color: var(--line);
}

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

.quiz-utility-bar {
  position: sticky;
  top: 5.5rem;
  z-index: 9;
  display: flex;
  justify-content: flex-end;
  margin: 0 0 1rem;
}

.stats-fab {
  min-width: 104px;
  box-shadow: 0 10px 30px rgba(34, 88, 216, 0.14);
}

.quiz-meta {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.progress-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(24, 90, 219, 0.08);
  color: var(--brand-dark);
  font-weight: 700;
}

.question-card,
.result-card,
.auth-card {
  padding: 1.5rem;
}

.auth-shell {
  max-width: 720px;
}

.auth-card h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.auth-card__copy {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.auth-card__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-label {
  font-weight: 700;
}

.form-input {
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.form-input:focus {
  outline: 2px solid rgba(24, 90, 219, 0.15);
  border-color: rgba(24, 90, 219, 0.45);
}

.auth-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 0.5rem;
}

.auth-card__link {
  color: var(--brand-dark);
  font-weight: 700;
}

.question-card__support {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(28, 29, 33, 0.03);
  border: 1px solid rgba(28, 29, 33, 0.08);
  color: var(--ink);
  font: inherit;
  white-space: pre-wrap;
  line-height: 1.6;
}

.option-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.option-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.option-card:hover {
  transform: translateY(-1px);
  border-color: rgba(24, 90, 219, 0.38);
  box-shadow: 0 14px 34px rgba(24, 90, 219, 0.08);
}

.option-card input {
  margin: 0;
}

.option-card__bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(240, 138, 36, 0.15);
  color: #9a520d;
  font-size: 0.9rem;
  font-weight: 700;
}

.flash {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
}

.flash--error {
  background: rgba(159, 45, 45, 0.1);
  color: var(--error);
}

.flash--success {
  background: rgba(24, 90, 219, 0.1);
  color: var(--brand-dark);
}

.quiz-root {
  transition: opacity 0.18s ease;
}

.quiz-root--loading {
  opacity: 0.72;
}

.quiz-root--loading .option-card,
.quiz-root--loading .button {
  pointer-events: none;
}

.js-enabled .quiz-answer-form .quiz-submit-fallback {
  display: none;
}

.quiz-submit-status {
  min-height: 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.skill-progress-panel,
.progress-card {
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.skill-progress-panel__header,
.progress-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.skill-progress-panel h2,
.progress-card h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.skill-progress-panel__label,
.progress-card__label {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.skill-progress-panel__stats,
.progress-card__stats,
.progress-list {
  display: grid;
  gap: 0.85rem;
}

.skill-progress-panel__stats,
.progress-card__stats {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 1rem;
}

.skill-progress-panel__stat,
.progress-card__stat {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(239, 243, 252, 0.55);
  border: 1px solid rgba(217, 223, 232, 0.8);
}

.skill-progress-panel__value,
.progress-card__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.skill-progress-panel__meta,
.progress-card__meta {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-shell {
  max-width: 980px;
}

.progress-section {
  margin-top: 1.5rem;
}

.progress-section--answer {
  margin-top: 0;
  margin-bottom: 1.2rem;
}

.progress-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.progress-list {
  margin-top: 1rem;
}

.progress-list--answer {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.progress-list--modal {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 1.25rem;
}

.progress-empty {
  margin-top: 0.85rem;
  color: var(--muted);
}

.progress-reset-modal {
  width: min(640px, calc(100vw - 1rem));
}

.progress-reset-modal__content {
  max-width: 34rem;
}

.progress-reset-modal__content h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.progress-reset-modal__text {
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.progress-reset-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.progress-reset-form__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.progress-reset-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.progress-reset-form__submit {
  color: #fff;
  background: #9f2d2d;
  box-shadow: 0 10px 24px rgba(159, 45, 45, 0.18);
}

.progress-reset-form__submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.progress-state {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.progress-state--neutral {
  background: #f1f3f7;
  color: var(--muted);
}

.progress-state--pending {
  background: #fff2e8;
  color: #df7d28;
}

.progress-state--fragile {
  background: var(--badge-1-bg);
  color: var(--zone-1);
}

.progress-state--progress {
  background: var(--badge-2-bg);
  color: var(--zone-2);
}

.progress-state--ready {
  background: var(--badge-3-bg);
  color: #b58a11;
}

.progress-state--solid {
  background: var(--badge-4-bg);
  color: #2f9b66;
}

.progress-card__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.progress-card--part {
  border-color: rgba(240, 138, 36, 0.18);
  background: linear-gradient(180deg, rgba(240, 138, 36, 0.09), rgba(255, 255, 255, 0.95));
}

.progress-card--skill {
  border-color: rgba(24, 90, 219, 0.16);
}

.progress-card--target {
  border-color: rgba(52, 135, 84, 0.16);
  background: linear-gradient(180deg, rgba(52, 135, 84, 0.08), rgba(255, 255, 255, 0.95));
}

.progress-card--context {
  border-color: rgba(94, 91, 87, 0.16);
  background: linear-gradient(180deg, rgba(94, 91, 87, 0.08), rgba(255, 255, 255, 0.95));
}

.progress-delta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.progress-delta--neutral {
  background: rgba(94, 91, 87, 0.12);
  color: var(--muted);
}

.progress-delta--positive {
  background: rgba(34, 139, 34, 0.12);
  color: #1a6e1a;
}

.progress-delta--negative {
  background: rgba(159, 45, 45, 0.12);
  color: var(--error);
}

.stats-modal {
  width: min(1440px, calc(100vw - 1rem));
  max-height: min(92vh, 960px);
  padding: 1.75rem 1.75rem 1.5rem;
  border: 0;
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 28px 90px rgba(20, 34, 66, 0.16);
}

.stats-modal::backdrop {
  background: rgba(20, 34, 66, 0.24);
  backdrop-filter: blur(6px);
}

.stats-modal--skills {
  width: min(1440px, calc(100vw - 1rem));
}

.stats-modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(217, 223, 232, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.6rem;
  cursor: pointer;
  z-index: 2;
}

.stats-modal__close:hover {
  background: #fff;
}

.stats-dashboard {
  position: relative;
}

.stats-dashboard__topbar {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.stats-dashboard__title-wrap h2,
.stats-dashboard__empty h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.stats-dashboard__subtitle,
.stats-dashboard__empty p {
  margin: 0.75rem 0 0;
  max-width: 48rem;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.45;
  font-family: Georgia, "Times New Roman", serif;
}

.stats-dashboard__legend {
  min-width: 540px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.15rem;
  background: #fff;
}

.stats-dashboard__legend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stats-dashboard__legend-item {
  text-align: center;
}

.stats-dashboard__legend-bar {
  height: 6px;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}

.stats-dashboard__legend-bar--zone-1 {
  background: var(--zone-1);
}

.stats-dashboard__legend-bar--zone-2 {
  background: var(--zone-2);
}

.stats-dashboard__legend-bar--zone-3 {
  background: var(--zone-3);
}

.stats-dashboard__legend-bar--zone-4 {
  background: var(--zone-4);
}

.stats-dashboard__legend-item strong {
  display: block;
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--brand-dark);
}

.stats-dashboard__legend-item span {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.stats-dashboard__scale {
  display: grid;
  grid-template-columns: 88px 300px 1fr 130px 190px;
  align-items: end;
  margin: 0 0 0.65rem;
  padding: 0 1.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.stats-dashboard__zone-label {
  grid-column: 3;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats-dashboard__ticks {
  grid-column: 3;
  display: grid;
  grid-template-columns: 0fr 59fr 15fr 15fr 11fr;
  align-items: center;
}

.stats-dashboard__ticks span {
  transform: translateX(-50%);
}

.stats-dashboard__rows {
  display: grid;
  gap: 0.85rem;
}

.stats-dashboard__row {
  display: grid;
  grid-template-columns: 88px 300px 1fr 130px 190px;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  padding: 1rem 1.15rem;
}

.stats-dashboard__skill-id {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.stats-dashboard__skill-label {
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 500;
  color: var(--brand-dark);
}

.stats-dashboard__bar-wrap {
  position: relative;
}

.stats-dashboard__bar {
  position: relative;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 59fr 15fr 15fr 11fr;
  border: 1px solid #edf1f6;
  background: #fff;
}

.stats-dashboard__zone {
  position: relative;
}

.stats-dashboard__zone--1 {
  background: var(--zone-1-bg);
}

.stats-dashboard__zone--2 {
  background: var(--zone-2-bg);
}

.stats-dashboard__zone--3 {
  background: var(--zone-3-bg);
}

.stats-dashboard__zone--4 {
  background: var(--zone-4-bg);
}

.stats-dashboard__zone + .stats-dashboard__zone {
  border-left: 1px dashed rgba(29, 43, 83, 0.12);
}

.stats-dashboard__fill {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: calc(var(--value) * 1%);
  height: 12px;
  border-radius: 999px;
  z-index: 2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.stats-dashboard__fill--neutral {
  background: rgba(110, 120, 145, 0.42);
}

.stats-dashboard__fill--zone-1 {
  background: var(--zone-1);
}

.stats-dashboard__fill--zone-2 {
  background: var(--zone-2);
}

.stats-dashboard__fill--zone-3 {
  background: var(--zone-3);
}

.stats-dashboard__fill--zone-4 {
  background: var(--zone-4);
}

.stats-dashboard__score {
  text-align: right;
  white-space: nowrap;
}

.stats-dashboard__score strong {
  font-size: 1.9rem;
  letter-spacing: -0.04em;
  color: var(--brand);
}

.stats-dashboard__score span {
  margin-left: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.stats-dashboard__meta {
  text-align: right;
}

.stats-dashboard__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.stats-dashboard__badge--neutral {
  color: var(--muted);
  background: #f1f3f7;
}

.stats-dashboard__badge--zone-1 {
  color: var(--zone-1);
  background: var(--badge-1-bg);
}

.stats-dashboard__badge--zone-2 {
  color: var(--zone-2);
  background: var(--badge-2-bg);
}

.stats-dashboard__badge--zone-3 {
  color: #b58a11;
  background: var(--badge-3-bg);
}

.stats-dashboard__badge--zone-4 {
  color: #2f9b66;
  background: var(--badge-4-bg);
}

.stats-dashboard__meta small {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.stats-dashboard__tip {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 1rem;
}

.stats-dashboard__tip-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eef3ff;
  color: var(--brand);
  font-size: 1rem;
  font-weight: 800;
}

.stats-dashboard__empty {
  padding: 2rem 0 0.5rem;
}

@media (max-width: 1200px) {
  .stats-dashboard__topbar {
    flex-direction: column;
  }

  .stats-dashboard__legend {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 980px) {
  .stats-modal {
    padding: 1.25rem 1rem 1rem;
  }

  .stats-dashboard__scale {
    display: none;
  }

  .stats-dashboard__row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .stats-dashboard__score,
  .stats-dashboard__meta {
    text-align: left;
  }

  .stats-dashboard__skill-id {
    margin-bottom: -0.35rem;
  }

  .stats-dashboard__legend-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-mode-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: rgba(240, 138, 36, 0.12);
  color: #8a4d13;
  border: 1px solid rgba(240, 138, 36, 0.24);
}

.difficulty-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--badge-3-bg);
  color: #b58a11;
  font-weight: 700;
  font-size: 0.85rem;
}

.feedback-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
}

.feedback-chip--success {
  background: var(--badge-4-bg);
  color: #2f9b66;
}

.feedback-chip--error {
  background: var(--badge-1-bg);
  color: var(--zone-1);
}

.quiz-meta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.option-card--review {
  cursor: default;
  opacity: 0.7;
}

.option-card--review:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}

.option-card--correct {
  opacity: 1;
  border-color: #228b22;
  background: rgba(34, 139, 34, 0.06);
}

.option-card--wrong {
  opacity: 1;
  border-color: var(--error);
  background: rgba(159, 45, 45, 0.06);
}

.option-card--admin-correct {
  border-color: rgba(240, 138, 36, 0.5);
  background: rgba(240, 138, 36, 0.08);
}

.option-card__badge {
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.option-card__badge--correct {
  background: rgba(34, 139, 34, 0.15);
  color: #1a6e1a;
}

.option-card__badge--wrong {
  background: rgba(159, 45, 45, 0.15);
  color: var(--error);
}

.option-card__admin-badge {
  margin-left: auto;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(240, 138, 36, 0.18);
  color: #8a4d13;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.explanation-block {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: 18px;
  background: rgba(239, 243, 255, 0.72);
  border-left: 4px solid var(--brand);
}

.explanation-block__title {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.explanation-block__text {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.explanation-block__meta {
  margin: 0.85rem 0 0;
  color: var(--ink);
  line-height: 1.6;
}

.session-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 0.6rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.session-bar__count {
  font-weight: 700;
}

.session-bar__item--correct .session-bar__count {
  color: #1a6e1a;
}

.session-bar__item--wrong .session-bar__count {
  color: var(--error);
}

.summary-final {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.summary-final__stat {
  text-align: center;
  padding: 1rem 1.5rem;
  border-radius: 18px;
  background: rgba(239, 243, 255, 0.72);
  flex: 1;
}

.summary-final__stat--correct {
  background: var(--badge-4-bg);
}

.summary-final__stat--wrong {
  background: var(--badge-1-bg);
}

.summary-final__number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.summary-final__stat--correct .summary-final__number {
  color: #1a6e1a;
}

.summary-final__stat--wrong .summary-final__number {
  color: var(--error);
}

.summary-final__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 800px) {
  .site-header__inner,
  .quiz-meta,
  .hero__grid,
  .question-card__footer {
    display: block;
  }

  .site-nav {
    margin-top: 0.75rem;
  }

  .hero__panel,
  .progress-chip,
  .score-chip {
    margin-top: 1rem;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .session-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .summary-final {
    flex-direction: column;
    gap: 0.75rem;
  }

  .quiz-utility-bar {
    top: 7.75rem;
  }
}
