:root {
  --navy: #17324f;
  --ink: #25364a;
  --muted: #65758b;
  --paper: #f3f7fb;
  --white: #ffffff;
  --line: #d9e3ed;
  --blue: #326be8;
  --blue-soft: #edf3ff;
  --green: #189a76;
  --green-soft: #eaf8f3;
  --orange: #ee8b2c;
  --orange-soft: #fff4e8;
  --violet: #7557df;
  --violet-soft: #f2efff;
  --red: #d95555;
  --shadow: 0 16px 45px rgba(23, 50, 79, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.58 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 66px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 52px);
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 9px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 900;
}
.brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--navy);
  color: white;
  letter-spacing: -.02em;
}
.brand b { font-size: 13px; letter-spacing: .12em; }
.top-title { display: grid; text-align: center; line-height: 1.18; }
.top-title strong { color: var(--navy); font-size: 13px; letter-spacing: .13em; }
.top-title span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.exit {
  justify-self: end;
  border: 1px solid #c9d6e3;
  border-radius: 9px;
  background: white;
  color: var(--navy);
  padding: 9px 13px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.exit:hover { border-color: var(--blue); color: var(--blue); }

.lesson-shell {
  width: min(1500px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 38px);
  padding: 26px clamp(18px, 3.5vw, 48px) 58px;
}
.lesson-rail {
  position: sticky;
  top: 92px;
  align-self: start;
  max-height: calc(100vh - 118px);
  overflow: auto;
  padding: 18px;
  border-radius: 18px;
  background: var(--navy);
  color: white;
  box-shadow: var(--shadow);
}
.rail-heading { display: grid; gap: 2px; }
.rail-heading span { color: #9db9d5; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.rail-heading strong { font-size: 20px; }
.progress-track { height: 5px; overflow: hidden; margin: 16px 0; border-radius: 99px; background: #ffffff28; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: #78dfbd; transition: width .24s ease; }
.lesson-rail nav { display: grid; gap: 5px; }
.lesson-rail nav button {
  display: grid;
  grid-template-columns: 25px 1fr;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dce8f4;
  padding: 7px 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lesson-rail nav button span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #ffffff42;
  border-radius: 7px;
  color: #bcd0e4;
  font-size: 10px;
}
.lesson-rail nav button:hover { background: #ffffff12; }
.lesson-rail nav button.current { background: white; color: var(--navy); }
.lesson-rail nav button.current span { border-color: var(--green); background: var(--green); color: white; }
.lesson-rail nav button.done { color: #9de0c9; }
.rail-tip { margin: 15px 4px 0; color: #a9bfd4; font-size: 11px; }

.lesson-main { min-width: 0; }
.screen {
  display: none;
  max-width: 1120px;
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid #dfe7ef;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
}
.screen.is-active { display: block; animation: screen-in .25s ease; }
@keyframes screen-in { from { opacity: .45; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.cover {
  display: none;
  grid-template-columns: minmax(0, .95fr) minmax(390px, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  min-height: calc(100vh - 150px);
  overflow: hidden;
  background:
    radial-gradient(circle at 93% 10%, rgba(50, 107, 232, .10), transparent 30%),
    linear-gradient(145deg, #fff 0%, #fff 60%, #f2f7ff 100%);
}
.cover.is-active { display: grid; }
.kicker { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .13em; }
.cover h1 {
  max-width: 640px;
  margin: 17px 0 18px;
  color: var(--navy);
  font-size: clamp(43px, 6.4vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}
.cover h1 em { color: var(--green); font-style: normal; }
.cover-lead { max-width: 590px; margin: 0; color: #566a80; font-size: clamp(18px, 2.1vw, 23px); }
.goal-line {
  display: grid;
  gap: 4px;
  margin: 25px 0 18px;
  padding: 15px 17px;
  border-left: 4px solid var(--orange);
  border-radius: 6px 12px 12px 6px;
  background: var(--orange-soft);
}
.goal-line span { color: #a75b19; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.goal-line b { color: var(--navy); }
.success-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 23px; }
.success-row span { border: 1px solid var(--line); border-radius: 99px; background: white; padding: 7px 11px; color: #53677f; font-size: 13px; font-weight: 750; }
.success-row b { display: inline-grid; width: 20px; height: 20px; place-items: center; margin-right: 3px; border-radius: 50%; background: var(--navy); color: white; font-size: 10px; }
.primary {
  border: 0;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  padding: 12px 17px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(23, 50, 79, .18);
}
.primary:hover { background: #0f2842; transform: translateY(-1px); }
.primary span { padding-left: 10px; }
.cover-visual { padding: 28px; border: 1px solid #dbe5f0; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgba(23, 50, 79, .10); }
.future-window { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.future-window span { color: var(--violet); font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.future-window strong { border-radius: 10px; background: var(--orange-soft); color: #b85e0f; padding: 9px 12px; }
.cover-line { position: relative; display: grid; grid-template-columns: 1fr auto 38%; align-items: center; margin: 62px 6px 33px; }
.cover-line::before { content: "NOW"; position: absolute; left: 0; top: -37px; color: var(--blue); font-size: 12px; font-weight: 850; }
.cover-line::after { content: "FRIDAY"; position: absolute; right: 0; top: -37px; color: var(--orange); font-size: 12px; font-weight: 850; }
.cover-line i, .cover-line em { height: 7px; background: #9fb3c8; }
.cover-line i { border-radius: 99px 0 0 99px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.cover-line em { border-radius: 0 99px 99px 0; }
.cover-line b { display: grid; width: 38px; height: 38px; place-items: center; border: 5px solid white; border-radius: 50%; background: var(--green); color: white; box-shadow: 0 0 0 2px var(--green); }
.cover-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .06em; }
.cover-labels span:nth-child(2) { color: var(--green); }
.cover-labels span:last-child { color: var(--orange); }
.cover-visual blockquote { margin: 29px 0 0; padding: 18px; border-radius: 12px; background: var(--blue-soft); color: var(--navy); font-size: clamp(17px, 2vw, 22px); font-weight: 850; text-align: center; }

.section-heading { margin-bottom: 24px; }
.section-heading h2 { margin: 7px 0 7px; color: var(--navy); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }
.lesson-image { margin: 18px 0 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #f7f9fc; }
.lesson-image img { display: block; width: 100%; height: auto; object-fit: contain; }
.lesson-image.infographic img { max-height: min(64vh, 700px); }
.photo-grid { box-shadow: 0 12px 32px rgba(23, 50, 79, .08); }
.prompt-band { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 14px; border-radius: 12px; background: var(--blue-soft); }
.prompt-band b { color: var(--blue); margin-right: 5px; }
.prompt-band span { border-radius: 99px; background: white; padding: 7px 11px; color: #425a74; font-size: 14px; font-weight: 700; }

.reveal { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; }
.reveal summary { list-style: none; padding: 12px 15px; background: #f1f5f9; color: #304a66; font-weight: 850; cursor: pointer; }
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary::after { content: "+"; float: right; color: var(--blue); font-size: 19px; line-height: 1; }
.reveal[open] summary::after { content: "−"; }
.answer { padding: 15px 17px; background: white; color: #334b65; }
.answer p { margin: 0 0 9px; }
.answer p:last-child { margin-bottom: 0; }
.numbered { line-height: 1.9; }
.ordered { margin: 0; padding: 15px 17px 15px 40px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.pager > button:not(.primary) { border: 0; background: transparent; color: #5a6e84; padding: 10px; font-weight: 800; cursor: pointer; }
.pager > button:not(.primary):hover { color: var(--blue); }

.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.concept-grid article { min-height: 135px; padding: 17px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 12px; background: #f9fbfd; }
.concept-grid article:nth-child(2) { border-top-color: var(--orange); }
.concept-grid .concept-key { border-top-color: var(--green); background: var(--green-soft); }
.concept-grid span, .formula-strip span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.concept-grid b { display: block; margin-top: 8px; color: var(--navy); font-size: 18px; }
.concept-grid p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.sentence-focus { display: flex; align-items: center; gap: 16px; margin: 18px 0; padding: 17px; border-radius: 13px; background: var(--navy); color: white; }
.sentence-focus > span { color: #f8b66d; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.sentence-focus p { margin: 0; font-size: clamp(19px, 2.4vw, 25px); font-weight: 750; }
.helper { color: var(--blue); }
.result { color: var(--green); }
.deadline { color: var(--orange); }
.sentence-focus .helper { color: #8bb1ff; }
.sentence-focus .result { color: #77dfbd; }
.quick-check { padding: 17px; border-left: 4px solid var(--violet); border-radius: 7px 12px 12px 7px; background: var(--violet-soft); }
.quick-check h3 { margin: 0 0 9px; color: #5739c5; }
.quick-check > div { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-check > div p { margin: 0; border-radius: 8px; background: white; padding: 8px 11px; font-weight: 700; }
.quick-check .reveal { background: white; }

.formula-strip { display: grid; grid-template-columns: 1fr auto 1.2fr auto 1.4fr auto 1fr; align-items: stretch; gap: 9px; margin: 22px 0; }
.formula-strip > div { display: grid; align-content: center; gap: 6px; min-height: 90px; padding: 14px; border: 1px solid #ccdaea; border-radius: 12px; background: #f8fbff; text-align: center; }
.formula-strip > i { align-self: center; color: #a1afbe; font-style: normal; font-size: 21px; }
.formula-strip > div b { color: var(--navy); font-size: clamp(15px, 1.8vw, 21px); }
.formula-strip .helper-block { border-color: #9db8f9; background: var(--blue-soft); }
.formula-strip .result-block { border-color: #91d7c2; background: var(--green-soft); }
.formula-strip .deadline-block { border-color: #f5bf88; background: var(--orange-soft); }
.formula-strip .helper-block b { color: var(--blue); }
.formula-strip .result-block b { color: var(--green); }
.formula-strip .deadline-block b { color: #b86216; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.form-grid article { padding: 16px; border-left: 4px solid var(--blue); border-radius: 7px 12px 12px 7px; background: #f5f8fc; }
.form-grid article:nth-child(2) { border-left-color: var(--red); }
.form-grid article:nth-child(3) { border-left-color: var(--orange); }
.form-grid article:nth-child(4) { border-left-color: var(--violet); }
.form-grid span { color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.form-grid h3 { margin: 5px 0; color: var(--navy); font-size: 16px; }
.form-grid p { margin: 0; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: white; padding: 17px; }
.panel h3 { margin: 0 0 12px; color: var(--navy); }
.irregular { background: var(--green-soft); }
.verb-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.verb-list span { border-radius: 7px; background: #f4f7fa; padding: 7px 9px; font-size: 13px; }
.irregular .verb-list span { background: white; }
.verb-list b { color: var(--green); }
.micro-practice { margin-top: 16px; padding: 15px; border-radius: 12px; background: var(--orange-soft); }
.micro-practice h3 { margin: 0; color: #aa5b19; }
.micro-practice p { margin: 7px 0 0; }

.uses-grid, .time-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.uses-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #f8fafc; }
.uses-grid b { color: var(--blue); font-size: 11px; letter-spacing: .09em; }
.uses-grid p { margin: 8px 0 0; }
.uses-grid strong { color: var(--green); }
.time-grid { margin-top: 18px; }
.time-grid article { padding: 17px; border: 1px solid #cbdcf2; border-top: 4px solid var(--blue); border-radius: 12px; background: var(--blue-soft); }
.time-grid article:nth-child(2) { border-color: #b5ddd0; border-top-color: var(--green); background: var(--green-soft); }
.time-grid article:nth-child(3) { border-color: #f2c99e; border-top-color: var(--orange); background: var(--orange-soft); }
.time-grid article:nth-child(4) { border-color: #cfc3f5; border-top-color: var(--violet); background: var(--violet-soft); }
.time-grid span { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.time-grid article:nth-child(2) span { color: var(--green); }
.time-grid article:nth-child(3) span { color: #bb6418; }
.time-grid article:nth-child(4) span { color: #5c41c6; }
.time-grid h3 { margin: 5px 0; color: var(--navy); font-size: 16px; }
.time-grid p { margin: 7px 0; }
.time-grid article > b { display: block; font-size: 14px; }
.quick-check.compact { margin-top: 18px; }
.check-sentence { display: inline-block; margin: 2px 0 7px; border-radius: 8px; background: white; padding: 8px 12px; color: var(--navy); font-weight: 850; }
.quick-check.compact ol { margin: 7px 0; padding-left: 23px; columns: 2; }

.exercise-block { margin-top: 18px; padding: clamp(16px, 2.5vw, 24px); border: 1px solid var(--line); border-radius: 15px; background: #f9fbfd; }
.exercise-block h3 { margin: 0 0 13px; color: var(--navy); }
.exercise { margin: 0; padding-left: 29px; }
.exercise li { padding: 6px 7px; break-inside: avoid; }
.exercise small { color: var(--muted); }
.two-columns { columns: 2; column-gap: 42px; }
.blank { color: var(--blue); font-weight: 800; letter-spacing: .05em; }
.memory-strip { display: grid; grid-template-columns: auto 1fr 1px auto 1fr; align-items: center; gap: 12px; margin: 18px 0; padding: 14px 17px; border-radius: 12px; background: var(--navy); color: white; }
.memory-strip b:first-child { color: #91b2ff; }
.memory-strip b:nth-of-type(2) { color: #75dfbc; }
.memory-strip i { width: 1px; height: 32px; background: #ffffff3f; }
.memory-strip span { color: #dce5ef; font-size: 14px; }
.teacher-cue { margin: 13px 0 0; color: var(--muted); }
.practice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 28px; padding-left: 29px; }
.practice-grid li { padding: 12px 12px 12px 7px; border-bottom: 1px solid #e5ebf1; }
.answer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.answer-grid span { border-radius: 7px; background: var(--green-soft); padding: 8px 10px; font-weight: 750; }
.workshop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.workshop-grid .exercise-block { margin-top: 0; }
.compact-list li { padding-top: 4px; padding-bottom: 4px; }
.error-workshop { border-top: 4px solid var(--red); }

.schedule { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.schedule > div { display: grid; grid-template-columns: 200px 1fr; }
.schedule > div:not(:last-child) { border-bottom: 1px solid var(--line); }
.schedule span, .schedule b { padding: 10px 14px; }
.schedule b { color: var(--navy); background: #f1f5fa; }
.schedule-head { background: var(--navy); color: white; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.schedule-head span { background: transparent; }
.questions-split { align-items: start; }
.questions-split .exercise { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfd; padding: 13px 15px 13px 41px; }

.trip-line { display: flex; align-items: center; margin: 20px 0; overflow-x: auto; padding: 8px 4px 16px; }
.trip-line > div { flex: 0 0 auto; display: grid; min-width: 76px; gap: 2px; border: 1px solid #cbd9e8; border-radius: 10px; background: white; padding: 9px; text-align: center; }
.trip-line > div span { color: var(--orange); font-size: 10px; font-weight: 900; }
.trip-line > div b { color: var(--navy); }
.trip-line > i { flex: 1 0 24px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--green)); }
.compact-schedule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-schedule > div { grid-template-columns: 150px 1fr; border-right: 1px solid var(--line); }
.compact-schedule .schedule-head { grid-column: 1 / -1; grid-template-columns: 150px 1fr; border-right: 0; }

.goal-bank { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px; border-radius: 12px; background: var(--navy); }
.goal-bank b { align-self: center; margin-right: 4px; color: #90b2d4; font-size: 11px; letter-spacing: .1em; }
.goal-bank span { border-radius: 7px; background: #ffffff16; color: white; padding: 7px 9px; font-size: 13px; }
.personal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.personal-grid article { min-height: 108px; padding: 15px; border: 1px solid #b8dfd2; border-radius: 12px; background: var(--green-soft); }
.personal-grid b { display: block; color: #14755b; font-size: 14px; }
.personal-grid span { display: block; margin-top: 9px; color: var(--navy); font-size: 19px; font-weight: 800; }
.follow-up { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--orange-soft); }
.follow-up b { align-self: center; margin-right: 4px; color: #a75813; }
.follow-up span { border-radius: 7px; background: white; padding: 7px 9px; font-size: 13px; }

.challenge-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 15px; }
.speaking-frame, .requirements { padding: 19px; border-radius: 15px; }
.speaking-frame { border: 1px solid #c9d8ef; background: var(--blue-soft); }
.requirements { display: flex; flex-wrap: wrap; align-content: start; gap: 8px; border: 1px solid #b9dfd2; background: var(--green-soft); }
.speaking-frame h3, .requirements h3 { width: 100%; margin: 0 0 9px; color: var(--navy); }
.speaking-frame p { margin: 6px 0; border-bottom: 1px dashed #b5c6dc; padding-bottom: 5px; }
.requirements span { border-radius: 8px; background: white; padding: 8px 10px; color: #285747; font-size: 13px; font-weight: 750; }
.requirements p { width: 100%; margin: 10px 0 0; color: #3e685a; font-size: 13px; }
.mistakes { margin-top: 18px; padding: 18px; border-radius: 14px; background: #fff5f4; }
.mistakes h3 { margin: 0 0 12px; color: #a53c3c; }
.mistakes > div { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 7px 0; border-bottom: 1px solid #f0d5d2; }
.mistakes > div:last-child { border-bottom: 0; }
.mistakes span { color: #865a5a; }
.mistakes b { color: #19765c; }

.exit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.exit-grid article { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 12px; min-height: 96px; border: 1px solid var(--line); border-radius: 13px; background: #f8fafc; padding: 14px; }
.exit-grid span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--blue); color: white; font-weight: 900; }
.exit-grid p { margin: 0; color: var(--navy); font-size: 18px; font-weight: 800; }
.final-card { margin-top: 22px; padding: 28px; border-radius: 18px; background: var(--navy); color: white; text-align: center; }
.final-card > span { color: #7edebb; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.final-card h2 { margin: 7px 0 16px; font-size: clamp(27px, 4vw, 40px); }
.final-card > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 21px; font-size: 20px; }
.final-card .helper { color: #8db3ff; }
.final-card .result { color: #79dfbd; }
.final-card .deadline { color: #ffb46a; }
.link-button { display: inline-block; background: white; color: var(--navy); text-decoration: none; }
.link-button:hover { background: #f3f7fb; }

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 3.5vw, 48px) 26px;
  color: #6e8093;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
}

button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #f4a24d; outline-offset: 3px; }

@media (max-width: 1040px) {
  .lesson-shell { grid-template-columns: 190px minmax(0, 1fr); padding-inline: 18px; }
  .cover { grid-template-columns: 1fr; }
  .cover-visual { max-width: 700px; }
  .formula-strip { grid-template-columns: 1fr 1fr; }
  .formula-strip > i { display: none; }
  .workshop-grid { grid-template-columns: 1fr; }
  .compact-schedule { grid-template-columns: 1fr; }
  .compact-schedule .schedule-head { grid-column: auto; }
}

@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; height: 60px; padding-inline: 12px; }
  .top-title { display: none; }
  .brand b { display: none; }
  .brand span { width: 36px; height: 36px; }
  .exit { padding: 8px 10px; font-size: 13px; }
  .lesson-shell { display: block; padding: 10px 10px 35px; }
  .lesson-rail { position: sticky; top: 68px; z-index: 15; max-height: none; margin-bottom: 10px; padding: 10px; border-radius: 13px; }
  .rail-heading, .rail-tip { display: none; }
  .progress-track { margin: 0 0 8px; }
  .lesson-rail nav { display: flex; overflow-x: auto; gap: 5px; padding-bottom: 1px; }
  .lesson-rail nav button { display: block; width: auto; min-width: max-content; padding: 7px 10px; text-align: center; font-size: 11px; }
  .lesson-rail nav button span { display: inline-grid; width: 20px; height: 20px; margin-right: 5px; }
  .screen { min-height: calc(100vh - 132px); padding: 20px 15px; border-radius: 17px; }
  .cover.is-active { display: block; }
  .cover h1 { font-size: clamp(42px, 14vw, 62px); }
  .cover-visual { margin-top: 28px; padding: 19px; }
  .cover-labels { font-size: 8px; }
  .section-heading p { font-size: 16px; }
  .section-heading h2 { font-size: 31px; }
  .concept-grid, .form-grid, .uses-grid, .time-grid, .split, .practice-grid, .challenge-layout, .exit-grid { grid-template-columns: 1fr; }
  .two-columns { columns: 1; }
  .answer-grid, .personal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formula-strip { grid-template-columns: 1fr 1fr; }
  .memory-strip { grid-template-columns: 1fr 1fr; }
  .memory-strip i { display: none; }
  .schedule > div, .compact-schedule > div, .compact-schedule .schedule-head { grid-template-columns: 125px 1fr; }
  .mistakes > div { grid-template-columns: 1fr; gap: 2px; }
  .pager { align-items: stretch; }
  .pager button { font-size: 12px; }
  .footer { padding-inline: 15px; }
}

@media (max-width: 480px) {
  .cover-line { margin-inline: 0; }
  .future-window { align-items: flex-start; }
  .verb-list, .answer-grid, .personal-grid { grid-template-columns: 1fr; }
  .formula-strip { grid-template-columns: 1fr; }
  .quick-check.compact ol { columns: 1; }
  .schedule > div, .compact-schedule > div, .compact-schedule .schedule-head { grid-template-columns: 105px 1fr; font-size: 13px; }
  .pager { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen.is-active { animation: none; }
  .progress-track span { transition: none; }
  .primary:hover { transform: none; }
}
