
:root {
  --bg: #fbf6ef;
  --bg-2: #f3eadf;
  --surface: #ffffff;
  --ink: #1d2b22;
  --muted: #5f6b63;
  --line: #e4d9cb;
  --primary: #1f4d3a;
  --primary-ink: #ffffff;
  --primary-soft: #e2ede6;
  --accent: #e8603f;
  --accent-soft: #fde5dc;
  --accent-ink: #ffffff;
  --gold: #c9a96e;
  --frame-shift: 22px;
  --cta-shadow: 0 16px 36px -16px rgba(232, 96, 63, .65);
  --shadow: 0 18px 50px -22px rgba(31, 77, 58, .35);
  --font-head: "Cormorant Garamond", Georgia, serif;
  --head-weight: 600;
  --head-track: -0.01em;
  --head-scale: 1.12;
  --radius: 22px;
  --hero-glow: radial-gradient(600px 400px at 85% 10%, #fbd9cb 0%, transparent 60%),
               radial-gradient(500px 380px at 0% 90%, #dbe9df 0%, transparent 60%);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.stats b, .module-num, .step-num, .lcard .thumb .n, .quiz .qn { font-variant-numeric: lining-nums; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-track);
  line-height: 1.12;
  margin: 0;
}
h1 em, h2 em, h3 em { color: var(--accent); font-style: italic; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .1s linear; }
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); line-height: 1.1; }
.brand .mark { font-family: var(--font-head); font-weight: 600; letter-spacing: .26em; font-size: 15px; }
.brand .sub { font-size: 12px; color: var(--muted); letter-spacing: .04em; margin-top: 3px; }
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.top nav a:hover { color: var(--primary); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 16px; text-decoration: none;
  box-shadow: var(--cta-shadow); transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; border: 1.5px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary);
}
.chip.soon { background: var(--bg-2); color: var(--muted); }
.chip.ai { background: var(--accent-soft); color: var(--accent); }
.hero { background: var(--hero-glow); }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero h1 { font-size: calc(clamp(46px, 6.4vw, 84px) * var(--head-scale)); margin: 18px 0 22px; }
.hero h1 em { display: block; }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.stats { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; }
.stats li { color: var(--muted); font-size: 14.5px; }
.stats b { display: block; font-family: var(--font-head); font-weight: var(--head-weight); color: var(--ink); font-size: calc(40px * var(--head-scale)); line-height: 1.1; }
.hero-art { position: relative; }
.hero-art .frame { position: relative; aspect-ratio: 4 / 5; }
.hero-art .frame::before {
  content: ""; position: absolute; inset: 0;
  transform: translate(var(--frame-shift), var(--frame-shift)); border: 1px solid var(--gold);
}
.hero-art .frame img {
  position: relative; width: 100%; height: 100%; object-fit: cover;
  border-radius: 2px; box-shadow: var(--shadow);
}
.hero-badge {
  position: absolute; left: -28px; bottom: 36px; max-width: 250px;
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border-radius: 18px; padding: 14px 16px;
  box-shadow: var(--shadow); font-size: 14px; line-height: 1.35; font-weight: 600;
}
.hero-badge .ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.hero-tag { position: absolute; right: 14px; top: 24px; }
.band { padding: 84px 0; }
.band.alt { background: var(--bg-2); }
.band h2 { font-size: calc(clamp(34px, 4vw, 52px) * var(--head-scale)); margin-bottom: 14px; }
.band .intro { color: var(--muted); max-width: 40em; margin: 0 0 36px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.checks li {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
}
.checks .ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; }
.feature h3 { font-size: calc(23px * var(--head-scale)); margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.module { display: grid; grid-template-columns: 250px 1fr; gap: 36px; padding: 40px 0; border-top: 1px solid var(--line); }
.module:first-of-type { border-top: 0; }
.module-head { position: sticky; top: 96px; align-self: start; }
.module-num { font-family: var(--font-head); font-size: calc(76px * var(--head-scale)); line-height: 1; color: var(--accent); font-weight: var(--head-weight); }
.module-head h3 { font-size: calc(30px * var(--head-scale)); margin-top: 6px; }
.module-head p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.lcard {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
a.lcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lcard .thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-2) center / cover no-repeat; }
.lcard:not(.soon) .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(0,0,0,.42) 0%, transparent 42%); }
.lcard .thumb .n {
  position: absolute; left: 14px; top: 12px; z-index: 1;
  font-family: var(--font-head); font-weight: var(--head-weight); font-size: calc(30px * var(--head-scale));
  color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.lcard.soon .thumb { display: grid; place-items: center; background:
  repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--line) 60%, transparent) 14px 15px), var(--bg-2); }
.lcard.soon .thumb .n { position: static; color: var(--muted); text-shadow: none; font-size: calc(58px * var(--head-scale)); opacity: .55; }
.lcard .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lcard .body small { color: var(--muted); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lcard h4 { font-size: calc(23px * var(--head-scale)); }
.lcard p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; flex: 1; }
.lcard .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13px; color: var(--muted); }
.start { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h3 { font-size: calc(26px * var(--head-scale)); margin-bottom: 10px; }
.panel p, .panel li { color: var(--muted); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 18px; row-gap: 0; align-items: stretch; }
.tiers.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin-inline: auto; }
.tier {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px;
}
.tiers .tier { display: grid; grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
.tier .plus:empty, .tier .access:empty, .tier .who:empty { margin: 0; padding: 0; border: 0; }
.tier h3 { font-size: calc(26px * var(--head-scale)); margin-bottom: 6px; }
.tier .price {
  font-family: var(--font-head); font-weight: var(--head-weight); font-variant-numeric: lining-nums;
  font-size: calc(46px * var(--head-scale)); line-height: 1.1; color: var(--ink); white-space: nowrap;
}
.tier .access { font-size: 14px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.tier .short { color: var(--muted); margin: 8px 0 20px; }
.tier .plus { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; align-content: start; }
.tier li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; }
.tier li .ico {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); margin-top: 1px;
}
.tier li .ico svg { width: 13px; height: 13px; }
.tier.featured { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: var(--shadow); }
.tier.featured h3, .tier.featured .price, .tier.featured .plus { color: var(--primary-ink); }
.tier.featured .access { color: #ffd9cc; }
.tier.featured .short { color: rgba(255, 255, 255, .78); }
.tier.featured li .ico { background: var(--accent); color: var(--accent-ink); }
.tier.featured .chip { position: absolute; top: -13px; left: 28px; background: var(--accent); color: var(--accent-ink); }
.tier-note { color: var(--muted); font-size: 14.5px; margin: 22px 0 0; max-width: 60em; }
.avo { margin: 18px 0 0; max-width: 60em; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.avo h3 { margin: 0 0 6px; font-size: 16px; }
.avo p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.avo p[lang=en] { font-style: italic; }
.enroll-form .ack { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.enroll-form .ack input { width: auto; margin-top: 3px; }
.tier-mark {
  display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; vertical-align: 1px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--accent-soft); color: #9a3412;
}
.tier .price-label { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.tier .who { font-size: 15px; color: var(--ink); margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.foot-bar { border-top: 1px solid var(--line); padding: 36px 0 60px; color: var(--muted); font-size: 14px; }
.foot-bar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.foot-bar a { color: var(--muted); margin-right: 16px; }
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 56px; padding-top: 36px; padding-bottom: 80px; }
.side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.toc summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 6px 0 14px; }
.toc summary::-webkit-details-marker { display: none; }
.toc .mod { margin: 4px 0 16px; }
.toc .mod-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px 10px; }
.toc a, .toc .off { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 14.5px; line-height: 1.35; }
.toc a:hover { background: var(--bg-2); }
.toc .off { color: var(--muted); opacity: .6; }
.toc .num { flex: none; width: 24px; font-weight: 800; font-size: 12.5px; color: var(--muted); }
.toc a.cur { background: var(--primary); color: var(--primary-ink); }
.toc a.cur .num { color: var(--primary-ink); opacity: .8; }
.main { max-width: 760px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.lesson-hero h1 { font-size: calc(clamp(38px, 5vw, 62px) * var(--head-scale)); margin: 14px 0 18px; }
.lesson-hero .lead p { font-size: 19px; color: var(--muted); margin: 0 0 14px; }
.meta { list-style: none; padding: 0; margin: 20px 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.meta li { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.meta svg { color: var(--primary); }
.cover { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow); margin: 0 0 20px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .chip { position: absolute; left: 14px; bottom: 14px; background: var(--surface); }
#content { counter-reset: none; }
.sec { padding-top: 56px; scroll-margin-top: 90px; }
.sec > h2 { font-size: calc(clamp(30px, 3.4vw, 42px) * var(--head-scale)); margin-bottom: 20px; display: flex; align-items: center; gap: 14px; }
.sec > h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sec h3 { font-size: calc(26px * var(--head-scale)); margin: 34px 0 12px; }
.sec p { margin: 0 0 16px; }
.sec ul, .sec ol { padding-left: 1.2em; margin: 0 0 18px; }
.sec li { margin: 6px 0; }
.sec li::marker { color: var(--accent); }
strong { font-weight: 700; }
code { font-size: .88em; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }
.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--bg-2); font-weight: 800; font-size: 13px; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.card { border-radius: var(--radius); padding: 26px 28px; border: 1px solid var(--line); background: var(--surface); }
.sec-learn .card { background: var(--primary); color: var(--primary-ink); border: 0; }
.sec-learn .checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sec-learn .checklist li { display: flex; gap: 12px; margin: 0; font-weight: 600; }
.sec-learn .checklist .ico { flex: none; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--primary-ink) 22%, transparent); display: grid; place-items: center; margin-top: 2px; }
.sec-need .card p:last-child, .sec-need .card ul:last-child { margin-bottom: 0; }
.sec-task .card { background: var(--accent-soft); border-color: transparent; }
.sec-task .card ol { margin-bottom: 0; }
.step { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; position: relative; padding-bottom: 18px; }
.step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--primary-ink);
  font-family: var(--font-head); font-weight: var(--head-weight); font-size: calc(26px * var(--head-scale));
  position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--bg);
}
.step-body h3 { margin: 12px 0 10px !important; }
.shot { margin: 22px 0 26px; }
.shot img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--bg-2); }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.shot .no { margin-left: auto; font-size: 12px; opacity: .7; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; margin: 22px 0 26px; }
.gallery .shot { margin: 0; }
.gallery .shot img { aspect-ratio: 3 / 4; max-height: none; }
.gallery .shot figcaption { font-size: 13.5px; }
.shot.empty .ph {
  aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center; text-align: center;
  border: 1.5px dashed var(--line); background: var(--bg-2); color: var(--muted); font-weight: 600;
}
.shot.empty .ph svg { margin: 0 auto 8px; color: var(--accent); }
.video {
  margin: 22px 0 26px; border-radius: var(--radius); overflow: hidden; position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 55%, var(--accent)) 100%);
  color: var(--primary-ink); padding: 26px 28px 26px 112px; min-height: 120px;
}
.video .play {
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--primary-ink) 20%, transparent); border: 2px solid color-mix(in srgb, var(--primary-ink) 60%, transparent);
}
.video small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 6px; }
.video p { margin: 0; font-weight: 600; line-height: 1.5; }
.mistakes { display: grid; gap: 12px; }
.mistake { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.mistake .ico { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.mistake p { margin: 0 !important; }
.quiz { display: grid; gap: 12px; }
.quiz details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.quiz summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; font-weight: 700; }
.quiz summary::-webkit-details-marker { display: none; }
.quiz .qn { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; }
.quiz .qt { flex: 1; padding-top: 3px; }
.quiz .hint { flex: none; font-size: 13px; color: var(--primary); padding-top: 6px; }
.quiz details[open] .hint { color: var(--muted); }
.quiz details[open] .hint::after { content: " ▴"; }
.quiz details:not([open]) .hint::after { content: " ▾"; }
.quiz .answer { padding: 0 20px 18px 66px; color: var(--muted); }
.sec-sources { font-size: 14px; color: var(--muted); }
.sec-sources > h2 { font-size: calc(24px * var(--head-scale)); }
.sec-sources ol { padding-left: 1.4em; }
sup.fn a { text-decoration: none; font-weight: 800; font-size: 12px; color: var(--accent); padding: 0 1px; }
sup.fn + sup.fn::before { content: ","; font-size: 12px; color: var(--accent); }
.service { margin-top: 40px; border: 1.5px dashed var(--line); border-radius: 18px; padding: 0 22px; color: var(--muted); font-size: 15px; }
.service summary { cursor: pointer; padding: 16px 0; font-weight: 700; }
.service > *:last-child { margin-bottom: 18px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 64px; }
.pager a { display: block; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.pager a:hover { box-shadow: var(--shadow); }
.pager small { display: block; color: var(--muted); font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.pager b { font-family: var(--font-head); font-weight: var(--head-weight); font-size: calc(22px * var(--head-scale)); }
.pager .next { text-align: right; grid-column: 2; }
.doc { max-width: 820px; padding-top: 40px; padding-bottom: 80px; }
.doc h1 { font-size: calc(48px * var(--head-scale)); margin-bottom: 20px; }
.doc h2 { font-size: calc(30px * var(--head-scale)); margin: 34px 0 12px; }
.doc h3 { font-size: calc(22px * var(--head-scale)); margin: 24px 0 8px; }
.doc blockquote { margin: 16px 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 12px 12px 0; }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 36px; }
  .hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero-badge { left: 12px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: 1fr; max-width: 560px; gap: 26px; }
  .tiers.two { grid-template-columns: 1fr; }.tiers .tier { display: block; grid-row: auto; }
  .module { grid-template-columns: 1fr; gap: 18px; }
  .module-head { position: static; }
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
  .side { position: static; max-height: none; overflow: visible; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 6px 14px; margin-bottom: 26px; }
  .toc summary { padding: 10px 0; }
  .toc summary::after { content: " ▾"; }
}
@media (max-width: 640px) {
  :root { --frame-shift: 12px; }
  .wrap { padding: 0 16px; }
  body { font-size: 16.5px; }
  .hero .lead, .lesson-hero .lead p { font-size: 17px; }
  .layout { padding-top: 20px; }
  .top .wrap { height: 60px; }
  .top nav a:not([data-auth]) { display: none; }
  .checks, .features, .start { grid-template-columns: 1fr; }
  .band { padding: 60px 0; }
  .card { padding: 22px 20px; }
  .step { grid-template-columns: 42px minmax(0, 1fr); gap: 12px; }
  .step-num { width: 42px; height: 42px; font-size: calc(20px * var(--head-scale)); }
  .step::before { left: 20px; top: 42px; }
  .video { padding: 96px 20px 22px; }
  .video .play { top: 22px; transform: none; left: 20px; width: 56px; height: 56px; }
  .quiz .answer { padding-left: 20px; }
  .gallery { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
@media (max-width: 980px) {
}
@media (max-width: 640px) {
}
.module-head .tier-mark { margin: 8px 0 0; }
.tier .tier-btn { justify-self: stretch; justify-content: center; margin-top: 26px; align-self: end; }
.tier .pay { font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 4px; }
.enroll { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.enroll-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.enroll-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.enroll-form input, .enroll-form select, .enroll-form textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.enroll-form .btn { justify-self: start; }
.enroll-msg { margin: 0; font-weight: 700; min-height: 1em; }
.enroll-msg.ok { color: var(--primary); } .enroll-msg.err { color: var(--accent); }
.cert { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.cert-img { margin: 0; }
.cert-img img { width: 100%; display: block; border-radius: 6px; box-shadow: 0 30px 70px -30px rgba(29, 43, 34, .45); }
@media (max-width: 980px) { .enroll, .cert { grid-template-columns: 1fr; gap: 28px; } }
.cert-note { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; max-width: 34em; }
.locked { position: relative; margin: 8px 0 28px; padding: 26px 26px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.locked::before { content: ""; position: absolute; left: 0; right: 0; top: -70px; height: 70px; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.locked p { margin: 0 0 12px; }
.locked .btn { display: inline-flex; }
.buy { max-width: 560px; width: calc(100% - 32px); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--surface); color: var(--ink); }
.buy::backdrop { background: rgba(20, 30, 24, .45); }
.buy h3 { margin: 0 0 4px; }
.buy p { font-size: 14.5px; color: var(--muted); margin: 8px 0; }
.buy p[lang=en] { font-style: italic; }
.buy .buy-tier { color: var(--ink); font-weight: 700; margin-top: 0; }
.buy .ack { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 6px; font-size: 14.5px; }
.buy .ack input { margin-top: 4px; }
.buy .buy-msg { color: var(--accent); font-weight: 700; min-height: 1em; }
.buy .buy-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.buy .btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.buy .buy-cancel { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.doc h1, .doc h2 { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 640px) { .doc h1 { font-size: calc(36px * var(--head-scale)); } }
.hero .facts { font-weight: 700; color: var(--ink); margin: -6px 0 22px; letter-spacing: .01em; }
.buy .buy-mail { display: grid; gap: 6px; font-size: 14px; font-weight: 700; margin: 10px 0 6px; }
.buy .buy-mail input, .auth-form input { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.auth { max-width: 720px; }
.auth-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; max-width: 460px; margin: 18px 0; }
.auth-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.auth-form p { margin: 0; }
.auth-form .btn { justify-self: start; }
.auth-form.alt { background: transparent; }
.auth-msg { color: var(--accent); font-weight: 700; min-height: 1em; }
.auth-note { color: var(--muted); }
.auth fieldset.q { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 14px; background: var(--surface); }
.auth fieldset.q legend { padding: 0 6px; font-weight: 600; }
.auth .opt { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.auth .opt input { margin-top: 5px; }
#result { margin: 18px 0; font-size: 17px; }
