@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-400.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-sans-500.woff") format("woff"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-600.woff") format("woff"); }

:root {
  --navy: #092735; --navy-2: #0f3a4b; --teal: #23695e; --teal-d: #1a5249; --teal-l: #e6f2ef; --mint: #a4edda; --ink: #122f3c; --muted: #52646b;
  --line: #dbe4df; --paper: #f5f7f4; --white: #fff; --good: #1b7a4b; --bad: #b3261e; --warn: #8a5a00; --gold: #c9962b;
  --radius: 14px; --shadow: 0 1px 2px rgba(9,39,53,.06), 0 8px 24px -12px rgba(9,39,53,.18); --shadow-lg: 0 2px 4px rgba(9,39,53,.06), 0 24px 48px -20px rgba(9,39,53,.3);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.6; color: var(--ink); background: var(--paper); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; outline: none; }
img, svg { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3.6vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr { position: absolute; left: -9999px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 14px; z-index: 80; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar ---------- */
.top { background: rgba(9,39,53,.96); backdrop-filter: blur(8px); color: #fff; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.08); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { height: 30px; width: auto; border-radius: 6px; background: #f1f4f2; padding: 2px 4px; }
.brand b { display: block; font-size: 1.02rem; font-weight: 600; line-height: 1.1; }
.brand small { display: block; font-weight: 500; font-size: .66rem; letter-spacing: .16em; color: var(--mint); line-height: 1.3; }
.nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav a, .nav button { color: #e5f1ee; text-decoration: none; background: none; border: 0; font: inherit; padding: 9px 13px; border-radius: 10px; cursor: pointer; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; }
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav .on { background: rgba(164,237,218,.16); color: #fff; }
.nav .cta { background: var(--mint); color: var(--navy); font-weight: 600; margin-left: 6px; }
.nav .cta:hover { background: #c5f6ea; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--mint); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: .78rem; }

/* ---------- buttons, forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 12px; border: 1.5px solid var(--teal); background: var(--teal); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--teal-d); box-shadow: 0 6px 16px -8px rgba(35,105,94,.7); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--teal); }
.btn.ghost:hover { background: var(--teal-l); box-shadow: none; }
.btn.light { background: var(--mint); color: var(--navy); border-color: var(--mint); }
.btn.light:hover { background: #c5f6ea; }
.btn.line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn.line-light:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.btn.block { width: 100%; }
.btn.small { min-height: 38px; padding: 6px 16px; font-size: .9rem; border-radius: 10px; }
.btn[disabled], .btn.off { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=tel] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #b9c7c2; border-radius: 12px; font: inherit; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(35,105,94,.14); outline: none; }
.field input:disabled { background: #eef2f0; color: var(--muted); }
.field .hint { font-size: .85rem; color: var(--muted); margin-top: 5px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-size: .95rem; display: flex; gap: 10px; align-items: flex-start; }
.alert.bad { background: #fdecea; color: var(--bad); border: 1px solid #f3c1bd; }
.alert.good { background: #e6f5ec; color: var(--good); border: 1px solid #b9e0c9; }
.alert.info { background: var(--teal-l); color: var(--teal-d); border: 1px solid #c8dfda; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(164,237,218,.22), transparent 60%), radial-gradient(800px 400px at -10% 110%, rgba(35,105,94,.5), transparent 60%), var(--navy); color: #fff; padding: 64px 0 72px; }
.hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; } }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero h1 em { font-style: normal; color: var(--mint); }
.hero p.lead { color: #cfe3de; font-size: 1.15rem; max-width: 52ch; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(164,237,218,.14); border: 1px solid rgba(164,237,218,.35); color: var(--mint); font-size: .85rem; font-weight: 500; margin-bottom: 18px; }
.hero-art { display: none; }
@media (min-width: 960px) { .hero-art { display: block; } }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.trust { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
@media (min-width: 700px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust div { border-left: 2px solid rgba(164,237,218,.4); padding-left: 14px; }
.trust b { display: block; font-size: 1.5rem; color: #fff; line-height: 1.1; }
.trust span { font-size: .85rem; color: #b6d3cc; }

/* ---------- sections and cards ---------- */
.section { padding-top: 56px; padding-bottom: 56px; }
.section.tight { padding-top: 36px; padding-bottom: 36px; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.head { max-width: 640px; margin-bottom: 30px; }
.head p { color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid.two, .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.card.lift { transition: transform .18s, box-shadow .18s, border-color .18s; }
.card.lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #b9d4cc; }
.card h3 { margin: 0; }
.card .grow { flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.price { font-size: 1.9rem; font-weight: 600; color: var(--navy); line-height: 1; }
.price small { font-size: .85rem; font-weight: 400; color: var(--muted); }
.price s { font-size: 1rem; color: var(--muted); font-weight: 400; margin-left: 6px; }
.tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--teal-l); color: var(--teal-d); letter-spacing: .02em; }
.tag.soon { background: #eceeed; color: #55605f; }
.tag.free { background: var(--mint); color: var(--navy); }
.tag.done { background: #e6f5ec; color: var(--good); }
.tag.gold { background: #fbf1d8; color: #7a5a10; }
.feature { display: grid; grid-template-columns: 1fr; gap: 26px; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 20px; padding: 32px 26px; box-shadow: var(--shadow-lg); }
@media (min-width: 860px) { .feature { grid-template-columns: 1.4fr 1fr; padding: 42px; align-items: center; } }
.feature h2, .feature h3 { color: #fff; }
.feature p { color: #cfe3de; }
.feature ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.feature li { display: flex; gap: 10px; align-items: flex-start; color: #e5f1ee; }
.feature li .ic { color: var(--mint); margin-top: 4px; }
.feature .buy { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; padding: 24px; }
.feature .price { color: #fff; font-size: 2.4rem; }
.feature .price s { color: #9fc1b8; }
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 6px; }
.step .num { width: 46px; height: 46px; border-radius: 14px; background: var(--teal-l); color: var(--teal); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.3rem; }
.step h3 { font-size: 1.05rem; margin-bottom: .3em; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } }
.certprev { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; box-shadow: var(--shadow-lg); text-align: center; border-top: 8px solid var(--navy); border-bottom: 8px solid var(--navy); outline: 2px solid var(--teal); outline-offset: -20px; }
.certprev .k { font-size: .66rem; letter-spacing: .2em; color: var(--teal); font-weight: 600; }
.certprev .t { font-size: 1.5rem; font-weight: 600; color: var(--navy); margin: 6px 0 14px; }
.certprev .n { font-size: 1.5rem; font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--mint); display: inline-block; padding: 0 16px 6px; margin: 6px 0; }
.certprev .c { color: var(--muted); font-size: .9rem; }
.certprev .qr { margin: 18px auto 0; width: 62px; height: 62px; background: conic-gradient(from 90deg, var(--navy) 25%, #fff 0 50%, var(--navy) 0 75%, #fff 0) 0 0 / 12px 12px; border: 4px solid #fff; outline: 1px solid var(--line); }
details.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); line-height: 1; }
details.faq[open] summary::after { content: "\2212"; }
details.faq .ans { padding: 0 18px 16px; color: var(--muted); }
.band { background: var(--navy); color: #fff; border-radius: 20px; padding: 36px 28px; text-align: center; }
.band h2 { color: #fff; } .band p { color: #cfe3de; max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- course page ---------- */
.chead { background: radial-gradient(900px 400px at 90% -20%, rgba(164,237,218,.2), transparent 60%), var(--navy); color: #fff; padding: 36px 0 44px; }
.chead h1 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.chead p { color: #cfe3de; max-width: 62ch; font-size: 1.08rem; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: inherit; }
.chead .crumbs { color: #9fc1b8; }
.chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: #d7ebe6; font-size: .92rem; }
.chips span { display: inline-flex; align-items: center; gap: 7px; }
.clayout { display: grid; gap: 30px; grid-template-columns: 1fr; padding-top: 34px; padding-bottom: 20px; }
@media (min-width: 980px) { .clayout { grid-template-columns: 1fr 340px; align-items: start; } .clayout aside { position: sticky; top: 84px; } }
.buybox { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg); }
.buybox ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; font-size: .93rem; }
.buybox li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.buybox li .ic { color: var(--teal); margin-top: 4px; }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .checks { grid-template-columns: 1fr 1fr; } }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li .ic { color: var(--good); margin-top: 4px; }
.block { margin-bottom: 36px; }
.module { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.module > header, .module > summary { padding: 16px 20px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.module > header { border-bottom: 1px solid var(--line); }
.module > summary { cursor: pointer; list-style: none; }
.module > summary::-webkit-details-marker { display: none; }
.module .mt { display: flex; gap: 14px; align-items: center; }
.module .mn { width: 36px; height: 36px; border-radius: 10px; background: var(--teal-l); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; }
.module h3 { font-size: 1.05rem; margin: 0; }
.module p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.lessons { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lessons li { border-bottom: 1px solid #edf1ee; }
.lessons li:last-child { border-bottom: 0; }
.lessons a, .lessons .lk { display: flex; align-items: center; gap: 12px; padding: 13px 20px; text-decoration: none; color: var(--ink); min-height: 50px; }
.lessons a:hover { background: #f3f8f6; }
.lessons .lk { color: var(--muted); }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #b9c7c2; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.dot .ic { width: 12px; height: 12px; stroke-width: 3; }
.dot.done { background: var(--good); border-color: var(--good); }
.dot.q { border-radius: 7px; }
.lessons .time { margin-left: auto; font-size: .85rem; color: var(--muted); white-space: nowrap; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; background: conic-gradient(var(--mint) calc(var(--p) * 1%), rgba(255,255,255,.18) 0); display: inline-flex; align-items: center; justify-content: center; position: relative; flex: none; }
.ring::before { content: ""; position: absolute; inset: 7px; background: var(--navy); border-radius: 50%; }
.ring b { position: relative; font-size: .9rem; color: #fff; }
.ring.dark { background: conic-gradient(var(--teal) calc(var(--p) * 1%), #dfe8e4 0); }
.ring.dark::before { background: #fff; }
.ring.dark b { color: var(--navy); }
.bar { height: 8px; background: #e1eae6; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), #2f8f7f); border-radius: 99px; transition: width .4s; }

/* ---------- lesson ---------- */
.readbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--mint); z-index: 60; transition: width .1s; }
.llayout { display: grid; gap: 26px; grid-template-columns: 1fr; padding-top: 26px; padding-bottom: 30px; }
@media (min-width: 1000px) { .llayout { grid-template-columns: 290px 1fr; align-items: start; } .lside { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; } }
.lside { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.lside details > summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; }
.lside details > summary::-webkit-details-marker { display: none; }
.lside ol { list-style: none; padding: 0; margin: 12px 0 0; }
.lside li a, .lside li .lk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 8px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .92rem; line-height: 1.35; }
.lside li a:hover { background: #f3f8f6; }
.lside li.cur a { background: var(--teal-l); font-weight: 600; color: var(--teal-d); }
.lside .mh { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 16px 8px 4px; }
@media (min-width: 1000px) { .lside details > summary { pointer-events: none; } .lside details > summary .ic { display: none; } }
.lesson { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
@media (min-width: 700px) { .lesson { padding: 40px 48px; } }
.lesson h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.lesson h2 { margin-top: 1.6em; font-size: 1.4rem; }
.lesson p, .lesson li { font-size: 1.05rem; line-height: 1.75; }
.lesson ul, .lesson ol { padding-left: 1.3em; }
.lesson li { margin-bottom: .45em; }
.lesson code { background: #eaf1ee; padding: 2px 7px; border-radius: 6px; font-size: .88em; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; overflow-wrap: anywhere; color: #0d3d4a; }
.codebox { margin: 0 0 1.4em; border-radius: 12px; overflow: hidden; background: #0b2230; box-shadow: 0 8px 20px -12px rgba(0,0,0,.5); }
.codebar { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 8px 16px; background: #0f2c3c; color: #7fa89c; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.codebar button { background: rgba(255,255,255,.08); color: #cfe3de; border: 0; border-radius: 6px; padding: 5px 10px; font: inherit; font-size: .72rem; letter-spacing: .08em; cursor: pointer; text-transform: uppercase; }
.codebar button:hover { background: rgba(255,255,255,.16); }
pre.code { margin: 0; padding: 16px 18px; overflow-x: auto; font-size: .88rem; line-height: 1.6; color: #dbeae6; }
pre.code code { background: none; padding: 0; color: inherit; overflow-wrap: normal; font-size: inherit; }
.tk-c { color: #6f8c95; font-style: italic; } .tk-t { color: #7dd3c0; } .tk-a { color: #f0c987; } .tk-s { color: #a8d78f; } .tk-n { color: #f3a683; } .tk-k { color: #8fb8ff; } .tk-p { color: #f0c987; }
.callout { border-left: 4px solid var(--teal); background: #f1f7f5; padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 0 0 1.3em; }
.callout.note { border-color: var(--gold); background: #fbf5e6; }
.callout b { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 3px; color: var(--teal-d); }
.callout.note b { color: var(--warn); }
.callout p, .callout { font-size: 1rem; }
.task { border: 2px dashed #b3d2c9; border-radius: 14px; padding: 18px 22px; margin: 2em 0 0; background: #fafdfc; }
.task h3 { margin-bottom: .4em; display: flex; gap: 8px; align-items: center; }
.pager { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }

/* ---------- quiz ---------- */
.qbar { position: sticky; top: 64px; z-index: 20; background: rgba(245,247,244,.95); backdrop-filter: blur(6px); padding: 12px 0; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.qbar .row { justify-content: space-between; font-size: .92rem; color: var(--muted); margin-bottom: 6px; }
.q { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.q h3 { font-size: 1.08rem; font-weight: 500; color: var(--ink); display: flex; gap: 10px; }
.q .n { color: #fff; background: var(--teal); font-weight: 600; width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; flex: none; margin-top: 1px; }
.q .opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 9px; cursor: pointer; min-height: 50px; transition: border-color .12s, background .12s; }
.q .opt:hover { background: #f3f8f6; border-color: #b9d4cc; }
.q .opt:has(input:checked) { border-color: var(--teal); background: var(--teal-l); }
.q .opt input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.q.ok { border-color: #8fcaa8; background: #fbfefc; } .q.no { border-color: #e9a7a1; background: #fffcfb; }
.q .verdict { display: flex; gap: 8px; align-items: center; font-weight: 600; margin: 0; }
.q.ok .verdict { color: var(--good); } .q.no .verdict { color: var(--bad); }
.q .why { margin-top: 10px; font-size: .96rem; padding: 12px 14px; border-radius: 10px; background: #fdecea; }
.qblank input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #b9c7c2; border-radius: 12px; font: inherit; background: #fff; }
.order { list-style: none; padding: 0; margin: 0; }
.order li { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 9px; background: #fff; }
.order li span { flex: 1; }
.order button { width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.order button:hover { background: var(--teal-l); }
.order button[disabled] { opacity: .3; cursor: default; background: #fff; }
.score { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 20px; margin-bottom: 22px; box-shadow: var(--shadow); }
.score .big { font-size: 3.6rem; font-weight: 600; line-height: 1; }
.score.pass .big { color: var(--good); } .score.fail .big { color: var(--bad); }
.cert-card { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 16px; padding: 24px; }
.cert-card h3 { color: #fff; }
.cert-card p { color: #cfe3de; }
.cert-card .no { font-family: ui-monospace, Consolas, monospace; color: var(--mint); overflow-wrap: anywhere; }

/* ---------- auth ---------- */
.authwrap { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 64px - 90px); }
@media (min-width: 960px) { .authwrap { grid-template-columns: 5fr 6fr; } }
.authside { display: none; background: radial-gradient(700px 400px at 100% 0, rgba(164,237,218,.2), transparent 60%), var(--navy); color: #fff; padding: 56px 44px; }
@media (min-width: 960px) { .authside { display: flex; flex-direction: column; justify-content: center; } }
.authside h2 { color: #fff; font-size: 2rem; }
.authside ul { list-style: none; padding: 0; display: grid; gap: 16px; margin-top: 22px; }
.authside li { display: flex; gap: 12px; align-items: flex-start; color: #d7ebe6; }
.authside li .ic { color: var(--mint); margin-top: 4px; }
.authmain { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth { width: 100%; max-width: 440px; }
.auth h1 { font-size: 1.9rem; }
.otp { display: flex; gap: 10px; justify-content: center; margin: 22px 0 18px; }
.otp input { width: 52px; height: 62px; text-align: center; font: inherit; font-size: 1.7rem; font-weight: 600; border: 1.5px solid #b9c7c2; border-radius: 12px; background: #fff; color: var(--navy); padding: 0; }
.otp input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(35,105,94,.14); outline: none; }
@media (max-width: 400px) { .otp input { width: 44px; height: 56px; } .otp { gap: 7px; } }

/* ---------- dashboard ---------- */
.dhero { background: radial-gradient(900px 400px at 90% -30%, rgba(164,237,218,.2), transparent 60%), var(--navy); color: #fff; padding: 36px 0 70px; }
.dhero h1 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: .2em; }
.dhero p { color: #b6d3cc; margin: 0; }
.pullup { margin-top: -46px; }
.continue { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.continue .grow { flex: 1; min-width: 220px; }
.certrow { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cert-ic { width: 46px; height: 46px; border-radius: 12px; background: #fbf1d8; color: #7a5a10; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cert-ic .ic { width: 24px; height: 24px; }

/* ---------- verify page ---------- */
.verify-page { align-items: center; justify-content: center; padding: 20px; background: radial-gradient(800px 400px at 50% -10%, rgba(35,105,94,.12), transparent 60%), var(--paper); }
.verify-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 28px; max-width: 540px; width: 100%; margin: auto; box-shadow: var(--shadow-lg); }
.verify-status { display: inline-block; font-weight: 600; padding: 6px 14px; border-radius: 99px; margin-bottom: 14px; }
.verify-status.good { background: #e6f5ec; color: var(--good); } .verify-status.bad { background: #fdecea; color: var(--bad); }
.verify-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 20px 0; }
.verify-card dt { color: var(--muted); } .verify-card dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.verify-note { font-size: .85rem; color: var(--muted); }
.verify-form label { display: block; font-weight: 500; margin-bottom: 6px; }
.verify-form input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #b9c7c2; border-radius: 12px; font: inherit; margin-bottom: 12px; }
.verify-form button { min-height: 48px; padding: 0 24px; border: 0; border-radius: 12px; background: var(--teal); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

.foot { background: var(--navy); color: #b6d3cc; padding: 28px 0; font-size: .9rem; margin-top: 48px; }
.foot a { color: var(--mint); }
.foot-row { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.spin { text-align: center; padding: 80px 0; color: var(--muted); }
.spin::before { content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 14px; border: 3px solid #cfe0da; border-top-color: var(--teal); border-radius: 50%; animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main > * { animation: rise .35s ease both; }

@media (max-width: 640px) {
  .nav a, .nav button { padding: 8px 9px; font-size: .88rem; }
  .nav .txt { display: none; }
  .brand small { display: none; }
  .hero { padding: 44px 0 52px; }
  .lessons .time { display: none; }
  .lesson { padding: 24px 18px; }
  .btn.stack { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print { .top, .foot, .pager, .btn, .lside, .qbar { display: none; } }
