/* Online Testers — warm, editorial learning space. Shared by all three pages. */
:root {
  color-scheme: light;
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-soft: #f4efe9;
  --text: #292632;
  --muted: #6c6570;
  --accent: #b82d61;
  --accent-hover: #94224d;
  --line: #e8e0db;
  --rose: #f8e6e9;
  --blue: #e8f0f6;
  --mint: #e6eee6;
  --lavender: #eeebf6;
  --sand: #f5eddc;
  --shadow: 0 24px 64px #5b354412;
  --radius: 20px;
  --header: #faf7f2f2;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #18171d;
  --surface: #232229;
  --surface-soft: #2a272e;
  --text: #f6f1ed;
  --muted: #bbb2be;
  --accent: #f094b3;
  --accent-hover: #ffb4ce;
  --line: #403943;
  --rose: #3d2833;
  --blue: #253540;
  --mint: #28392f;
  --lavender: #332d43;
  --sand: #3b3429;
  --shadow: 0 24px 64px #0003;
  --header: #18171df2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Inter', Arial, sans-serif; font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: default; }
img { max-width: 100%; height: auto; }
svg { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-size: clamp(45px, 5.4vw, 76px); letter-spacing: -.065em; font-weight: 750; }
h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.045em; font-weight: 700; }
h3 { font-size: 19px; letter-spacing: -.025em; }
p { color: var(--muted); }
p + p { margin-top: 14px; }
::selection { background: var(--rose); color: var(--text); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--surface); padding: 12px; }
.skip:focus { top: 10px; }
.header { position: fixed; top: 0; left: 0; width: 100%; z-index: 30; background: var(--header); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand > span { font-size: 23px; font-weight: 750; letter-spacing: -.055em; line-height: 1.1; }
.brand-accent { color: var(--accent); }
.brand small { display: block; color: var(--muted); font-size: 7px; letter-spacing: .14em; font-weight: 600; margin-top: 7px; }
#navigation { display: flex; align-items: center; gap: 32px; }
#navigation a { font-size: 13px; font-weight: 600; color: var(--muted); padding: 31px 0; position: relative; }
#navigation a:hover, #navigation a[aria-current] { color: var(--accent); }
#navigation a[aria-current]:after { content: ''; position: absolute; bottom: 18px; width: 4px; height: 4px; background: var(--accent); border-radius: 50%; left: calc(50% - 2px); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--text); width: 42px; height: 42px; flex-shrink: 0; }
.icon-button:hover { background: var(--surface-soft); }
.theme-toggle .sun, [data-theme="dark"] .theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: inline; }
.menu-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 16px 23px; min-height: 52px; background: var(--accent); color: #fff; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 650; line-height: 1.4; transition: background .18s, transform .18s; }
[data-theme="dark"] .button { color: #291623; }
.button:hover { background: var(--accent-hover); transform: translateY(-2px); }
.button.small { min-height: 42px; padding: 11px 16px; font-size: 12px; gap: 12px; }
.button svg { width: 18px; height: 18px; }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button.secondary:hover { background: var(--surface-soft); border-color: var(--muted); }
.text-link { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 14px; font-size: 13px; }
.text-link:hover { text-decoration: underline; }
.text-button { border: 0; background: transparent; padding: 0; color: inherit; text-align: left; font-size: inherit; }
.text-button:hover { color: var(--accent); text-decoration: underline; }
main { padding-top: 88px; }
.eyebrow { font-size: 10px; letter-spacing: .15em; font-weight: 700; color: var(--accent); line-height: 1.7; }
.tiny-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: middle; }
.hero { display: grid; grid-template-columns: 1.04fr 1fr; gap: 80px; align-items: center; padding-top: 80px; padding-bottom: 88px; }
.hero h1 { margin: 24px 0; }
h1 > span, .why-intro h2 span { color: var(--accent); }
.hero-lead { font-size: 16px; max-width: 438px; line-height: 1.9; }
.hero-actions { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { display: flex; gap: 23px; margin-top: 23px; font-size: 11px; color: var(--muted); }
.hero-note span { display: flex; gap: 6px; align-items: center; }
.hero-note svg { color: var(--accent); width: 14px; height: 14px; }
.study-scene { position: relative; padding: 25px 27px 25px 24px; isolation: isolate; }
.study-scene:before { content: ''; position: absolute; z-index: -1; inset: 24px 0 8px 0; background: var(--rose); border-radius: 42% 42% 20% 20%; transform: rotate(-5deg); }
.study-scene:after { content: ''; z-index: -1; position: absolute; width: 125px; height: 125px; top: -8px; right: -14px; background-image: radial-gradient(var(--accent) 1px,transparent 1px); background-size: 12px 12px; opacity: .16; border-radius: 50%; }
.scene-label { position: relative; z-index: 1; margin-bottom: 20px; text-align: center; font-size: 9px; letter-spacing: .17em; color: var(--accent); font-weight: 600; }
.study-card { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 24px 26px 20px; box-shadow: var(--shadow); position: relative; }
.study-top { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.study-top strong { display: block; font-size: 12px; font-weight: 650; }
.study-top small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.study-icon { background: var(--rose); padding: 9px; border-radius: 10px; color: var(--accent); }
.study-icon svg { width: 19px; height: 19px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #59916b; margin-left: auto; }
.quiz-meta { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: .06em; margin-top: 20px; color: var(--muted); }
.progress-track { height: 4px; border-radius: 4px; background: var(--surface-soft); margin-top: 9px; }
.progress-track span { display: block; height: 100%; background: var(--accent); border-radius: inherit; width: 33.33%; transition: width .3s; }
.study-card h2 { font-size: 19px; letter-spacing: -.03em; margin-top: 24px; }
.question-sentence { color: var(--muted); font-size: 13px; margin-top: 9px; line-height: 1.9; min-height: 49px; }
.question-sentence span { color: var(--accent); letter-spacing: .2em; }
#quiz-options { border: 0; margin: 17px 0 0; padding: 0; display: grid; gap: 8px; }
.quiz-option { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; cursor: pointer; }
.quiz-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.quiz-option > span { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; background: var(--surface-soft); border-radius: 5px; font-size: 10px; color: var(--muted); }
.quiz-option:has(input:checked) { background: var(--rose); border-color: var(--accent); }
.quiz-option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.quiz-option.correct { border-color: #388356; background: var(--mint); }
.quiz-option.incorrect { border-color: var(--accent); background: var(--rose); }
.quiz-feedback { font-size: 11px; min-height: 0; }
.quiz-feedback:not(:empty) { margin-top: 13px; }
.quiz-check { width: 100%; margin-top: 15px; min-height: 42px; padding: 12px; font-size: 11px; }
.quiz-disclaimer { margin-top: 10px; text-align: center; font-size: 8px; }
.floating-note { position: absolute; right: -30px; bottom: -2px; display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); background: var(--surface); padding: 13px 19px; box-shadow: 0 12px 30px #412b3910; border-radius: 11px; transform: rotate(-4deg); font-size: 10px; line-height: 1.6; }
.floating-note > svg { width: 29px; height: 29px; color: #558367; background: var(--mint); border-radius: 50%; padding: 6px; }
.scene-star { position: absolute; top: 55px; left: -7px; color: #a87228; font-size: 60px; line-height: 1; transform: rotate(16deg); }
.exam-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exam-strip .container { min-height: 96px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.exam-strip .container > span { font-size: 9px; font-weight: 600; letter-spacing: .11em; line-height: 1.6; color: var(--muted); }
.exam-strip strong { font-size: 19px; letter-spacing: -.04em; color: var(--muted); font-weight: 650; white-space: nowrap; }
.exam-strip strong > span { font-size: 9px; vertical-align: super; }
.section { padding-top: 86px; padding-bottom: 86px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-heading h2, .why-intro h2, .faq-section h2 { margin-top: 12px; }
.section-heading > p { font-size: 12px; line-height: 1.9; }
.exam-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }
.rose { background: var(--rose); }
.blue { background: var(--blue); }
.mint { background: var(--mint); }
.lavender { background: var(--lavender); }
.sand { background: var(--sand); }
.exam-card { border-radius: 12px; padding: 22px 19px 17px; border: 1px solid transparent; display: flex; flex-direction: column; transition: transform .18s, border-color .18s; }
.exam-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.exam-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 27px; }
.exam-symbol svg { width: 25px; height: 25px; opacity: .75; }
.level { font-size: 9px; border: 1px solid currentColor; border-radius: 5px; padding: 2px 7px; opacity: .7; }
.exam-card h3 { font-size: 18px; }
.former { margin-top: 7px; font-size: 9px; color: var(--muted); }
.exam-card p { font-size: 11px; line-height: 1.9; margin: 19px 0 24px; }
.exam-bottom { border-top: 1px solid #6b536322; padding-top: 13px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 600; }
.exam-bottom svg { width: 15px; height: 15px; }
.section-footnote { margin-top: 15px; font-size: 10px; }
.why-section { padding: 72px 0; background: var(--surface-soft); }
.why-grid { display: grid; grid-template-columns: .9fr 1.25fr; gap: 110px; }
.why-intro > p:not(.eyebrow) { margin: 23px 0; font-size: 13px; line-height: 1.9; max-width: 350px; }
.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 44px; }
.benefit-icon { display: inline-flex; padding: 10px; border-radius: 10px; }
.benefit-icon svg { width: 21px; height: 21px; }
.benefit-grid h3 { margin: 15px 0 9px; font-size: 15px; }
.benefit-grid p { font-size: 12px; line-height: 1.9; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 45px; margin-top: 45px; }
.steps article { border-top: 1px solid var(--line); padding-top: 22px; }
.steps article > span { font-size: 12px; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.steps h3 { margin: 18px 0 12px; font-size: 18px; }
.steps p { max-width: 280px; font-size: 13px; }
.cta-wrap { padding-bottom: 80px; }
.cta { background: var(--rose); padding: 46px 50px; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; position: relative; overflow: hidden; gap: 35px; }
.cta > div { position: relative; z-index: 1; }
.cta h2 { font-size: 30px; margin: 10px 0 12px; }
.cta p:not(.eyebrow) { font-size: 12px; }
.cta .button { flex-shrink: 0; position: relative; z-index: 1; }
.cta-star { position: absolute; right: 175px; bottom: -60px; font-size: 210px; opacity: .07; color: var(--accent); line-height: 1; }
footer { border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr; gap: 40px; padding-top: 47px; padding-bottom: 38px; }
footer .brand > span { font-size: 22px; }
footer p { font-size: 11px; margin-top: 15px; line-height: 1.9; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 11px; color: var(--muted); }
.footer-links strong { color: var(--text); font-size: 11px; margin-bottom: 4px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 25px; display: flex; justify-content: space-between; gap: 15px; font-size: 9px; color: var(--muted); }
.page-intro { text-align: center; padding-top: 68px; padding-bottom: 48px; }
.page-intro h1 { font-size: clamp(42px,5vw,62px); margin: 20px 0; }
.page-intro > p:not(.eyebrow) { font-size: 14px; line-height: 1.9; }
.pill { display: inline-flex; margin-top: 24px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 30px; font-size: 10px; color: var(--muted); }
.pricing-section { padding-top: 18px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 32px; position: relative; }
.plan.featured { border: 2px solid var(--accent); padding: 31px; box-shadow: var(--shadow); }
.plan-ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; border-radius: 20px; padding: 5px 14px; background: var(--accent); color: white; font-size: 9px; letter-spacing: .06em; font-weight: 600; }
[data-theme="dark"] .plan-ribbon { color: #291623; }
.plan-icon { display: inline-flex; padding: 10px; border-radius: 10px; background: var(--rose); color: var(--accent); margin-bottom: 22px; }
.plan h2 { font-size: 26px; }
.plan > p { margin-top: 12px; font-size: 12px; min-height: 43px; max-width: 240px; }
.price { font-size: 47px; font-weight: 700; line-height: 1.1; letter-spacing: -.06em; margin: 30px 0; display: flex; align-items: center; gap: 11px; }
.price > span { font-size: 13px; letter-spacing: 0; font-weight: 600; }
.price small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.plan .button { width: 100%; }
.plan-divider { height: 1px; background: var(--line); margin: 28px 0 22px; }
.plan h3 { font-size: 11px; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 17px 0 0; display: grid; gap: 14px; }
.plan li { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.plan li svg { color: var(--accent); width: 16px; height: 16px; }
.pricing-note { text-align: center; margin-top: 24px; font-size: 11px; }
.faq-section { display: grid; grid-template-columns: 1fr 1.3fr; gap: 70px; }
.faq-section > div > p:not(.eyebrow) { font-size: 13px; margin-top: 24px; line-height: 2; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 22px 0; list-style: none; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: 20px; color: var(--accent); font-weight: 400; }
details[open] summary > span { transform: rotate(45deg); }
details p { padding-bottom: 23px; padding-right: 30px; font-size: 12px; line-height: 1.9; }
.contact-intro { padding-bottom: 52px; }
.contact-grid { display: grid; grid-template-columns: .83fr 1.25fr; gap: 72px; align-items: start; }
.contact-illustration { height: 150px; max-width: 280px; display: flex; align-items: center; justify-content: center; gap: 16px; background: var(--rose); border-radius: 18px; position: relative; margin-bottom: 30px; }
.contact-illustration > svg { width: 50px; height: 50px; color: var(--accent); transform: rotate(-10deg); }
.contact-illustration > span { font-size: 27px; font-weight: 650; letter-spacing: -.06em; }
.contact-illustration > i { font-size: 52px; position: absolute; top: -19px; right: 12px; color: #a87228; font-style: normal; }
.contact-aside h2 { font-size: 29px; }
.contact-aside > p { font-size: 13px; line-height: 1.9; margin: 20px 0 27px; max-width: 320px; }
.contact-info { display: flex; gap: 13px; align-items: center; margin-top: 20px; }
.contact-info strong { display: block; font-size: 12px; }
.contact-info div > span, .contact-info div > a { display: block; margin-top: 3px; font-size: 11px; color: var(--muted); }
.form-card { background: var(--surface); padding: 35px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.form-card h2 { font-size: 24px; margin: 10px 0 16px; }
.form-note { background: var(--sand); color: var(--text); padding: 12px 14px; border-radius: 8px; font-size: 11px; }
form { margin-top: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 20px; }
.field label { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 600; }
.field label > span { color: var(--accent); }
input, select, textarea { width: 100%; border: 1px solid var(--line); color: var(--text); background: var(--bg); border-radius: 7px; padding: 12px 13px; font-size: 12px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
textarea { resize: vertical; min-height: 130px; }
.field small { display: block; font-size: 9px; color: var(--muted); margin-top: 5px; }
.form-submit { width: 100%; }
.fine { font-size: 10px; margin-top: 13px; line-height: 1.8; color: var(--muted); }
#form-result { margin-top: 25px; padding-top: 24px; border-top: 1px solid var(--line); }
#form-result h3 { font-size: 17px; }
#form-result p { font-size: 12px; margin-top: 10px; }
#message-preview { white-space: pre-wrap; overflow-wrap: anywhere; padding: 15px; background: var(--bg); border-radius: 7px; font: 12px/1.8 'Inter',sans-serif; max-height: 240px; overflow-y: auto; }
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 35px; max-width: 540px; width: calc(100% - 32px); box-shadow: var(--shadow); }
dialog::backdrop { background: #17111cb3; backdrop-filter: blur(5px); }
dialog h2 { margin: 12px 0 20px; font-size: 30px; }
dialog p:not(.eyebrow) { font-size: 13px; line-height: 1.9; }
.dialog-close { float: right; width: 32px; height: 32px; font-size: 24px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.cookie-banner { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); width: min(880px,calc(100% - 32px)); background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); border-radius: 14px; z-index: 40; padding: 18px; display: flex; align-items: center; gap: 14px; }
.cookie-banner p { font-size: 11px; flex: 1; }
.cookie-banner .text-button { font-size: 11px; }
@media (min-width: 1440px) {
  .hero { padding-top: 100px; padding-bottom: 105px; }
}
@media (max-width: 1100px) {
  .container { width: calc(100% - 48px); }
  .nav-wrap { gap: 18px; }
  #navigation { gap: 22px; }
  .nav-cta { display: none; }
  .hero { gap: 35px; }
  .hero h1 { font-size: 64px; }
  .hero .button { padding: 14px 17px; font-size: 12px; }
  .floating-note { right: 0; }
  .exam-grid { grid-template-columns: repeat(3,1fr); }
  .exam-card:nth-last-child(-n+2) { min-height: 250px; }
  .why-grid { gap: 55px; }
  .contact-grid { gap: 40px; }
  .plan { padding: 24px; }
  .plan.featured { padding: 23px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .nav-wrap { min-height: 76px; }
  main { padding-top: 76px; }
  .brand > span { font-size: 21px; }
  .brand img { width: 36px; height: 36px; }
  .brand small { font-size: 6px; }
  .nav-actions { gap: 9px; }
  .icon-button { width: 38px; height: 38px; }
  .menu-toggle { display: inline-flex; }
  #navigation { display: none; position: absolute; top: 76px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px 24px 22px; box-shadow: 0 14px 20px #00000008; flex-direction: column; align-items: stretch; gap: 0; }
  #navigation.is-open { display: flex; }
  #navigation a { padding: 14px 0; }
  #navigation a[aria-current]:after { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 50px; gap: 32px; }
  .hero-copy { max-width: 530px; }
  .hero h1 { font-size: clamp(52px,9vw,68px); }
  .hero-lead { font-size: 15px; }
  .study-scene { max-width: 470px; width: 100%; justify-self: center; padding-left: 22px; padding-right: 22px; }
  .scene-star { left: 0; }
  .exam-strip .container { flex-wrap: wrap; justify-content: center; gap: 17px 27px; padding-top: 24px; padding-bottom: 24px; }
  .exam-strip .container > span { width: 100%; text-align: center; }
  .exam-strip .container > span br { display: none; }
  .exam-strip strong { font-size: 15px; }
  .section { padding-top: 55px; padding-bottom: 55px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 15px; }
  .exam-grid { grid-template-columns: repeat(2,1fr); }
  .exam-grid .exam-card:last-child { grid-column: 1/-1; }
  .exam-card:nth-last-child(-n+2) { min-height: auto; }
  .why-section { padding: 50px 0; }
  .why-grid { grid-template-columns: 1fr; gap: 35px; }
  .why-intro > p:not(.eyebrow) { max-width: 460px; }
  .benefit-grid { gap: 30px 23px; }
  .steps { gap: 22px; }
  .steps h3 { font-size: 16px; }
  .steps p { font-size: 11px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 30px; gap: 25px; }
  .cta h2 { font-size: 28px; }
  .cta-wrap { padding-bottom: 50px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-top > div:first-child { grid-column: 1/-1; }
  .footer-bottom { flex-wrap: wrap; font-size: 8px; }
  .footer-bottom > span:nth-child(2) { order: 3; width: 100%; }
  .page-intro { padding-top: 44px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; gap: 30px; }
  .plan, .plan.featured { padding: 28px; }
  .plan > p { min-height: auto; max-width: none; }
  .plan ul { padding-bottom: 10px; }
  .faq-section { grid-template-columns: 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: center; }
  .contact-illustration { display: none; }
  .contact-aside h2, .contact-aside > p { grid-column: 1/-1; }
  .contact-aside > p { margin: 0; max-width: none; }
  .contact-info { margin-top: 6px; }
  .form-card { padding: 25px; }
  input, select, textarea { font-size: 16px; }
  .cookie-banner { flex-wrap: wrap; }
  .cookie-banner p { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .hero-note { gap: 14px; font-size: 10px; }
  .hero .eyebrow { font-size: 8px; }
  .hero h1 { font-size: 53px; }
  .study-card { padding: 20px; }
  .study-scene { padding: 20px 10px 26px; }
  .floating-note { bottom: -9px; }
  .exam-card { padding: 17px 14px; }
  .exam-card h3 { font-size: 16px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps p { font-size: 13px; max-width: none; }
  .steps h3 { margin: 10px 0; font-size: 18px; }
  .contact-aside { grid-template-columns: 1fr; }
  .contact-info { margin-top: 10px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 22px 18px; }
  .form-card h2 { font-size: 23px; }
  .page-intro h1 { font-size: 39px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Correctness overrides selection, including :has() specificity. */
:root { --success: #176439; --success-bg: #e3f4e8; --success-border: #26834a; --error: #a62939; --error-bg: #fbe8eb; }
:root[data-theme="dark"] { --success: #a5edb9; --success-bg: #153f2b; --success-border: #68cd8c; --error: #ffb1bd; --error-bg: #49242f; }
.quiz-option.correct, .quiz-option.correct:has(input:checked), .exam-option.correct, .exam-option.correct:has(input:checked) { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }
.quiz-option.correct > span, .exam-option.correct .option-letter { color: var(--success); background: var(--success-bg); }
.quiz-option.incorrect, .quiz-option.incorrect:has(input:checked), .exam-option.incorrect, .exam-option.incorrect:has(input:checked) { background: var(--error-bg); border-color: var(--error); color: var(--error); }
.sample-sections { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 22px 0; }
.sample-sections span { background: var(--surface-soft); border-radius: 8px; padding: 11px; font-size: 11px; }
.sample-sections b { color: var(--accent); margin-right: 7px; }
.sample-feature { font-size: 11px; line-height: 2.1; }
.exam-dialog { max-width: 1120px; width: calc(100% - 32px); padding: 0; max-height: calc(100dvh - 32px); overflow-y: auto; }
.exam-dialog .exam-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; gap: 20px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 3; }
.exam-dialog h2 { font-size: 24px; margin: 5px 0 0; }
.exam-intro, .exam-results { padding: 28px; }
.exam-intro > .pill { margin: 0 0 18px; }
.exam-intro h3, .exam-results h3 { font-size: 28px; margin-bottom: 15px; }
.exam-intro p { max-width: 850px; }
.exam-outline { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 24px 0; }
.exam-outline > div { padding: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.exam-outline strong { display: block; font-size: 13px; }
.exam-outline span { display: block; font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 8px; }
.exam-modes { border: 0; padding: 0; margin: 25px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.exam-modes legend { font-weight: 650; font-size: 14px; margin-bottom: 12px; }
.exam-modes label { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--line); padding: 16px; border-radius: 9px; cursor: pointer; }
.exam-modes label:has(input:checked) { border-color: var(--accent); background: var(--rose); }
.exam-modes input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.exam-modes strong, .exam-modes small { display: block; }
.exam-modes strong { font-size: 13px; }
.exam-modes small { font-size: 11px; color: var(--muted); margin-top: 5px; }
.exam-dialog .fine { font-size: 11px; }
.exam-dialog .fine a { text-decoration: underline; }
.exam-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 17px 28px; font-size: 12px; background: var(--bg); }
#exam-time { font-variant-numeric: tabular-nums; }
#exam-time.urgent { color: var(--error); font-weight: 700; }
.exam-progress { height: 4px; background: var(--line); }
.exam-progress > span { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.exam-sections { display: flex; gap: 10px; padding: 16px 28px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.exam-sections button { padding: 8px 13px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12px; border-radius: 6px; }
.exam-sections button[aria-current] { background: var(--rose); color: var(--accent); border-color: var(--accent); }
.exam-body { display: grid; grid-template-columns: 1fr 1fr; }
.exam-source { background: var(--bg); border-right: 1px solid var(--line); padding: 28px; font-size: 14px; line-height: 1.95; }
.exam-source h4 { margin: 0 0 16px; font-size: 16px; line-height: 1.4; }
.exam-passage { white-space: pre-wrap; overflow-wrap: anywhere; }
.exam-passage mark { background: var(--sand); color: var(--text); border-bottom: 2px solid var(--accent); padding: 2px 4px; font-weight: 700; }
.exam-dialog .exam-question { padding: 28px; min-width: 0; }
.exam-question h3 { font-size: 21px; line-height: 1.5; letter-spacing: -.025em; margin: 12px 0 22px; }
.exam-answer-options { padding: 0; margin: 0; border: 0; display: grid; gap: 11px; }
.exam-option { display: flex; align-items: flex-start; gap: 11px; border: 1px solid var(--line); padding: 13px; border-radius: 8px; font-size: 13px; cursor: pointer; line-height: 1.65; }
.exam-option input { width: 16px; height: 16px; margin: 4px 0 0; flex: 0 0 16px; accent-color: var(--accent); }
.exam-option:has(input:checked):not(.correct):not(.incorrect) { border-color: var(--accent); background: var(--rose); }
.exam-option .option-letter { font-weight: 600; margin-right: 5px; }
.exam-option.correct input { accent-color: var(--success-border); }
.exam-option .answer-mark { display: block; margin-top: 7px; font-size: 11px; font-weight: 700; }
.exam-response-label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 9px; }
.exam-word { font-size: 18px; letter-spacing: .025em; }
.exam-word.correct { border: 2px solid var(--success-border); color: var(--success); background: var(--success-bg); }
.exam-word.incorrect { border: 2px solid var(--error); background: var(--error-bg); }
.exam-feedback:not(:empty) { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.exam-feedback[data-state="correct"] { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.exam-feedback[data-state="incorrect"] { color: var(--error); background: var(--error-bg); border-color: var(--error); }
.exam-feedback p { color: inherit; font-size: 12px !important; margin-top: 7px; }
.exam-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.exam-controls .button { font-size: 11px; }
.exam-controls button:disabled { opacity: .45; transform: none; }
.exam-question-map { padding: 20px 28px; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); }
.exam-question-map button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); font-size: 11px; }
.exam-question-map button.answered { background: var(--surface-soft); color: var(--text); }
.exam-question-map button.correct { color: var(--success); background: var(--success-bg); border-color: var(--success-border); }
.exam-question-map button.incorrect { color: var(--error); background: var(--error-bg); border-color: var(--error); }
.exam-question-map button[aria-current] { outline: 2px solid var(--accent); outline-offset: 2px; }
.exam-audio-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.exam-source details { margin-top: 20px; }
.exam-source details p { padding-right: 0; }
.exam-source details summary { font-size: 12px; }
.exam-source .audio-status { font-size: 11px; margin-top: 10px; }
.exam-builder-stem { padding: 13px; background: var(--bg); border-radius: 6px; font-size: 14px; }
.exam-builder-output { min-height: 64px; border: 1px dashed var(--muted); padding: 10px; border-radius: 7px; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.exam-builder-output.correct { border: 2px solid var(--success-border); background: var(--success-bg); }
.exam-builder-output.incorrect { border-color: var(--error); background: var(--error-bg); }
.exam-word-bank { display: flex; flex-wrap: wrap; gap: 7px; }
.exam-chip { border: 1px solid var(--line); padding: 8px 10px; border-radius: 6px; background: var(--surface); color: var(--text); font-size: 12px; }
.exam-chip:disabled { opacity: .35; }
.exam-essay { min-height: 260px; font-size: 14px; line-height: 1.8; }
.exam-review-check { display: flex; gap: 9px; margin: 11px 0; font-size: 12px; align-items: flex-start; }
.exam-review-check input { width: 17px; height: 17px; margin-top: 3px; flex-shrink: 0; }
.exam-model { white-space: pre-wrap; margin: 12px 0; font-size: 12px; line-height: 1.9; }
.exam-record-controls { display: flex; flex-wrap: wrap; gap: 9px; margin: 20px 0 12px; }
.exam-recording-status { font-size: 12px !important; margin: 12px 0; }
.exam-recording-status.live { color: var(--error); font-weight: 600; }
.exam-question audio { max-width: 100%; width: 100%; margin: 12px 0; }
.exam-confirm { margin: 0 28px 25px; padding: 22px; border: 1px solid var(--accent); background: var(--rose); border-radius: 10px; }
.exam-confirm h3 { font-size: 18px; }
.exam-confirm p { margin-top: 10px; }
.exam-result-score { font-size: 46px; font-weight: 750; color: var(--success); margin: 24px 0 6px; letter-spacing: -.04em; }
.exam-result-table { width: 100%; margin-top: 25px; border-collapse: collapse; font-size: 13px; }
.exam-result-table th, .exam-result-table td { text-align: left; padding: 13px; border-bottom: 1px solid var(--line); }
.exam-result-table th { background: var(--bg); }
@media (max-width: 760px) {
  .exam-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 12px); border-radius: 12px; }
  .exam-dialog .exam-header { padding: 14px 16px; }
  .exam-dialog h2 { font-size: 19px; }
  .exam-dialog .eyebrow { font-size: 8px; }
  .exam-intro, .exam-results, .exam-source, .exam-dialog .exam-question { padding: 20px; }
  .exam-outline { grid-template-columns: 1fr 1fr; }
  .exam-modes, .exam-body { grid-template-columns: 1fr; }
  .exam-source { border-right: 0; border-bottom: 1px solid var(--line); }
  .exam-passage { max-height: 260px; overflow-y: auto; }
  .exam-toolbar, .exam-sections, .exam-question-map { padding: 14px 20px; }
  .exam-toolbar { flex-wrap: wrap; font-size: 11px; }
  .exam-word, .exam-essay { font-size: 16px; }
  .exam-result-table th, .exam-result-table td { padding: 10px 6px; font-size: 11px; }
}
