:root {
  --navy: #103d49;
  --navy-deep: #0a2b34;
  --teal: #087b75;
  --teal-soft: #e9f6f4;
  --ink: #1e2c32;
  --muted: #63747b;
  --line: #d6e1e3;
  --paper: #ffffff;
  --wash: #f3f7f7;
  --green: #14825d;
  --green-soft: #eaf7f1;
  --red: #b6433c;
  --red-soft: #fff0ee;
  --amber: #db9518;
  --shadow: 0 18px 55px rgba(18, 59, 69, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 0%, rgba(8, 123, 117, 0.08), transparent 31rem),
    linear-gradient(180deg, #f8fbfb 0%, #f1f6f6 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.header-inner { min-height: 74px; display: flex; align-items: center; gap: 28px; }

.brand-logo { width: 165px; height: auto; display: block; margin-right: auto; }

.text-button {
  background: none;
  border: 0;
  color: var(--teal);
  cursor: pointer;
  font-weight: 750;
  padding: 8px;
}

.text-button:hover { color: var(--navy); }

.page-shell { padding-block: 44px 72px; }

.hero {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 36px;
  padding: 8px 2px 28px;
}

.eyebrow, .section-kicker {
  color: var(--teal);
  display: block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hero h1 { color: var(--navy); font-size: clamp(2.3rem, 5vw, 4.45rem); line-height: 0.98; margin: 0; letter-spacing: -0.045em; }
.hero p { color: var(--muted); font-size: 1.03rem; margin: 16px 0 0; max-width: 650px; }

.hero-badge {
  align-items: center;
  background: var(--navy);
  border-radius: 999px;
  color: white;
  display: flex;
  flex: 0 0 auto;
  height: 116px;
  justify-content: center;
  flex-direction: column;
  width: 116px;
  box-shadow: 0 12px 30px rgba(16, 61, 73, 0.2);
}

.hero-badge strong { font-size: 1.9rem; line-height: 1; }
.hero-badge span { font-size: 0.67rem; letter-spacing: 0.05em; margin-top: 7px; text-transform: uppercase; }

.stepper { margin-bottom: 26px; }
.stepper ol { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; }
.stepper li { align-items: center; color: #8a9a9f; display: flex; font-size: 0.82rem; font-weight: 750; gap: 10px; position: relative; }
.stepper li:not(:last-child)::after { background: var(--line); content: ""; height: 2px; left: 44px; position: absolute; right: 12px; top: 17px; z-index: 0; }
.stepper li span { align-items: center; background: #e4ebec; border: 3px solid #f3f7f7; border-radius: 50%; display: inline-flex; flex: 0 0 auto; height: 34px; justify-content: center; position: relative; width: 34px; z-index: 1; }
.stepper li em { background: #f3f7f7; font-style: normal; padding-right: 10px; position: relative; z-index: 1; }
.stepper li.active, .stepper li.complete { color: var(--navy); }
.stepper li.active span { background: var(--navy); color: white; }
.stepper li.complete span { background: var(--teal); color: white; }
.stepper li.complete:not(:last-child)::after { background: var(--teal); }

.panel {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(213, 226, 228, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 550px;
  padding: clamp(28px, 5vw, 58px);
}

.panel h2 { color: var(--navy); font-size: clamp(1.75rem, 4vw, 2.7rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; }
.panel h3 { color: var(--navy); margin: 0 0 12px; }
.panel p { color: var(--muted); }

.panel-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr); gap: clamp(34px, 7vw, 88px); align-items: center; }

.feature-list { display: grid; gap: 14px; list-style: none; margin: 30px 0 0; padding: 0; }
.feature-list li { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 16px; padding: 0 0 14px; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list > li > span { align-items: center; background: var(--teal-soft); border-radius: 12px; color: var(--teal); display: inline-flex; flex: 0 0 auto; font-size: 0.74rem; font-weight: 850; height: 42px; justify-content: center; width: 42px; }
.feature-list strong, .feature-list small { display: block; }
.feature-list small { color: var(--muted); margin-top: 2px; }

.start-card { background: var(--wash); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.card-icon { align-items: center; background: var(--navy); border-radius: 13px; color: white; display: flex; font-size: 0.8rem; font-weight: 850; height: 44px; justify-content: center; letter-spacing: 0.06em; margin-bottom: 20px; width: 44px; }
label { color: var(--navy); display: block; font-size: 0.84rem; font-weight: 750; margin: 18px 0 7px; }
label span { color: var(--muted); font-weight: 500; }
input[type="text"], input:not([type]) {
  background: white;
  border: 1px solid #bdcccf;
  border-radius: 11px;
  color: var(--ink);
  outline: none;
  padding: 13px 14px;
  width: 100%;
}
input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 123, 117, 0.12); }

.primary-button, .secondary-button {
  align-items: center;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  gap: 16px;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.primary-button { background: var(--teal); border: 1px solid var(--teal); color: white; }
.primary-button:hover:not(:disabled) { box-shadow: 0 8px 22px rgba(8, 123, 117, 0.24); transform: translateY(-1px); }
.primary-button:disabled { cursor: not-allowed; opacity: 0.45; }
.secondary-button { background: white; border: 1px solid #b8c9cc; color: var(--navy); }
.secondary-button:hover { border-color: var(--teal); color: var(--teal); }
.start-card .primary-button { margin-top: 24px; width: 100%; }
.microcopy, .result-note { font-size: 0.75rem; text-align: center; }

.panel-heading { align-items: flex-end; display: flex; justify-content: space-between; gap: 32px; margin-bottom: 26px; }
.panel-heading p { margin-bottom: 0; }
.document-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.guide-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; }
.guide-summary { background: var(--navy); border-radius: 16px; color: white; padding: 24px; }
.guide-summary h3 { color: white; }
.guide-summary ul { list-style: none; margin: 24px 0 0; padding: 0; }
.guide-summary li { border-top: 1px solid rgba(255,255,255,0.18); padding: 17px 0; }
.guide-summary strong, .guide-summary span { display: block; }
.guide-summary strong { color: #8fe0d7; font-size: 0.86rem; }
.guide-summary span { color: rgba(255,255,255,0.78); font-size: 0.82rem; margin-top: 5px; }
.pdf-frame-wrap { border: 1px solid var(--line); border-radius: 16px; min-height: 620px; overflow: hidden; }
.pdf-frame { border: 0; height: 100%; min-height: 620px; width: 100%; }

.guide-confirm { align-items: center; background: var(--wash); border-radius: 15px; display: flex; gap: 24px; justify-content: space-between; margin-top: 22px; padding: 18px 20px; }
.check-row { align-items: center; display: flex; gap: 13px; margin: 0; }
.check-row input { accent-color: var(--teal); height: 22px; width: 22px; }
.check-row strong, .check-row small { display: block; }
.check-row small { color: var(--muted); font-weight: 500; margin-top: 2px; }

.quiz-heading { align-items: center; }
.quiz-counter { align-items: center; background: var(--teal-soft); border-radius: 14px; color: var(--teal); display: flex; flex: 0 0 auto; gap: 7px; padding: 13px 17px; }
.quiz-counter strong { font-size: 1.35rem; }
.quiz-counter span { font-size: 0.76rem; font-weight: 750; }
.quiz-list { display: grid; gap: 18px; }
.question-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.question-title { align-items: flex-start; display: flex; gap: 13px; margin-bottom: 16px; }
.question-number { align-items: center; background: var(--navy); border-radius: 9px; color: white; display: inline-flex; flex: 0 0 auto; font-size: 0.76rem; font-weight: 850; height: 30px; justify-content: center; width: 30px; }
.question-title h3 { font-size: 1rem; line-height: 1.42; margin: 2px 0 0; }
.options { display: grid; gap: 9px; }
.option { align-items: flex-start; border: 1px solid #cfdcdf; border-radius: 11px; cursor: pointer; display: flex; gap: 11px; margin: 0; padding: 12px 13px; transition: border-color 140ms ease, background 140ms ease; }
.option:hover { border-color: var(--teal); }
.option:has(input:checked) { background: var(--teal-soft); border-color: var(--teal); }
.option input { accent-color: var(--teal); margin-top: 4px; }
.option span { color: var(--ink); font-weight: 560; }
.quiz-submit-row { align-items: center; display: flex; justify-content: flex-end; gap: 20px; margin-top: 28px; }
.validation-message { color: var(--red) !important; margin: 0 auto 0 0; }

.result-panel { text-align: center; }
.result-hero { position: relative; }
.result-symbol { align-items: center; background: var(--green-soft); border-radius: 50%; color: var(--green); display: flex; font-size: 2rem; font-weight: 900; height: 70px; justify-content: center; margin: 0 auto 18px; width: 70px; }
.result-hero.failed .result-symbol { background: var(--red-soft); color: var(--red); }
.result-hero p { margin: 0 auto; max-width: 650px; }
.score-ring { align-items: center; background: var(--navy); border: 8px solid #d8efea; border-radius: 50%; color: white; display: flex; flex-direction: column; height: 150px; justify-content: center; margin: 28px auto; width: 150px; }
.result-hero.failed .score-ring { background: var(--red); border-color: #f5d8d4; }
.score-ring strong { font-size: 2.2rem; line-height: 1; }
.score-ring span { font-size: 0.75rem; margin-top: 8px; }
.result-grid { display: grid; grid-template-columns: 0.72fr 1.28fr; gap: 20px; text-align: left; }
.result-summary, .review-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.result-summary dl { margin: 0; }
.result-summary dl > div { border-top: 1px solid var(--line); padding: 12px 0; }
.result-summary dt { color: var(--muted); font-size: 0.75rem; font-weight: 750; text-transform: uppercase; }
.result-summary dd { color: var(--ink); font-weight: 720; margin: 3px 0 0; }
.review-list { display: grid; gap: 10px; }
.review-item { align-items: flex-start; background: var(--green-soft); border-radius: 10px; display: flex; gap: 10px; padding: 11px; }
.review-item.wrong { background: var(--red-soft); }
.review-item b { color: var(--green); }
.review-item.wrong b { color: var(--red); }
.review-item span { font-size: 0.85rem; }
.review-item small { color: var(--muted); display: block; margin-top: 3px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; margin-top: 26px; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.78rem; padding: 25px 0 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

[hidden] { display: none !important; }

@media (max-width: 860px) {
  .panel-grid, .guide-layout, .result-grid { grid-template-columns: 1fr; }
  .guide-summary { order: 2; }
  .pdf-frame-wrap { min-height: 560px; }
  .pdf-frame { min-height: 560px; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .guide-confirm { align-items: stretch; flex-direction: column; }
  .program-mark span { display: none; }
  .hero-badge { height: 96px; width: 96px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1160px); }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand-logo { width: 125px; }
  .program-mark { padding-left: 12px; }
  .program-mark img { width: 68px; }
  .header-inner > .text-button { font-size: 0.74rem; padding-inline: 0; }
  .page-shell { padding-block: 24px 50px; }
  .hero { align-items: flex-start; }
  .hero-badge { display: none; }
  .stepper li { justify-content: center; }
  .stepper li em { display: none; }
  .stepper li:not(:last-child)::after { left: calc(50% + 17px); right: calc(-50% + 17px); }
  .panel { min-height: 0; padding: 24px 18px; }
  .document-actions { display: grid; width: 100%; }
  .pdf-frame-wrap, .pdf-frame { min-height: 470px; }
  .quiz-submit-row { align-items: stretch; flex-direction: column; }
  .quiz-submit-row .primary-button { width: 100%; }
  .footer-inner { flex-direction: column; }
}

@media print {
  .site-header, .stepper, footer, .result-actions { display: none; }
  body { background: white; }
  .panel { border: 0; box-shadow: none; }
}
