/* The sections below the first screen (sections.js moves them). Its link in
   scene.html is marked data-page: the copies of the first screen on the
   photographed sheet do not load it. Without JavaScript, and until a block is
   armed, every block shows its final state. Type and colour tokens: look.css.

   Names for the later motion pass: --at (the word trap's answer on its line),
   --t (the plan's day), .sky-band (the blue surface of the price), .on-sky (the
   masthead over it). Each block's comment says what is laid out where. */
.sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* The sky, seen once before the hill: the same two blues the ending is built
   from. --band-top is the footer's --sky-top (hill.css) and the top row of
   ../assets/hill-wide-end.webp; --band-low is that photograph a fifth of the way
   down, where the sky starts to lighten. The tall photograph's for portrait. */
/* (Wave I, item 4) The band is now the picture's own sky (../assets/band-*.webp, cut by dream/waveI/band_sky.py
   from the ending's layers): --band-top is that sky's first row, --band-low the row where the text's sky
   ends (white on it 6 : 1). The tall picture's for portrait. */
:root {--band-top:#1556a0;--band-low:#2e63aa}
@media (max-aspect-ratio:1/1) {:root {--band-top:#084893;--band-low:#2764ab}}

/* A number whose digits roll to their places, one column of 0–9 per digit. */
.roll {display:inline-flex;font-variant-numeric:tabular-nums}
.roll-d {height:1.12em;line-height:1.12;overflow:hidden}
.roll-d i {display:block;font-style:normal;transform:translateY(calc(var(--d,0) * -10%));transition:transform .8s cubic-bezier(.2,.75,.2,1) calc(var(--k,0) * 70ms)}
.roll-d b {display:block;height:1.12em;font-weight:inherit}
/* A word that is swapped for another: the old one leaves upward, the box takes the new width.
   The box is a slot: the words are cut off at its edges and never run over the lines around it. */
.swap {display:inline-block;position:relative;white-space:nowrap;vertical-align:bottom;clip-path:inset(0 -1px)}
.swap b {display:inline-block;font-weight:inherit}
.swap .gone {position:absolute;left:0;top:0}

/* The booklet: one sheet of paper, the same cool white from top to bottom,
   with one band of sky across it at the price. No boxes, no rules between
   blocks: air inside the blocks, not between them. */
.booklet {padding-bottom:0;background:var(--paper) var(--grain)}
.section {border-top:0;padding-block:clamp(56px,6.2vw,96px)}
.booklet>.section:first-child {padding-top:clamp(32px,3.5vw,64px)}
.booklet>.section:last-child {padding-bottom:clamp(24px,3vw,48px)}
.hand {font:400 25px/1.15 var(--pen);color:var(--blue);transform:rotate(-2deg);transform-origin:0 50%}
.text-link {margin-top:26px;font-size:17px}
.diag-side .body-copy {color:var(--ink-soft)}
/* One rail: on a wide screen every block keeps to the task's column (--col-w,
   from scene.js), the column the opening film lands on. */
@media (min-width:821px) {.booklet .wrap {width:var(--col-w,80%)}}

/* The two things on this page that are real sheets lying on the paper: the
   squared working paper and the marked diagnosis. Their shadows are soft, as
   paper lying in daylight. */
.squared,.marked {background:#fbfbf9}

/* Display headings. Line-height leaves the Cyrillic descenders their room. */
.word-title,.diag-side h2,.plan-title,.faq h2 {line-height:1.05}

/* 02 · One word changes the answer. Opens on its claim in one large line; the
   squared working paper lies under it, bleeding past the rail so that its text
   stays on it. Inside the sheet: the task, the five words, the inequality on
   the left, and the answer, large, standing over its own point on the number
   line. --at (answer / 400) places both. */
/* Capped at its size at 1440: above that the booklet's zoom (--fit) grows it with the column, so it stays one line. */
.word-title {font-size:clamp(54px,6.6vw,96px);margin:0 0 clamp(26px,2.5vw,42px)}
@media (min-width:821px) {.word-title {max-width:none}}
.squared {--sq:clamp(20px,3.6vw,52px);position:relative;padding:clamp(24px,2.7vw,46px) var(--sq) clamp(18px,1.9vw,32px);
  background:linear-gradient(#dbe1ec 1px,transparent 1px) 0 -1px/100% 28px,linear-gradient(90deg,#dbe1ec 1px,transparent 1px) -1px 0/28px 100%,#fbfbf9;
  box-shadow:0 0 0 1px #14171c0f,0 14px 30px -14px #14171c26}
@media (min-width:821px) {.squared {margin-inline:calc(-1 * var(--sq))}}
.word-q {font:400 clamp(24px,2.3vw,40px)/1.36 var(--serif);letter-spacing:-.016em;max-width:31em}
.word-q .swap {background:linear-gradient(var(--marker),var(--marker)) 0 62%/100% 58% no-repeat}
.word-q .swap.wet {animation:marker .6s cubic-bezier(.3,.7,.2,1)}
@keyframes marker {from {background-size:0 58%}}
.word-picks {display:flex;flex-wrap:wrap;gap:10px;margin-top:clamp(18px,1.7vw,28px)}
.word-picks button {min-height:44px;padding:8px 19px;border:1px solid #c5cad4;border-radius:999px;background:#fbfbf9;color:var(--ink);font:italic 19px/1.2 var(--serif);transition:background-color .25s,border-color .25s}
.word-picks button:hover {border-color:var(--ink)}
.word-picks [aria-pressed="true"] {background:var(--marker);border-color:#e2cf7f}
.word-work {--at:.5;display:grid;grid-template-columns:minmax(0,1fr);margin-top:clamp(20px,2.1vw,34px)}
.word-ru {display:flex;flex-wrap:wrap;gap:4px 14px;align-items:baseline;color:var(--blue);font:400 20px/1.4 var(--sans)}
.word-ru [lang] {color:var(--ink);font-family:var(--serif)}
/* The inequality and the answer share one row: the inequality on the left, the
   answer centred over x = --at of the line below (the line ends 30 px short of
   the row for its arrow, so the same 100% - 30px). */
.word-stage {display:grid;grid-template-columns:minmax(0,1fr);align-items:end;margin-top:clamp(6px,.8vw,14px)}
.word-eq {grid-area:1/1;justify-self:start;font:400 clamp(20px,1.85vw,30px)/2.3 var(--mono);padding-bottom:.08em}
.word-mark {grid-area:1/1;justify-self:start;width:0;margin-left:calc(var(--at) * (100% - 30px));display:flex;flex-direction:column;align-items:center}
.word-ans {display:flex;flex-direction:column;align-items:center;text-align:center;white-space:nowrap}
.word-ans>.swap {display:block;font:400 clamp(17px,1.35vw,20px)/1.4 var(--sans);color:var(--muted)}
.word-ans strong {display:block;font:300 clamp(84px,9.4vw,140px)/.86 var(--display);font-stretch:70%;letter-spacing:-.02em}
/* The printed sign is the one for höchstens. Another word is a correction in pen: struck out, the right sign written above. */
.sign {position:relative;display:inline-block;min-width:1.2em;text-align:center}
.sign b {font-weight:400}
.sign .pen {position:absolute;inset:8% -10%;width:120%;height:84%}
.sign .pen path {stroke-dashoffset:1;transition:none}
.sign i {position:absolute;left:52%;bottom:60%;font:400 1.25em/1 var(--pen);color:var(--blue);opacity:0;transform:translateX(-50%) rotate(-6deg);white-space:nowrap}
.struck .sign .pen path {stroke-dashoffset:0;transition:stroke-dashoffset .3s ease-out}
.struck .sign i {opacity:1;transition:opacity .2s .25s}
/* The number line, drawn: a ruled axis with ticks crossing it and an arrow,
   the marker stroked just above it, a ring in pen at the value (filled when
   the value belongs to the answer), and under the line the pen's note, its
   arrow curling up to the ring. */
.word-ray {position:relative;margin-top:clamp(14px,1.4vw,22px)}
.word-line {--from:0;--to:.5;position:relative;height:50px;margin-right:30px}
.word-line::before {content:"";position:absolute;inset:20px -28px auto 0;border-top:1.25px solid #14171cd9}
.word-line::after {content:"";position:absolute;right:-28px;top:20px;width:8px;height:8px;border:solid #14171cd9;border-width:1.25px 1.25px 0 0;transform:translate(0,-50%) rotate(45deg);transform-origin:50% 50%;margin-top:.5px}
.word-line i {position:absolute}
.word-fill {top:8px;height:11px;left:calc(var(--from) * 100%);right:calc((1 - var(--to)) * 100%);background:var(--marker);mix-blend-mode:multiply;border-radius:3px 9px 4px 8px / 5px 6px 4px 6px;transform:rotate(-.35deg);transition:left .6s cubic-bezier(.2,.7,.2,1),right .6s cubic-bezier(.2,.7,.2,1)}
.word-dot {left:calc(var(--at) * 100%);top:20px;width:15px;height:15px;margin:-7.5px 0 0 -7.5px;border:2px solid var(--blue);border-radius:50%;background:var(--blue);transition:background-color .3s}
.word-line.open .word-dot {background:#fbfbf9}
.word-line span {position:absolute;left:calc(var(--x) * 100%);top:20px;padding-top:12px;transform:translateX(-50%);font:400 14px/1 var(--mono);color:var(--muted)}
.word-line span::before {content:"";position:absolute;left:50%;top:-6px;height:12px;border-left:1.25px solid #14171cd9}
.word-line span:first-of-type {transform:none}
.word-line span:first-of-type::before {left:0}
.word-line span:last-of-type {transform:translateX(-100%)}
.word-line span:last-of-type::before {left:100%}
.word-arrow {position:absolute;left:calc(var(--at) * 100% + 13px);top:24px;width:40px;height:40px;overflow:visible;fill:none;stroke:var(--blue);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.word-why {max-width:calc((1 - var(--at)) * (100% - 30px) - 56px);min-height:1.2em;margin:2px 0 0 calc(var(--at) * (100% - 30px) + 56px);font-size:clamp(24px,2vw,30px)}

/* 03 · Diagnosis. On a wide screen the claim and its few lines stand in the
   first column and stay there while the marked sheet beside them is read; the
   whole block is about one screen. The sheet is paper with a teacher's marks on
   it: the row notes and the counts written in the blue pen. */
.diag-side h2 {font-size:clamp(46px,5.6vw,100px)}
.diag-side .body-copy {max-width:19em;margin:0;font-size:clamp(18px,1.45vw,22px);line-height:1.5}
@media (min-width:821px) {
  .diag-grid {align-items:start}
  .diag-side {grid-column:1;position:sticky;top:calc(var(--mast) + 48px);align-self:start}
  .diag-side h2 {font-size:clamp(42px,4.1vw,66px);margin-bottom:20px}
  .marked {grid-column:2/-1;justify-self:end;width:100%;max-width:740px}
}
.marked {position:relative;padding:clamp(22px,2.8vw,40px) clamp(20px,2.8vw,40px) clamp(20px,2.4vw,32px);
  box-shadow:0 0 0 1px #14171c0f,0 2px 6px #14171c0d,10px 18px 34px -14px #14171c29}
.marked-head {display:flex;justify-content:space-between;align-items:baseline;padding-bottom:12px;border-bottom:1.5px solid var(--ink);font:400 13px var(--mono);letter-spacing:.08em}
.marked-head b {font-size:15px;font-weight:500}
.marked-rows {list-style:none;padding:0}
.marked-rows li {display:grid;grid-template-columns:30px minmax(0,auto) minmax(0,1fr) 28px;gap:2px 14px;align-items:baseline;padding:11px 0;border-bottom:1px solid #e4e6e3}
.marked-rows li>span {font:400 13px var(--mono);color:var(--muted)}
.marked-rows b {font:400 19px/1.3 var(--serif)}
.marked-rows .blank b {opacity:.5}
/* (Wave J, M 7) A task not yet solved: the sample's row, faint, under the visitor's own rows. */
.marked-rows .sample {opacity:.42}
.marked-rows em {grid-column:3;justify-self:end;text-align:right;color:var(--blue);font:400 21px/1.15 var(--pen);font-style:normal;transform:rotate(-1.5deg);transform-origin:100% 50%;transition:clip-path .3s ease calc(var(--i) * 45ms + .12s)}
.pen {grid-column:4;align-self:center;width:26px;height:26px;overflow:visible;fill:none;stroke:var(--blue);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
/* The pen is quick: the whole sheet is marked in under a second. */
.pen path {stroke-dasharray:1;transition:stroke-dashoffset .26s cubic-bezier(.4,0,.3,1) calc(var(--i) * 45ms + .05s)}
.marked-sum {display:flex;align-items:center;gap:18px;margin-top:22px}
.marked-sum strong {position:relative;display:inline-flex;align-items:baseline;gap:.2em;padding:8px 24px 10px;color:var(--blue);font:400 clamp(38px,3.4vw,54px)/1 var(--display);font-stretch:78%;transform:rotate(-3deg)}
/* The slash is said quietly, in the sans, so 4 and 8 carry the count. The ring keeps one stroke width however it is stretched. */
.marked-sum .slash {font:300 .8em/1 var(--sans);opacity:.55}
.marked-sum .pen {position:absolute;left:-9%;top:-11%;width:118%;height:122%}
.marked-sum .pen path {vector-effect:non-scaling-stroke}
.marked-sum>span {font:400 16px/1.4 var(--sans);color:var(--muted)}
.marked-causes {list-style:none;padding:0;display:grid;gap:4px;margin-top:20px}
.marked-causes li {display:flex;align-items:center;gap:14px;font-size:16px}
.marked-causes b {flex:0 0 12.5em;font-weight:500}
.marked-causes span {order:1;min-width:3.6em;font:400 15px var(--mono);color:var(--muted)}
.marked-causes .tally {order:2;width:auto;height:26px;stroke-width:1.8;margin-right:4px}
.marked-causes .tally[style*="--w:0"] {display:none}
.marked-note {margin-top:18px;color:var(--muted);font-size:16px}
.marked.armed:not(.inked) .pen path {stroke-dashoffset:1;transition:none}
.marked.armed:not(.inked) em {clip-path:inset(0 100% 0 0);transition:none}

/* 04 · The plan. Opens on its heading, then the task itself, large. --t runs
   from 0 to 1; the four stages sit at 0, 1/3, 2/3 and 1: marker and
   translations, marker only, the pen's underline only, the bare German text.
   The stages are buttons (sections.js makes them) and the slider's four stops
   stand exactly at the left edge of their columns. The rail under them runs on
   across the last column to the edge of the block. Without JavaScript --t stays 0. */
.plan {--t:0;--sg:24px;--thumb:24px}
.plan-title {max-width:none;margin:0 0 clamp(22px,2.4vw,40px);font-size:clamp(44px,5vw,88px)}
.fade-q {max-width:25em;padding-top:.55em;font:400 clamp(26px,2.9vw,48px)/1.78 var(--serif);letter-spacing:-.016em}
.hl {position:relative;isolation:isolate;white-space:nowrap}
.hl::before {content:"";position:absolute;z-index:-1;inset:30% -.07em 16%;border-radius:2px 5px 3px 6px;background:var(--marker);transform:rotate(-.6deg);opacity:clamp(0,calc(1.9 - var(--t) * 2.9),1)}
.hl::after {content:"";position:absolute;inset:auto 0 10% 0;border-bottom:2px solid var(--blue);opacity:clamp(0,min(calc(var(--t) * 6 - 2.6),calc(5.4 - var(--t) * 6)),1)}
.hl i {position:absolute;left:0;bottom:80%;white-space:nowrap;font:400 .56em/1 var(--pen);color:var(--blue);transform:rotate(-2deg);transform-origin:0 100%;opacity:clamp(0,calc(1.25 - var(--t) * 3.75),1)}
.fade-ctl {position:relative;margin-top:clamp(22px,2.6vw,40px)}
/* The rail: the whole width of the four columns, with a short stop at its end. */
.js .fade-ctl::before {content:"";position:absolute;left:0;right:0;top:20px;border-top:1px solid #b9bfca}
.js .fade-ctl::after {content:"";position:absolute;right:0;top:14px;height:12px;border-left:1.5px solid #14171c66}
/* The track runs from the first column's edge to the last one's, so a stop
   at k/3 of it lands on column k: the thumb's half overhangs at both ends. */
.fade-ctl input {position:relative;display:block;width:calc(75% + var(--sg) * .75 + var(--thumb));height:40px;margin:0 0 0 calc(var(--thumb) / -2);background:none;-webkit-appearance:none;appearance:none;cursor:grab;
  --at:calc(var(--thumb) / 2);--len:calc(100% - var(--thumb));
  --fill:linear-gradient(var(--blue),var(--blue)) var(--at) 50%/calc(var(--t) * var(--len)) 2px no-repeat;
  --stops:linear-gradient(90deg,transparent calc(var(--at) - .75px),#14171c66 0 calc(var(--at) + .75px),transparent 0 calc(var(--at) + var(--len) / 3 - .75px),#14171c66 0 calc(var(--at) + var(--len) / 3 + .75px),transparent 0 calc(var(--at) + var(--len) * 2 / 3 - .75px),#14171c66 0 calc(var(--at) + var(--len) * 2 / 3 + .75px),transparent 0 calc(var(--at) + var(--len) - .75px),#14171c66 0 calc(var(--at) + var(--len) + .75px),transparent 0) 0 50%/100% 12px no-repeat}
.fade-ctl input:active {cursor:grabbing}
.fade-ctl input::-webkit-slider-runnable-track {height:12px;background:var(--fill),var(--stops)}
.fade-ctl input::-moz-range-track {height:12px;background:var(--fill),var(--stops)}
/* The thumb: a solid ring of the pen's blue on paper; it lifts a little under the pointer. */
.fade-ctl input::-webkit-slider-thumb {-webkit-appearance:none;width:var(--thumb);height:var(--thumb);margin-top:-6px;border:3px solid var(--blue);border-radius:50%;background:var(--paper);box-shadow:0 1px 3px #14171c33;transition:background-color .2s,box-shadow .2s,transform .2s}
.fade-ctl input::-moz-range-thumb {box-sizing:border-box;width:var(--thumb);height:var(--thumb);border:3px solid var(--blue);border-radius:50%;background:var(--paper);box-shadow:0 1px 3px #14171c33}
.fade-ctl input:hover::-webkit-slider-thumb {transform:translateY(-1px);box-shadow:0 4px 10px #14171c38}
.fade-ctl input:active::-webkit-slider-thumb {background:var(--blue)}
.fade-ctl input:focus-visible {outline-offset:6px}
.fade-days {list-style:none;padding:0;margin-top:10px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--sg)}
.fade-days li {color:var(--ink-soft);font-size:18px;line-height:1.45;transition:opacity .4s,color .4s}
.fade-days b {display:block;margin-bottom:6px;font:italic 360 clamp(24px,2vw,30px)/1.1 var(--display);font-stretch:88%;color:var(--ink)}
.fade-days button {display:block;width:100%;max-width:17em;min-height:44px;margin:0;padding:8px 0 6px;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.fade-days button:focus-visible {outline-offset:2px}
/* The stages not chosen stay readable; the chosen one is in the pen's blue. */
.js .fade-days li:not(.now) {opacity:.8}
.js .fade-days li:not(.now):hover {opacity:1}
.fade-days .now b {color:var(--blue)}
/* (Wave F, fix 10) On a wide screen a stage that is not the current one shows, under the pointer, that it
   can be pressed: a hairline of the pen's blue under its name. */
@media (hover:hover) and (min-width:821px) {.js .fade-days li:not(.now) button:hover b {text-decoration:underline 1px #1f43a655;text-underline-offset:5px}}

/* 05 · Price and guarantee, on the sky band: the paper hazes into the sky and
   back, as it does at the ending (hill.css, .sky). On a wide screen the price
   and what it includes stand in the first column; the guarantee answers from
   the other two, as the lines of a registration form (Anmeldung): the field's
   German name in quiet mono, the term in Russian print. White on the blue. */
/* (Wave H, fix 2) No haze: the paper is a sheet, and it ends. The plan's sheet ends in a crisp cut and
   casts a faint shadow onto the sky beneath it (the light comes from above); the sky is seen between the
   sheets; the next sheet begins with a crisp edge and the thin contact shadow a lying sheet has. The sky
   runs from --band-top to --band-low. (--haze stays, at 0, for the layers that read it.) */
/* (Wave I, item 4) Open sky, not a sunken box: the ending picture's own sky, deep at the top and lightening
   only at the band's foot (--zone), where no text stands, down to the horizon's haze; along the lowest edge a
   strip of the picture's cloud sea (.band-clouds), cut by the next sheet's edge and drifting slowly (one way
   and back over seven minutes, transform only, only while the band is in view; still with reduced motion
   and without JavaScript). The text keeps to the deep part (sky no lighter than 0.125, white 6 : 1). */
.sky-band {--haze:0px;--pad:clamp(64px,7vw,112px);position:relative;color:#fff;isolation:isolate;overflow:hidden;container-type:inline-size;
  /* The cloud strip is 131 % of the band's width at its own proportions (--strip tall); the sky lightens over --rise
     above it. (Wave J) The strip is opaque and carries its own sky (dream/waveI/band_sky.py composites the far sea over
     the sky's row colours), and the low sky runs down to exactly the row where the strip begins, so the band is one sky
     into the clouds with no fill between them (round 18's clouds fade in over more rows, and wave I's flat haze fill
     under the strip showed as a slab, with a hairline of the base blue where two layers met on a fractional edge).
     The low sky ends exactly where the strip begins; the strip (whose first rows are that same sky, continuing
     down) reaches 2 px up over it and the low sky 3 px up under the upper sky, so no rounding can open a gap. --band-haze (the strip's first row,
     written per round by dream/fly/swap_round.py) only shows while the strip's picture loads. */
  --strip:calc(131cqw * 179 / 2400);--rise:110px;--zone:calc(var(--strip) + var(--rise));--band-haze:#9aacce;
  background:linear-gradient(var(--band-haze),var(--band-haze)) 0 100%/100% var(--strip) no-repeat,
    url(../assets/band-low-wide.webp) 0 calc(100% - var(--strip))/100% calc(var(--rise) + 3px) no-repeat,
    url(../assets/band-sky-wide.webp) 0 0/100% calc(100% - var(--zone) + 3px) no-repeat,var(--band-top)}
@media (max-aspect-ratio:1/1) {.sky-band {--strip:calc(131cqw * 356 / 1500);--rise:90px;--band-haze:#83a0cf;
  background-image:linear-gradient(var(--band-haze),var(--band-haze)),url(../assets/band-low-tall.webp),url(../assets/band-sky-tall.webp)}}
/* Its foot (no text there) is the light sky and the clouds; (.section.) so the phone's section padding does not undo it. */
.section.sky-band {padding-block:var(--pad) calc(var(--zone) + 20px)}
.sky-band>.wrap {position:relative;z-index:1}
.band-clouds {position:absolute;left:0;bottom:0;z-index:0;width:131%;height:calc(var(--strip) + 2px);pointer-events:none;
  background:var(--band-haze) url(../assets/band-clouds-wide.webp) 0 0/100% 100% no-repeat}
@media (min-width:1700px),(min-width:821px) and (min-resolution:1.5dppx) {.band-clouds {background-image:url(../assets/band-clouds-wide-big.webp)}}
@media (max-aspect-ratio:1/1) {.band-clouds {background-image:url(../assets/band-clouds-tall.webp)}}
/* It drifts by 30 % of the band (22.9 % of its own 131 %): its right edge never comes inside the band's. */
.js .band-clouds {will-change:transform;animation:band-drift 210s ease-in-out infinite alternate paused}
.js .band-clouds.drift {animation-play-state:running}
@keyframes band-drift {to {transform:translateX(-22.9%)}}
@media (prefers-reduced-motion:reduce) {.js .band-clouds {animation:none}}
.sky-band::before,.sky-band::after {content:"";position:absolute;left:0;right:0;z-index:2;pointer-events:none}
/* The sheet above: its shadow on the sky, soft (Wave I: was 16 px from #030f2a73, which read as a sunken box). */
.sky-band::before {top:0;height:10px;background:linear-gradient(#04123238,#0412320f 45%,#04123200)}
/* The sheet below: a hairline of contact shadow along its edge. */
.sky-band::after {bottom:0;height:5px;background:linear-gradient(#030f2a00,#030f2a40)}
.sky-band ::selection {background:#ffffff40;color:#fff}
.sky-band :focus-visible {outline-color:#ffd9a8}
.offer-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--g);align-items:start}
.offer-head {grid-column:1}
.offer-price {margin:0;font-size:clamp(150px,20vw,290px);font-weight:290;font-stretch:66%;line-height:.74;letter-spacing:-.035em;white-space:nowrap}
.offer-price .eur {margin-left:.04em;font-size:.36em;font-style:italic;font-weight:300;letter-spacing:0;vertical-align:1.08em}
.offer-say {max-width:27em;margin-top:clamp(34px,3.2vw,52px)}
.offer-incl {list-style:none;padding:0;margin:0;display:grid;font-size:clamp(18px,1.35vw,20px);color:#ffffffe6}
.offer-incl li {padding:10px 0;border-bottom:1px solid #ffffff33}
.offer-incl li:first-child {padding-top:0}
.cta {display:inline-flex;gap:12px;align-items:center;margin-top:clamp(26px,2.6vw,38px)}
.sky-band .cta {color:var(--ink);background:var(--paper)}
.sky-band .cta:hover {background:#fff}
.offer-free {margin-top:12px;color:#ffffffc7;font-size:16px}
.ledger {grid-column:2/-1;padding-top:0}
.ledger h3 {margin:0 0 clamp(22px,2.2vw,34px);color:#fff;font:italic 350 clamp(40px,3.8vw,64px)/1.06 var(--display);font-stretch:82%;letter-spacing:-.01em}
.ledger dl {margin:0;border-top:1px solid #ffffff73}
.ledger dl>div {display:grid;grid-template-columns:minmax(9em,12em) minmax(0,1fr);column-gap:clamp(24px,2.4vw,40px);align-items:baseline;padding:clamp(18px,1.7vw,24px) 0;border-bottom:1px solid #ffffff33}
.ledger dt {font:400 14px/1.4 var(--mono);letter-spacing:.06em;color:#ffffffc7}
.ledger dd {margin:0;max-width:36em;font-size:clamp(17px,1.3vw,19px);line-height:1.55;color:#ffffffe0}
.ledger dd b {display:block;margin-bottom:6px;color:#fff;font:360 clamp(22px,1.9vw,28px)/1.15 var(--display);font-stretch:90%}

/* Who it is for: an examiner's rubric (Wave E, fix 7). The two cases stand
   side by side under one rule, as the columns of a marking scheme: the case
   that fits across the first two columns of the booklet's grid, the other in
   the third, a hairline between them. Each criterion has its mark in the
   margin: a blue tick, a grey cross. (mid-fit.js gives each an empty printed
   box instead and lets the visitor mark it.) Breaking the 1 : 2 of heading and
   list that the diagnosis and the questions use. */
/* The questions follow closely. (Wave H: the haze above is gone; the sheet's own air instead.) */
.section.fit {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--g);align-items:start;padding-block:clamp(44px,4.4vw,72px) clamp(24px,2.6vw,44px)}
/* The one rule over both columns. */
/* (Wave F, fix 4) The sheet's head over the rule, in the exam's mono voice, as the diagnosis sheet's. */
.fit-head {grid-column:1/-1;grid-row:1;display:flex;justify-content:space-between;align-items:baseline;padding-bottom:12px;font:400 13px var(--mono);letter-spacing:.08em}
.fit-head b {font-size:15px;font-weight:500}
.section.fit::before {content:"";grid-column:1/-1;grid-row:2;border-top:1.5px solid var(--ink)}
.fit-row {position:relative;grid-row:3;padding-block:clamp(22px,2.2vw,34px)}
/* (Wave H, fix 5) The two cases in two even columns (was two thirds and one third). */
.fit-yes {grid-column:1}
.fit-no {grid-column:2}
/* The hairline between the two columns, in the middle of the gap, from the rule down. */
.fit-no::before {content:"";position:absolute;left:calc(var(--g) * -.5);top:0;bottom:6px;border-left:1px solid #14171c29}
.fit-row h3 {margin:0 0 clamp(12px,1.2vw,18px);font:380 clamp(32px,2.8vw,40px)/1.12 var(--display);font-stretch:82%;letter-spacing:-.01em}
.fit-no h3 {font-style:italic;font-weight:350;color:#444a54}
.fit-list {list-style:none;padding:0;margin:0}
.fit-list li {display:grid;grid-template-columns:26px minmax(0,1fr);column-gap:16px;align-items:baseline;max-width:34em;padding:8px 0;font-size:clamp(18px,1.4vw,20px);line-height:1.45;color:var(--ink-soft)}
/* The mark stands beside the criterion's first line. */
.fit-list .pen {grid-column:1;grid-row:1;align-self:start;margin-top:calc((1.45em - 22px) / 2);width:22px;height:22px}
.fit-list li>svg+* {grid-column:2}
.fit-no .pen {stroke:#7b818c}
.offer-fine {max-width:none;margin-top:20px;padding-left:42px;font-size:15px;color:var(--muted)}

/* 06 · Questions (Wave F, fix 3): the booklet's last sheet. Its head runs the
   full width in the exam's mono voice under a 1.5 px rule, as the diagnosis
   sheet's does; "Вопросы" and the address stand on one line under it; then the
   six questions in two ruled columns on a wide screen, one on a phone. Each
   column is its own list, so opening a question never moves the other column.
   Without JavaScript every answer stands open. */
.faq-head {display:flex;justify-content:space-between;align-items:baseline;padding-bottom:12px;border-bottom:1.5px solid var(--ink);font:400 13px var(--mono);letter-spacing:.08em}
.faq-head b {font-size:15px;font-weight:500}
.faq-side {display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:10px var(--g);margin:clamp(26px,2.6vw,40px) 0 clamp(18px,1.8vw,28px)}
.faq-side h2 {margin:0;font-size:clamp(46px,4.8vw,76px);font-style:italic;font-weight:350}
.faq-mail {margin:0;color:var(--muted);font-size:16px}
.faq-mail a {color:var(--blue);text-decoration-thickness:1px;text-underline-offset:4px}
.qa {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--g);align-items:start}
.qa dl {margin:0;border-bottom:1px solid #14171c24}
/* (Wave J, M 8) The questions are print, in the display serif, as the sheet's other headings are (two reviews
   found six lines of handwriting loose beside the booklet's discipline; Wave G had set them in the student's hand).
   The pen keeps what is the pen's: the plus and minus beside each question (mid-faq.js) and the bar in the margin
   of an open answer. No numbers. */
.qa dl>div {padding:15px 0 20px;border-top:1px solid #14171c24}
.qa dt {position:relative;font:380 clamp(22px,1.85vw,28px)/1.22 var(--display);font-stretch:84%;letter-spacing:-.005em;color:var(--ink)}
.qa dd {position:relative;margin:8px 0 0 26px;max-width:30em;font-size:clamp(17px,1.25vw,19px);line-height:1.55;color:var(--ink-soft)}
.qa dd::before {content:"";position:absolute;left:-14px;top:4px;bottom:4px;width:1.5px;background:var(--blue);transform-origin:50% 0}
.qa a {color:var(--blue);text-decoration-thickness:1px;text-underline-offset:4px}

/* One grid for the booklet: three equal columns. Every block starts on the
   first column's edge, and every second voice (the sheet beside the claim, the
   guarantee beside the price, the answers beside "Вопросы") on the second. */
.booklet {--g:clamp(32px,4.5vw,80px)}
.diag-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--g)}
/* Russian headings break into even lines; prose avoids a lone last word. */
.booklet h2,.booklet h3,.ledger dd b,.qa dt {text-wrap:balance}
.booklet p,.qa dd,.ledger dd,.fade-days li {text-wrap:pretty}

/* Below 1100 px the price and the guarantee stack. */
@media (max-width:1100px) {
  .diag-grid {grid-template-columns:minmax(0,1fr) minmax(0,1.7fr)}
  .offer-grid {grid-template-columns:minmax(0,1fr)}
  .offer-head,.ledger {grid-column:1}
  .offer-head {display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:var(--g);align-items:end}
  .offer-say {margin-top:0}
  .ledger {margin-top:clamp(56px,5.5vw,88px)}
}
@media (max-width:820px) {
  .section {padding-block:clamp(52px,14vw,72px)}
  .booklet>.section:first-child {padding-top:48px}
  .booklet h2,.ledger h3 {line-height:1.08}
  .fit-row h3 {line-height:1.12}
  .diag-side h2 {font-size:clamp(48px,13.8vw,96px);max-width:8.5em}
  /* (Wave I, item 3) The word block's claim in two lines, at the plan's heading size, so that from the heading's
     top to the note under the line the block fits one phone screen under the masthead. */
  .word-title {font-size:clamp(40px,11.6vw,64px);max-width:9em;margin-bottom:20px}
  .booklet .text-link {padding-block:11px}

  /* 02 · The squared sheet: full width, the grid's own margin inside. The
     five words as chips that wrap, each with the same air inside. */
  /* (Wave F, fix 1) From the sentence's first line to the note under the line, the whole block fits one
     phone screen under the masthead: tapping a word shows the whole chain without a scroll. */
  .squared {padding:22px 16px 18px}
  .word-q {font-size:clamp(19px,5.4vw,23px);line-height:1.4}
  .word-picks {gap:8px}
  .word-picks button {padding:8px 14px;font-size:16px;white-space:nowrap}
  .diag-grid,.offer-head,.fit-row {grid-template-columns:1fr}
  .booklet .diag-grid>* {grid-column:1;grid-row:auto}
  .word-work {margin-top:18px}
  .word-ru {font-size:17px}
  /* The inequality at the left, the answer beside it at the right (the answers on a phone all lie at the
     line's middle, 199 to 201, so the number need not stand over its point). */
  .word-stage {grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
  .word-eq {font-size:clamp(15px,4.3vw,18px);line-height:2.75}
  .word-mark {grid-area:1/2;width:auto;margin:0;align-self:end}
  .word-ans>.swap {font-size:14px;line-height:1.25;white-space:normal;max-width:9.5em}
  .word-ans strong {font-size:64px}
  .word-line span {font-size:15px}
  /* The note under the line, centred, a short arrow from it up to the ring. */
  .word-ray {margin-top:10px}
  .word-arrow {left:calc(var(--at) * 100% - 10px);top:48px;width:20px;height:20px;transform:rotate(45deg)}
  .word-why {max-width:none;margin:18px 0 0;text-align:center;transform:none;font-size:20px}

  /* 03 · The diagnosis: the claim first, then the sheet, never wider than a page. */
  .diag-grid {gap:0}
  .diag-side h2 {margin-bottom:22px}
  .diag-side .body-copy {font-size:18px}
  .diag-side .text-link {margin-top:14px}
  .booklet .diag-grid .marked {margin-top:44px}
  .marked {max-width:34rem;padding:22px 18px 20px}
  .marked-head {font-size:15px;letter-spacing:.06em}
  .marked-head b {font-size:15px}
  .marked-rows li {grid-template-columns:28px minmax(0,1fr) 26px;gap:3px 12px;padding:10px 0}
  .marked-rows li>span {font-size:15px}
  .marked-rows em {grid-column:2;justify-self:start;text-align:left}
  .marked-rows .pen {grid-column:3;grid-row:1}
  .marked-sum {margin-top:26px}
  .marked-causes {gap:8px;margin-top:24px}
  .marked-causes li {gap:10px}
  .marked-causes b {flex-basis:10.5em}

  /* 04 · The plan (Wave H, fix 3): the task, then its four stages as a ruled 2 × 2 grid under it, as the
     boxes of an exam form, the current one ruled in the pen's blue across its top. Sentence and stages fit
     one phone screen together; nothing is pinned. Each stage is tapped. No slider: a sideways track over a
     grid would point the wrong way. */
  .plan-title {font-size:clamp(40px,11.6vw,64px);max-width:8em}
  .fade-q {font-size:19px;line-height:2.1}
  .hl i {font-size:15.5px}
  .fade-ctl {margin-top:18px}
  .fade-ctl input,.js .fade-ctl::before,.js .fade-ctl::after {display:none}
  .fade-days {grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-top:0;border-top:1px solid #14171c29}
  .fade-days li {position:relative;font-size:15px;line-height:1.4;border-bottom:1px solid #14171c29}
  .fade-days li:nth-child(odd) {border-right:1px solid #14171c29}
  html:not(.js) .fade-days li,.fade-days button {display:block;max-width:none;min-height:48px;padding:12px 12px 14px 0;border-radius:0}
  html:not(.js) .fade-days li:nth-child(even),.fade-days li:nth-child(even) button {padding-left:12px;padding-right:0}
  html:not(.js) .fade-days li {padding:12px 12px 14px 0}
  .fade-days li:nth-child(even) button {padding-left:12px}
  .fade-days .now {box-shadow:inset 0 2px 0 var(--blue)}
  .fade-days b {margin:0 0 4px;font-size:20px;white-space:nowrap}
  .js .fade-days li:not(.now) {opacity:.72}

  /* 05 · The sky band: the price fills the width, its list under it, then the
     guarantee; the form's lines stack their label above the term. Then the
     two cases, each heading over its criteria. */
  .sky-band {--pad:56px}
  .offer-head {display:block}
  .offer-price {font-size:min(60vw,340px);line-height:.8}
  .offer-say {margin-top:30px}
  .offer-incl {font-size:17px}
  .ledger {margin-top:64px}
  .ledger h3 {font-size:min(44px,10.2vw)}
  .ledger dl>div {grid-template-columns:1fr;row-gap:8px;padding:18px 0 22px}
  .ledger dd b {font-size:clamp(23px,6.4vw,28px)}
  .section.fit {display:flex;flex-direction:column;align-items:stretch}
  .fit-head {order:-1;font-size:12px;letter-spacing:.06em}
  .fit-head b {font-size:14px}
  .fit-no {margin-top:22px;border-top:1px solid #14171c29}
  .fit-no::before {display:none}
  .fit-row h3 {font-size:clamp(30px,8.6vw,40px)}
  .offer-fine {padding-left:0}

  /* 06 · Questions: one column, each answer kept with its question. */
  .faq-head {font-size:12px;letter-spacing:.06em}
  .faq-head b {font-size:14px}
  .faq-side {display:block;margin:26px 0 24px}
  .faq-side h2 {font-size:clamp(48px,13.8vw,96px)}
  .faq-mail {margin-top:14px}
  .qa {grid-template-columns:minmax(0,1fr)}
  .qa dl+dl>div:first-child {border-top:1px solid #14171c24}
  .qa dl:first-child {border-bottom:0}
  .qa dl>div {padding:14px 0 18px}
  .qa dt {font-size:clamp(22px,6vw,25px);line-height:1.22}
  .qa dd {font-size:17px;margin-left:22px}
  .qa a,.faq-mail a {padding-block:12px}
}

/* Without JavaScript. The first task is printed in the page with its hints and
   solution behind two <details>; the word trap names the other words' answers;
   the plan's slider, which would do nothing, is not shown. */
.dg-help {margin-top:12px}
.dg-help summary {display:inline-block;padding:9px 0;color:var(--blue);text-decoration:underline}
.dg-help summary::-webkit-details-marker {display:none}
.dg-help .dg-gloss {display:grid;list-style:none;padding:0;margin:8px 0 0;gap:3px}
.dg-help .dg-given,.dg-help .dg-ru {display:block;margin-top:14px;color:var(--blue)}
.dg-nojs,.word-alt {margin-top:16px;color:var(--muted);font-size:16px}
.js .word-alt {display:none}
html:not(.js) .fade-ctl input {display:none}
html:not(.js) .fade-days {margin-top:0}

/* The masthead over the sky band (sections.js sets .on-sky): the sky's own
   blue, a little clear, the type white. */
.mast.on-paper.on-sky {background:color-mix(in srgb,var(--band-top) 88%,transparent);color:#fff;box-shadow:0 1px 0 #ffffff1f}
.mast.on-sky .blatt {color:#ffffffb3}
.mast.on-sky :focus-visible {outline-color:#ffd9a8}

/* The booklet never scrolls sideways: the pen's corrections may reach past
   the column, not past the screen. */
.booklet {overflow-x:clip}

/* On a window larger than 1440 by 900 the booklet grows with it, as the first
   screen does (scene.js sets --fit; it is 1 up to that size and without JS). */
@media (min-width:821px) {.booklet {zoom:var(--fit,1)}}
