/* Russian A0 → B1 · course styles · palette and type from the approved design proposal */
@font-face { font-family: "PT Sans"; src: url("fonts/pt-sans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url("fonts/pt-sans-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url("fonts/pt-serif-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #FAF7F0; --card: #FFFDF8; --ink: #1E2A36; --muted: #4D5966;
  --control: #7A848E; --hair: #DDD6C8;
  --a1: #245C9E; --a1-tint: #DCE1E5; --a2: #875800; --a2-tint: #EAE1CE; --b1: #8A2350; --b1-tint: #EAD9DA;
  --ok: #1E6B4F; --ok-tint: #E3EEE8; --no: #B03A1E; --no-tint: #F6E2DB;
  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", "Segoe UI", Arial, sans-serif;
  --measure: 40rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.125rem; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
em, i { font-style: normal; font-weight: 700; }
a { color: var(--a1); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
html { scroll-behavior: smooth; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.5rem 1rem; border-radius: 6px; z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 1.25rem; }

/* top bar */
.top { border-bottom: 1px solid var(--hair); background: var(--paper); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; padding: 0.5rem 0; }
.badge { display: inline-block; color: #fff; background: var(--a1); font-weight: 700; font-size: 0.9375rem; line-height: 1; padding: 0.375rem 0.75rem; border-radius: 999px; }

/* headings and text */
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0; }
h1 { font-size: 2.5rem; margin-top: 0.75rem; }
h2 { font-size: 1.625rem; display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin: 0.75rem 0; }
.where { color: var(--muted); margin: 2rem 0 0; font-size: 1rem; }
.lede { font-size: 1.25rem; margin-top: 0.75rem; }
.muted { color: var(--muted); }
.ru { font-family: var(--serif); }
.ru-lg { font-family: var(--serif); font-size: 1.5rem; line-height: 1.35; }

/* lesson structure */
.steps { margin: 1.5rem 0 0; }
.steps ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.steps a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.25rem 0.75rem; border: 1px solid var(--hair); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.9375rem; background: var(--card); }
.steps a:hover { border-color: var(--control); }
.step { padding: 2.25rem 0 0.5rem; border-bottom: 1px solid var(--hair); scroll-margin-top: 1rem; }
.step:last-of-type { border-bottom: 0; }
.step h2 .n { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--a1); color: #fff; font-family: var(--sans); font-size: 1.125rem; flex: none; }
.step h2 .t { font-family: var(--sans); font-weight: 400; font-size: 1rem; color: var(--muted); }
.goal { font-family: var(--serif); font-size: 1.375rem; border-left: 4px solid var(--a1); padding: 0.25rem 0 0.25rem 1rem; margin: 1rem 0; }

.status { margin: 1.25rem 0 0; padding: 0.75rem 1rem; border-radius: 8px; background: var(--card); border: 1px solid var(--hair); }
.status.done { background: var(--ok-tint); border-color: var(--ok); }
.status .icon { vertical-align: -0.15em; margin-right: 0.375rem; }
.notice { margin: 1rem 0 0; padding: 0.75rem 1rem; border-radius: 8px; background: var(--a1-tint); }

/* figure */
figure { margin: 1.25rem 0; }
figure img { width: 100%; max-width: 30rem; border: 1px solid var(--hair); border-radius: 8px; }
figcaption { color: var(--muted); font-size: 1rem; margin-top: 0.5rem; }
.astext { background: var(--card); border: 1px solid var(--hair); border-radius: 8px; padding: 1rem 1.25rem; }
.astext ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }

/* tables */
.scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 1.0625rem; }
.tbl th, .tbl td { text-align: left; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--hair); vertical-align: top; }
.tbl th { font-weight: 700; color: var(--muted); font-size: 0.9375rem; }
.tbl td.letter { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; white-space: nowrap; }
.tbl tr.fam td { padding-top: 1rem; font-weight: 700; color: var(--a1); border-bottom: 0; }

/* word cards */
.words { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.word { background: var(--card); border: 1px solid var(--hair); border-radius: 8px; }
.word summary { list-style: none; cursor: pointer; padding: 0.625rem 0.875rem; min-height: 3rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; }
.word summary::-webkit-details-marker { display: none; }
.word summary:hover { background: var(--paper); border-radius: 8px; }
.word[open] { border-color: var(--control); }
.word .reveal { padding: 0 0.875rem 0.75rem; font-size: 1rem; }
.word .reveal .say { font-weight: 700; }
.word .reveal a { display: inline-block; margin-top: 0.25rem; padding: 0.25rem 0; }

.tip { background: var(--card); border: 1px solid var(--hair); border-left: 4px solid var(--a1); border-radius: 8px; padding: 0.75rem 1rem; margin: 1rem 0; }

/* buttons and inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; min-width: 2.75rem; padding: 0.625rem 1.125rem; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--ink); color: #fff; font: 700 1rem/1.2 var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { background: #2C3A48; }
.btn.secondary { background: var(--card); color: var(--ink); border-color: var(--control); }
.btn.secondary:hover { border-color: var(--ink); }
.btn:disabled { background: var(--hair); border-color: var(--hair); color: var(--muted); cursor: not-allowed; }
.btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend, .qtext { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.75rem; padding: 0; }
.opt { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; margin: 0.5rem 0; padding: 0.625rem 1rem; border: 1.5px solid var(--control); border-radius: 6px; background: var(--card); cursor: pointer; }
.opt:hover { border-color: var(--ink); }
.opt input { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:has(input:disabled) { cursor: default; }
.opt.is-right { border-color: var(--ok); background: var(--ok-tint); }
.opt.is-wrong { border-color: var(--no); background: var(--no-tint); }
input[type="text"], textarea { width: 100%; font: 1.125rem/1.5 var(--sans); color: var(--ink); background: var(--card); border: 1.5px solid var(--control); border-radius: 6px; padding: 0.625rem 0.875rem; }
input[type="text"]:focus-visible, textarea:focus-visible { border-color: var(--ink); }
label.field { display: block; font-weight: 700; margin: 1rem 0 0.375rem; }

/* quiz */
.quiz { background: var(--card); border: 1px solid var(--hair); border-radius: 8px; padding: 1.25rem; margin: 1rem 0; }
.qhead { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; color: var(--muted); font-size: 1rem; margin-bottom: 1rem; }
.bar { height: 0.5rem; background: var(--paper); border: 1px solid var(--hair); border-radius: 999px; overflow: hidden; margin-bottom: 1.25rem; }
.bar span { display: block; height: 100%; background: var(--a1); width: 0; transition: width 0.25s ease; }
.fb { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 6px; border-left: 4px solid; }
.fb.ok { background: var(--ok-tint); border-color: var(--ok); }
.fb.no { background: var(--no-tint); border-color: var(--no); }
.fb .tag { font-weight: 700; margin: 0 0 0.25rem; display: flex; align-items: center; gap: 0.375rem; }
.fb.ok .tag { color: var(--ok); }
.fb.no .tag { color: var(--no); }
.fb p { margin: 0.25rem 0; }
.score { font-family: var(--serif); font-size: 2.5rem; font-weight: 700; line-height: 1; margin: 0.5rem 0; }
.missed { padding-left: 1.25rem; }
.missed li { margin: 0.75rem 0; }
.warm { margin: 1rem 0 1.5rem; }

/* stress drill */
.drill { display: grid; gap: 0.75rem; margin: 1rem 0; }
.drill-row { background: var(--card); border: 1px solid var(--hair); border-radius: 8px; padding: 0.75rem 1rem; }
.drill-row .target { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 0.5rem; }
.syls { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.syl { font-family: var(--serif); font-size: 1.375rem; min-height: 2.75rem; min-width: 3.25rem; padding: 0.25rem 0.875rem; border: 1.5px solid var(--control); border-radius: 6px; background: var(--paper); color: var(--ink); cursor: pointer; }
.syl:hover { border-color: var(--ink); }
.syl.is-right { border-color: var(--ok); background: var(--ok-tint); }
.syl.is-wrong { border-color: var(--no); background: var(--no-tint); }
.drill-row .fb { margin-top: 0.75rem; }

/* recap */
.recap details { background: var(--card); border: 1px solid var(--hair); border-radius: 8px; margin: 0.75rem 0; }
.recap summary { cursor: pointer; padding: 0.75rem 1rem; font-weight: 700; min-height: 2.75rem; }
.recap details p { margin: 0 1rem 0.875rem; }
.cando { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* pager and footer */
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 2rem 0 1rem; }
.build { font-size: 0.875rem; margin-top: 0.25rem; }
figure.plate img { max-width: 34rem; }
.ref { color: var(--muted); font-size: 1rem; border-top: 1px solid var(--hair); padding: 1.25rem 0 3rem; margin-top: 1rem; }

/* home */
.alphabet { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.25rem, 1fr)); gap: 0.5rem; margin: 1.5rem 0 0.75rem; }
.alphabet span { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; font-family: var(--serif); font-size: 1.75rem; border-radius: 8px; border: 1.5px dashed var(--control); color: var(--muted); background: transparent; }
.alphabet span.known { border: 1.5px solid var(--a1); background: var(--a1-tint); color: var(--ink); font-weight: 700; }
.legend { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: 1rem; color: var(--muted); }
.legend .sw { display: inline-block; width: 1rem; height: 1rem; border-radius: 3px; vertical-align: -0.15em; margin-right: 0.375rem; }
.legend .sw.k { background: var(--a1-tint); border: 1.5px solid var(--a1); }
.legend .sw.u { border: 1.5px dashed var(--control); }
.plain { margin: 2.25rem 0; }
.panel { background: var(--card); border: 1px solid var(--hair); border-radius: 8px; padding: 1.25rem; margin: 1.25rem 0; }
.lessons { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.lessons li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 0.75rem 0; border-bottom: 1px solid var(--hair); }
.lessons li:last-child { border-bottom: 0; }
.lessons .day { color: var(--muted); font-size: 1rem; }
.st { font-size: 1rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.375rem; }
.st.done { color: var(--ok); }
.st.started { color: var(--a1); }
.st.todo { color: var(--muted); }
.teacher { display: flex; gap: 1rem; align-items: center; }
.avatar { width: 4.5rem; height: 4.5rem; border-radius: 50%; flex: none; background: var(--a1-tint); color: var(--a1); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 2rem; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.road { display: flex; gap: 4px; margin: 1rem 0 0.5rem; }
.road div { border-radius: 6px; padding: 0.625rem 0.75rem; min-width: 0; }
.road .l1 { flex: 20; background: var(--a1-tint); border: 1.5px solid var(--a1); }
.road .l2 { flex: 24; background: var(--a2-tint); }
.road .l3 { flex: 32; background: var(--b1-tint); }
.road b { display: block; font-size: 1rem; }
.road span { font-size: 0.9375rem; color: var(--muted); }
.road .l1 span, .road .l1 b { color: var(--ink); }
.hint { font-size: 1rem; color: var(--muted); }

/* landing */
.wide { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
.wide .lede, .wide .hint { max-width: 40rem; }
.hero { padding: 3rem 0 1rem; }
.h1-ru { display: block; font-size: clamp(3rem, 9vw, 5.5rem); line-height: 1.04; }
.h1-en { display: block; font-family: var(--sans); font-size: 1.375rem; color: var(--muted); margin-top: 0.75rem; }
.block { padding: 2.5rem 0 0.5rem; border-top: 1px solid var(--hair); margin-top: 2rem; scroll-margin-top: 1rem; }
.points { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0 2.5rem; margin-top: 0.75rem; }
.points .pt { border-top: 1px solid var(--hair); padding: 1rem 0 0.75rem; }
.points h3 { font-size: 1.1875rem; margin: 0 0 0.25rem; }
.points p { margin: 0; }
.week-strip { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; }
.week-strip li { background: var(--card); border: 1px solid var(--hair); border-radius: 8px; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.125rem; min-height: 8.5rem; }
.week-strip li.live { background: var(--ink); border-color: var(--ink); color: #fff; }
.week-strip li.rest { background: transparent; border-style: dashed; border-color: var(--control); }
.week-strip .d { font-weight: 700; }
.week-strip .what { font-family: var(--serif); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; }
.week-strip .mins, .week-strip .why { font-size: 0.9375rem; color: var(--muted); }
.week-strip .why { margin-top: auto; }
.week-strip li.live .mins, .week-strip li.live .why { color: #D9DEE3; }
.lesson-steps { columns: 2; column-gap: 2.5rem; padding-left: 1.5rem; margin: 1rem 0 0; }
.lesson-steps li { break-inside: avoid; margin: 0 0 0.5rem; }
.road > div > span { display: block; }
body[data-page="home"] .top-in { max-width: 60rem; }
.mapweek { margin-top: 1rem; }
.mapweek h3 a { color: var(--ink); }
.coming { list-style: none; padding: 0; margin: 1rem 0 0; }
.coming li { display: flex; gap: 0.25rem 1rem; align-items: baseline; flex-wrap: wrap; padding: 0.75rem 0; border-bottom: 1px solid var(--hair); }
.coming .wk { font-weight: 700; min-width: 4.5rem; }
.coming .soon { margin-left: auto; font-size: 0.9375rem; color: var(--muted); }
@media (max-width: 56rem) { .week-strip { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 34rem) {
  .week-strip { grid-template-columns: repeat(2, 1fr); }
  .lesson-steps { columns: 1; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.375rem; }
  .road { flex-direction: column; }
  .road div { flex: none !important; }
}

/* ---------- v4: lessons, homework, review, teacher ---------- */
.note { color: var(--muted); font-size: 1rem; margin-top: 0.5rem; }
.count { color: var(--muted); font-size: 1rem; }
.mrow { display: grid; grid-template-columns: minmax(6rem, 1fr) minmax(9rem, 1.4fr); gap: 0.75rem; align-items: center; padding: 0.5rem 0.75rem; margin: 0.375rem 0; border: 1.5px solid var(--hair); border-radius: 6px; background: var(--card); }
.mrow .mleft { font-family: var(--serif); font-size: 1.25rem; }
.mrow.is-right { border-color: var(--ok); background: var(--ok-tint); }
.mrow.is-wrong { border-color: var(--no); background: var(--no-tint); }
select { font: 1.0625rem/1.4 var(--sans); color: var(--ink); background: var(--card); border: 1.5px solid var(--control); border-radius: 6px; padding: 0.5rem 0.625rem; min-height: 2.75rem; width: 100%; }
select:focus-visible { border-color: var(--ink); }
.syl[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--card); }
.syl:disabled { cursor: default; }
.inclass { background: var(--a1-tint); border-radius: 8px; padding: 0.75rem 1rem; margin: 1rem 0; }
.hwtask { background: var(--card); border: 1px solid var(--hair); border-radius: 8px; padding: 1rem 1.25rem; margin: 1rem 0; }
.hwtask h3 { font-size: 1.125rem; }
.hwtask .hint { margin: 0.25rem 0 0.5rem; }
.tcomment { margin: 0.75rem 0 0; padding: 0.625rem 0.875rem; border-left: 4px solid var(--a1); background: var(--a1-tint); border-radius: 6px; }
.tnote { border: 1px solid var(--hair); border-left: 4px solid var(--a1); background: var(--card); border-radius: 8px; padding: 0.75rem 1rem; margin: 1rem 0; }
.tnote .tag { font-weight: 700; color: var(--a1); display: flex; gap: 0.375rem; align-items: center; margin: 0 0 0.25rem; }
.tnote .overall { font-size: 1.125rem; }
.tpair { border-top: 1px solid var(--hair); padding-top: 0.5rem; margin-top: 0.5rem; }
.chk { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0; min-height: 2.75rem; cursor: pointer; }
.chk input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: none; accent-color: var(--ink); }
.vocab { columns: 2; column-gap: 2rem; list-style: none; padding: 0; margin: 0.75rem 0; }
.vocab li { break-inside: avoid; }
.vocab .ru { font-size: 1.1875rem; }
.connect-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: flex-end; }
.connect-row label { flex: 1 1 14rem; }
.connect-row input { margin-top: 0.375rem; }
.daygrid .day { white-space: nowrap; }
.tcard { background: var(--card); border: 1px solid var(--hair); border-radius: 10px; padding: 1.25rem; margin: 1.25rem 0; }
.thead { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: baseline; }
.chip { font-size: 0.9375rem; font-weight: 700; padding: 0.25rem 0.625rem; border-radius: 999px; }
.chip-new { background: var(--a1-tint); color: var(--ink); }
.chip-done { background: var(--ok-tint); color: var(--ok); }
.tfield { border-top: 1px solid var(--hair); margin-top: 1rem; padding-top: 0.75rem; }
.tfield h3 { font-size: 1.0625rem; font-family: var(--sans); }
.tfield .answer { font-size: 1.1875rem; background: var(--paper); border-radius: 6px; padding: 0.5rem 0.75rem; }
.tfield .lbl { font-weight: 700; font-family: var(--sans); }
.model summary { cursor: pointer; color: var(--a1); font-weight: 700; padding: 0.25rem 0; }
.wrong { margin: 0.25rem 0 0.5rem; }
@media (max-width: 34rem) {
  .mrow { grid-template-columns: 1fr; }
  .vocab { columns: 1; }
}

/* ---------- Midnight Ice theme: Navy #102A43 · Ice #F6FAFD · Blue #3B82F6 · Cranberry #C2415D · Mint #10B981 ----------
   Blue and Mint are too light for body text on Ice (3.5:1 and 2.4:1): they carry fills, borders and focus;
   deeper shades of the same hues carry text (#2563EB 4.9:1, #047857 5.2:1). */
:root { --paper: #F6FAFD; --card: #FFFFFF; --ink: #102A43; --muted: #486581; --control: #627D98; --hair: #D9E2EC;
  --a1: #2563EB; --a1-tint: #E6F0FE; --a2: #047857; --a2-tint: #E7F8F0; --b1: #C2415D; --b1-tint: #FDF3F5;
  --ok: #047857; --ok-tint: #E7F8F0; --no: #C2415D; --no-tint: #FDF3F5;
  --navy: #102A43; --ice: #F6FAFD; --blue: #3B82F6; --cran: #C2415D; --mint: #10B981; --dim: #BCCCDC; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.top { background: var(--navy); border-bottom: 0; }
.brand { color: var(--ice); }
.badge { background: var(--a1); color: #FFFFFF; }
.btn { border-radius: 8px; }
.btn:hover { background: #1B3A5C; }
.btn.secondary:hover { background: var(--a1-tint); }
.step h2 .n { background: var(--navy); }
.goal { border-left-color: var(--cran); }
.tip { border-left-color: var(--blue); }
.opt.is-wrong, .mrow.is-wrong, .syl.is-wrong { border-color: var(--cran); }
.word summary:hover { background: var(--a1-tint); }
.week-strip li.live { background: var(--navy); border-color: var(--navy); color: var(--ice); }
.week-strip li.live .mins, .week-strip li.live .why { color: var(--dim); }
.road .l2 { background: var(--a2-tint); }
.road .l3 { background: var(--b1-tint); }
.hero-band { background: var(--navy); color: var(--ice); padding: 3.5rem 0 3rem; }
.hero-band .h1-ru { color: var(--ice); }
.hero-band .h1-en, .hero-band .lede, .hero-band .hint { color: var(--dim); }
.hero-band .hint strong { color: var(--ice); }
.hero-band .btn { background: var(--ice); color: var(--navy); border-color: var(--ice); }
.hero-band .btn:hover { background: #FFFFFF; }
.hero-band .btn.secondary { background: transparent; color: var(--ice); border-color: var(--dim); }
.hero-band .btn.secondary:hover { border-color: var(--ice); background: transparent; }
.hero-band :focus-visible { outline-color: #93C5FD; }
.fig { margin: 1.25rem 0 1.75rem; }
.fig svg { width: 100%; max-width: 40rem; height: auto; display: block; }
.fig figcaption { color: var(--muted); font-size: 1rem; margin-top: 0.5rem; }
.lesson-prose { font-size: 1.125rem; }
.step h3 { margin-top: 1.75rem; }
.step h2 + p + h3, .step h2 + h3 { margin-top: 1rem; }

/* ---------- landing v2 ---------- */
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.hero-art { width: 100%; height: auto; max-width: 34rem; display: block; }
.start { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.start li { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 1rem 1.25rem; }
.start .ico { width: 1.75rem; height: 1.75rem; color: var(--a1); }
.start h3 { font-size: 1.125rem; margin: 0.5rem 0 0.25rem; }
.start p { margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; margin-top: 1rem; }
.wcard { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.wcard .thumb { width: 100%; height: 8.5rem; object-fit: cover; object-position: top; display: block; }
.wbody { padding: 0.75rem 1.25rem 0.5rem; }
.wbody h3 { font-size: 1.1875rem; margin: 0.25rem 0 0; }
.wbody h3 a { color: var(--ink); }
.wcard .lessons li { padding: 0.5rem 0; }
.teacher2 { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin-top: 1rem; }
.photo-slot { width: 10.5rem; height: 10.5rem; border-radius: 50%; overflow: hidden; background: var(--navy); color: var(--ice); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 700; font-size: 4.5rem; box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--blue); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.tname { font-size: 1.5rem; margin: 0; }
.praise-h { margin-top: 1.75rem; }
.praise { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.75rem; }
.praise li { background: var(--card); border: 1px solid var(--hair); border-left: 4px solid var(--cran); border-radius: 10px; padding: 0.875rem 1rem; }
.praise p { margin: 0 0 0.375rem; }
.praise .who { font-size: 0.9375rem; color: var(--muted); }
.journey { list-style: none; margin: 1.5rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; position: relative; }
.journey::before { content: ""; position: absolute; left: 1rem; right: 1rem; top: 0.875rem; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--a1) 0 27%, var(--mint) 27% 54%, var(--cran) 54% 100%); }
.journey li { position: relative; padding-top: 2.75rem; }
.journey .dot { position: absolute; top: 0; left: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--card); border: 4px solid var(--a1); }
.journey li.a2 .dot { border-color: var(--mint); }
.journey li.b1 .dot { border-color: var(--cran); }
.journey .wk { display: block; font-weight: 700; color: var(--muted); font-size: 0.9375rem; }
.journey strong { display: block; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.3; }
.journey .exam { display: block; font-size: 0.9375rem; color: var(--muted); margin-top: 0.125rem; }
.journey li.here .dot { background: var(--cran); border-color: var(--cran); box-shadow: 0 0 0 5px var(--b1-tint); }
.chip-here { display: inline-block; margin-top: 0.5rem; font-size: 0.875rem; font-weight: 700; color: #FFFFFF; background: var(--cran); padding: 0.125rem 0.625rem; border-radius: 999px; }
.legend .sw.lv1 { background: var(--a1); }
.legend .sw.lv2 { background: var(--mint); }
.legend .sw.lv3 { background: var(--cran); }
.week-strip .ico { width: 1.5rem; height: 1.5rem; margin-bottom: 0.25rem; color: var(--a1); }
.week-strip li.live .ico { color: var(--ice); }
.week-strip li.rest .ico { color: var(--muted); }
@media (max-width: 56rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-pic { max-width: 30rem; }
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey::before { left: 0.875rem; right: auto; top: 1rem; bottom: 1rem; width: 4px; height: auto;
    background: linear-gradient(180deg, var(--a1) 0 33%, var(--mint) 33% 67%, var(--cran) 67% 100%); }
  .journey li { padding: 0.125rem 0 1.25rem 3rem; min-height: 3.5rem; }
}
@media (max-width: 34rem) { .teacher2 { grid-template-columns: 1fr; } .photo-slot { width: 8.5rem; height: 8.5rem; font-size: 3.5rem; } }
.hero-grid .h1-ru { font-size: clamp(2.75rem, 6vw, 4.5rem); }
.hero-art { border-radius: 16px; overflow: hidden; }

/* ---------- v9: sentence builder, sorter, lesson card ---------- */
.oline { min-height: 3.25rem; padding: 0.625rem 0.875rem; border: 2px dashed var(--hair); border-radius: 10px; font-family: var(--serif); font-size: 1.375rem; margin: 0.5rem 0 0.75rem; background: var(--paper); }
.obank { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip-word { font-family: var(--serif); font-size: 1.25rem; padding: 0.375rem 0.875rem; min-height: 2.75rem; border: 1.5px solid var(--control); border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; }
.chip-word:hover { border-color: var(--ink); }
.chip-word:disabled { opacity: 0.35; cursor: default; }
.srow { display: grid; grid-template-columns: minmax(6rem, 1fr) 2fr; gap: 0.75rem; align-items: center; padding: 0.5rem 0.75rem; margin: 0.375rem 0; border: 1.5px solid var(--hair); border-radius: 8px; background: var(--card); }
.sleft { font-family: var(--serif); font-size: 1.25rem; }
.sopts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sbtn { min-height: 2.75rem; min-width: 3.25rem; padding: 0.25rem 0.75rem; border: 1.5px solid var(--control); border-radius: 8px; background: var(--paper); font-family: var(--serif); font-size: 1.125rem; color: var(--ink); cursor: pointer; }
.sbtn[aria-pressed="true"] { background: var(--navy); color: var(--ice); border-color: var(--navy); }
.sbtn:disabled { cursor: default; }
.srow.is-right { border-color: var(--ok); background: var(--ok-tint); }
.srow.is-wrong { border-color: var(--cran); background: var(--no-tint); }
.lesson-card { display: grid; grid-template-columns: auto auto 1fr; gap: 0.5rem 2rem; background: var(--card); border: 1px solid var(--hair); border-top: 4px solid var(--blue); border-radius: 10px; padding: 0.875rem 1.25rem; margin: 1.25rem 0 0; }
.lesson-card .lbl { display: block; font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.lesson-card b { font-family: var(--serif); font-size: 1.0625rem; }
@media (max-width: 34rem) { .lesson-card { grid-template-columns: 1fr 1fr; } .lesson-card .wide-cell { grid-column: 1 / -1; } .srow { grid-template-columns: 1fr; } }

/* ---------- v10: listen and say, phrases, your turn, story, Daily 10, analytics ---------- */
.sound { background: var(--card); border: 1px solid var(--hair); border-left: 4px solid var(--blue); border-radius: 10px; padding: 0.875rem 1.125rem; margin: 0.75rem 0 1.25rem; }
.sound h3 { margin-top: 0; }
.sound-ex { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.375rem; }
.sound-ex .say { color: var(--muted); }
.listen { padding-left: 1.25rem; }
.listen li { margin: 0.375rem 0; }
.phrases { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.phrases li { display: grid; grid-template-columns: minmax(10rem, 1.2fr) 1fr; gap: 1rem; align-items: baseline; background: var(--card); border: 1px solid var(--hair); border-radius: 8px; padding: 0.5rem 0.875rem; }
details.model, details.gloss { margin: 0.75rem 0; }
details.model summary, details.gloss summary { cursor: pointer; font-weight: 700; color: var(--a1); }
details.model p { font-family: var(--serif); font-size: 1.125rem; }
.story { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 1rem 1.25rem; margin: 0.75rem 0; }
.story p { font-family: var(--serif); font-size: 1.25rem; line-height: 1.7; margin: 0.5rem 0; }
.story h3 { margin-top: 0; }
.today-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.tcard { background: var(--card); border: 1px solid var(--hair); border-radius: 12px; padding: 1rem 1.25rem; }
.tcard h3 { margin-top: 0; }
.dstats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--muted); }
.dstats strong { color: var(--ink); font-size: 1.25rem; }
.flash { background: var(--card); border: 2px solid var(--hair); border-radius: 14px; padding: 2rem 1.25rem; text-align: center; margin: 0.75rem 0; }
.flash .front { font-family: var(--serif); font-size: 2.25rem; font-weight: 700; margin: 0; }
.flash .back { font-size: 1.25rem; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hair); }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.875rem; }
.kpi { background: var(--card); border: 1px solid var(--hair); border-top: 4px solid var(--hair); border-radius: 10px; padding: 0.75rem 1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.kpi.good { border-top-color: var(--mint); }
.kpi.watch { border-top-color: var(--cran); }
.kpi .lbl { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.kpi strong { font-family: var(--serif); font-size: 1.625rem; }
.kpi .flag { font-size: 0.875rem; font-weight: 700; }
.kpi.good .flag { color: var(--ok); }
.kpi.watch .flag { color: var(--cran); }
.kpi .tgt, .kpi .note { font-size: 0.875rem; color: var(--muted); }
.an-start { margin-top: 1rem; }
.an-start input { display: block; margin-top: 0.375rem; min-height: 2.75rem; padding: 0.375rem 0.625rem; border: 1.5px solid var(--control); border-radius: 8px; font: inherit; background: var(--paper); color: var(--ink); }
.weak li { margin: 0.5rem 0; }
.weak li p { margin: 0.125rem 0; }
.credits li { margin: 0.5rem 0; }
@media (max-width: 34rem) { .phrases li { grid-template-columns: 1fr; gap: 0.25rem; } .flash .front { font-size: 1.75rem; } }

/* ---------- v11 landing: header, today bar, month chapters, weeks, pop-ups ---------- */
.top .wide.top-in { gap: 1.5rem; }
.topnav { display: flex; gap: 1.5rem; margin-left: auto; }
.topnav a { color: var(--dim); text-decoration: none; font-weight: 700; font-size: 1rem; padding: 0.625rem 0; }
.topnav a:hover { color: var(--ice); text-decoration: underline; }
.pill { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.375rem 0.875rem; border-radius: 999px; border: 1.5px solid var(--control); background: transparent; color: var(--ice); font: 700 0.9375rem/1.2 var(--sans); cursor: pointer; }
.pill:hover { border-color: var(--ice); }
.pill .pdot { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--dim); }
.pill.on .pdot { background: var(--mint); }
@media (max-width: 48rem) { .topnav { display: none; } .pill { margin-left: auto; } }
.nowbar { background: var(--card); border-bottom: 1px solid var(--hair); }
.now-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr; }
.now-cell { display: flex; flex-direction: column; gap: 0.125rem; padding: 1rem 1.25rem; border-left: 1px solid var(--hair); }
.now-cell:first-child { border-left: 0; padding-left: 0; }
.now-cell .lbl { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.now-cell a { font-family: var(--serif); font-weight: 700; font-size: 1.125rem; color: var(--ink); }
.now-cell .muted { font-size: 0.9375rem; }
@media (max-width: 48rem) { .now-in { grid-template-columns: 1fr; } .now-cell { border-left: 0; border-top: 1px solid var(--hair); padding: 0.75rem 0; } .now-cell:first-child { border-top: 0; } }
.wdots { display: inline-flex; gap: 0.3rem; align-items: center; }
.wdots i { display: block; width: 0.625rem; height: 0.625rem; border-radius: 50%; border: 1.5px solid var(--control); }
.wdots i.on { background: var(--mint); border-color: var(--mint); }
.wdots.big { min-height: 1.75rem; }
.wdots.big i { width: 0.875rem; height: 0.875rem; }
.chapters .hint { max-width: 46rem; }
.mtabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.5rem; margin-top: 1.25rem; }
.mtab { display: grid; gap: 0.25rem; align-content: start; text-align: left; padding: 0.875rem 1rem; border: 1.5px solid var(--hair); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.mtab:hover { border-color: var(--control); }
.mtab[aria-selected="true"] { background: var(--navy); color: var(--ice); border-color: var(--navy); }
.mtab .mt-n, .mtab .mt-c { font-size: 0.875rem; color: var(--muted); }
.mtab .mt-n { font-weight: 700; }
.mtab[aria-selected="true"] .mt-n, .mtab[aria-selected="true"] .mt-c { color: var(--dim); }
.mtab .mt-ru { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.mtab.is-coming .mt-ru { color: var(--muted); }
.mtab.is-coming[aria-selected="true"] .mt-ru { color: var(--ice); }
.mtab .mt-bar { height: 4px; border-radius: 2px; background: var(--hair); overflow: hidden; margin-top: 0.375rem; }
.mtab .mt-bar span { display: block; height: 100%; width: 0; background: var(--mint); }
.mtab[aria-selected="true"] .mt-bar { background: #2B4A6B; }
.mpanel { border: 1.5px solid var(--navy); border-radius: 0 0 14px 14px; background: var(--card); overflow: hidden; }
.mcover { background: var(--navy); }
.mcover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 640; }
.mbody { display: grid; grid-template-columns: minmax(15rem, 1fr) 1.7fr; gap: 2rem; padding: 1.5rem; }
.mhead h3 { font-size: 1.75rem; }
.men { color: var(--muted); margin: 0.25rem 0 0; }
.mleft h4 { font-size: 1rem; margin: 1.25rem 0 0.375rem; }
.outcomes { margin: 0; padding-left: 1.25rem; }
.outcomes li { margin: 0.375rem 0; }
.weeks { display: grid; gap: 0.5rem; }
details.wk { border: 1px solid var(--hair); border-radius: 10px; background: var(--paper); }
details.wk[open] { background: var(--card); border-color: var(--control); }
details.wk summary { list-style: none; display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; padding: 0.625rem 1rem; cursor: pointer; }
details.wk summary::-webkit-details-marker { display: none; }
details.wk summary::before { content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); }
details.wk[open] summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) { details.wk summary::before { transition: transform 0.15s ease; } }
details.wk .wn { flex: none; font-size: 0.9375rem; font-weight: 700; color: var(--muted); }
details.wk .wt { flex: 1; font-family: var(--serif); font-weight: 700; }
details.wk .wc { flex: none; min-width: 3.75rem; text-align: right; font-size: 0.875rem; color: var(--muted); }
details.wk.complete .wc { color: var(--ok); font-weight: 700; }
.pages { list-style: none; margin: 0; padding: 0 0.75rem 0.25rem; }
.pages li { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: center; gap: 0.5rem; padding: 0 0.5rem; border-top: 1px solid var(--hair); }
.pages li.is-next { background: var(--a1-tint); border-radius: 8px; border-top-color: transparent; }
.pages li.is-next .pg .pk { color: var(--ink); }
.pages .pd { font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.pg { min-height: 2.75rem; padding: 0.5rem 0; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.pg .pk { font-weight: 700; color: var(--a1); }
.pg:hover .pt { text-decoration: underline; }
.pages .st { font-size: 0.875rem; white-space: nowrap; }
.pages .st.todo { font-size: 0; }
.pages .st.todo::before { content: ""; display: inline-block; width: 0.875rem; height: 0.875rem; border: 1.5px solid var(--control); border-radius: 50%; }
.pages .st.started { color: var(--muted); }
.pages .st.done { color: var(--ok); font-weight: 700; }
.wmore { margin: 0.5rem 0.5rem 0.75rem; font-size: 0.9375rem; }
.soon-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.soon-list li { display: flex; gap: 0.75rem; padding: 0.75rem 1rem; border: 1.5px dashed var(--control); border-radius: 10px; color: var(--muted); }
.soon-list .wn { flex: none; font-weight: 700; }
@media (max-width: 52rem) { .mbody { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.25rem; } .mtab { padding: 0.75rem; } .mtab .mt-ru { font-size: 1.0625rem; } }
@media (max-width: 34rem) { details.wk summary { flex-wrap: wrap; row-gap: 0.125rem; } details.wk .wdots { display: none; } details.wk .wt { flex-basis: 100%; order: 3; padding-left: 1.25rem; } details.wk .wc { margin-left: auto; } .mtab .mt-ru { font-size: 1rem; } .brand { font-size: 1rem; } }
.quote { margin: 1rem 0; padding: 0.75rem 1rem; border-left: 4px solid var(--blue); background: var(--paper); border-radius: 0 8px 8px 0; }
.quote p { margin: 0 0 0.25rem; font-family: var(--serif); }
.quote blockquote { margin: 0; }
.quote figcaption { font-size: 0.875rem; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 2.5rem 0 0; }
dialog.dlg { width: min(36rem, calc(100vw - 2rem)); max-height: calc(100vh - 3rem); padding: 0; border: 0; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 24px 60px rgba(16, 42, 67, 0.35); }
dialog.dlg::backdrop { background: rgba(16, 42, 67, 0.62); }
.dlg-in { position: relative; padding: 1.5rem 1.5rem 1.25rem; }
.dlg h2 { font-size: 1.5rem; margin: 0 3rem 0.75rem 0; }
.dlg-x { position: absolute; top: 0.75rem; right: 0.75rem; }
.dlg .x { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.dlg .x:hover { background: var(--hair); }
.dlg-foot { margin-top: 1.25rem; }
.dlg .actions form { display: inline; }
.pd-where { margin: 0 3.5rem 0.25rem 0; font-size: 0.9375rem; font-weight: 700; color: var(--muted); }
.pd-status { font-weight: 700; color: var(--muted); }
.pd-goal { font-family: var(--serif); font-size: 1.25rem; border-left: 4px solid var(--blue); padding-left: 0.875rem; }
.pd-facts { padding-left: 1.25rem; }
@media (prefers-reduced-motion: no-preference) { dialog.dlg[open] { animation: dlg-in 0.18s ease-out; } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.start-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.start-steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.75rem; align-items: start; }
.start-steps h3, .points2 h3 { font-size: 1.125rem; }
.start-steps p, .points2 p { margin: 0.125rem 0 0; }
.reviews, .points2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.reviews .quote { margin: 0; }
.inside { padding-left: 1.25rem; }
.inside li { margin: 0.375rem 0; }

/* ---------- v12: lesson step map, gaps, chat, sequence cards, role-play ---------- */
.lesson-map { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--hair); margin: 1rem 0 0; padding: 0.5rem 0; min-width: 0; max-width: 100%; }
.lesson-map ol { list-style: none; margin: 0; padding: 0 0 0.125rem; display: flex; gap: 0.375rem; overflow-x: auto; min-width: 0; max-width: 100%; position: relative; }
.lesson-map li { flex: none; }
.lesson-map a { display: inline-flex; align-items: center; gap: 0.375rem; min-height: 2.75rem; padding: 0.25rem 0.875rem 0.25rem 0.375rem; border: 1.5px solid var(--hair); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 0.9375rem; font-weight: 700; white-space: nowrap; }
.lesson-map a:hover { border-color: var(--control); }
.lesson-map .lm-n { display: inline-flex; align-items: center; justify-content: center; width: 1.875rem; height: 1.875rem; border-radius: 50%; border: 1.5px solid var(--control); background: var(--paper); font-size: 0.875rem; }
.lesson-map li.done .lm-n { background: var(--mint); border-color: var(--mint); color: var(--navy); }
.lesson-map a[aria-current="step"] { background: var(--navy); border-color: var(--navy); color: var(--ice); }
.lesson-map a[aria-current="step"] .lm-n { background: var(--ice); border-color: var(--ice); color: var(--navy); }
.step h2 { scroll-margin-top: 4.75rem; }
.gtext { font-family: var(--serif); font-size: 1.375rem; line-height: 2.4; margin: 0.5rem 0; }
.gsel { min-height: 2.75rem; margin: 0 0.25rem; padding: 0.125rem 0.5rem; border: 1.5px solid var(--control); border-radius: 6px; background: var(--card); color: var(--ink); font: 1.125rem var(--serif); vertical-align: middle; }
.gsel.is-right { border-color: var(--ok); background: var(--ok-tint); }
.gsel.is-wrong { border-color: var(--cran); background: var(--no-tint); }
.chatlog { display: flex; flex-direction: column; gap: 0.5rem; margin: 0.75rem 0; }
.bub { max-width: 82%; padding: 0.5rem 0.875rem; border-radius: 14px; font-family: var(--serif); font-size: 1.1875rem; }
.bub .who { display: block; font-family: var(--sans); font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.bub.them { align-self: flex-start; background: var(--card); border: 1px solid var(--hair); border-bottom-left-radius: 4px; }
.bub.you { align-self: flex-end; background: var(--a1-tint); border: 1px solid #BFD3FB; border-bottom-right-radius: 4px; }
.bub.you.wrong { background: var(--no-tint); border-color: var(--cran); }
.chatopts { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.chathint { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.chatopt { min-height: 2.75rem; max-width: 100%; padding: 0.375rem 1rem; border: 1.5px solid var(--control); border-radius: 999px; background: var(--card); color: var(--ink); font: 1.125rem var(--serif); text-align: right; cursor: pointer; }
.chatopt:hover { border-color: var(--ink); }
.seqbank { flex-direction: column; align-items: stretch; }
.chip-word.seq-card { border-radius: 10px; text-align: left; font-size: 1.125rem; }
.seqlist { margin: 0; padding-left: 1.5rem; font-size: 1.125rem; }
.seqlist li { margin: 0.125rem 0; }
.roleplay { margin-top: 1rem; }
.roleplay h3 { margin: 0 0 0.25rem; }
.rp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.75rem; }
.rp-card { padding: 0.75rem 1rem; border: 1.5px dashed var(--control); border-radius: 12px; background: var(--card); }
.rp-card h4 { margin: 0 0 0.375rem; font-family: var(--serif); font-size: 1.125rem; }
.rp-card ul { margin: 0; padding-left: 1.125rem; }

/* ---------- v13: month tabs on phones, Remember box, mixed practice ---------- */
@media (max-width: 40rem) { .mtabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(9rem, 1fr); overflow-x: auto; min-width: 0; max-width: 100%; position: relative; } }
.remember { background: var(--card); border: 1px solid var(--hair); border-left: 4px solid var(--blue); border-radius: 10px; padding: 0.75rem 1rem 0.25rem; margin: 0.5rem 0 1.25rem; }
.remember h3 { margin: 0 0 0.25rem; }

/* ---------- v14: a moving marker on the road, week-page banners and pictures ---------- */
.road-tick { position: absolute; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--card); border: 2px solid var(--muted); transform: translate(-50%, -50%); z-index: 1; }
.road-here { position: absolute; width: 1.375rem; height: 1.375rem; border-radius: 50%; background: var(--cran); border: 3px solid var(--card); box-shadow: 0 0 0 4px var(--b1-tint); transform: translate(-50%, -50%); z-index: 2; }
.road-where { font-weight: 700; margin: 0.25rem 0 0.75rem; }
.wcover { margin: 1rem 0 1.25rem; border-radius: 14px; overflow: hidden; background: var(--navy); }
.wcover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 640; }
.wpics { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; }
.wpics figure.fig { margin: 0; }
@media (max-width: 40rem) { .mtabs { grid-auto-columns: minmax(8.5rem, 1fr); } }

/* ---------- v15: English glosses, the interactive road, flip cards ---------- */
.mtab .mt-en { font-size: 0.875rem; line-height: 1.3; color: var(--muted); }
.mtab[aria-selected="true"] .mt-en { color: var(--dim); }
.mgloss { margin: 0.125rem 0 0; font-size: 1rem; color: var(--muted); font-style: italic; }
.levels { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 0.25rem; }
.lvl { display: inline-flex; align-items: baseline; gap: 0.5rem; min-height: 2.75rem; padding: 0.375rem 1rem; border-radius: 999px; border: 2px solid var(--a1); background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.lvl .lv { font-family: var(--serif); font-weight: 700; font-size: 1.125rem; }
.lvl .lw { font-size: 0.875rem; color: var(--muted); }
.lvl.a2 { border-color: var(--ok); }
.lvl.b1 { border-color: var(--cran); }
.lvl[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--ice); }
.lvl[aria-pressed="true"] .lw { color: var(--dim); }
.journey button.dot { padding: 0; cursor: pointer; font: inherit; }
.journey button.dot:hover { transform: scale(1.12); }
.journey button.dot[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--a1-tint); }
.road-tick { width: 1.5rem; height: 1.5rem; pointer-events: none; }
.road-tick::before { content: ""; position: absolute; inset: 0.4375rem; border-radius: 50%; background: var(--card); border: 2px solid var(--muted); }

.road-panel { margin: 0.75rem 0 0.5rem; padding: 1rem 1.25rem; border: 1.5px solid var(--hair); border-left: 4px solid var(--a1); border-radius: 12px; background: var(--card); }
.road-panel h3 { margin: 0.125rem 0 0; font-size: 1.375rem; }
.road-panel .rp-k { margin: 0; font-size: 0.9375rem; font-weight: 700; color: var(--muted); }
.road-panel .rp-s { color: var(--ink); }
.road-panel .rp-gloss { margin: 0.125rem 0 0.5rem; color: var(--muted); font-style: italic; }
.road-panel ul { margin: 0.25rem 0 0.75rem; padding-left: 1.25rem; }
.rp-months { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.375rem; }
.chipm { display: inline-flex; flex-direction: column; align-items: flex-start; min-height: 2.75rem; padding: 0.375rem 0.75rem; border: 1.5px solid var(--control); border-radius: 10px; background: var(--paper); color: var(--ink); font: 700 0.9375rem var(--sans); text-align: left; cursor: pointer; }
.chipm small { font-weight: 400; font-size: 0.8125rem; color: var(--muted); }
.chipm.here { border-color: var(--cran); }
.chipm:hover { border-color: var(--ink); }
.flips { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.flip { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.375rem; min-height: 6.5rem; padding: 0.75rem; border: 2px solid var(--navy); border-radius: 14px; background: var(--navy); color: var(--ice); font: inherit; cursor: pointer; text-align: center; }
.flip .f-ru { font-family: var(--serif); font-weight: 700; font-size: 1.625rem; letter-spacing: 0.04em; }
.flip .f-en { display: none; font-size: 0.9375rem; }
.flip[aria-pressed="true"] { background: var(--card); color: var(--ink); }
.flip[aria-pressed="true"] .f-en { display: block; color: var(--ok); font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .flip { transition: background-color 0.18s ease, color 0.18s ease; } .journey button.dot { transition: transform 0.12s ease; } }
.teacher2 { align-items: start; }

.road-tick { background: transparent; border: 0; }
.road-panel[data-level="A2"] { border-left-color: var(--ok); }
.road-panel[data-level="B1"] { border-left-color: var(--cran); }
@media (max-width: 40rem) { .road-tick { display: none; } }

/* ---------- v16: Russian colours, month posters, the roadmap cards, culture, the teacher ---------- */
.tricolor { height: 6px; background: linear-gradient(90deg, #FFFFFF 0 33.34%, #0039A6 33.34% 66.67%, #D52B1E 66.67% 100%); }
.flag { display: inline-block; vertical-align: -0.1875rem; margin-right: 0.5rem; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); }
.h1-dec .dch.on { color: #93C5FD; }
@media (prefers-reduced-motion: no-preference) { .h1-dec .dch { transition: color 0.5s ease; } }
.mposter { background: var(--paper); padding: 0.75rem 0.75rem 0.25rem; border-bottom: 1px solid var(--hair); }
.mposter figure.fig, .wposter figure.fig { margin: 0; }
.wposter { margin: 1rem 0 1.25rem; }
.lvl.all { border-color: var(--navy); }
.rm-count { margin: 0.75rem 0 0; font-weight: 700; }
.rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.875rem; margin: 0.625rem 0 0.75rem; }
.rm-card { border: 1.5px solid var(--hair); border-top: 5px solid var(--a1); border-radius: 12px; background: var(--card); padding: 0.875rem 1rem 0.75rem; min-width: 0; }
.rm-card[hidden] { display: none; }
.rm-card.lv-a2 { border-top-color: var(--ok); }
.rm-card.lv-b1 { border-top-color: var(--cran); }
.rm-card.is-now { box-shadow: 0 0 0 3px var(--b1-tint); border-color: var(--cran); }
.rm-top { display: flex; gap: 0.75rem; align-items: flex-start; }
.rm-top .ic { flex: none; margin-top: 0.125rem; }
.rm-k { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.rm-card h3 { margin: 0.125rem 0 0; font-size: 1.1875rem; line-height: 1.25; }
.rm-en { margin: 0.125rem 0 0; color: var(--muted); font-style: italic; }
.rm-s { margin: 0.625rem 0 0.375rem; display: flex; flex-wrap: wrap; gap: 0.375rem; }
.rm-chip { font-size: 0.8125rem; font-weight: 700; padding: 0.125rem 0.625rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--hair); color: var(--ink); }
.rm-chip.exam { background: var(--navy); border-color: var(--navy); color: var(--ice); }
.rm-card.is-now .rm-chip[data-status] { background: var(--cran); border-color: var(--cran); color: #FFFFFF; }
.rm-card.is-done .rm-chip[data-status] { background: var(--a2-tint); }
.rm-more summary { cursor: pointer; font-weight: 700; padding: 0.25rem 0; }
.rm-more ul { margin: 0.25rem 0 0.5rem; padding-left: 1.125rem; }
.rm-more li { margin: 0.1875rem 0; }
.rm-h, .rm-exam { margin: 0.375rem 0 0; font-weight: 700; }
.rm-more .btn { margin-top: 0.5rem; }
.culture .gzhel { display: block; margin: 0 0 0.875rem; }
.h2-gloss { display: block; font-family: var(--sans); font-size: 1rem; font-weight: 400; font-style: italic; color: var(--muted); }
.cu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: 0.75rem; margin: 0.75rem 0 1.25rem; }
.cu-card { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; min-height: 10rem; padding: 1rem 0.875rem; border: 2px solid #C9D6F0; border-radius: 14px; background: var(--card);
  color: var(--ink); font: inherit; text-align: center; cursor: pointer; }
.cu-card:hover { border-color: #1F4BA5; }
.cu-ru { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.cu-en { font-size: 0.9375rem; color: var(--muted); }
.cu-note { display: none; margin-top: 0.375rem; font-size: 0.9375rem; line-height: 1.45; text-align: left; }
.cu-card[aria-pressed="true"] { border-color: #1F4BA5; background: #F3F6FD; }
.cu-card[aria-pressed="true"] .cu-note { display: block; }
.proverb { border-radius: 14px; background: #1F4BA5; color: #FFFFFF; padding: 1.25rem 1.5rem; }
.pv-k { margin: 0; font-size: 0.9375rem; font-weight: 700; }
.pv-q { margin: 0.5rem 0 0.875rem; }
.pv-ru { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 1.5rem; line-height: 1.3; }
.pv-en { margin: 0.25rem 0 0; font-size: 1.0625rem; }
.pv-note { margin: 0.25rem 0 0; font-size: 0.9375rem; color: #DCE6FB; }
.pv-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.pv-nav .btn.secondary { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.pv-n { font-weight: 700; }
.proverb :focus-visible { outline-color: #FFFFFF; }
.exp-h { margin: 1rem 0 0.25rem; font-size: 1.0625rem; }
.exp { margin: 0 0 1rem; padding-left: 1.25rem; }
.exp li { margin: 0.25rem 0; }
.photo-slot img { border-radius: 50%; object-fit: cover; }

.hero-band { position: relative; }
.tricolor { position: absolute; top: 0; left: 0; right: 0; }
.rm-grid, .cu-grid { align-items: start; }
.mtopics { list-style: none; margin: 0; padding: 0.875rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.625rem; background: var(--paper); border-bottom: 1px solid var(--hair); }
.mtopics li { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: 0.75rem 0.5rem 0.875rem; text-align: center; background: var(--card);
  border: 1.5px solid var(--hair); border-top: 4px solid #1F4BA5; border-radius: 12px; min-width: 0; }
.tp-ru { font-family: var(--serif); font-weight: 700; font-size: 1.0625rem; line-height: 1.25; }
.tp-en { font-size: 0.875rem; color: var(--muted); }
.wposter .mtopics { border: 1px solid var(--hair); border-radius: 14px; }
@media (max-width: 40rem) { .mtopics { grid-template-columns: repeat(2, 1fr); } }

/* ---------- v17: use the width on laptops. Paragraphs keep a reading measure; tables, figures and exercises use the room ---------- */
@media (min-width: 64rem) {
  main.wrap.work { max-width: 64rem; }
  main.wrap.work > p, main.wrap.work .lede, main.wrap.work section > p { max-width: 46rem; }
  .items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.75rem; align-items: start; }
  .items > .w-chat, .items > .w-gaps, .items > .w-seq, .items > .w-order, .items > .w-sort, .items > .item.t-chat, .items > .item.t-gaps { grid-column: 1 / -1; }
  .figrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
  .figrow figure.fig { margin-top: 0; }
}
@media (min-width: 72rem) {
  main.wrap.lesson { max-width: 80rem; display: grid; grid-template-columns: 14rem minmax(0, 1fr); column-gap: 3rem; align-items: start; }
  main.wrap.lesson > * { grid-column: 2; min-width: 0; }
  main.wrap.lesson > .lesson-map { grid-column: 1; grid-row: 1 / span 80; position: sticky; top: 1.25rem; margin: 2.25rem 0 0; padding: 0; border: 0; background: none; z-index: 1; }
  main.wrap.lesson > .lesson-map ol { flex-direction: column; overflow: visible; gap: 0.375rem; padding: 0; }
  main.wrap.lesson > .lesson-map a { display: flex; width: 100%; border-radius: 12px; }
  main.wrap.lesson > p, main.wrap.lesson .lede, main.wrap.lesson section > p, main.wrap.lesson .note { max-width: 48rem; }
}
@media (min-width: 64rem) { main.wrap.lesson table, main.wrap.work table { max-width: 50rem; } }

/* ---------- v18: seven months in the tab row: one scrolling row at every width ---------- */
.mtabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(10.5rem, 1fr); overflow-x: auto; min-width: 0; max-width: 100%; position: relative; scrollbar-width: thin; }
/* ---------- v19: a long single word (Выздора́вливайте!) may break inside a phrase card instead of widening the page ---------- */
.words > *, .words details.word, .words summary { min-width: 0; }
.words summary { overflow-wrap: anywhere; hyphens: auto; }

/* ---------- v21: the game layer, flashcards, the speed round, quick buttons ---------- */
.game .quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); gap: 0.625rem; margin: 0.75rem 0 1rem; }
.qbtn { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 0.625rem; align-items: center; padding: 0.625rem 0.75rem; border: 1.5px solid var(--hair);
  border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; min-height: 3.5rem; }
.qbtn .ic { grid-row: 1 / span 2; }
.qbtn .qt { font-weight: 700; }
.qbtn .qs { font-size: 0.8125rem; color: var(--muted); }
.qbtn:hover, .qbtn:focus-visible { border-color: var(--navy); }
.qbtn#now-cont { background: var(--navy); border-color: var(--navy); color: var(--ice); }
.qbtn#now-cont .qs { color: var(--dim); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.75rem; }
.stat, .lvl-card { border: 1.5px solid var(--hair); border-radius: 14px; background: var(--card); padding: 0.875rem 1rem; display: flex; flex-direction: column; justify-content: center; }
.stat .n { font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1.1; color: var(--ink); }
.stat .l { font-weight: 700; }
.stat .s { font-size: 0.8125rem; color: var(--muted); }
.lvl-card { position: relative; align-items: center; min-height: 8.5rem; }
.ring { width: 7rem; height: 7rem; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: var(--hair); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--a1); stroke-width: 10; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) { .ring-fg { transition: stroke-dashoffset 1s ease; } }
.ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-txt .n { font-family: var(--serif); font-weight: 700; font-size: 2rem; line-height: 1; }
.ring-txt .l { font-size: 0.8125rem; color: var(--muted); }
.b-h { margin: 1.25rem 0 0.5rem; }
.gbadges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.75rem, 1fr)); gap: 0.625rem; }
.gbadge { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.125rem; padding: 0.75rem 0.5rem; border: 1.5px dashed var(--control); border-radius: 12px; color: var(--muted); }
.gbadge .b-ic { width: 2.25rem; height: 2.25rem; }
.gbadge .b-ic circle { fill: none; stroke: var(--control); stroke-width: 3; }
.gbadge .b-ic path { fill: none; stroke: var(--control); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.gbadge .b-ru { font-family: var(--serif); font-weight: 700; color: var(--muted); }
.gbadge .b-en { font-size: 0.8125rem; }
.gbadge .b-how { font-size: 0.75rem; }
.gbadge.on { border-style: solid; border-color: var(--ok); background: var(--a2-tint); color: var(--ink); }
.gbadge.on .b-ic circle { fill: var(--ok); stroke: var(--ok); }
.gbadge.on .b-ic path { stroke: #FFFFFF; }
.gbadge.on .b-ru { color: var(--ink); }
.playrow { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.play-host { flex-basis: 100%; margin: 0.5rem 0 0.75rem; }
.fc-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; max-width: 32rem; min-height: 11rem; padding: 1.25rem;
  border: 2px solid var(--navy); border-radius: 16px; background: var(--navy); color: var(--ice); font: inherit; cursor: pointer; text-align: center; }
.fc-card.back { background: var(--card); color: var(--ink); }
.fc-ru { font-family: var(--serif); font-weight: 700; font-size: 1.875rem; overflow-wrap: anywhere; }
.fc-en { font-size: 1.375rem; font-weight: 700; }
.fc-hint { font-size: 0.8125rem; opacity: 0.85; }
.fc-meta { margin: 0.5rem 0; color: var(--muted); }
.sr-top { font-weight: 700; }
.sr-word { font-family: var(--serif); font-weight: 700; font-size: 2rem; margin: 0.5rem 0 0.75rem; overflow-wrap: anywhere; }
.sr-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 0.5rem; max-width: 40rem; }
.sr-opt.right { background: var(--a2-tint); border-color: var(--ok); }
.sr-opt.wrong { background: var(--b1-tint); border-color: var(--cran); }
.mode { display: flex; gap: 0.5rem; margin: 0.75rem 0; }
.pick select { min-height: 2.75rem; max-width: 100%; }
.gtoasts { position: fixed; right: 1rem; bottom: 1rem; display: flex; flex-direction: column; gap: 0.375rem; z-index: 50; pointer-events: none; }
.gtoast { padding: 0.375rem 0.75rem; border-radius: 999px; background: var(--navy); color: var(--ice); font-weight: 700; font-size: 0.9375rem; box-shadow: 0 6px 18px rgba(16, 42, 67, 0.25); }
.gtoast.hot { background: var(--ok); color: #FFFFFF; }
.gtoast.out { opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .gtoast { transition: opacity 0.4s ease, transform 0.4s ease; } .gtoast.out { transform: translateY(-0.5rem); } }
.celebrate { position: fixed; left: 50%; top: 1rem; transform: translateX(-50%); width: min(26rem, calc(100% - 2rem)); padding: 1rem 1.25rem; border-radius: 16px; background: var(--navy); color: var(--ice);
  box-shadow: 0 12px 32px rgba(16, 42, 67, 0.3); z-index: 60; display: none; overflow: hidden; text-align: center; }
.celebrate.show { display: block; }
.celebrate p { margin: 0.25rem 0; }
.celebrate .c-big { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i { position: absolute; top: -0.75rem; width: 0.5rem; height: 0.875rem; border-radius: 2px; animation: conf 1.6s ease-in forwards; }
@keyframes conf { to { transform: translateY(9rem) rotate(540deg); opacity: 0; } }

/* ---------- v22: the lesson upgrade: In this lesson, this page's XP, listen buttons ---------- */
.glance { border: 1.5px solid var(--hair); border-radius: 12px; background: var(--card); padding: 0.75rem 1rem; margin: 0.5rem 0 1.25rem; max-width: 48rem; }
.glance-h { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.glance ol { margin: 0.25rem 0 0; padding-left: 1.25rem; }
.glance li { margin: 0.125rem 0; font-weight: 700; }
.page-xp { margin: 0.25rem 0 0.75rem; font-size: 0.9375rem; color: var(--muted); }
.page-xp .px-n { display: inline-block; margin-right: 0.375rem; padding: 0.0625rem 0.5rem; border-radius: 999px; background: #047857; color: #FFFFFF; font-weight: 700; }
.say-btn { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; margin-left: 0.375rem; padding: 0; vertical-align: middle;
  border: 1.5px solid var(--hair); border-radius: 50%; background: var(--card); color: var(--a1); cursor: pointer; }
.say-btn svg { width: 1rem; height: 1rem; }
.say-btn path:first-child { fill: currentColor; }
.say-btn path + path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.say-btn:hover, .say-btn:focus-visible { border-color: var(--navy); }
.reveal .say-btn { margin: 0 0.5rem 0.25rem 0; }
.gtoast.hot { background: #047857; }

/* ---------- v24: check your goal, the week's goals, goals to revisit ---------- */
.goalcheck { border: 2px solid var(--navy); border-radius: 14px; background: var(--card); padding: 1rem 1.25rem; max-width: 48rem; }
.gc-goal { margin: 0 0 0.5rem; font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.gc-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.gc-next { margin: 0; min-height: 1.5rem; font-weight: 700; }
.wgoals { border-left: 4px solid var(--a1); background: var(--card); border-radius: 0 12px 12px 0; padding: 0.625rem 1rem; margin: 0.5rem 0 1.25rem; max-width: 48rem; }
.wgoals ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }
.revisit { margin-top: 1rem; border: 1.5px solid var(--hair); border-radius: 12px; background: var(--card); padding: 0.75rem 1rem; }
.revisit h3 { margin: 0 0 0.25rem; }
.revisit ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }

/* ---------- v24: landing design phase: skyline, embroidered bands, folk crafts, the Russian year ---------- */
.hero-band { position: relative; overflow: hidden; }
.skyline { margin-top: 1.25rem; line-height: 0; }
.skyline svg { display: block; width: 100%; height: clamp(110px, 17vw, 220px); }
.skyline .flake { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) { .skyline .flake { animation: flake 9s linear infinite; } }
@keyframes flake { from { transform: translateY(-30px); } to { transform: translateY(190px); } }
.orn { max-width: 72rem; margin: 2.5rem auto 0; padding: 0 1rem; line-height: 0; opacity: 0.9; }
.orn svg { display: block; }
.cu-sub { margin: 2rem 0 0.75rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.crafts { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.875rem; }
.craft { border: 1.5px solid var(--hair); border-radius: 14px; overflow: hidden; background: var(--card); }
.craft svg { display: block; width: 100%; height: 7.5rem; }
.craft-b { padding: 0.75rem 1rem 1rem; }
.craft-b h4 { margin: 0 0 0.25rem; font-family: var(--serif); font-size: 1.25rem; }
.craft-en { font-family: var(--sans); font-size: 0.875rem; font-weight: 400; color: var(--muted); }
.craft-b p { margin: 0; font-size: 0.9375rem; }
.ryear { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr)); gap: 0.75rem; }
.ry { border: 1.5px solid var(--hair); border-top: 4px solid var(--cran); border-radius: 12px; background: var(--card); padding: 0.75rem; }
.ry svg { width: 2.5rem; height: 2.5rem; }
.ry p { margin: 0.125rem 0; }
.ry-date { font-family: var(--serif); font-weight: 700; font-size: 1.125rem; color: var(--cran); }
.ry-name { font-family: var(--serif); font-weight: 700; }
.ry-en { font-size: 0.875rem; color: var(--muted); }
.hero-band { padding-bottom: 0; }
.skyline { margin-bottom: 0; }
@media (min-width: 64rem) { .crafts { grid-template-columns: repeat(4, 1fr); } }
.skyline .f0 { animation-delay: -0s; }
.skyline .f1 { animation-delay: -1s; }
.skyline .f2 { animation-delay: -2s; }
.skyline .f3 { animation-delay: -3s; }
.skyline .f4 { animation-delay: -4s; }
.skyline .f5 { animation-delay: -5s; }
.skyline .f6 { animation-delay: -6s; }
.skyline .f7 { animation-delay: -7s; }
.skyline .f8 { animation-delay: -8s; }

/* ---------- v25: main menu, learning blocks, the speaking track, level pages ---------- */
.topnav { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-left: auto; }
.topnav a { color: inherit; font-weight: 700; font-size: 0.9375rem; text-decoration: none; padding: 0.375rem 0.125rem; border-bottom: 2px solid transparent; }
.topnav a:hover, .topnav a:focus-visible { border-bottom-color: currentColor; }
.top-in { flex-wrap: wrap; gap: 0.25rem 1rem; }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.lb-card { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.125rem 1.25rem; border: 1.5px solid var(--hair); border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none; }
.lb-card:hover, .lb-card:focus-visible { border-color: var(--navy); }
.lb-lvl { align-self: flex-start; padding: 0.125rem 0.625rem; border-radius: 999px; background: var(--navy); color: var(--ice); font-weight: 700; }
.lb-ru { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; margin-top: 0.25rem; }
.lb-en { color: var(--muted); font-weight: 700; }
.lb-sum { margin: 0.375rem 0; }
.lb-meta, .lb-pct { font-size: 0.875rem; color: var(--muted); }
.lb-bar { display: block; height: 0.5rem; border-radius: 999px; background: var(--hair); overflow: hidden; margin-top: 0.5rem; }
.lb-fill { display: block; height: 100%; width: 0; background: #047857; }
.lb-more { margin: 0.5rem 0 0; }
.sp-grid { display: grid; grid-template-columns: minmax(14rem, 20rem) 1fr; gap: 1.25rem; align-items: center; }
@media (max-width: 40rem) { .sp-grid { grid-template-columns: 1fr; } }
.wotd { border: 2px solid var(--navy); border-radius: 16px; background: var(--card); padding: 1rem 1.25rem; }
.wotd-ru { margin: 0.25rem 0; font-family: var(--serif); font-weight: 700; font-size: 2rem; overflow-wrap: anywhere; }
.wotd-en { margin: 0; color: var(--muted); }
.qas { display: grid; gap: 0.625rem; max-width: 48rem; }
.qa { border: 1.5px solid var(--hair); border-radius: 12px; background: var(--card); padding: 0.75rem 1rem; }
.qa-q { margin: 0 0 0.375rem; font-family: var(--serif); font-weight: 700; font-size: 1.125rem; }
.qa details summary { cursor: pointer; color: var(--a1); font-weight: 700; }
.qa-a { margin: 0.375rem 0 0; font-family: var(--serif); }
.sayit { list-style: none; padding: 0; display: grid; gap: 0.5rem; max-width: 48rem; }
.sayit label { display: flex; gap: 0.625rem; align-items: flex-start; padding: 0.625rem 0.75rem; border: 1.5px solid var(--hair); border-radius: 10px; background: var(--card); cursor: pointer; }
.sayit input { width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; flex: none; }
.unit-meta, .unit-nav { color: var(--muted); }
.unit-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.units { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.625rem; }
.unit-card { display: grid; grid-template-columns: auto 1fr; gap: 0 0.75rem; align-items: center; padding: 0.625rem 0.75rem; border: 1.5px solid var(--hair); border-radius: 12px; background: var(--card);
  color: var(--ink); text-decoration: none; }
.unit-card .uc-n { grid-row: 1 / span 2; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--a1-tint); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.unit-card .uc-t { font-weight: 700; }
.unit-card .uc-s { font-size: 0.8125rem; color: var(--muted); }
.unit-card.done { border-color: #047857; }
.unit-card.done .uc-n { background: #047857; color: #FFFFFF; }
.howto { padding-left: 1.25rem; max-width: 48rem; }
.lv-top { max-width: 48rem; }
.mcards { display: grid; gap: 1.25rem; margin-top: 1.25rem; }
.mcard { display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: 1.25rem; padding: 1rem; border: 1.5px solid var(--hair); border-radius: 16px; background: var(--card); }
.mcard.soon { grid-template-columns: 1fr; }
@media (max-width: 40rem) { .mcard { grid-template-columns: 1fr; } }
.mc-img img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--hair); }
.mc-k { margin: 0; font-size: 0.875rem; color: var(--muted); font-weight: 700; }
.mcard h2 { margin: 0.25rem 0 0.5rem; }
.mc-goals { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.mc-dl { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mc-weeks { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.mc-lessons summary { cursor: pointer; font-weight: 700; color: var(--a1); }
.pagehead { padding-top: 1rem; }

/* ---------- v27: wide pages: level pages, the speaking track, flashcards, Daily 10, analytics; wider landing sections ---------- */
@media (min-width: 64rem) {
  main.wrap.page { max-width: 76rem; }
  main.wrap.page > p, main.wrap.page .lede, main.wrap.page section > p, main.wrap.page .lv-sum, main.wrap.page .howto { max-width: 48rem; }
  main.wrap.page table { max-width: 60rem; }
  main.wrap.page .lv-top { max-width: 48rem; }
  main.wrap.page .qas { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); max-width: none; }
  main.wrap.page .sayit { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); max-width: none; }
  main.wrap.page .mcards { grid-template-columns: repeat(auto-fill, minmax(34rem, 1fr)); }
  main.wrap.page .mcard { grid-template-columns: 11rem minmax(0, 1fr); }
}
@media (min-width: 80rem) { .wide { max-width: 72rem; } }
header.top .topnav a { color: var(--ice, #F6FAFD); }

/* ---------- v30: learning block cards with illustrations, month dots and You are here; the saved indicator ---------- */
.lb-grid { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.lb-card { padding: 0; overflow: hidden; border: 1.5px solid var(--hair); border-radius: 20px; gap: 0; box-shadow: 0 1px 2px rgba(16,42,67,.06); }
@media (prefers-reduced-motion: no-preference) { .lb-card { transition: transform .18s ease, box-shadow .18s ease; } .lb-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16,42,67,.12); } }
.lb-card:focus-visible { outline: 3px solid var(--lb); outline-offset: 3px; }
.lb-card.current { border: 2px solid var(--lb); }
.lb-art { display: block; background: var(--lbt); border-bottom: 1.5px solid var(--hair); line-height: 0; }
.lb-art svg { display: block; width: 100%; height: auto; max-height: 9.5rem; }
.lb-body { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.25rem 1.25rem; flex: 1; }
.lb-top { display: flex; align-items: center; gap: 0.5rem; }
.lb-card .lb-lvl { background: var(--lb); }
.lb-here { padding: 0.125rem 0.625rem; border-radius: 999px; background: var(--lbt); color: var(--lb); font-weight: 700; font-size: 0.8125rem; border: 1.5px solid var(--lb); }
.lb-outs { display: grid; gap: 0.25rem; margin: 0.375rem 0 0.25rem; }
.lb-out { display: flex; gap: 0.5rem; font-size: 0.9375rem; }
.lb-out::before { content: "✓"; color: var(--lb); font-weight: 700; }
.lb-dots { display: flex; flex-wrap: wrap; gap: 0.3125rem; margin-top: 0.5rem; }
.lb-dots i { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 2px solid var(--lb); background: transparent; }
.lb-dots i.on { background: var(--lb); }
.lb-card .lb-fill { background: var(--lb); }
.lb-cta { margin-top: auto; padding-top: 0.75rem; font-weight: 700; color: var(--lb); }
.save-state { margin: 0.5rem 0 0; font-size: 0.875rem; opacity: 0.92; display: flex; gap: 0.375rem; align-items: center; }
.save-state svg { width: 1rem; height: 1rem; flex: none; }
.lb-a1 { --lb: #2563EB; --lbt: #EFF5FF; }
.lb-a2 { --lb: #047857; --lbt: #ECFDF5; }
.lb-b1 { --lb: #C2415D; --lbt: #FDF2F4; }

/* ---------- v31: the conversation module ---------- */
.tag.lvl-A1 { background: #2563EB; } .tag.lvl-A2 { background: #047857; } .tag.lvl-B1 { background: #C2415D; }
.tag { display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: .04em; padding: 0.125rem 0.625rem; border-radius: 999px; color: #FFFFFF; margin-right: 0.375rem; }
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.875rem; margin-top: 0.75rem; }
.tip { border: 1.5px solid var(--hair); border-left: 5px solid var(--a1); border-radius: 12px; background: var(--card); padding: 0.75rem 1rem; }
.tip h3 { margin: 0 0 0.25rem; font-size: 1.0625rem; }
.tip p { margin: 0; font-size: 0.9375rem; }
table.pb { width: 100%; border-collapse: collapse; margin-top: 0.75rem; }
table.pb th { text-align: left; font-size: 0.8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0.25rem 0.5rem; }
table.pb td { vertical-align: top; padding: 0.625rem 0.5rem; border-top: 1px solid var(--hair); width: 50%; }
table.pb.one td { width: auto; }
.pq { margin: 0; font-family: var(--serif); font-size: 1.25rem; }
.pe { margin: 0.125rem 0 0; font-size: 0.875rem; color: var(--muted); }
table.dlg { width: 100%; border-collapse: collapse; max-width: 48rem; }
table.dlg td { vertical-align: top; padding: 0.5rem 0.5rem; border-top: 1px solid var(--hair); }
table.dlg td.who { width: 7rem; font-weight: 700; color: var(--muted); }
table.dlg p { margin: 0; font-family: var(--serif); font-size: 1.1875rem; }
table.dlg.veiled p[lang=ru] { color: transparent; background: var(--hair); border-radius: 6px; }
table.dlg.veiled .say-btn { color: var(--ink); }
.lq-box { display: grid; gap: 0.75rem; max-width: 48rem; margin-top: 0.5rem; }
.lq { border: 1.5px solid var(--hair); border-radius: 12px; background: var(--card); padding: 0.75rem 1rem; }
.lq-q { margin: 0 0 0.5rem; font-weight: 700; }
.lq-q b { display: inline-block; min-width: 1.5rem; color: var(--cran); }
.lq-opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.lq-opts button.right { background: #047857; color: #FFFFFF; border-color: #047857; }
.lq-opts button.wrong { background: var(--cran); color: #FFFFFF; border-color: var(--cran); }
.lq .why { margin: 0.5rem 0 0; font-weight: 700; }
.rp { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0.875rem; margin: 0.75rem 0; }
.rec { border: 2px solid var(--navy); border-radius: 14px; background: var(--card); padding: 0.875rem 1.125rem; max-width: 48rem; }
.rec-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0; }
.rec-status { margin: 0; font-size: 0.9375rem; color: var(--muted); }
textarea[data-w] { width: 100%; max-width: 48rem; font: inherit; font-family: var(--serif); font-size: 1.125rem; padding: 0.75rem; border: 1.5px solid var(--control); border-radius: 10px; background: var(--card); color: var(--ink); }
.ws { margin: 0.25rem 0 0.75rem; font-size: 0.875rem; color: var(--muted); min-height: 1.25rem; }
.can { border: 1.5px solid var(--hair); border-radius: 12px; background: var(--card); padding: 0.625rem 1rem; margin: 0 0 0.625rem; max-width: 48rem; }
.can p { margin: 0 0 0.5rem; font-weight: 700; }
.can .gc-opts { margin: 0; }
.status:empty { display: none; }
.btn.secondary[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
