/* U-Intero Academy — public commercial/legal layer.
   Tokens and component patterns are copied from app/Styles.html (the
   in-app design system), not reinvented — this file only includes the
   subset actually used by these static pages. Where a value here differs
   from a literal in app/Styles.html, it's because app/Styles.html itself
   uses that literal directly (e.g. #E4E7EB card borders, #EEF0F2 subtle
   dividers) without exposing it as a root custom property — this file
   just names those same literals for reuse. */
:root{
  --font-sans:"Helvetica Neue",Helvetica,Arial,sans-serif;
  --brand-primary:#0BA850;
  --interactive-primary:#098640;
  --interactive-hover:#087C3B;
  --brand-primary-soft:#E2F5EA;
  --brand-primary-subtle:#F0FAF4;
  --brand-dark:#086832;
  --text-primary:#111111;
  --text-secondary:#5F6B7A;
  --surface:#ffffff;
  --surface-soft:#F7FAF8;
  --border:#8A94A6;
  --border-card:#E4E7EB;
  --border-subtle:#EEF0F2;
  --radius-md:12px;
  --radius-lg:18px;
  --warn-soft:#FDF2E9;
  --warn-text:#7A3E0A;
  --touch-min:44px;
}

*,*::before,*::after{box-sizing:border-box}

/* Authoritative (copied from app/Styles.html): an element with the
   `hidden` attribute is never visible, regardless of any other display
   rule an author class also sets at equal specificity. */
[hidden]{display:none!important}

html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
html,body{
  margin:0;
  padding:0;
  min-height:100%;
  background:var(--surface);
  color:var(--text-primary);
  font-family:var(--font-sans);
  font-size:18px;
  font-weight:400;
  line-height:1.55;
}

body{
  background:
    radial-gradient(ellipse 70% 42% at 0% 100%, rgba(11,168,80,.035), transparent 58%),
    #ffffff;
}

a{color:inherit}
img{max-width:100%}

:focus-visible{outline:2px solid var(--brand-primary);outline-offset:2px}

.page{max-width:52rem;margin:0 auto;padding:48px 24px 64px}
.page--narrow{max-width:38rem}
.page--wide{max-width:72rem}
.page--doc{max-width:40rem}

/* Lockup mark — byte-identical to app/AcademyLockup.html / the original gateway page */
/* Design Pass 01 (home, desktop): logo/header scale matched against
   90_DEVELOPMENT/design/academy/01-home.png — the reference lockup and
   header both read visibly larger/more generously padded than this
   implementation's prior 40px mark + 20px header padding. */
.lockup{display:flex;align-items:center;gap:14px;line-height:1;text-decoration:none}
.lockup__mark{display:block;height:46px;width:auto}
.lockup__sep{width:1px;height:24px;background:var(--border);flex:0 0 auto}
.lockup__sub{color:var(--text-secondary);font-size:21px;font-weight:400;white-space:nowrap}

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 32px;
  border-bottom:1px solid var(--border-subtle);
  flex-wrap:wrap;
  gap:12px;
}
.site-header__nav{display:flex;align-items:center;gap:20px}
.site-header__nav a{color:var(--text-secondary);text-decoration:none;font-size:15px}
.site-header__nav a:hover{color:var(--text-primary)}

.account-state{display:flex;align-items:center;gap:10px;font-size:15px}
.account-state__name{color:var(--text-primary);font-weight:500;max-width:14rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-decoration:none;cursor:pointer}
.account-state__name:hover{color:var(--interactive-primary);text-decoration:underline}
.account-state__signout{border:none;background:transparent;color:var(--text-secondary);font-family:inherit;font-size:15px;text-decoration:underline;cursor:pointer;padding:0}
.account-state__signout:hover{color:var(--text-primary)}

/* Eyebrow line — same treatment the original gateway page already used
   (.gateway-kicker) before this public layer was built out. */
.kicker{margin:0 0 10px;color:var(--text-secondary);font-size:15px;font-weight:400;letter-spacing:.08em;text-transform:uppercase}

/* course-kicker equivalent (app/Styles.html .course-kicker): plain
   secondary-colored meta line, no pill/badge decoration. */
.course-kicker{margin:0 0 8px;color:var(--text-secondary);font-size:15px}

.page-title{font-size:34px;line-height:1.2;margin:0 0 10px;font-weight:500}
/* Home's "Программы" heading only — every other .page-title on the site
   (/programs, account, checkout, auth, legal docs) keeps the default
   text color untouched. */
#home-programs .page-title{color:var(--interactive-primary)}
/* Program Detail only (.hero__course-title/.hero--detail are exclusive
   to this page) — 03-program-detail.png's hero title/subtitle read at
   a visual scale close to Home's headline, not the smaller generic
   .page-title used on account/checkout/auth. */
.hero__course-title{font-size:40px;line-height:1.12;margin-bottom:6px}
.hero--detail .kicker{margin-bottom:8px}
.page-subtitle{color:var(--text-secondary);font-size:18px;line-height:1.5;margin:0 0 20px}
.page-lede{color:var(--text-secondary);font-size:18px;line-height:1.5;margin:0 0 24px}
.meta-row{color:var(--text-secondary);font-size:15px;margin:0 0 24px}

/* Section heading — matches app/Styles.html's .dialog__title / quiz
   heading size (22px/500), not an invented marketing scale. */
.section-title{font-size:22px;margin:30px 0 10px;font-weight:500}
.section-title:first-child{margin-top:0}
/* Program Detail only (.detail-layout is exclusive to this page) —
   larger to match the page's bumped-up typography scale. */
.detail-layout .section-title{font-size:27px;margin:0 0 8px}
#about-text{margin:0}

/* Card — matches app/Styles.html's .payment-card exactly (padding,
   border, radius, shadow all copied literally). */
.card{
  background:var(--surface);
  border:1px solid var(--border-card);
  border-radius:var(--radius-lg);
  padding:40px 40px 36px;
  box-shadow:0 6px 20px rgba(17,17,17,.06),0 1px 3px rgba(17,17,17,.05);
}

/* Catalog grid — same .card visual language, laid out as cards so the
   catalog reads as distinct programs rather than a list. One course
   today renders one card; a second catalog entry is a second card, no
   template change. Fixed min/max card width (not 1fr) so a single card
   reads as one well-proportioned card regardless of the grid's own
   auto-fit/auto-fill track math — neither a narrow sliver nor a full-
   bleed stretch — and 2-3 cards line up side by side once more programs
   exist, wrapping to a new row rather than shrinking indefinitely. */
.catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,380px));gap:24px;margin:0 0 8px}
/* /programs today lists exactly one program — scoped to its own
   container id (already present in programs.html, no markup change)
   so this reads as one wide, premium program card rather than a narrow
   product tile lost in whitespace, without touching .catalog-grid's
   general multi-card behavior used elsewhere (e.g. home's "Мои курсы"). */
/* position:relative (any z-index, even auto) so this paints above
   .page-banner-bleed in the overlap zone — .page-banner-bleed is itself
   positioned, and CSS painting order puts ALL positioned elements above
   non-positioned ones in the same stacking context regardless of
   z-index, so the static <main> was silently painting BELOW the banner
   wherever the card overlapped it. */
#catalog-grid.catalog-grid{grid-template-columns:minmax(0,1fr);position:relative;z-index:1}
/* Programs card is deliberately shorter than before — no price/format/
   duration/certificate row (those live on Program Detail; see
   catalog.js __renderCatalogGrid__), so padding is scaled down to match
   the now-shorter content instead of leaving oversized whitespace. */
#catalog-grid .catalog-card{padding:40px 44px 36px}
#catalog-grid .catalog-card__title{font-size:26px}
#catalog-grid .catalog-card__desc{font-size:16px;max-width:44rem}
/* The card itself is a plain, non-interactive container (see
   catalog.js) — no hover escalation here, so nothing on the card body
   implies it's clickable. Only .catalog-card__footer's CTA link is. */
#catalog-grid .catalog-card:hover{border-color:var(--border-card);box-shadow:0 6px 20px rgba(17,17,17,.06),0 1px 3px rgba(17,17,17,.05)}
#catalog-grid .catalog-card__footer{justify-content:flex-end}
.catalog-card{
  background:var(--surface);
  border:1px solid var(--border-card);
  border-radius:var(--radius-lg);
  padding:32px 32px 28px;
  box-shadow:0 6px 20px rgba(17,17,17,.06),0 1px 3px rgba(17,17,17,.05);
  display:flex;
  flex-direction:column;
  text-decoration:none;
  color:inherit;
  transition:box-shadow .15s ease,border-color .15s ease;
}
.catalog-card:hover{border-color:var(--brand-primary);box-shadow:0 10px 28px rgba(17,17,17,.1),0 2px 6px rgba(17,17,17,.06)}
.catalog-card__category{margin:0 0 12px;color:var(--interactive-primary);font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.02em}
.catalog-card__title{margin:0 0 10px;font-size:21px;font-weight:500;line-height:1.3}
.catalog-card__desc{margin:0 0 22px;color:var(--text-secondary);font-size:15px;line-height:1.55}
.catalog-card__iconmeta{display:flex;flex-wrap:wrap;gap:20px 32px;padding:20px 0;margin-bottom:20px;border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle)}
.catalog-card__footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:auto}
.catalog-card__price{margin:0;font-size:24px;font-weight:600;line-height:1.2}
.catalog-card__price-label{margin:2px 0 0;color:var(--text-secondary);font-size:13px}

/* Icon + label/value pair — catalog card meta row (label above value)
   and, with .meta-item--inline, the purchase card's own list (single
   line, no separate label) on /programs/<slug>. */
.meta-item{display:flex;align-items:flex-start;gap:10px;font-size:14px}
.meta-item__icon{flex:0 0 auto;width:20px;height:20px;color:var(--interactive-primary)}
.meta-item__icon svg{width:100%;height:100%}
.meta-item__label{display:block;color:var(--text-secondary);font-size:13px}
.meta-item__value{display:block;color:var(--text-primary);font-weight:500;font-size:14px}
.meta-item--inline{align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border-subtle)}
.meta-item--inline:last-child{border-bottom:none}
.meta-item--inline .meta-item__label{display:none}
.meta-item--inline .meta-item__value{font-weight:400;color:var(--text-secondary)}

/* /account — "Мои курсы" / "Сертификаты" cards. Reuses .card/.notice/
   .btn exactly; the only new visual language here is the progress bar. */
.account-section{margin-bottom:44px}
.account-section:last-child{margin-bottom:0}
#account-courses,#account-certificates{display:flex;flex-direction:column;gap:20px}
.account-course-card__title,.account-cert-card .account-course-card__title{margin:0 0 12px;font-size:21px;font-weight:500;line-height:1.3}
.account-course-card__next{margin:14px 0 20px;color:var(--text-secondary);font-size:14px}
.account-progress{display:flex;align-items:center;gap:14px;margin:18px 0 20px}
.account-progress__track{flex:1 1 auto;height:8px;border-radius:999px;background:var(--surface-soft);overflow:hidden}
.account-progress__fill{height:100%;border-radius:999px;background:var(--brand-primary);transition:width .2s ease}
.account-progress__label{flex:0 0 auto;font-size:13px;color:var(--text-secondary);white-space:nowrap}
.account-cert-card__meta{margin:0 0 20px;color:var(--text-secondary);font-size:15px}
.account-cert-card__actions{display:flex;flex-wrap:wrap;gap:12px}
.account-cert-card__actions .btn{width:auto}
.account-section__hint{margin:0 0 16px;color:var(--text-secondary);font-size:14px}
/* Tightened + colored (was plain secondary-gray body text) so the
   zero-progress hint visually reads as guidance leading into the CTA
   right below it, not a stray paragraph. */
.account-course-card__hint{margin:0 0 10px;color:var(--interactive-primary);font-size:14px;font-weight:500}
.account-section--secondary .section-title{font-size:19px}

/* Профиль и настройки — compact label/value/action rows instead of a
   flat stack of two plain-text lines. */
.settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0;border-bottom:1px solid var(--border-subtle)}
.settings-row--logout{border-bottom:none;padding-top:20px}
.settings-row__label{margin:0 0 2px;font-size:13px;color:var(--text-secondary)}
.settings-row__value{margin:0;font-size:16px;font-weight:500;word-break:break-word}
.settings-row .btn{flex:0 0 auto}
.settings-row__edit{padding:0 0 16px;border-bottom:1px solid var(--border-subtle)}
.settings-row__edit .field{margin:0}
.settings-row__edit-actions{display:flex;gap:10px;margin-top:10px}
.settings-row__msg{margin:8px 0 0;font-size:13px}
.field-success{color:var(--interactive-primary);font-size:13px;margin:6px 0 0}

/* payment-success — compact "what's next" block, distinct from the
   surrounding .notice--info green panel so it doesn't just look like a
   stray line of low-contrast text under the CTA. */
.ps-next{margin-top:16px;padding:16px 18px;border-radius:var(--radius-md);background:var(--surface-soft)}
.ps-next__lead{margin:0 0 14px;font-size:15px;font-weight:600;color:var(--text-primary)}
.ps-next__heading{margin:0 0 6px;font-size:15px;font-weight:600;color:var(--text-primary)}
.ps-next__heading--second{margin-top:16px}
.ps-next__text{margin:0;font-size:15px;color:var(--text-secondary);line-height:1.5}

/* Buttons — copied from app/Styles.html's .btn-primary/.btn-secondary
   (size, padding, radius, disabled treatment). */
.btn{
  display:inline-flex;
  min-height:var(--touch-min);
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:var(--radius-md);
  font-family:inherit;
  font-size:18px;
  font-weight:500;
  text-decoration:none;
  cursor:pointer;
  border:1px solid transparent;
  line-height:1.3;
}
.btn-primary{background:var(--interactive-primary);color:#fff}
.btn-primary:hover:not(:disabled):not([aria-disabled="true"]){background:var(--interactive-hover)}
.btn-primary:disabled,.btn-primary[aria-disabled="true"]{background:#F2F4F7;color:#98A2B3;border:1px solid #E4E7EC;cursor:not-allowed}
.btn-secondary{background:var(--surface);color:var(--text-primary);border-color:var(--border)}
.btn-secondary:hover{background:var(--surface-soft)}
.btn-block{display:flex;width:100%}

/* Price line — matches app/Styles.html's .payment-price-row /
   .payment-price-label / .payment-price-value: a plain label+value row,
   not an oversized hero number. */
.price-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--border-subtle);border-bottom:1px solid var(--border-subtle);margin:16px 0 20px}
.price-row__label{color:var(--text-secondary);font-size:15px}
.price-row__value{font-size:18px;font-weight:500}
.price-row__note{display:block;color:var(--text-secondary);font-size:14px;margin-top:4px}

.tabs{display:flex;gap:4px;background:var(--surface-soft);border-radius:var(--radius-md);padding:4px;margin:0 0 24px}
.tabs button{flex:1;border:none;background:transparent;padding:10px;border-radius:8px;font-family:inherit;font-size:15px;font-weight:500;color:var(--text-secondary);cursor:pointer}
.tabs button[aria-selected="true"]{background:#fff;color:var(--text-primary);box-shadow:0 1px 3px rgba(17,17,17,.08)}
/* Program Detail only — 03-program-detail.png's tabs read as a
   restrained but clearly-sized control, not the compact auth.html
   switcher .tabs is normally used for. Not full-width/flex:1 (auth's
   segmented-control look) — sized to content, left-aligned. */
.tabs--detail{display:inline-flex;flex:none;padding:4px;gap:6px;margin-bottom:0;margin-top:5px}
.tabs--detail button{flex:none;padding:10px 26px;font-size:17px}

.field{margin:0 0 12px}
.field label{display:block;font-size:14px;font-weight:500;color:var(--text-secondary);margin:0 0 6px}
.field input{width:100%;min-height:var(--touch-min);padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius-md);font-family:inherit;font-size:16px;color:var(--text-primary);background:#fff}
.field input:focus{outline:2px solid var(--interactive-primary);outline-offset:1px}
.field-error{color:#B42318;font-size:13px;margin:6px 0 0}

.form-error{background:#FEF3F2;border:1px solid #FDA29B;color:#B42318;border-radius:var(--radius-md);padding:12px 14px;font-size:14px;margin:0 0 16px}

/* Copied verbatim from app/Styles.html's .payment-course-name — the
   in-app payment screen's own way of showing the course name. */
.payment-course-name{margin:0 0 22px;font-size:18px;line-height:1.5}

.summary-list{list-style:none;margin:0 0 8px;padding:0}
.summary-list li{display:flex;gap:10px;padding:10px 0;border-bottom:1px solid var(--border-subtle)}
.summary-list li:last-child{border-bottom:none}
.summary-list li strong{min-width:9rem;color:var(--text-secondary);font-weight:500}

.topic-list{margin:0 0 4px;padding-left:22px}
.topic-list li{margin:0 0 6px;line-height:1.45}

/* Consent checkbox row — copied verbatim from app/Styles.html's own
   registration-consent component (.consent-stack/.consent-row/
   .consent-box). This is a pseudo-checkbox <button>, not a real
   checkbox input — clicking it (or its document link) always opens the
   review dialog; it is never painted "checked" except by the dialog's
   own explicit confirm action (see assets/legal-dialog.js). */
.consent-stack{display:flex;flex-direction:column;gap:12px;margin:8px 0 14px}
.consent-row{display:grid;grid-template-columns:44px 1fr;gap:8px;align-items:start}
.consent-box{width:44px;height:44px;margin:0;padding:0;border:none;background:transparent;display:inline-flex;align-items:flex-start;justify-content:center;cursor:pointer}
.consent-box__face{width:22px;height:22px;margin-top:2px;border:1.5px solid var(--border);border-radius:5px;background:var(--surface);display:flex;align-items:center;justify-content:center}
.consent-box.is-checked .consent-box__face{background:var(--interactive-primary);border-color:var(--interactive-primary)}
.consent-box__tick{width:16px;height:16px;opacity:0}
.consent-box.is-checked .consent-box__tick{opacity:1}
.consent-row__text{margin:0;font-size:16px;line-height:1.45}
.consent-row__text .link-button{display:inline;text-align:left;white-space:normal}
.consent-row__state{display:none;margin-top:2px;font-size:15px;color:var(--brand-dark)}
.consent-row.is-accepted .consent-row__state{display:block}
.link-button{padding:0;border:none;background:none;color:var(--interactive-primary);font-family:inherit;font-size:16px;cursor:pointer;text-decoration:underline}

/* Copied verbatim from app/Styles.html's own .auth-links/.auth-switch —
   the same nav-link treatment the in-app login/register/reset panels
   already use. */
.auth-links{margin:10px 0 0;font-size:16px}
.auth-switch{margin:14px 0 0;font-size:16px;color:var(--text-secondary)}
.form-success{margin:0 0 16px;color:var(--brand-dark);font-size:16px}

.notice{border-radius:var(--radius-md);padding:16px 18px;font-size:15px;line-height:1.5;margin:20px 0}
.notice--info{background:var(--brand-primary-subtle);border:1px solid var(--brand-primary-soft)}
.notice--warn{background:var(--warn-soft);border:1px solid #FBD7B3;color:var(--warn-text)}

.todo{color:var(--warn-text);background:var(--warn-soft);border:1px dashed #E7A15C;padding:1px 8px;border-radius:6px;font-size:.85em;font-style:normal;white-space:nowrap}

/* Design Pass 01D: compact one-row desktop footer, supporting the home
   one-screen requirement — 52rem was narrower than needed and forced
   "Контакты и реквизиты" to wrap even on wide desktop viewports. */
.site-footer{margin-top:32px;padding:20px 24px;border-top:1px solid var(--border-subtle);color:var(--text-secondary);font-size:14px}
.site-footer__inner{max-width:72rem;margin:0 auto}
.site-footer__links{display:flex;flex-wrap:wrap;gap:12px 24px;margin-bottom:10px}
.site-footer a{color:var(--text-secondary);text-decoration:none}
.site-footer a:hover{color:var(--text-primary)}
.site-footer__copy{color:#98A2B3}

.site-scroll-top{position:fixed;right:20px;bottom:max(20px,calc(env(safe-area-inset-bottom) + 12px));z-index:15;min-width:var(--touch-min);min-height:var(--touch-min);padding:0 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text-primary);font-size:15px;font-family:inherit;cursor:pointer;box-shadow:0 2px 8px rgba(17,17,17,.16)}
.site-scroll-top:hover{background:var(--surface-soft)}

.legal-doc h1.page-title{margin-bottom:12px;font-size:26px}
/* .legal-doc p.legal-doc__meta / .legal-doc__intro (not just .legal-doc__meta
   alone) — a bare single-class selector is LESS specific than the
   .legal-doc p rule below (class+type beats class alone), so without the
   compound selector .legal-doc p's own margin:0 0 10px was silently
   winning over these and collapsing the title/meta/intro/section-1
   hierarchy regardless of source order — the real cause of the reported
   overlap, not just the old inline negative margin. */
.legal-doc p.legal-doc__meta{color:#98A2B3;font-size:13px;font-weight:400;line-height:1.5;margin:0 0 28px}
.legal-doc p.legal-doc__intro{color:var(--text-secondary);font-size:14px;line-height:1.5;margin:0 0 32px}
.legal-doc h2{font-size:17px;margin:24px 0 8px;font-weight:500}
.legal-doc p{margin:0 0 10px;line-height:1.6}
.legal-doc ul{margin:0 0 12px;padding-left:1.2em}
.legal-doc li{margin:0 0 4px;line-height:1.55}

/* Legal-document dialog — copied from app/Styles.html's .dialog family,
   the exact same modal the in-app registration flow already uses to
   show Terms/Privacy before consent. No close ("×") button — matches
   the original exactly: only the backdrop, Escape, or the dialog's own
   "Не принимаю" button close it. */
.dialog{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:16px}
.dialog[hidden]{display:none}
.dialog__backdrop{position:absolute;inset:0;background:rgba(17,17,17,.45);border:none;padding:0;margin:0;cursor:pointer}
.dialog__panel{position:relative;display:flex;flex-direction:column;width:min(40rem,100%);height:min(88vh,52rem);max-height:min(88vh,52rem);background:var(--surface);border-radius:16px;overflow:hidden}
.dialog__header{flex:0 0 auto;padding:20px 24px 14px;background:var(--surface);border-bottom:1px solid var(--border-subtle);z-index:2}
.dialog__title{margin:0 0 6px;font-size:22px;font-weight:500;line-height:1.25}
.dialog__meta{margin:0;color:var(--text-secondary);font-size:15px}
.dialog__body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:18px 24px;background:var(--surface);font-size:16px;line-height:1.62;-webkit-overflow-scrolling:touch}
.dialog__body .legal-doc h1,.dialog__body .legal-doc .legal-doc__meta{display:none}
.dialog__body .legal-doc h2{margin:18px 0 8px;font-size:17px;font-weight:500}
.dialog__body .legal-doc p,.dialog__body .legal-doc ul{margin:0 0 10px}
.dialog__body .legal-doc ul{padding-left:1.2em}

/* "↑ Наверх" — sticky within .dialog__body's own scroll box (never the
   footer, a separate flex sibling), shown only past a scroll threshold,
   set by assets/legal-dialog.js. Purely navigational: it never touches
   consent state or the accept button. */
.dialog__scroll-top-wrap{position:sticky;bottom:0;display:flex;justify-content:flex-end;pointer-events:none;margin-top:16px}
.dialog__scroll-top{pointer-events:auto;min-width:var(--touch-min);min-height:var(--touch-min);padding:0 14px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text-primary);font-size:15px;font-family:inherit;cursor:pointer;box-shadow:0 2px 8px rgba(17,17,17,.14)}
.dialog__scroll-top:hover{background:var(--surface-soft)}
.dialog__footer{flex:0 0 auto;padding:12px 24px 16px;background:#FAFBFC;border-top:1px solid var(--border-subtle);z-index:2}
.dialog__hint{margin:0 0 10px;color:var(--text-secondary);font-size:15px;line-height:1.4}
.dialog__hint[hidden]{display:none}
.dialog__actions{display:flex;gap:12px}
.dialog__actions .btn-secondary,.dialog__actions .btn-primary{flex:1;width:auto}
.dialog__actions .btn-secondary{border:none;background:transparent;color:var(--text-secondary)}
.dialog__actions .btn-secondary:hover:not(:disabled){color:var(--text-primary);background:transparent}

/* Header nav — active-page underline + the pill "Войти" button (design
   reference: 90_DEVELOPMENT/design/academy/01-home.png). Same nav-link
   color/hover as before; only the active state and the login control's
   own shape are new. */
.site-header__nav a.is-active{color:var(--text-primary);position:relative}
.site-header__nav a.is-active::after{content:"";position:absolute;left:0;right:0;bottom:-21px;height:2px;background:var(--brand-primary)}
.btn-pill{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 20px;border:1px solid var(--interactive-primary);border-radius:999px;background:transparent;color:var(--interactive-primary);font-family:inherit;font-size:15px;font-weight:500;text-decoration:none;cursor:pointer}
.btn-pill:hover{background:var(--brand-primary-subtle)}

/* Home / program-detail hero — full-bleed composition matching
   01-home.png / 03-program-detail.png: the architectural photo is NOT a
   contained card, it bleeds to the true viewport right edge and fades
   into the white page background on its left side, behind/beside the
   text. .hero-bleed escapes .page--wide's max-width via the standard
   100vw/-50vw full-bleed trick (works even nested inside .page, since
   neither .page nor body sets `position`, so `left:50%` resolves
   against the viewport, not the nearest ancestor) while
   .hero-bleed__inner reproduces .page--wide's own centering/padding so
   the text lines up with every other page. */
.hero-bleed{position:relative;width:100vw;left:50%;margin-left:-50vw;overflow:hidden}
.hero-bleed__inner{position:relative;z-index:1;max-width:72rem;margin:0 auto;padding:0 24px}
.hero{max-width:40rem;padding:72px 0 96px}
/* Structural one-screen fix (desktop only): Home must occupy exactly the
   real available viewport height (header + flexible hero + footer), not
   a guessed fixed hero min-height tuned against one test window. body's
   three direct children become a column flex layout; header/footer stay
   their natural (auto) height and the <main> flexes to fill whatever is
   left, so the footer's position is a direct consequence of real content
   height, never a magic number. Scoped to body.home-page only — no other
   page adopts this layout. */
@media (min-width:641px){
  body.home-page{min-height:100dvh;display:flex;flex-direction:column}
  body.home-page > .site-header{flex:0 0 auto}
  body.home-page > main.page{flex:1 1 auto;min-height:0;padding-top:0;padding-bottom:0;display:flex;flex-direction:column}
  body.home-page > .site-footer{flex:0 0 auto}
  /* flex-shrink:0 (was 1): #home-guest now has a sibling (#home-programs)
     inside main.page's own flex column — without this, main.page's flex
     algorithm would compress #home-guest (and the hero inside it) to make
     room for that sibling instead of letting the page grow past 100dvh
     and scroll. Hero's own geometry (padding/align-items/etc.) is
     otherwise untouched. */
  body.home-page #home-guest{flex:1 0 auto;min-height:0;display:flex;flex-direction:column}
  /* #home-programs sits inside main.page.page--wide, which centers its
     content (max-width:72rem;margin:0 auto) — same treatment every other
     page uses, but it puts Programs' left edge further right than the
     hero's own flush-left position just above it. Same full-bleed
     technique as .hero-bleed (width:100vw/left:50%/margin-left:-50vw)
     breaks it out of that centering. Deliberately NOT a definite
     width/max-width on .home-programs__inner (an earlier version tried
     that and stretched the card — .catalog-grid's minmax(0,1fr) track
     only shrinks to the card's own natural (desc max-width-driven)
     content size when its container is itself auto/shrink-to-fit sized,
     which is also why the card is already the right width nested
     in main.page.page--wide today; a definite max-width here made the
     grid track fill it instead). #home-programs is a flex row instead,
     and .home-programs__inner — a flex item with no flex-grow — keeps
     that same shrink-to-fit sizing while margin-left:80px reuses the
     exact same offset .hero-bleed--home .hero-bleed__inner uses above,
     so the two left edges align without touching the card's width. */
  body.home-page #home-programs{width:100vw;position:relative;left:50%;margin-left:-50vw;display:flex}
  body.home-page .home-programs__inner{margin-left:80px;padding-right:24px;min-width:0}
}
/* Programs — same structural principle as Home just above: the footer's
   position falls out of real content height (header/banner natural,
   main fills the rest) instead of a guessed fixed page-banner height +
   accumulated margins, which is what left it a few px too tall to fit
   in real Chrome despite passing synthetic scrollHeight checks. */
@media (min-width:641px){
  body.programs-page{min-height:100dvh;display:flex;flex-direction:column}
  body.programs-page > .site-header{flex:0 0 auto}
  body.programs-page > .page-banner-bleed{flex:0 0 auto}
  body.programs-page > main.page{flex:1 1 auto;min-height:0;padding-top:0;padding-bottom:0}
  body.programs-page > .site-footer{flex:0 0 auto}
  /* Micro visual adjustment only — shifts the card's own paint position,
     not the grid/container box, so width/columns/overflow math (and
     mobile, unaffected by this desktop-only query) are untouched. */
  .programs-page #catalog-grid .catalog-card{transform:translateX(-55px)}
}
/* Hero fills whatever height the flex <main> gives it instead of a fixed
   min-height — the previous 575px was tuned against one browser window
   and broke on any shorter real viewport. align-items:center keeps the
   headline/benefits/CTA vertically balanced inside whatever space is
   available, matching 01-home.png's proportions rather than pinning an
   exact pixel height. */
.hero-bleed--home{flex:1 1 auto;min-height:0;display:flex;align-items:center}
/* 01-home.png: headline/benefit-row/CTA all start at ~85-88px of its
   1536px-wide canvas (measured directly) — at 1440px production scale
   that's ~80px, not the header's 32px inset. Moving the whole text
   group right to match (never repositioning headline/points/CTA
   separately — they share this one container's padding). */
.hero-bleed--home .hero-bleed__inner{width:100%;max-width:none;margin:0;padding-left:80px}
.hero-bleed--home .hero{padding:16px 0}
.hero__title{margin:0 0 26px;line-height:1.15}
/* 01-home.png: all three lines read as ONE headline hierarchy at
   approximately the same optical size — the intro line reads lighter
   purely from weight (Helvetica Neue Light) and color, not a smaller
   font-size. Keep both spans on the same font-size. */
.hero__title-light{display:block;color:var(--text-secondary);font-weight:300;font-size:42px;letter-spacing:.003em}
.hero__title-dark{display:block;color:var(--text-primary);font-weight:500;font-size:42px}
.hero__points{display:flex;flex-wrap:wrap;gap:20px 30px;margin:0 0 32px}
.hero__point{display:flex;align-items:center;gap:14px;max-width:12rem}
.hero__point-icon{flex:0 0 auto;width:40px;height:40px;color:var(--text-secondary)}
.hero__point-icon svg{width:100%;height:100%}
/* Thin vertical dividers between benefit items, desktop only, matching
   01-home.png — sit inside the existing 30px column gap so item spacing
   is unchanged; none after the last item. */
@media (min-width:641px){
  .hero__point{position:relative}
  .hero__point:nth-child(n+2)::before{content:"";position:absolute;left:-15px;top:4px;bottom:4px;width:1px;background:var(--border-card)}
}
/* Softer/greyer than --text-primary, matching 01-home.png's benefit
   labels (never solid near-black in the reference). */
.hero__point-text{font-size:16px;color:var(--text-secondary);line-height:1.35}
/* Home CTA only (not the shared .btn used across the whole site):
   larger/heavier to match 01-home.png's visual weight (measured ~347x68
   in the reference), arrow pulled further from the label. */
.hero__cta{font-weight:500;font-size:18px;padding:18px 44px;min-height:60px}
.btn__arrow{margin-left:16px;font-size:22px}
/* Dedicated modifier for the "Посмотреть программы" hero CTA only —
   .btn-primary itself is untouched, no other CTA uses this class.
   Sizing/padding/position/border-radius all inherited unchanged from
   .btn/.hero__cta; only colors + font-weight differ. .btn__arrow has no
   font-weight of its own, so it inherits this 700 too — visually
   heavier than the previous 500, with no separate rule needed. */
.hero__cta--outline{background:#fff;border:2px solid var(--interactive-primary);color:var(--interactive-primary);font-weight:700;padding:14px 32px;min-height:52px}
.hero__cta--outline:hover{background:var(--interactive-primary);color:#fff;border-color:var(--interactive-primary)}
/* Production photo hook: drop hosting-public/assets/images/academy/
   academy-hero.webp in place and it renders automatically — no further
   code change needed. Until then the url() 404s silently and only the
   pale gradient (the second, always-present background layer) shows.
   background-size is height-driven ("auto 100%") and right-anchored,
   NOT cover — cover was forcing a portrait source to scale up to the
   container's full width, wildly magnifying the architecture. Sizing
   to container height instead reproduces 01-home.png's own apparent
   scale (the photo's natural aspect ratio is preserved, just scaled
   down/up to match the box height, anchored to the right edge). */
.hero__media{position:absolute;z-index:0;top:0;bottom:0;left:36%;right:0;
    background-image:url('/assets/images/academy/academy-hero.webp'),
      linear-gradient(160deg,#F1F3F2 0%,#E4E9E6 55%,#D8DFDA 100%);
    background-position:right center,right center;
    background-size:auto 100%,auto 100%;
    background-repeat:no-repeat,no-repeat}
/* The blend: a white-to-transparent overlay across the image's own left
   half, so the photo emerges gradually from the page background instead
   of showing a hard rectangular edge — the "one composition, not text +
   image box" requirement. */
.hero__media::after{content:"";position:absolute;inset:0;background:linear-gradient(to right,#fff 0%,rgba(255,255,255,.82) 16%,rgba(255,255,255,.35) 32%,rgba(255,255,255,0) 52%)}
/* Home now uses ONE prepared, finished background asset
   (home-hero-bg.webp) that already bakes in its own white-to-photo
   blend, so none of the crop/fade machinery above (used for the
   auto-generated academy-hero.webp, and still needed by program-detail's
   .hero__media--detail) applies here. The box spans the full hero width
   — `contain` shows the ENTIRE prepared composition with no cropping/
   zooming, `right center` keeps the building anchored to the right edge
   exactly as prepared, and any leftover letterbox space (top/bottom, or
   left of the image at very wide/short viewports) is transparent, so
   the page's own white background shows through with no seam. No
   second fade is layered on top — the asset's own blend is final. */
.hero-bleed--home .hero__media{left:0;background-image:url('/assets/images/academy/home-hero-bg.webp');background-position:right center;background-size:contain;background-repeat:no-repeat}
.hero-bleed--home .hero__media::after{content:none}
/* Regression fix (desktop only), v2: the one-screen flex height above
   (line 488, min-height:0) made .hero-bleed--home short relative to its
   width, so background-size:contain on the full-width box (line 562)
   became height-constrained and rendered the image at only ~38% of hero
   width — contain's size is a direct function of box height, and this
   box lost most of its height in that refactor (was min-height:575px
   per the comment at line 483). A first attempt reserved a narrower
   column + background-size:cover, which technically restored the
   43% share but didn't reproduce the ORIGINAL look (home-hero-bg.webp
   is a prepared composition meant to be shown whole via contain, not
   cropped) — reverted.
   Fix instead gives the box a middle-ground floor height (400px — well
   under the old fixed 575px, so most of the one-screen fit is kept,
   but enough for contain to render the image close to its size in the
   01-home.png reference: measured there at ~45-52% of hero width).
   Original left:0/background-size:contain (line 562) is untouched and
   does the actual sizing again; only the box height changed. Scoped to
   min-width:641px so mobile (max-width:640px, its own
   .hero-bleed--home{min-height:0} override) is provably unaffected. */
@media (min-width:641px){
  .hero-bleed--home{min-height:400px}
}
.hero__media-caption{position:absolute;right:6%;top:40px;text-align:right;color:#fff;font-size:13px;letter-spacing:.08em;line-height:1.7;text-shadow:0 1px 3px rgba(0,0,0,.25);z-index:1}
.hero__media-caption::after{content:"";display:inline-block;width:34px;height:2px;background:var(--brand-primary);margin-top:6px}

/* Program-detail hero now uses ONE prepared, finished background asset
   (program-detail-hero-bg.webp) that already bakes in its own white
   breathing space, PEOPLE/INTEGRITY/PROGRESS, and blend into white — the
   old crop/cover/gradient-fade machinery below is replaced outright for
   this page, matching the same approach as home/programs. min-height on
   the bleed gives the prepared composition enough room to read at a
   reasonable scale regardless of how short the title/subtitle text is
   (previously the box was purely text-height-driven, which would have
   squeezed the image down to a sliver). */
.hero--detail{max-width:46rem;padding:0}
/* .hero-bleed__inner's own max-width:72rem/margin:0 auto centering only
   works in normal flow — as a flex item of this row-flex container it
   shrinks to its content width and flex auto-centers it, floating the
   text ~280px away from the breadcrumb above (a real bug, not a design
   choice: measured heroText.left=378 vs breadcrumb.left=96). Forcing
   width:100% and matching the SAME left inset main/breadcrumb resolve to
   (72px viewport margin from the 72rem/18px-root page column + 24px
   page padding = 96px) makes breadcrumb, kicker, title and description
   share one real left axis, per "centered desktop composition container". */
.hero-bleed--detail{min-height:180px;display:flex;align-items:center}
.hero-bleed--detail .hero-bleed__inner{width:100%;max-width:72rem;margin:0 auto;padding:0 24px}
.hero__media--detail{left:0;background-image:url('/assets/images/academy/program-detail-hero-final.webp');background-position:right center;background-size:contain;background-repeat:no-repeat}
.hero__media--detail::after{content:none}

/* Programs page banner — a tall, full-bleed photo the page kicker/title/
   lede sit inside (bottom-left, over its fade), not a short strip above
   a separate white title section (01-home.png's sibling composition,
   02-programs.png). The catalog card below overlaps its bottom edge via
   the negative margin, same idea as before, just recalibrated for the
   new taller banner. */
.page-banner-bleed{position:relative;width:100vw;left:50%;margin-left:-50vw;overflow:hidden;margin-bottom:-80px}
/* Programs hero now uses ONE prepared, finished background asset
   (programs-hero-bg.webp) that already bakes in its own left-side white
   space, lower fade into white, and the PEOPLE/INTEGRITY/PROGRESS
   lettering — so none of the old crop/fade/caption machinery below it
   applies any more (page-banner classes are programs-only, not shared
   with any other page, so this is a direct rewrite, not an override).
   `contain` + `right top` shows the entire prepared composition with no
   cropping/zooming; the banner's own height is driven by the image's
   aspect ratio via padding-top, not a guessed fixed px value, so the
   full scene (including the bottom fade the card overlaps into) is
   always visible regardless of viewport width. */
/* Fixed px height (not a vw-relative padding-top) — a percentage tied
   the banner's height to viewport WIDTH, so 1600px fit at 900px viewport
   height while 1440px didn't (or vice versa) purely because of a wider
   screen, unrelated to available vertical space. A fixed height keeps
   the one-screen composition consistent across the whole 1440-1600px
   desktop range; `contain` still shows the full prepared image with no
   cropping, just with more/less left-side letterboxing as width varies. */
/* 02-programs.png: hero visible span (header bottom to card top) is
   ~320px at 1440 scale, not the previous 475px — that extra height was
   the actual cause of the "too tall" hero, not the overlap math. */
.page-banner{position:relative;height:335px;background-image:url('/assets/images/academy/programs-hero-bg.webp');background-position:right top;background-size:contain;background-repeat:no-repeat}
.page-banner__content{position:absolute;left:0;right:0;bottom:135px;z-index:2}
.page-banner__content-inner{max-width:72rem;margin:0 auto;padding:0 24px}
.page-banner__content .kicker,.page-banner__content .page-title,.page-banner__content .page-lede{margin-bottom:8px}
.page-banner__content .page-lede{margin-bottom:0}
/* Scoped to the banner only (.page-title/.kicker/.page-lede are shared
   with account/checkout/auth/program-detail elsewhere) — 02-programs.png
   shows a much larger page title than those secondary pages use. */
.page-banner__content .page-title{font-size:52px}
.page-banner__content .page-lede{font-size:19px;max-width:none;white-space:nowrap}

.breadcrumb{margin:0 0 5px;font-size:14px;color:var(--text-secondary)}
.breadcrumb a{color:var(--text-secondary);text-decoration:none}
.breadcrumb a:hover{color:var(--text-primary)}
.breadcrumb__sep{margin:0 6px;color:#C4CBD3}

/* Program detail layout: content column + one compact purchase card,
   never a second metadata card grid below (explicitly rejected — see
   the delivery report). */
.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 23rem;gap:40px;align-items:start;margin-top:10px}
.purchase-card{position:sticky;top:24px;padding:14px 22px 12px}
.purchase-card .price-row__label{font-size:14px}
.purchase-card .price-row{flex-direction:column;align-items:flex-start;gap:4px;padding:0 0 10px;margin:0 0 10px}
.purchase-card .price-row__value{font-size:30px;font-weight:600}
.purchase-card .btn{font-size:17px;padding:11px 20px}
.purchase-card__meta{margin-top:6px}
.purchase-card .meta-item__icon{width:20px;height:20px}
.purchase-card .meta-item--inline .meta-item__value{font-size:14px}
.purchase-card .meta-item--inline{padding:5px 0}

.outcomes-box{display:flex;gap:14px;background:var(--brand-primary-subtle);border:1px solid var(--brand-primary-soft);border-radius:var(--radius-md);padding:12px 16px;margin:11px 0 0}
.outcomes-box__icon{flex:0 0 auto;width:28px;height:28px;color:var(--interactive-primary)}
.outcomes-box__icon svg{width:100%;height:100%}
.outcomes-box h3{margin:1px 0 8px;font-size:17px;font-weight:600}
.outcomes-box ul{list-style:none;margin:0;padding:0}
.outcomes-box li{display:flex;gap:10px;margin:0 0 8px;font-size:15px;line-height:1.45}
.outcomes-box li:last-child{margin-bottom:0}
.outcomes-box li svg{flex:0 0 auto;width:19px;height:19px;margin-top:2px;color:var(--interactive-primary)}

/* Program Detail one-screen-fit pass — scoped to body.program-detail-page
   AND desktop (min-width:641px, this codebase's existing desktop
   breakpoint), so Home/Programs' shared .page/.site-footer and this
   page's own mobile layout (@media max-width:640px below) are
   untouched: several of these selectors (.hero__course-title,
   .hero-bleed--detail, main.page) would otherwise out-specificity the
   mobile overrides regardless of source order. */
@media (min-width:641px){
  .program-detail-page .hero--detail .kicker{font-size:13px;line-height:1.2;margin-bottom:6px}
  .program-detail-page .hero__course-title{font-size:36px;line-height:1.10;font-weight:500;margin-bottom:0}
  .program-detail-page .hero-bleed--detail{min-height:155px}
  .program-detail-page main.page{padding-top:26px;padding-bottom:28px}
  .program-detail-page .breadcrumb{margin-bottom:4px}
  .program-detail-page .tabs--detail{margin-top:2px;margin-bottom:0}
  .program-detail-page .detail-layout{margin-top:10px}
  .program-detail-page #about-text{margin:0;line-height:1.4}
  .program-detail-page .outcomes-box{margin-top:20px}
  /* Right-half hero composition: the media box now only spans the
     right ~50% of the hero (was left:0, full-width, showing the
     approved asset letterboxed via `contain`), so `cover` fills that
     narrower box completely instead of shrinking the image down. */
  .program-detail-page .hero__media--detail{left:50%;right:0;background-size:cover}
  /* Structural footer position (replaces small margin-top tweaks):
     the body becomes a column flex layout like Home/Programs, main
     fills the real remaining viewport height, and the footer's own
     margin-top:auto consumes whatever space is left — so its position
     falls out of actual content height instead of a guessed px value. */
  body.program-detail-page{min-height:100dvh;display:flex;flex-direction:column}
  body.program-detail-page > .site-header{flex:0 0 auto}
  body.program-detail-page > main.page{flex:1 1 auto;min-height:0}
  body.program-detail-page > .site-footer{flex:0 0 auto;margin-top:auto}
}

@media (min-width:1024px) and (max-height:850px){
  .program-detail-page main.page{padding-top:18px;padding-bottom:16px}
  .program-detail-page .hero-bleed--detail{min-height:150px}
  .program-detail-page .hero__course-title{font-size:32px;line-height:1.08}
  .program-detail-page .hero--detail .kicker{font-size:12px;line-height:1.2;margin-bottom:5px}
  .program-detail-page .breadcrumb{margin-bottom:3px}
  .program-detail-page .tabs--detail{margin-top:2px}
  .program-detail-page .detail-layout{margin-top:8px}
  .program-detail-page .outcomes-box{margin-top:20px}
}

/* Wide desktop: the full course title fits on one line — placed after
   the short-height block above so it wins the cascade (equal
   specificity, later source) whenever width>=1280px, short viewport or
   not; .hero--detail's 46rem cap (sized for the 2-line wrap) is lifted
   so the single line has room inside .hero-bleed__inner's 72rem/24px-
   padding box instead of overflowing it. */
@media (min-width:1280px){
  .program-detail-page .hero--detail{max-width:none}
  .program-detail-page .hero__course-title{font-size:34px;line-height:1.10;font-weight:500;white-space:nowrap}
}

/* Program tab — each module explicitly followed by its test, ending in
   the final exam, instead of a single summary line ("7 модулей · N
   уроков ..."). Compact rows so all 7 fit without hurting readability;
   the tab may still scroll with the page if the viewport is short (see
   .module-flow__final), but nothing forces it to. */
.module-flow{list-style:none;margin:0;padding:0;border-top:1px solid var(--border-subtle)}
.module-flow__item{display:flex;gap:16px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--border-subtle)}
.module-flow__num{flex:0 0 auto;width:28px;height:28px;border-radius:50%;background:var(--surface-soft);color:var(--text-secondary);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
.module-flow__body{min-width:0}
.module-flow__title{margin:0 0 3px;font-size:16px;font-weight:500;line-height:1.35}
.module-flow__test{margin:0;font-size:14px;color:var(--interactive-primary);font-weight:500}
.module-flow__final{margin:16px 0 0;padding:14px 18px;border-radius:var(--radius-md);background:var(--brand-primary-subtle);color:var(--brand-dark);font-size:16px;font-weight:600;text-align:center}

/* Branded loading state — same shell every long-running client check
   (entitlement/payment verification) shows instead of inventing a
   one-off spinner per page. */
.academy-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:120px 24px;text-align:center;color:var(--text-secondary)}
.academy-loading__spinner{width:34px;height:34px;border:3px solid var(--border-subtle);border-top-color:var(--brand-primary);border-radius:50%;animation:academy-spin .8s linear infinite}
@keyframes academy-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.academy-loading__spinner{animation-duration:2.4s}}

/* /learn/<slug> — full-width embedded-learning shell below the header,
   not a .page (no max-width cap, no side padding: the existing Apps
   Script runtime fills this edge to edge, same visual weight as a real
   Academy page rather than a narrow strip of iframe in a sea of
   margin). min-height approximates "the rest of the viewport below the
   header" — not pixel-exact (the header can wrap to 2 lines on narrow
   nav states), just enough that the loading/error/frame states never
   read as a tiny sliver on a tall screen. */
.learn-shell{width:100%;min-height:calc(100vh - 81px)}
.learn-frame-wrap{width:100%;min-height:calc(100vh - 81px);display:flex}
.learn-frame{flex:1 1 auto;width:100%;min-height:calc(100vh - 81px);border:0;display:block}
.learn-error{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-height:calc(100vh - 81px);padding:24px;text-align:center}
.learn-error p{color:var(--text-secondary);max-width:26rem}

@media(max-width:640px){
  .page{padding:32px 18px 48px}
  .page-title{font-size:28px}
  .hero__course-title{font-size:26px}
  .site-header{padding:16px 18px}
  .summary-list li{flex-direction:column;gap:2px}
  .summary-list li strong{min-width:0}
  .card{padding:28px 22px 24px}
  .dialog{padding:0}
  .dialog__panel{width:100%;height:100%;max-height:100%;border-radius:0}
  /* One card per row, filling the available width exactly (no fixed
     min/max fight on narrow viewports), price/duration never wrapping
     awkwardly. */
  .catalog-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .catalog-card,#catalog-grid .catalog-card{padding:24px 22px 22px}
  .catalog-card__iconmeta,#catalog-grid .catalog-card__iconmeta{gap:16px 24px}
  /* Mobile drops the full-bleed blend entirely — headline first, a
     plain contained image below it (order given by DOM position, see
     index.html/program-detail.html), full-width CTA. */
  .hero-bleed{width:auto;left:auto;margin-left:0;overflow:visible}
  .hero-bleed--home,.hero-bleed--detail{min-height:0;display:block}
  .hero-bleed__inner,.hero-bleed--home .hero-bleed__inner{padding:0 18px;max-width:none;margin:0}
  .hero,.hero--detail,.hero-bleed--home .hero{max-width:none;padding:28px 0 32px}
  .hero__title{font-size:30px}
  /* This pass enlarged the desktop-only hero headline/icons/CTA to match
     01-home.png's apparent scale; restore the pre-pass mobile sizes here
     so the 375px layout is untouched (mobile was never part of this
     pass's brief). */
  .hero__title-light,.hero__title-dark{font-size:30px}
  .hero__points{gap:24px 30px}
  .hero__point{gap:10px}
  .hero__point-icon{width:24px;height:24px}
  .hero__point-text{font-size:15px}
  .hero__cta{font-weight:400;font-size:18px;padding:10px 18px;min-height:var(--touch-min)}
  .btn__arrow{margin-left:14px;font-size:20px}
  .hero__media,.hero__media--detail{position:static;left:auto;right:auto;top:auto;bottom:auto;width:100%;aspect-ratio:16/10;border-radius:var(--radius-lg);margin-bottom:24px;background-size:cover,cover;background-position:center,center}
  .hero__media::after{display:none}
  .hero__media-caption{display:none}
  .hero .btn-primary{width:100%;justify-content:center}
  .page-banner-bleed{width:auto;left:auto;margin-left:0;overflow:visible;margin-bottom:0}
  .page-banner{height:160px;border-radius:var(--radius-lg)}
  .page-banner::after{display:none}
  .page-banner__caption{display:none}
  .page-banner__content{position:static;margin:20px 0 0}
  .page-banner__content-inner{padding:0 18px}
  /* Restore the shared .page-title/.page-lede sizes on mobile — the
     desktop-only 52px/19px bump above (02-programs.png's larger banner
     title) must not carry over here; mobile wasn't part of this pass. */
  .page-banner__content .page-title{font-size:28px}
  .page-banner__content .page-lede{font-size:18px;max-width:none;white-space:normal}
  .detail-layout{grid-template-columns:minmax(0,1fr)}
  .purchase-card{position:static}
  .site-header__nav{gap:10px 14px;flex-wrap:wrap;row-gap:10px}
  .site-header__nav a.is-active::after{bottom:-6px}
}
