:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #22342e;
  background: #f5f5f0;
  font-synthesis: none;
  line-height: 1.6;
  --green: #244f3c;
  --muted: #626d66;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; border: 0; min-height: 48px; }
button:disabled { cursor: default; opacity: .6; }
button:focus-visible, a:focus-visible { outline: 3px solid #936bd4; outline-offset: 4px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.04em; }
.topbar, main, footer, #status { width: min(1120px, calc(100% - 64px)); margin: auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 28px 0; border-bottom: 1px solid #dedfd7; }
.brand { text-decoration: none; font-size: 28px; font-weight: 750; letter-spacing: -1px; }
.brand-mark { display: inline-grid; place-items: center; background: var(--green); color: #fff; width: 35px; height: 35px; border-radius: 12px; margin-right: 9px; }
.brand-dot { color: #788d51; }
.category { font-size: 10px; letter-spacing: .13em; color: var(--muted); }
.category strong { color: var(--green); background: #e6ebdf; padding: 7px 10px; border-radius: 6px; margin-left: 8px; }
main:focus { outline: none; }
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; padding: 64px 0 44px; align-items: center; }
.eyebrow { font-size: 10px; letter-spacing: .16em; font-weight: 750; color: #58664e; }
h1 { font-size: clamp(36px, 4.5vw, 58px); font-weight: 700; margin: 18px 0; }
h1 em { font-style: normal; color: #52774f; }
.intro { color: var(--muted); font-size: 15px; line-height: 1.8; }
.pill { display: inline-block; margin-top: 25px; padding: 7px 12px; font-size: 11px; background: #e8eddf; border-radius: 50px; color: #355639; }
.route-art { height: 275px; position: relative; overflow: hidden; border-radius: 100px 100px 20px 20px; background: #e6e7dc; display: grid; justify-items: center; align-content: space-between; padding: 25px 10px; }
.route-label { font-size: 9px; letter-spacing: .14em; z-index: 1; }
.road { position: absolute; top: 65px; width: 110px; height: 270px; background: #49654f; transform: rotate(25deg); border: 5px solid #d3d9bd; border-radius: 70px 70px 0 0; }
.road::after { content: ''; position: absolute; left: 48px; top: 0; height: 100%; border-left: 3px dashed #e6e8ce; }
.road span { position: absolute; z-index: 1; top: 50px; left: 19px; color: white; font-size: 36px; }
.destination { background: #fbfaf3; border: 1px solid #d5d8c7; border-radius: 12px; padding: 10px 17px; font-size: 13px; z-index: 1; box-shadow: 0 7px 20px #243c2810; }
.dashboard { background: #fffefa; border: 1px solid #e1e3d9; border-radius: 18px; padding: 25px 30px 18px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; align-items: center; }
.dashboard h2 { font-size: 20px; margin: 6px 0; }
.dashboard p, .stat span { color: var(--muted); font-size: 11px; }
.stat { display: grid; border-left: 1px solid #e7e8df; padding-left: 25px; }
.stat strong { font-size: 30px; letter-spacing: -.05em; }
.stat small { color: #7c877d; font-size: 15px; font-weight: 400; }
progress { width: 100%; accent-color: #52774f; height: 7px; border: 0; border-radius: 8px; overflow: hidden; background: #e9eadd; }
progress::-webkit-progress-bar { background: #e9eadd; }
progress::-webkit-progress-value { background: #52774f; }
.dashboard progress { grid-column: 1 / -1; }
.modes { padding: 38px 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title h2 { font-size: 23px; }
.section-title span { font-size: 9px; color: var(--muted); letter-spacing: .14em; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { display: flex; flex-direction: column; align-items: flex-start; padding: 26px; border: 1px solid #dedfd6; border-radius: 16px; background: #fdfdf8; }
.card.featured { background: #e9eddf; border-color: #ccd5bb; }
.card-icon { display: grid; place-items: center; height: 38px; width: 38px; background: #eff0e8; border: 1px solid #dfe2d6; border-radius: 11px; font-size: 22px; margin-bottom: 22px; }
.featured .card-icon { background: var(--green); color: white; border-color: var(--green); }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 13px; margin: 13px 0 22px; }
.card button { background: transparent; color: var(--green); text-align: left; font-size: 12px; font-weight: 700; margin-top: auto; padding: 0; }
.featured button, .primary { background: var(--green); color: #fff; border-radius: 10px; padding: 12px 18px; font-weight: 650; }
.source { border-top: 1px solid #dedfd6; padding: 22px 0 12px; color: var(--muted); font-size: 11px; max-width: 870px; }
.source p { margin-top: 7px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 max(28px, env(safe-area-inset-bottom)); font-size: 10px; color: #697367; }
#status { font-size: 12px; color: var(--green); }
.loading { padding: 60px 0; }
.question-screen, .results { max-width: 760px; margin: 40px auto; }
.question-top { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13px; }
.question-top { flex-wrap: wrap; gap: 8px; }
.exam-time { flex-basis: 100%; color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.exam-time.urgent { color: #a13e30; }
.question-meta { margin-top: 24px; color: var(--muted); font-size: 12px; }
.question-title { font-size: clamp(23px, 3vw, 32px); line-height: 1.35; margin: 12px 0 24px; letter-spacing: -.02em; }
.signs img { max-width: 100%; height: auto; max-height: 360px; object-fit: contain; margin-bottom: 20px; border-radius: 8px; }
.options { display: grid; gap: 12px; }
.option { background: #fffefa; border: 1px solid #d9ddd0; border-radius: 12px; text-align: left; padding: 16px 18px; color: #22342e; line-height: 1.6; }
.option.selected { border: 2px solid #52774f; background: #e9eddf; padding: 15px 17px; }
.option:disabled { opacity: 1; }
.option.correct { border: 2px solid #307246; background: #dceedd; padding: 15px 17px; }
.option.incorrect { border: 2px solid #a94e40; background: #f8e5df; padding: 15px 17px; }
.feedback { margin: 20px 0; font-weight: 600; min-height: 26px; }
.question-actions, .result-actions { display: flex; justify-content: space-between; gap: 14px; }
.quiet { color: var(--muted); background: transparent; font-size: 13px; }
.results h1 { font-size: 40px; }
.score { font-size: 90px; color: var(--green); line-height: 1.4; font-weight: 750; letter-spacing: -.06em; }
.score small { font-size: 30px; color: var(--muted); }
.results p { margin-bottom: 15px; }
.results h2 { margin: 35px 0 20px; }
.mistakes p { background: #fffefa; border: 1px solid #dedfd6; padding: 18px; border-radius: 12px; font-size: 14px; }
@media (max-width: 700px) {
  .topbar, main, footer, #status { width: calc(100% - 36px); }
  .topbar { padding: 20px 0; }
  .brand { font-size: 24px; }
  .category { font-size: 8px; }
  .category strong { margin-left: 3px; padding: 6px; }
  .hero { grid-template-columns: 1fr; padding: 38px 0 30px; gap: 0; }
  .route-art { display: none; }
  .intro br { display: none; }
  .dashboard { grid-template-columns: repeat(3, 1fr); padding: 22px 20px 16px; gap: 20px 10px; }
  .dashboard > div:first-child { grid-column: 1 / -1; }
  .stat { padding-left: 10px; }
  .stat strong { font-size: 27px; }
  .stat span { font-size: 10px; }
  .section-title h2 { font-size: 21px; }
  .section-title > span { display: none; }
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 24px; }
  .card-icon { margin-bottom: 16px; }
  .card button { width: 100%; }
  .question-screen, .results { margin: 28px auto; }
  .question-actions { flex-direction: column-reverse; }
  .question-actions button { width: 100%; }
  footer { flex-direction: column; gap: 6px; }
}
