:root {
  color-scheme: light;
  --paper: #f7f8f0;
  --white: #fffef9;
  --ink: #172c23;
  --muted: #4f6257;
  --forest: #163e30;
  --deep: #102e25;
  --line: #dce1d5;
  --gold: #f6d783;
  --radius: 20px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 100%;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
:focus-visible { outline: 3px solid #b65123; outline-offset: 3px; }
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
.wrap { width: calc(100% - 72px); max-width: 1240px; margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 12px; left: 12px; z-index: 4; background: var(--white); padding: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 74px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 760; letter-spacing: -.03em; line-height: 1; }
.brand small { display: block; font-size: .7rem; letter-spacing: .22em; margin-top: 5px; color: var(--muted); }
nav { display: flex; gap: clamp(18px, 3.6vw, 54px); }
nav a { color: var(--muted); font-weight: 650; font-size: .94rem; text-decoration: none; }
nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; }
.button { border: 1px solid transparent; border-radius: 10px; display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 7px; padding: 10px 16px; font-size: .92rem; font-weight: 730; text-decoration: none; text-align: center; line-height: 1.3; }
.button.compact { min-height: 41px; }
.button.primary { background: var(--forest); color: #fffef9; }
.button.primary:hover { background: #225642; }
.button.gold { background: var(--gold); color: #1c3026; }
.button.gold:hover { background: #ffe4a0; }
.button.ghost { color: #fffbec; border-color: #88a194; background: #163a2b; }
.button.ghost:hover { background: #2b513e; }
.button.outline { background: var(--white); color: var(--forest); border-color: #c7d2c4; }
.button.outline:hover:not(:disabled) { background: #eaf1e6; border-color: #7e9c87; }
.hero { margin-top: 26px; position: relative; isolation: isolate; overflow: hidden; min-height: 380px; display: grid; align-items: center; grid-template-columns: 1.02fr 1fr; background: #10392c; color: #fffbed; border-radius: 27px; }
.hero-copy { z-index: 1; padding: 40px 0 40px clamp(28px, 5vw, 68px); }
.hero-label { color: #c5d9c9; font-size: .76rem; letter-spacing: .14em; font-weight: 780; }
.hero h1 { margin: 15px 0 18px; font-family: Georgia, serif; font-weight: 400; font-size: clamp(2.6rem, 4.72vw, 4.55rem); line-height: .99; letter-spacing: -.06em; text-wrap: balance; }
.hero h1 em { font-weight: 400; color: #f9de91; }
.hero p { color: #e2ece2; max-width: 29rem; font-size: 1.06rem; line-height: 1.56; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.hero-visual { position: absolute; z-index: -1; inset: 0 0 0 45%; background: radial-gradient(circle at 56% 50%, #2a6348, transparent 56%); }
.hero-visual::before { content: ""; position: absolute; inset: 0; background: url("assets/globe.webp") center / cover no-repeat; mask-image: linear-gradient(90deg, transparent, #000 16%); }
.section { margin-top: 42px; scroll-margin-top: 20px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
h2 { font: 400 clamp(1.95rem, 3.1vw, 2.75rem)/1.04 Georgia, serif; letter-spacing: -.04em; }
.section-title p, .classroom-strip p { margin-top: 8px; color: var(--muted); line-height: 1.45; }
.catalog-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.filters, .filter-fields { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { min-height: 42px; border: 1px solid #d4ddd0; background: transparent; border-radius: 100px; color: #324e3f; padding: 6px 13px; font-size: .89rem; font-weight: 660; }
.filter:hover { background: #eaf1e6; }
.filter.active { color: #fff; background: var(--forest); border-color: var(--forest); }
.search-field, .select-field { display: flex; align-items: center; position: relative; }
.search-field input, .select-field select { height: 42px; background: var(--white); color: var(--ink); border: 1px solid #c7d2c4; border-radius: 10px; padding: 0 10px; }
.search-field input { padding-left: 35px; width: 173px; }
.search-field input::placeholder { color: #587062; }
.search-mark { position: absolute; left: 13px; width: 12px; height: 12px; border: 1.6px solid #537162; border-radius: 50%; pointer-events: none; }
.search-mark::after { content: ""; position: absolute; width: 6px; height: 1.6px; background: #537162; transform: rotate(48deg); right: -5px; bottom: -2px; }
.select-field select { padding-right: 27px; appearance: none; }
.select-field::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid #537162; border-bottom: 1.5px solid #537162; transform: rotate(45deg); position: absolute; right: 11px; pointer-events: none; margin-top: -4px; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.path { --tint: #dcecdf; --shade: #276348; display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.path.amber { --tint: #f3e4c0; --shade: #705021; }
.path.blue { --tint: #dce9f3; --shade: #345b7a; }
.path.pink { --tint: #f1e0e5; --shade: #7d4259; }
.path.lavender { --tint: #e8e3f0; --shade: #5e4978; }
.path.orange { --tint: #f5e2d4; --shade: #834825; }
.path-top { isolation: isolate; display: flex; position: relative; overflow: hidden; align-items: center; min-height: 77px; background: var(--tint); color: var(--shade); padding-inline: 18px; }
.path-top::after { content: ""; position: absolute; right: -24px; top: -64px; width: 185px; aspect-ratio: 1; border: 1px solid currentColor; border-radius: 50%; opacity: .25; box-shadow: 0 0 0 15px color-mix(in srgb, currentColor 20%, transparent), 0 0 0 32px color-mix(in srgb, currentColor 22%, transparent), 0 0 0 50px color-mix(in srgb, currentColor 25%, transparent); z-index: -1; }
.path-mark { font: 400 2rem/1 Georgia, serif; white-space: nowrap; }
.path-meta { font-size: .76rem; font-weight: 770; letter-spacing: .06em; color: var(--shade); text-transform: uppercase; }
.path-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 15px 17px; }
.path-body h3 { font-size: 1.16rem; letter-spacing: -.03em; }
.path-body p { color: var(--muted); font-size: .93rem; line-height: 1.45; margin-bottom: 4px; }
.path-open { margin-top: auto; align-self: start; padding: 4px 0; border: 0; color: var(--forest); background: transparent; text-decoration: underline; text-underline-offset: .26em; font-weight: 720; min-height: 40px; }
.path-open:hover { color: #8b401c; }
.catalog-foot { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.quiet { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.blank { grid-column: 1 / -1; padding: 22px; border: 1px dashed #b6c7b6; border-radius: var(--radius); background: var(--white); }
.blank p { margin: 8px 0 12px; color: var(--muted); }
.activity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.activity-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; align-items: start; padding: clamp(17px, 3vw, 28px); border: 1px solid transparent; border-radius: var(--radius); }
.activity-card h3, .plan-panel h3 { font: 400 1.6rem/1.1 Georgia, serif; letter-spacing: -.025em; }
.activity-card p { line-height: 1.52; margin-top: 7px; }
.activity-icon { display: grid; width: 50px; height: 50px; place-items: center; font-size: 1.7rem; background: #e2eadc; border-radius: 13px; }
.activity-card .button { justify-self: start; grid-column: 2; }
.challenge { background: #143d30; color: #fffbea; }
.challenge .activity-icon { background: #2b553f; color: var(--gold); }
.challenge p { color: #deebe0; }
.review { background: #eaf0e2; border-color: #d5e0d1; }
.review p { color: var(--muted); }
.activity-card .activity-status { font-weight: 720; font-size: .86rem; }
.plan-panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 3vw, 28px); }
.plan-panel + .quiet { margin: 8px 0 0; }
.plan-overview { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; align-items: center; }
.plan-overview p { margin-top: 6px; color: var(--muted); }
.plan-stats { display: flex; gap: 8px 24px; flex-wrap: wrap; margin-top: 19px; padding-top: 14px; border-top: 1px solid var(--line); }
.plan-stats strong { color: var(--forest); }
.progress { width: 100%; accent-color: #315f49; height: 11px; margin-top: 13px; }
.sessions { padding: 0; list-style: none; margin: 8px 0; }
.sessions li { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sessions li:last-child { border: 0; }
.sessions label { display: flex; gap: 10px; align-items: start; cursor: pointer; min-height: 32px; }
.sessions input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--forest); }
.sessions label small { display: block; font-size: .84rem; color: var(--muted); margin-top: 2px; }
.notice { background: #f9edce; border: 1px solid #e8d39b; border-radius: 10px; color: #563d12; padding: 10px 13px; margin-top: 12px; line-height: 1.45; }
.classroom-strip { display: flex; gap: 20px; justify-content: space-between; align-items: center; background: #e9eee3; border: 1px solid var(--line); border-radius: var(--radius); padding: 21px 24px; margin: 45px 0 28px; }
.classroom-strip h2 { font-size: 1.55rem; }
.classroom-strip a { flex-shrink: 0; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 20px 0 28px; }
.footer p { color: var(--muted); font-size: .86rem; }

body:has(dialog[open]) { overflow: hidden; }
dialog { width: min(610px, calc(100% - 26px)); max-height: calc(100dvh - 28px); max-width: none; padding: 0; border: 1px solid #c8d6c9; border-radius: var(--radius); background: var(--white); color: var(--ink); box-shadow: 0 15px 70px #081d1a42; }
dialog::backdrop { background: #0c281f9c; }
.dialog-shell { padding: clamp(19px, 4vw, 31px); position: relative; }
.close { display: grid; place-items: center; position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 1.55rem; line-height: 1; }
.close:hover { background: #eaf0e2; }
#dialog-title { margin: 10px 42px 10px 0; font-size: clamp(1.75rem, 5vw, 2.6rem); }
#dialog-content > p { line-height: 1.5; }
.dialog-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #4c6b5a; font-weight: 780; padding-right: 40px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.dialog-actions .trailing { margin-left: auto; }
.topic-list, .ordered { margin-block: 14px; padding-left: 1.35rem; line-height: 1.55; }
.topic-list li, .ordered li { padding: 3px 0 3px 4px; overflow-wrap: anywhere; }
.board { margin-top: 16px; padding: 16px 18px; background: #133a2c; color: #fcf4dd; border-radius: 12px; }
.board h3 { font-family: Georgia, serif; font-weight: 400; font-size: 1.4rem; }
.board ol { margin-top: 8px; margin-bottom: 0; }
.plan-form { display: grid; gap: 13px; margin-top: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 5px; min-width: 0; color: var(--ink); font-weight: 670; }
.form-field :is(input, select, textarea) { background: #fff; border: 1px solid #b8c9ba; border-radius: 9px; padding: 9px 11px; min-width: 0; width: 100%; min-height: 43px; color: var(--ink); font-weight: 450; }
.form-field small { color: var(--muted); font-size: .86rem; font-weight: 450; }
.form-field textarea { resize: vertical; }
.form-errors { color: #922f20; font-size: .91rem; font-weight: 650; }
.question { font-size: 1.12rem; font-weight: 680; margin: 12px 0; }
.quiz-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px; }
.timer { color: #72431e; font-weight: 780; font-variant-numeric: tabular-nums; }
.answers { border: 0; padding: 0; display: grid; gap: 8px; margin: 0; min-width: 0; }
.option { display: flex; align-items: start; gap: 9px; padding: 10px 13px; min-height: 43px; border: 1px solid #c9d6c8; border-radius: 9px; cursor: pointer; overflow-wrap: anywhere; }
.option:hover, .option:has(:checked) { background: #eaf1e6; border-color: #789981; }
.option input { margin-top: 4px; accent-color: var(--forest); }
.option.correct { background: #e5f3df; border-color: #7b9d70; }
.option.incorrect { background: #f8e8e0; border-color: #c99b88; }
.feedback { margin-top: 11px; padding: 10px 12px; background: #eaf1e6; border-radius: 8px; line-height: 1.45; }
.feedback.incorrect { background: #faeadd; }
.results li { margin-bottom: 9px; }
.results small { display: block; color: var(--muted); font-size: .9rem; }
.share-copy { width: 100%; min-height: 42px; margin-top: 10px; }

@media (max-width: 1000px) {
  .hero { min-height: 376px; }
  .hero h1 { font-size: clamp(2.3rem, 5.3vw, 3.55rem); }
  .hero-copy { padding-left: 32px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 28px); }
  .header-inner { min-height: 66px; flex-wrap: wrap; gap: 10px; padding: 10px 0; }
  .header-inner nav { order: 3; width: 100%; justify-content: center; padding: 5px 0 3px; }
  .hero { margin-top: 14px; grid-template-columns: 1fr; padding-top: 152px; }
  .hero-copy { padding: 15px 19px 23px; }
  .hero h1 { font-size: clamp(2rem, 8.8vw, 3.25rem); text-wrap: initial; margin: 10px 0 12px; }
  .hero-visual { inset: 0 0 auto 0; height: 186px; }
  .hero-visual::before { background-size: auto 240px; background-position: center 39%; mask-image: linear-gradient(#000 63%, transparent); }
  .hero p { font-size: 1rem; }
  .hero-actions { margin-top: 15px; }
  .section { margin-top: 36px; }
  .section-title { align-items: start; flex-direction: column; gap: 11px; margin-bottom: 15px; }
  .catalog-controls { align-items: start; flex-direction: column; }
  .filter-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .filter-fields :is(input, select) { width: 100%; }
  .activity-grid { grid-template-columns: 1fr; }
  .classroom-strip { flex-direction: column; align-items: start; }
  .path-body { padding: 12px; }
}
@media (max-width: 370px) {
  .catalog-grid, .form-row { grid-template-columns: 1fr; }
  .hero-actions { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
