:root {
  --bg: #050a07;
  --surface: #0c1811;
  --surface2: #13251a;
  --line: #264432;
  --text: #e9f4ec;
  --muted: #a5b9aa;
  --green: #a7f569;
  --wrong: #ffb3a5;
  --font:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 83% 2%, #153923 0, transparent 37%), var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: #051008d9;
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}
.brand {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.08em;
}
.brand span {
  color: var(--green);
  padding: 0 2px;
}
.brand small {
  font-size: 10px;
  vertical-align: top;
  letter-spacing: 0.13em;
}
.header-link,
.breadcrumb,
.text-link {
  color: var(--muted);
  font-size: 14px;
}
.header-link:hover,
.text-link:hover,
.breadcrumb a:hover {
  color: var(--green);
}
.landing,
.quiz-page {
  padding-top: 75px;
  padding-bottom: 100px;
  min-height: calc(100vh - 145px);
}
.eyebrow,
.section-title > span,
.tag {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.landing h1,
.intro h1 {
  max-width: 850px;
  margin: 16px 0 22px;
  font-size: clamp(44px, 7vw, 83px);
  line-height: 1.05;
  letter-spacing: -0.065em;
}
.landing h1 em,
.intro h1 em {
  color: var(--green);
  font-style: normal;
}
.lead {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2.2vw, 22px);
}
.section-title {
  margin-top: 76px;
  margin-bottom: 22px;
}
.section-title h2 {
  margin: 8px 0 0;
  font-size: clamp(27px, 4vw, 40px);
  letter-spacing: -0.045em;
}
.cert-card,
.mode-card,
.question-card,
.result-hero,
.area-card,
.wrong-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
}
.cert-card {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 38px;
  padding: clamp(26px, 5vw, 48px);
}
.cert-card h3 {
  margin: 14px 0 0;
  font-size: 60px;
  line-height: 1;
}
.cert-card p {
  max-width: 570px;
  color: var(--muted);
}
.cert-card .subtitle {
  margin-top: 3px;
  color: var(--text);
  font-size: 20px;
  font-weight: 750;
}
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 10px;
  padding: 13px 20px;
  border: 1px solid var(--green);
  font-weight: 800;
  white-space: nowrap;
}
.primary-button {
  background: var(--green);
  color: #0c180e;
}
.primary-button:hover {
  background: #c9ff9c;
}
.secondary-button {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.secondary-button:hover {
  border-color: var(--green);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 22px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb {
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb strong {
  color: var(--text);
}
.intro {
  padding-top: 35px;
}
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mode-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 230px;
  text-align: left;
  color: var(--text);
}
.mode-card:hover:not(:disabled) {
  border-color: var(--green);
  transform: translateY(-2px);
}
.mode-card strong {
  font-size: 22px;
}
.mode-card .count {
  font-size: 39px;
  line-height: 1.2;
  color: var(--green);
  margin-top: 15px;
  font-weight: 900;
}
.mode-card small {
  margin-top: auto;
  color: var(--muted);
}
.mode-card.demo {
  border-color: var(--green);
}
.bank-status,
.source-note {
  color: var(--muted);
  font-size: 14px;
}
.source-note {
  max-width: 680px;
}
.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hidden {
  display: none !important;
}
.quiz-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.progress-track {
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin: 12px 0 24px;
}
.progress-track > div {
  height: 100%;
  background: var(--green);
  width: 0;
}
.question-card {
  padding: clamp(24px, 4vw, 44px);
}
.question-card h2 {
  font-size: clamp(23px, 3vw, 33px);
  letter-spacing: -0.04em;
  line-height: 1.3;
}
.answer-list {
  display: grid;
  gap: 10px;
  margin-block: 25px;
}
.answer-option {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid var(--line);
  background: var(--surface2);
  padding: 14px 17px;
  border-radius: 11px;
  cursor: pointer;
}
.answer-option:hover,
.answer-option:has(input:checked) {
  border-color: var(--green);
}
.answer-option input {
  margin-top: 5px;
  accent-color: var(--green);
}
.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.result-hero {
  display: flex;
  align-items: center;
  gap: 45px;
  padding: 35px;
  margin-bottom: 42px;
}
.result-hero > div {
  min-width: 170px;
}
.result-hero strong {
  display: block;
  color: var(--green);
  font-size: 67px;
  line-height: 1;
}
.result-hero span {
  color: var(--muted);
  font-size: 14px;
}
.result-hero p {
  margin: 0;
  color: var(--muted);
}
#results h3 {
  font-size: 25px;
  margin: 32px 0 17px;
}
.area-results,
.wrong-answers {
  display: grid;
  gap: 13px;
}
.area-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.area-card,
.wrong-card {
  padding: 23px;
}
.area-card strong {
  display: block;
  font-size: 20px;
}
.area-card span {
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
}
.area-card p,
.wrong-card p {
  color: var(--muted);
  margin-bottom: 0;
}
.wrong-card h4 {
  margin: 7px 0 14px;
  font-size: 18px;
}
.wrong-card .wrong {
  color: var(--wrong);
}
.wrong-card .correct {
  color: var(--green);
}
.wrong-card a {
  display: inline-block;
  margin-top: 14px;
  color: var(--green);
  text-decoration: underline;
}
.retry-button {
  margin-top: 30px;
}
:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .mode-grid,
  .area-results {
    grid-template-columns: 1fr;
  }
  .cert-card,
  .result-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .footer {
    flex-direction: column;
  }
  .landing,
  .quiz-page {
    padding-top: 46px;
  }
  .mode-card {
    min-height: 180px;
  }
  .quiz-actions {
    flex-wrap: wrap;
  }
  .quiz-actions button {
    flex: 1;
  }
}
