:root {
  --navy: #0B2C4F; --navy-dark: #081e37; --gold: #C49A00;
  --gold-light: #E8B900; --white: #ffffff;
  --light-gray: #f4f6f9; --text: #2d2d2d; --text-light: #5a554b;
  --border: #e2e8f0; --ok: #1d6b3a; --bad: #9b1c1c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif; color: var(--text); background: #f6f4ee; line-height: 1.65; }
[hidden] { display: none !important; }
.skip-link { position: absolute; top: -100%; left: 0; background: var(--gold); color: var(--navy); padding: 0.5rem 1rem; font-weight: 700; font-size: 0.9rem; z-index: 9999; text-decoration: none; border-radius: 0 0 4px 0; }
.skip-link:focus { top: 0; }
a { color: #0b4f8f; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #15406b 100%); color: var(--white); padding: 5rem 2rem 4rem; text-align: center; }
.hero .section-label { color: var(--gold-light); }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--gold-light); font-size: 0.6em; font-weight: 700; }
.hero .sub { color: rgba(255,255,255,0.92); font-size: 1.15rem; max-width: 640px; margin: 0 auto 2rem; line-height: 1.7; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-primary, .btn-outline, .btn-secondary { display: inline-block; padding: 0.9rem 2rem; border-radius: 6px; font-weight: 700; font-size: 0.95rem; text-decoration: none; transition: all 0.2s; font-family: inherit; }
.btn-primary { background: var(--gold); color: var(--navy); border: 2px solid var(--gold); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-secondary { background: var(--white); color: var(--navy); border: 2px solid var(--navy); }
.btn-button { cursor: pointer; }
.btn-button:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

section { padding: 3.5rem 2rem; }
.container { max-width: 1100px; margin: 0 auto; }
.container.narrow { max-width: 760px; }
.section-label { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #856800; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin-bottom: 1rem; line-height: 1.25; }
.container.narrow p { margin-bottom: 1rem; font-size: 1.05rem; }
.container.narrow p.small { font-size: 0.9rem; color: var(--text-light); }

.notice-section { padding-bottom: 1.5rem; }
.notice { background: #fff8e1; border-left: 5px solid var(--gold); padding: 1rem 1.25rem; border-radius: 4px; }
.toc-title { font-size: 1.2rem; color: var(--navy); margin: 1.5rem 0 0.5rem; }
.toc { padding-left: 1.5rem; margin-bottom: 1rem; }
.toc li { margin-bottom: 0.3rem; }

.lesson:nth-of-type(even) { background: var(--white); }
.lesson .check { background: var(--light-gray); border: 1px solid var(--border); border-radius: 6px; padding: 0.9rem 1.1rem; }

.quiz-section { background: var(--white); }
.question { border: 1px solid var(--border); border-radius: 8px; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; background: #fcfcfd; }
.q-text { font-weight: 700; color: var(--navy); padding: 0 0.4rem; font-size: 1.05rem; }
.choice { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.55rem 0.4rem; cursor: pointer; border-radius: 6px; }
.choice:hover { background: var(--light-gray); }
.choice input { margin-top: 0.4rem; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.feedback { margin-top: 0.8rem; padding: 0.8rem 1rem; border-radius: 6px; font-size: 0.97rem; background: var(--light-gray); }
.question.is-correct { border-color: var(--ok); }
.question.is-wrong { border-color: var(--bad); }
.is-correct .feedback strong { color: var(--ok); }
.is-wrong .feedback strong { color: var(--bad); }
.quiz-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.error { color: var(--bad); font-weight: 700; }
.result { margin-top: 1.5rem; padding: 1.25rem; border: 2px solid var(--navy); border-radius: 8px; background: var(--light-gray); }
.result h3 { color: var(--navy); margin-bottom: 0.5rem; }
.result p:last-child { margin-bottom: 0; }

.name-form { display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-start; margin-bottom: 1.5rem; }
.name-form label { font-weight: 700; color: var(--navy); }
.name-form input { width: 100%; max-width: 420px; padding: 0.7rem 0.9rem; font-size: 1.05rem; border: 2px solid var(--border); border-radius: 6px; font-family: inherit; }
.name-form input[aria-invalid="true"] { border-color: var(--bad); }

.certificate { background: var(--white); border: 6px double var(--navy); border-radius: 4px; padding: 2.5rem 2rem; text-align: center; margin-bottom: 1.5rem; }
.cert-eyebrow { font-size: 0.85rem; letter-spacing: 2px; text-transform: uppercase; color: #856800; font-weight: 700; }
.cert-title { font-size: 2.2rem; color: var(--navy); margin: 0.5rem 0 1.25rem; }
.container.narrow .cert-name { font-size: 2rem; font-weight: 800; color: var(--navy); border-bottom: 2px solid var(--gold); display: inline-block; padding: 0 1.5rem 0.2rem; margin: 0.5rem 0 1rem; overflow-wrap: anywhere; }
.cert-line { font-size: 1.1rem; }
.container.narrow .cert-fine { font-size: 0.8rem; color: var(--text-light); margin-top: 1.5rem; }
.cert-actions { margin-bottom: 1rem; }

.cta-section { background: var(--navy); color: var(--white); }
.cta-section .section-title { color: var(--white); }
.cta-section .section-label { color: var(--gold-light); }
.cta-section a:not(.btn-primary) { color: var(--gold-light); }
.sources-title { margin-top: 2rem; font-size: 1rem; color: var(--gold-light); }
.sources { padding-left: 1.2rem; font-size: 0.9rem; }
.sources li { margin-bottom: 0.4rem; }

@media (max-width: 600px) {
  section { padding: 2.5rem 1rem; }
  .hero { padding: 3.5rem 1rem 3rem; }
  .certificate { padding: 1.5rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  nav, footer, .skip-link, .no-print { display: none !important; }
  body.has-cert .hero, body.has-cert section:not(#completion) { display: none !important; }
  body { background: #ffffff; }
  .certificate { border-color: #000000; margin-top: 2rem; page-break-inside: avoid; }
}

.patch-badge{display:inline-block;margin-left:12px;vertical-align:middle}
