/* static-courses.css: /courses/ (+ /uz/courses/, /ru/courses/), "Two films, then the form" (BRIEF §2.6).
   Linked after css/static.css on the courses pages only. Her footage: masked (.slit) and cropped (object-fit) only;
   no filter, blend, gradient, scrim or text over it. The form rules are a port of scenes/s085b-courses.css (v29-v33),
   unscoped from [data-scene] and written in ground tokens (--fg, --mute, --raise, --ground), so the sheet reads on
   the ink ground it now sits on. FORM DRIFT: the film and this page hold two copies.
   Owner, 4 Oct 2026 03:36: only her SAT courses here (the AP / GMAT / Admissions band and its rules are gone). */

/* ------------------------------------------------------------ 01 the title frame (ink) + film 1 */
/* Kicker left, lede right; the H1 on one line (its whole width in em is --h1-line, set by the page); her proof in one
   row; then film 1, her whiteboard lesson, opening from a slit. Its poster is the LCP. The film straddles the seam:
   its lower part hangs over the paper of 02, where "SAT" lands under it. */
.hx--courses {
  --cs-strad: clamp(96px, 12vw, 220px);
  --h1-fs: min(13.5vw, calc((100vw - 2 * var(--gut)) / var(--h1-line, 8.3)));
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  grid-template-rows: auto auto auto auto;
  grid-template-areas: "kick deck" "title title" "chips chips" "media media";
  column-gap: clamp(32px, 5vw, 96px);
  min-height: 0;
  padding-bottom: 0;
}
.hx--courses .hx__kick { align-self: start; margin: 0; }
.hx--courses .hx__deck { align-self: start; max-width: 40rem; font-size: clamp(1.0625rem, 1.3vw, 1.375rem); line-height: 1.42; }
.hx--courses .hx__deck a { text-decoration-thickness: 1px; }
.hx--courses .hx__title { margin-top: clamp(24px, 3vw, 48px); }
.hx--courses .hx__h1 { max-width: none; white-space: nowrap; }
.hx--courses .hx__chips { align-self: start; margin-top: clamp(24px, 2.6vw, 44px); }
.hx--courses .hx__media {
  position: relative; z-index: 2; display: block; align-self: start;
  margin-top: clamp(28px, 3vw, 48px); margin-bottom: calc(-1 * var(--cs-strad));
}
.cs-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px clamp(20px, 2.4vw, 44px); }
.cs-proof li { min-width: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.cs-proof b { display: block; font-family: var(--f-display); font-weight: 900; font-size: clamp(2rem, 2.9vw, 3.5rem); line-height: 1; letter-spacing: -.035em; }
.cs-proof li > span { display: block; margin-top: 8px; font-size: .9375rem; line-height: 1.35; color: var(--mute); }
.cs-proof small { font-size: inherit; }

/* ------------------------------------------------------------ 02 the films: slit -> 28px window, then the name */
.cs-c { padding-top: clamp(28px, 2.6vw, 48px); }
.cs-c--sat { padding-top: calc(var(--cs-strad, 160px) + clamp(28px, 3vw, 56px)); }
.cs-c__h { margin-bottom: clamp(8px, 1vw, 16px); }
.cs-film {
  position: relative; margin: 0 auto; overflow: hidden; isolation: isolate; background: var(--raise);
  width: min(100%, calc(var(--pw) * 1.05px / var(--dpr))); aspect-ratio: 16 / 9;
  max-height: calc(var(--ph) * 1.05px / var(--dpr));
}
.cs-film img, .cs-film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-film video { opacity: 0; transition: opacity .5s linear; }
.cs-film video.is-ready { opacity: 1; }
/* film 1 is on screen at rest, so its slit opens over a shorter run than the shell's (a mask only) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html.js .hx--courses .slit { animation-range: entry 0% cover 30%; }
  }
}
.cs-c--onl { padding-top: clamp(56px, 6vw, 104px); }

/* the course card under its film: the giant name, the facts, the Enroll bubble */
.cs-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "name body go"; align-items: end; column-gap: clamp(28px, 3.4vw, 64px); margin-top: clamp(28px, 3.4vw, 56px); }
.cs-c--sat .cs-card { margin-top: clamp(12px, 1.4vw, 24px); }
.cs-name {
  grid-area: name; margin: 0 0 -.06em -.05em; font-family: var(--f-display); font-weight: 900; letter-spacing: -.055em; line-height: .8;
  font-size: min(17vw, calc((100vw - 2 * var(--gut)) / (var(--ch, 3) * .64)));
}
.cs-name .ln { padding: .02em .02em .1em; margin-bottom: -.1em; }
.cs-card__b { grid-area: body; min-width: 0; padding-bottom: 6px; }
.cs-card__k { color: var(--mute); margin-bottom: 14px; }
.cs-card__go { grid-area: go; padding-bottom: 6px; }
.cs-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 2vw, 32px); max-width: 44rem; }
.cs-facts li { padding: 11px 0 10px; font-size: 1.0625rem; font-weight: 500; line-height: 1.3; }
.cs-facts__src a { font-weight: 600; text-decoration: underline; }
/* course 2: the name takes its own row (two words), then the promise, the facts and the bubble */
.cs-c--onl .cs-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "body go"; row-gap: clamp(28px, 3vw, 48px); }
.cs-card__line { max-width: 18em; margin-bottom: clamp(24px, 2.6vw, 40px); font-family: var(--f-display); font-size: var(--t-d2); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
/* Enroll: the answer bubble (shell .btn--bubble), sized to sit beside the facts */
.cs-enr { width: clamp(220px, 19vw, 300px); font-family: var(--f-body); font-weight: 700; font-size: clamp(1.0625rem, 1.2vw, 1.25rem); letter-spacing: -.005em; line-height: 1.15; padding: 0 9%; }
.cs-enr .btn__t { display: inline; }

/* ------------------------------------------------------------ 03 #book (paper): Start at A + the form on an ink sheet */
.cs-book { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: "l sheet" "faq faq"; column-gap: clamp(32px, 5vw, 104px); align-items: start; }
.cs-book__l { grid-area: l; display: grid; gap: var(--s-5); align-content: start; }
.cs-book__h { font-family: var(--f-display); font-size: clamp(2.5rem, 4.6vw, 5.75rem); font-weight: 900; letter-spacing: -.045em; line-height: .9; outline: none; }
.cs-book__h:focus-visible { outline: none; box-shadow: none; }
.cs-book__dl { margin-top: var(--s-3); }
.cs-book__dl > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: var(--s-4); padding: 14px 0; }
.cs-book__dl dt { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding-top: .25em; }
.cs-book__dl dd { margin: 0; font-size: 1.0625rem; line-height: 1.45; }
/* the path rail: A -> B -> C -> D answer bubbles; A is pencilled in with the accent as the section comes up */
.cs-rail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; view-timeline: --cs-rail block; }
.cs-rail li { display: inline-flex; align-items: center; gap: 8px; }
.cs-rail__l { width: 16px; height: 1px; margin: 0 8px; background: var(--line); }
.cs-rail__b { position: relative; display: inline-grid; place-items: center; width: 40px; aspect-ratio: 1.62; border: 1.5px solid currentColor; border-radius: 50%; overflow: hidden; isolation: isolate; }
.cs-rail__b .pen { z-index: -1; }
.cs-rail__b b { font-family: var(--f-display); font-size: 12px; font-weight: 800; line-height: 1; }
.cs-rail__t { font-size: .8125rem; font-weight: 600; white-space: nowrap; color: var(--mute); }
.cs-rail .is-on .cs-rail__b { border-color: var(--accent); color: var(--on-accent); }
.cs-rail .is-on .cs-rail__t { color: var(--fg); }
.cs-rail .is-on .pen polyline { stroke-dashoffset: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cs-rail .is-on .pen polyline { animation: cs-pen linear both; animation-timeline: --cs-rail; animation-range: entry 30% cover 45%; }
  }
}
@keyframes cs-pen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* the sheet: ink on the paper section (the film's s09 close). Error red per ground: #B3261E reads on paper only. */
.cs-sheet { grid-area: sheet; --err: #FF8A80; border-radius: 28px; padding: clamp(24px, 3vw, 48px); background: var(--ground); color: var(--fg); }
[data-ground="paper"].cs-sheet { --err: #B3261E; }
.cs-sheet [hidden] { display: none !important; }
.cb__bkp { max-width: 32em; margin-bottom: clamp(20px, 2.2vw, 32px); font-size: clamp(1.0625rem, 1.25vw, 1.25rem); line-height: 1.45; }
.cb__dot { display: inline-block; width: .62em; height: .4em; margin: 0 .5em; vertical-align: .12em; border: 1.5px solid currentColor; border-radius: 50%; }

/* the form: an answer sheet. Ruled fields on the raised ground, labels always shown; accent only on hover/focus/press */
.cb__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(16px, 1.6vw, 28px); row-gap: 6px; }
.cb__fld { min-width: 0; margin: 0; padding: 0; border: 0; }
.cb__fld--course, .cb__fail, .cb__go, .cb__st { grid-column: 1 / -1; }
.cb__lb { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0; margin-bottom: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--fg); }
.cb__lh { font-size: .8125rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--mute); text-align: right; }
.cb__in {
  appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 60px; margin: 0; padding: 0 18px;
  font: 500 1.25rem/1.2 var(--f-body); letter-spacing: -.005em; color: var(--fg);
  background: var(--raise); border: 0; border-bottom: 2px solid var(--fg); border-radius: 4px 4px 0 0;
  transition: background-color .25s linear, box-shadow .25s linear, border-color .25s linear;
}
.cb__in::placeholder { color: var(--mute); opacity: 1; }
@media (hover: hover) { .cb__in:hover { border-bottom-color: var(--accent); } }
.cb__in:focus, .cb__in:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; background: var(--ground); border-bottom-color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 4px 4px 0 0; }
.cb__sel { position: relative; display: block; }
.cb__sel .cb__in { padding-right: 56px; cursor: pointer; }
.cb__sel .cb__in:invalid { color: var(--mute); }
.cb__sel option { color: var(--on-paper); background: var(--paper); }
.cb__chev { position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--fg); border-bottom: 2px solid var(--fg); transform: rotate(45deg); pointer-events: none; }
.cb__er { min-height: 26px; padding-top: 5px; font-size: .9375rem; font-weight: 600; line-height: 1.3; color: var(--err); }
.cb__er:not(:empty)::before { content: "!"; display: inline-grid; place-items: center; width: 1.4em; height: 1em; margin-right: .45em; border: 1.5px solid currentColor; border-radius: 50%; font-size: .8em; font-weight: 800; vertical-align: .05em; }
.cb__fld.is-bad .cb__in { border-bottom-color: var(--err); box-shadow: inset 0 -1px 0 var(--err); }
.cb__fld.is-bad .cb__in:focus { box-shadow: inset 0 -2px 0 var(--accent); border-bottom-color: var(--accent); }
/* course: three answer bubbles (SAT, Online, Not sure; v36: "Online" was "Online Premium"); the chosen one is pencilled in */
.cb__opts { display: grid; grid-template-columns: repeat(3, max-content); align-items: center; gap: 0 clamp(20px, 2.4vw, 44px); padding-bottom: 18px; }
.cb__opt { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding-right: 4px; cursor: pointer; font-size: 1.0625rem; font-weight: 600; white-space: nowrap; }
.cb__opt input { position: absolute; left: 0; top: 50%; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cb__ob { position: relative; flex: none; width: 44px; aspect-ratio: 1.62; border: 2px solid var(--fg); border-radius: 50%; overflow: hidden; isolation: isolate; transition: border-color .3s linear; }
.cb__ob .pen { z-index: -1; }
.cb__ob .pen polyline { stroke: var(--fg); transition-duration: .45s; }
.cb__opt input:checked + .cb__ob .pen polyline { stroke-dashoffset: 0; }
@media (hover: hover) { .cb__opt:hover .cb__ob { border-color: var(--accent); } }
.cb__opt input:focus-visible + .cb__ob { outline: 3px solid var(--fg); outline-offset: 3px; border-color: var(--accent); }
/* the honeypot: off screen, out of the tab order, hidden from readers */
.cb__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* submit: the answer bubble, wide, in the sheet's inverse; the accent scribble fills it on hover/press */
.cb__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px clamp(18px, 2vw, 32px); margin-top: 4px; }
.cb__sub {
  position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden; flex: none;
  width: clamp(300px, 24vw, 440px); aspect-ratio: 3.1; border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--fg); color: var(--ground); font: 700 clamp(1.0625rem, 1.2vw, 1.25rem)/1.15 var(--f-body); letter-spacing: -.005em;
  transition: color .35s linear, transform .5s var(--ease-osmo);
}
.cb__sub-o { position: absolute; inset: 0; z-index: -1; }
.cb__sub-t { padding: 0 11%; text-align: center; }
.cb__arr { display: inline-block; margin-left: .35em; transition: transform .6s var(--ease-osmo); }
@media (hover: hover) {
  .cb__sub:not([disabled]):hover { color: var(--on-accent); }
  .cb__sub:not([disabled]):hover .pen polyline { stroke-dashoffset: 0; }
  .cb__sub:not([disabled]):hover .cb__arr { transform: translateX(6px); }
}
.cb__sub:not([disabled]):active { color: var(--on-accent); transform: scale(.98); }
.cb__sub:not([disabled]):active .pen polyline { stroke-dashoffset: 0; }
.cb__sub:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; box-shadow: none; border-radius: 50%; }
.cb__sub[disabled] { cursor: not-allowed; opacity: .5; }
.cb__form.is-sending .cb__sub { cursor: progress; }
.cb__consent { flex: 1 1 14em; max-width: 22em; font-size: .9375rem; line-height: 1.4; color: var(--mute); }
.cb__st { min-height: 1.4em; margin-top: 10px; font-size: .9375rem; font-weight: 600; }
.cb__fail { margin: 0 0 18px; padding: 12px 18px; border: 2px solid var(--fg); border-radius: 4px; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.cb__fail a, .cb__alt a, .cb__ns a { display: inline-flex; align-items: center; min-height: 44px; color: var(--fg); font-weight: 600; text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
@media (hover: hover) { .cb__fail a:hover, .cb__alt a:hover, .cb__ns a:hover { text-decoration-thickness: 2px; } }
.cb__alt, .cb__ns { margin-top: 8px; font-size: .9375rem; color: var(--mute); }
.cb__ns { font-size: 1.0625rem; color: var(--fg); font-weight: 600; }
html:not(.js) .cb__alt { display: none; }
.cb__done { padding: clamp(28px, 4vh, 48px) 0 12px; border-top: 2px solid var(--fg); }
.cb__dok { font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.cb__doh { margin-top: 16px; font-family: var(--f-display); font-weight: 900; letter-spacing: -.035em; line-height: .98; font-size: clamp(2.25rem, 3.6vw, 4.25rem); max-width: 12em; outline: none; }
.cb__doh:focus-visible { outline: none; box-shadow: none; }

/* ------------------------------------------------------------ 04 FAQ: the lower half of #book, open rows */
.cs-faq { grid-area: faq; margin-top: clamp(72px, 8vw, 144px); }
.cs-faq__head { display: grid; gap: var(--s-4); margin-bottom: clamp(20px, 2.4vw, 40px); }
.cs-faq__r { display: grid; grid-template-columns: 3.25rem minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(16px, 2.4vw, 48px); padding: clamp(20px, 2.2vw, 32px) 0; }
.cs-faq__r:last-child { box-shadow: inset 0 -1px 0 var(--line); }
.cs-faq__n { padding-top: .35em; font-size: .875rem; font-weight: 700; letter-spacing: .08em; color: var(--mute); font-variant-numeric: tabular-nums; }
.cs-faq__q { font-family: var(--f-display); font-size: clamp(1.375rem, 2vw, 2.125rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.cs-faq__a { max-width: var(--max-read); font-size: max(17px, 1.0625rem); line-height: 1.55; }

/* ------------------------------------------------------------ tablet */
@media (max-width: 1100px) {
  .cs-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name name" "body go"; row-gap: 28px; }
  .cs-book { grid-template-columns: minmax(0, 1fr); grid-template-areas: "l" "sheet" "faq"; row-gap: var(--s-7); }
  .cs-sheet { max-width: 760px; }
}

/* ------------------------------------------------------------ phone */
@media (max-width: 760px) {
  /* the size is set on the h1 itself, where its --h1-ch (longest word) is defined (on .hx it falls back to 5); capped at
     23vw so "Ikki SAT kursi." and "Два курса SAT." stand as tall as "Two SAT courses." (2-3 lines, film 1 stays near) */
  .hx--courses .hx__h1 { font-size: min(23vw, calc((100vw - 2 * var(--gut)) / (var(--h1-ch, 5) * .5))); white-space: normal; }
  .hx--courses {
    --cs-strad: 22vw;
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "kick" "title" "deck" "chips" "media"; row-gap: 0;
  }
  .hx--courses .hx__title { display: block; margin-top: var(--s-4); }
  .hx--courses .hx__deck { margin-top: var(--s-5); font-size: 1.125rem; }
  .hx--courses .hx__chips { margin-top: var(--s-6); }
  .hx--courses .hx__media { margin-top: var(--s-6); }
  .cs-proof { gap: 20px 16px; }
  .cs-proof b { font-size: clamp(1.75rem, 8.4vw, 2.5rem); }
  .cs-proof li > span { font-size: .875rem; }

  /* the films: square windows, full width (720 cut at dpr <= 2; capped at 1.05x the source per dpr) */
  .cs-film { aspect-ratio: 1 / 1; }
  .cs-card, .cs-c--onl .cs-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "body" "go"; row-gap: 22px; margin-top: 22px; }
  .cs-name { font-size: min(36vw, calc((100vw - 2 * var(--gut)) / (var(--ch, 3) * .64))); }
  .cs-facts { grid-template-columns: minmax(0, 1fr); }
  .cs-card__line { font-size: clamp(1.75rem, 8.6vw, 2.5rem); margin-bottom: 20px; }
  /* Enroll on phones: a full-width 66px pill (s085b phone rule) */
  .cs-enr { width: 100%; aspect-ratio: auto; min-height: 66px; border-radius: 999px; padding: 0 24px; font-size: 1.125rem; }

  .cs-rail__l { width: 12px; margin: 0 6px; }
  .cs-rail li { gap: 6px; }
  .cs-rail__t { font-size: .8125rem; }
  .cs-book__dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cs-sheet { margin-inline: calc(var(--gut) * -.5); padding: 24px 18px 20px; border-radius: 24px; }
  .cb__form { grid-template-columns: minmax(0, 1fr); }
  /* three answers wrap as they fit ("Пока не знаю" is the widest): never wider than the sheet */
  .cb__opts { display: flex; flex-wrap: wrap; gap: 0 22px; padding-bottom: 12px; }
  .cb__sub { width: 100%; max-width: 480px; aspect-ratio: 2.9; font-size: 1.1875rem; }
  .cb__sub-t { padding: 0 9%; }
  .cb__consent { max-width: none; }

  .cs-faq { margin-top: 72px; }
  .cs-faq__r { grid-template-columns: 2.5rem minmax(0, 1fr); grid-template-areas: "n q" "n a"; row-gap: 10px; }
  .cs-faq__n { grid-area: n; padding-top: .25em; }
  .cs-faq__q { grid-area: q; font-size: 1.375rem; }
  .cs-faq__a { grid-area: a; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cs-film video, .cb__in, .cb__sub, .cb__arr, .cb__ob, .cb__ob .pen polyline { transition: none !important; }
}
