:root {
  color-scheme: light;
  --ink: #14213a;
  --muted: #4f5b6d;
  --paper: #f7f6f1;
  --white: #fff;
  --gold: #f6d37d;
  --line: #e0ded5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*, *:before, *:after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
svg { width: 1.2em; height: 1.2em; flex: none; display: block; }
:focus-visible { outline: 3px solid #a66c00; outline-offset: 4px; }
.sr-only, .skip-link:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip-link { display: block; padding: 10px 20px; }
.wrap { width: min(1240px, calc(100% - 92px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; font-size: 1.42rem; letter-spacing: -.045em; font-weight: 780; white-space: nowrap; }
.brand > span:last-child { color: #775015; }
.brand-mark { display: grid; place-items: center; margin-right: .55rem; width: 38px; height: 38px; border-radius: 10px; background: #172641; color: var(--gold); }
.header-inner nav { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.header-inner nav a { white-space: nowrap; border-radius: 7px; padding: 8px 13px; font-size: .88rem; font-weight: 620; color: #405069; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { background: #f1eee4; color: var(--ink); }
.hero, .page-heading { background: radial-gradient(ellipse at 86% 6%, #28456b 0, transparent 62%), linear-gradient(140deg, #14243e, #0e182b); color: #fff; }
.hero { position: relative; margin-top: 36px; border-radius: 22px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(ellipse at 100% 15%, transparent 0 35px, #e8c98213 36px 37px, transparent 38px 51px); mask-image: linear-gradient(to right, transparent 20%, #0007 70%, #000); }
.slide { position: relative; min-height: 475px; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(24px, 4.2vw, 66px); padding: 48px clamp(35px, 4.5vw, 70px) 94px; }
.slide.is-entering { animation: enter-slide .33s ease-out both; }
@keyframes enter-slide { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .16em; color: #775015; font-size: .72rem; font-weight: 760; }
.eyebrow span { width: 7px; height: 7px; flex: none; background: currentColor; transform: rotate(45deg); }
.hero .eyebrow { color: #f8d991; }
.slide h1, .slide h2 { font: 400 clamp(2.55rem, 4.55vw, 4.5rem)/1.03 var(--serif); letter-spacing: -.052em; text-wrap: balance; margin: 0; }
.slide h1 em, .slide h2 em { font-weight: 400; color: #f6d693; }
.slide-summary { color: #e0e7f5; margin: 21px 0 25px; max-width: 37ch; font-size: clamp(.95rem, 1.2vw, 1.1rem); }
.hero-actions, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 46px; border: 1px solid transparent; padding: 10px 15px; border-radius: 8px; font-size: .87rem; font-weight: 720; }
.gold { background: var(--gold); color: #17223a; }
.gold:hover { background: #ffe3a7; }
.primary { background: #172641; color: #fff; }
.primary:hover { background: #28446a; }
.outline { background: #fff; color: var(--ink); border-color: #b9bdc6; }
.outline:hover { background: #f4f5f8; }
.hero-link, .text-link { display: inline-flex; gap: 7px; align-items: center; width: fit-content; font-weight: 680; font-size: .88rem; }
.hero-link:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero :focus-visible, .site-footer :focus-visible { outline-color: #ffdf96; }
.certificate { position: relative; margin-inline: auto; width: 100%; max-width: 510px; padding: 6px; border: 1px solid #edcd8b8c; border-radius: 9px; background: #dfbe781c; box-shadow: 0 20px 45px #080e1e6e; }
.certificate img { display: block; width: 100%; height: auto; border-radius: 4px; }
.certificate[data-frame="1"] img { filter: hue-rotate(22deg); }
.certificate[data-frame="2"] img { filter: saturate(.67) hue-rotate(-16deg); }
.certificate[data-frame="3"] img { filter: saturate(.75) hue-rotate(-27deg); }
.certificate-copy { position: absolute; inset: 13% 13%; display: grid; place-content: center; justify-items: center; text-align: center; color: #192b49; }
.seal { display: grid; place-items: center; width: clamp(31px, 4vw, 56px); aspect-ratio: 1; margin-bottom: 10px; border-radius: 50%; background: #16294a; color: var(--gold); outline: 1px solid #ae7c22; outline-offset: 3px; font-size: clamp(.85rem, 1.7vw, 1.55rem); }
.certificate-name { font: italic 400 clamp(1.38rem, 3.25vw, 3.2rem)/1.05 var(--serif); letter-spacing: -.055em; }
.ornament { display: flex; align-items: center; gap: 8px; color: #98661c; font-size: .55rem; margin: 10px 0 8px; }
.ornament::before, .ornament::after { content: ""; width: clamp(14px, 3.4vw, 50px); height: 1px; background: #b48b4a; }
.certificate-caption { text-transform: uppercase; color: #72501b; letter-spacing: .14em; font-size: clamp(.55rem, .9vw, .74rem); font-weight: 730; }
.carousel-controls { position: absolute; bottom: 20px; left: clamp(35px, 4.5vw, 70px); right: clamp(35px, 4.5vw, 70px); display: flex; align-items: center; justify-content: space-between; }
.carousel-dots, .carousel-arrows { display: flex; align-items: center; gap: 7px; }
.carousel-controls button { border: 0; background: none; color: #fff; display: grid; place-items: center; }
.carousel-controls .dot { width: 27px; height: 36px; padding: 0; }
.dot::after { content: ""; width: 7px; height: 7px; border-radius: 5px; background: #b0bed1; }
.dot[aria-current="true"]::after { width: 25px; background: var(--gold); }
.carousel-arrows button { width: 36px; height: 36px; border: 1px solid #ffffff53; border-radius: 50%; }
.carousel-arrows button:hover { background: #ffffff23; }
.features { margin: 39px 0 55px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 17px; }
.section-heading h2, .panel h2 { margin: 0; font: 400 clamp(1.7rem, 3vw, 2.25rem)/1.15 var(--serif); letter-spacing: -.04em; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature, .panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.feature { display: grid; grid-template-columns: 49px 1fr; column-gap: 15px; padding: 21px; }
.tile-icon, .page-symbol { display: grid; place-items: center; background: #f3ead3; color: #825919; border-radius: 11px; width: 46px; height: 46px; font-size: 1.15rem; }
.tile-icon { grid-row: span 3; }
.feature h3 { margin: 0; font-size: 1.08rem; }
.feature p { color: var(--muted); margin: 3px 0 11px; font-size: .91rem; }
.text-link { color: #604116; }
.site-footer { margin-top: 48px; background: #101b30; color: #fff; }
.footer-inner { min-height: 133px; padding-block: 20px; display: flex; align-items: center; }
.footer-inner .brand > span:last-child { color: var(--gold); }
.footer-inner p { margin: 8px 0 0; color: #e0e7f5; font-size: .86rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 20px; padding: clamp(24px, 5vw, 66px); margin: 36px 0 24px; }
.page-heading h1 { font: 400 clamp(2.3rem, 5vw, 4.3rem)/1.02 var(--serif); letter-spacing: -.05em; margin: 0; }
.page-heading p { color: #e0e7f5; margin: 13px 0 0; max-width: 55ch; }
.page-symbol { width: clamp(46px, 7vw, 82px); height: auto; aspect-ratio: 1; flex: none; font-size: clamp(1.1rem, 3vw, 2.1rem); }
.panel { padding: clamp(20px, 4vw, 42px); max-width: 960px; }
.jotjig { margin-bottom: 16px; }
.panel > p:not(.eyebrow) { color: var(--muted); max-width: 69ch; }
.lesson-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lesson-steps div { background: #f4f2e9; border-radius: 9px; padding: 13px; }
.lesson-steps dt, legend { color: var(--ink); font-weight: 735; }
.lesson-steps dd { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.quiz { padding-top: 16px; border-top: 1px solid var(--line); }
.quiz fieldset { border: 0; padding: 0; margin: 0 0 15px; display: flex; flex-wrap: wrap; gap: 12px; }
.quiz legend { margin-bottom: 10px; padding: 0; }
.quiz label { display: flex; align-items: center; gap: 6px; }
.quiz input { accent-color: #263d62; }
.status { color: #4f5b6d; font-size: .89rem; }
.status[data-tone="error"] { color: #8b301b; }
.status[data-tone="success"] { color: #286044; }
.status:empty { display: none; }
.fields { display: grid; gap: 14px; margin-bottom: 18px; }
.selectors { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields label { display: grid; gap: 5px; font-size: .9rem; font-weight: 680; }
.fields .wide { grid-column: 1 / -1; }
.fields input, .fields select, .fields textarea { width: 100%; padding: 9px 11px; border: 1px solid #b8becc; border-radius: 7px; background: #fff; color: var(--ink); font-weight: 400; min-height: 44px; }
.fields textarea { resize: vertical; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  .slide { min-height: 415px; }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 34px); }
  .header-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; padding-block: 12px 9px; }
  .header-inner nav { margin-left: -6px; gap: 2px; }
  .header-inner nav a { padding: 7px 7px; font-size: .82rem; }
  .hero, .page-heading { margin-top: 20px; border-radius: 15px; }
  .slide { grid-template-columns: 1fr; align-content: start; padding: 30px 22px 76px; gap: 26px; }
  .slide h1, .slide h2 { font-size: clamp(2.15rem, 8.2vw, 3.55rem); }
  .slide-summary { margin: 15px 0 19px; }
  .carousel-controls { left: 19px; right: 20px; bottom: 17px; }
  .certificate { max-width: 409px; margin-inline: 0 auto; }
  .certificate-name { font-size: clamp(1.45rem, 6.5vw, 2.6rem); }
  .certificate-caption { font-size: .59rem; }
  .seal { width: clamp(32px, 8vw, 48px); font-size: 1.03rem; margin-bottom: 8px; }
  .features { margin-block: 30px 34px; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .hero-actions { gap: 11px; min-height: 100px; align-content: start; }
  .section-heading { flex-wrap: wrap; }
  .lesson-steps, .details { grid-template-columns: 1fr; }
  .selectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .slide.is-entering { animation: none; } }
