/* Метаболический паспорт — стили сайта.
 * Значения — из tokens.css (HANDOVER §3). Раскладка секций — §4, motion — §5.
 * Брейкпоинты: ≤600 mobile-значения; ≤900 одна колонка программы; ≤1040 nav-ссылки в футер;
 * ≤1100 команда в одну колонку; ≤1024 hero и двухколоночные секции в один столбец.
 */

/* ---------- Base ---------- */

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
/* ---------- Typography ---------- */

.disp {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  overflow-wrap: anywhere;
  min-width: 0;
}
.disp em { font-style: italic; font-weight: var(--weight-display-em); }

.eyebrow {
  font-size: var(--text-eyebrow);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: var(--weight-ui);
  line-height: 1.5;
}

.lead {
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  font-weight: var(--weight-body);
}

.body {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  font-weight: var(--weight-body);
}

.muted { color: var(--color-muted); }
.small { font-size: var(--text-small); font-weight: var(--weight-body); line-height: 1.5; }
.coral { color: var(--color-coral); }

/* ---------- Components ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--button-h);
  padding: 0 var(--button-px);
  border-radius: var(--radius-button);
  background: var(--color-coral-deep);
  color: #fff;
  font-family: var(--font-body);
  font-weight: var(--weight-ui);
  font-size: var(--text-button);
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-hover) var(--ease), background-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
}
.btn:hover { background: var(--color-coral-hover); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; transform: none; }
.btn:disabled:hover { background: var(--color-coral-deep); transform: none; }

.btn.ghost { background: transparent; color: var(--color-ink); border: 1px solid var(--color-ink); }
.btn.ghost:hover { background: var(--color-ink); color: var(--color-paper); }

.btn.light { background: var(--color-paper); color: var(--color-ink); }
.btn.light:hover { background: #fff; color: var(--color-coral-deep); }
.btn.light:disabled:hover { background: var(--color-paper); color: var(--color-ink); }

.btn.btn--nav { height: var(--button-h-nav); padding: 0 22px; font-size: 15px; }

.lnk {
  text-decoration: none;
  color: var(--color-ink);
  border-bottom: 1px solid rgba(39, 33, 30, .3);
  padding-bottom: 2px;
  transition: border-color var(--dur-hover) var(--ease), color var(--dur-hover) var(--ease);
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-body);
  line-height: 1.4;
}
.lnk:hover { border-color: var(--color-coral-deep); color: var(--color-coral-deep); }

.navlink {
  text-decoration: none;
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 400;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-hover) var(--ease);
  white-space: nowrap;
}
.navlink:hover { border-color: currentColor; }

.list { display: flex; flex-direction: column; gap: 14px; }
.list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--text-list);
  line-height: var(--leading-list);
  font-weight: var(--weight-body);
}
.list li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 10px; height: 1px;
  background: var(--color-coral-deep);
}
.list.tight { gap: 10px; }
.list.tight li { font-size: 15px; }

.notice {
  padding: var(--space-4) var(--space-5);
  background: var(--color-peach);
  border-left: 3px solid var(--color-coral-deep);
  color: var(--color-ink);
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: var(--leading-list);
  max-width: 34em;
}
.notice strong { font-weight: var(--weight-ui); }

.lbl {
  font-size: var(--text-label);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
  font-weight: var(--weight-ui);
  line-height: 1.5;
}

/* Плейсхолдер фото — до подстановки реального изображения (HANDOVER §3.5). */
.ph {
  background-color: var(--color-peach);
  background-image: repeating-linear-gradient(135deg, rgba(184, 64, 26, .10) 0 1px, transparent 1px 16px);
  border: 1px solid rgba(184, 64, 26, .25);
  display: flex;
  align-items: flex-end;
}
.ph.sage {
  background-color: var(--color-sage);
  background-image: repeating-linear-gradient(135deg, rgba(63, 97, 70, .12) 0 1px, transparent 1px 16px);
  border-color: rgba(63, 97, 70, .3);
}
.phl {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7A3A22;
  font-weight: var(--weight-ui);
  line-height: 1.5;
}
.ph.sage .phl { color: var(--color-sage-deep); }

.photo { width: 100%; height: 100%; object-fit: cover; }

.blank {
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--color-blank) 0 4px, transparent 4px 8px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-ink);
  flex-shrink: 0;
}
.wordmark .disp { font-size: 24px; white-space: nowrap; overflow-wrap: normal; }
.wordmark svg { flex-shrink: 0; }

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule-top { border-top: var(--rule) solid var(--color-rule); }

/* Sticky nav перекрывает верх секции при переходе по якорю. */
[id] { scroll-margin-top: var(--nav-h); }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--color-nav-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: var(--rule) solid var(--color-rule);
}
.nav__inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav__links { display: flex; align-items: center; gap: 36px; }

/* ---------- Hero ---------- */

.hero {
  padding-top: 96px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 72px;
  align-items: center;
  position: relative;
}
.hero__text {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: relative;
  z-index: 2;
}
.hero__title { font-size: var(--text-h1); max-width: 12ch; }
.hero__lead { max-width: 34em; }
.hero__cta { display: flex; align-items: center; gap: 28px; padding-top: 8px; flex-wrap: wrap; }
.hero__visual {
  position: relative;
  justify-self: end;
  width: 460px;
  height: 620px;
  max-width: 100%;
}
.hero__photo { width: 100%; height: 100%; padding: 20px; }
.hero__photo .photo { padding: 0; }
.hero__curve {
  position: absolute;
  left: -420px;
  bottom: -70px;
  width: 900px;
  height: 240px;
  max-width: none;
  pointer-events: none;
  z-index: 1;
}
.hero__curve--mobile {
  display: none;
  position: absolute;
  left: -20px;
  bottom: -36px;
  width: calc(100% + 40px);
  height: auto;
  max-width: none;
  pointer-events: none;
  z-index: 1;
}

/* ---------- About ---------- */

.about {
  padding-top: 120px;
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 96px;
}
.about__left { display: flex; flex-direction: column; gap: 40px; }
.about__title { font-size: var(--text-h2); }
.principles { display: flex; flex-wrap: wrap; gap: 8px 40px; padding-top: 8px; }
@media (min-width: 1280px) { .principles { flex-wrap: nowrap; } }
.principles .disp { font-size: var(--text-principle); color: var(--color-coral); overflow-wrap: normal; flex-shrink: 0; }
.about__right { display: flex; flex-direction: column; gap: 28px; padding-top: 56px; }
.about__note { padding-top: 20px; border-top: var(--rule) solid var(--color-rule); color: var(--color-muted); }

/* ---------- Why ---------- */

.why { background: var(--color-peach); }
.why__inner {
  padding-top: 110px;
  padding-bottom: 110px;
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 96px;
  align-items: start;
}
.why__title { font-size: var(--text-h2-sm); }
.why__text { display: flex; flex-direction: column; gap: 28px; padding-top: 10px; }

/* ---------- Passport ---------- */

.passport {
  padding-top: 130px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 80px;
  align-items: center;
}
.passport__text { display: flex; flex-direction: column; gap: 32px; }
.passport__title { font-size: var(--text-h2); }
.passport__body { max-width: 30em; }
.passport__text .lnk { align-self: flex-start; }
.passport__visual { justify-self: center; width: 560px; max-width: 100%; position: relative; }

.sheet {
  width: 100%;
  min-height: 740px;
  background: #fff;
  border: 1px solid var(--color-rule-paper);
  box-shadow: var(--shadow-sheet);
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--color-ink);
  padding-bottom: 16px;
}
.sheet__head .disp { font-size: 30px; }
.sheet__head .eyebrow { font-size: 11px; white-space: nowrap; }
.sheet__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.sheet__field { display: flex; flex-direction: column; gap: 12px; }
.sheet__field--wide { margin-top: auto; }
.sheet__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 16px;
  border-top: 1px solid var(--color-rule-paper);
}
.sheet__legend > span { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--color-muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot--calm { background: var(--color-sage-deep); }
.dot--mid { background: var(--color-peach); border: 1px solid var(--color-coral); }
.dot--high { background: var(--color-coral); }

/* ---------- Program ---------- */

.program {
  padding-top: 120px;
  padding-bottom: 130px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.program__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 80px;
  align-items: end;
}
.program__title { font-size: var(--text-h2-lg); }
.program__stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.stage {
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-top: var(--rule-strong) solid var(--color-ink);
  padding-top: 28px;
}
.stage__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.stage__head .disp { font-size: clamp(30px, 2.5vw, 36px); }
.stage__num { color: var(--color-coral); flex-shrink: 0; }

/* ---------- Team ---------- */

.team { background: var(--color-sage); }
.team__inner {
  padding-top: 110px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.team__head { display: flex; flex-direction: column; gap: 20px; }
.team__head .eyebrow { color: var(--color-sage-deep); }
.team__title { font-size: var(--text-h2); max-width: 16ch; }
.team__people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; }
.person {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 36px;
  row-gap: 18px;
  align-items: start;
}
.person__top { display: contents; }
.person__portrait { width: 220px; height: 290px; padding: 14px; grid-row: 1 / 3; grid-column: 1; }
.person__portrait .photo { padding: 0; }
.person__name { display: flex; flex-direction: column; gap: 4px; grid-column: 2; grid-row: 1; }
.person__list { grid-column: 2; grid-row: 2; }
.person__name .disp { font-size: clamp(30px, 2.8vw, 40px); }
.person__name .muted { font-size: 15px; }

/* ---------- Price ---------- */

.price {
  padding-top: 130px;
  padding-bottom: 120px;
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 96px;
  align-items: center;
}
.price__left { display: flex; flex-direction: column; gap: 20px; }
.price__amount { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.price__value {
  font-size: var(--text-price);
  line-height: var(--leading-price);
  letter-spacing: var(--tracking-price);
  white-space: nowrap;
}
.price__currency { font-size: clamp(52px, 5vw, 72px); color: var(--color-coral); }
.price__note { font-size: 16px; }
.price__right { display: flex; flex-direction: column; gap: 28px; }
.price__right .btn { align-self: flex-start; }

/* ---------- Signup (тёмная секция) ---------- */

.signup { background: var(--color-ink); color: var(--color-on-dark); }
.signup__inner {
  padding-top: 120px;
  padding-bottom: 130px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 120px;
  align-items: start;
}
.signup__text { display: flex; flex-direction: column; gap: 28px; }
.signup__text .eyebrow { color: var(--color-on-dark-muted); }
.signup__title { font-size: var(--text-h2); color: var(--color-on-dark); }
.signup__text .body { color: var(--color-on-dark-body); }

.signup :focus-visible { outline-color: var(--color-on-dark); }
.signup .btn.light:focus-visible { outline-color: var(--color-on-dark); }

.pay { display: flex; flex-direction: column; gap: 40px; }
.steps { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--color-field-dark-rule);
}
.steps > .step:last-child { border-bottom: 1px solid var(--color-field-dark-rule); }
.step--aside { border-top: none; border-bottom: none; padding-top: 0; padding-bottom: 0; }
.step__text .pay__btn { margin-top: 16px; }
.step__num { font-size: 24px; line-height: 1.2; color: var(--color-coral-on-dark); }
.step__text { display: flex; flex-direction: column; gap: 6px; }
.step__title { font-size: var(--text-list); line-height: var(--leading-list); color: var(--color-on-dark); font-weight: var(--weight-ui); }
.step__note { font-size: 15px; line-height: 1.5; color: var(--color-on-dark-body); }
.pay__btn { align-self: flex-start; }
.step__title a,
.step__note a { color: var(--color-on-dark); }
.step__title a:hover,
.step__note a:hover { color: var(--color-coral-on-dark); }

/* ---------- Footer ---------- */

.footer { background: var(--color-ink); color: var(--color-on-dark-muted); border-top: 1px solid var(--color-ink-soft); }
.footer__inner {
  padding-top: 56px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__brand .disp { font-size: 24px; color: var(--color-on-dark); }
.footer__brand .small { font-size: 14px; }
.footer__links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer__links .navlink { color: var(--color-on-dark-muted); font-size: 14px; }
.footer__disclaimer { font-size: 14px; line-height: 1.6; font-weight: var(--weight-body); max-width: 60em; }
.footer__legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 40px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--color-ink-soft);
  font-size: var(--text-legal);
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-on-dark-body);
}
.footer__legal a { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--color-on-dark); }
.footer :focus-visible { outline-color: var(--color-on-dark); }

/* ---------- Legal pages ---------- */

.legal { padding-top: 72px; padding-bottom: 120px; max-width: 800px; }
.legal__head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; }
.legal__head .disp { font-size: var(--text-h2); }
.legal .prose { display: flex; flex-direction: column; gap: 16px; font-size: 17px; }
.prose h1 { display: none; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: var(--weight-display); letter-spacing: var(--tracking-display); line-height: 1.1; margin-top: 24px; }
.prose h2 { font-size: 32px; }
.prose h3 { font-size: 26px; }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--color-coral-deep); }
.prose ol { list-style: decimal; }
.prose a { color: var(--color-coral-deep); }
.prose strong { font-weight: 500; }

/* ---------- Motion (HANDOVER §5) ---------- */

.curve { stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw var(--dur-curve) var(--ease) var(--delay-curve) forwards; }
.curve--mobile { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation-duration: 2.6s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rv { from { opacity: 0; transform: translateY(var(--reveal-offset)); } to { opacity: 1; transform: translateY(0); } }
@keyframes par { from { transform: translateY(0); } to { transform: translateY(var(--parallax-hero)); } }
@keyframes parS { from { transform: translateY(60px) rotate(-2.5deg); } to { transform: translateY(-40px) rotate(-1deg); } }
@keyframes parSMobile { from { transform: translateY(30px) rotate(-2deg); } to { transform: translateY(-20px) rotate(-0.5deg); } }
@keyframes parT { from { transform: translateY(40px); } to { transform: translateY(-40px); } }

/* CSS scroll-driven animations: Chrome/Edge, Safari 26+, Firefox 14x+. Иначе — статично или JS-fallback ниже. */
@supports (animation-timeline: view()) {
  .rv { animation: rv .6s var(--ease) both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
  .par { animation: par linear both; animation-timeline: scroll(root); animation-range: 0px 1400px; }
  .sheet { animation: parS linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  .parT { animation: parT linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
}

/* JS-fallback (site.js вешает .js-motion на <html> только там, где нет scroll-driven animations). */
.js-motion .rv { opacity: 0; transform: translateY(var(--reveal-offset)); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-motion .rv.is-in { opacity: 1; transform: translateY(0); }
.js-motion .par, .js-motion .sheet, .js-motion .parT { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .par, .sheet, .parT, .curve,
  .price__left > *, .price__right > *, .passport__text > *,
  .js-motion .rv, .js-motion .par, .js-motion .sheet, .js-motion .parT {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* Подписи полей листа: длинная на desktop, короткая на mobile. */
.sheet .lbl--short { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 64px; padding-bottom: 80px; }
  /* Порядок на узких экранах: текст → CTA → note про датчик → фото. */
  .hero__text { display: contents; }
  .hero__visual { justify-self: stretch; width: 100%; height: 400px; margin-top: 12px; order: 5; }
  .hero__note { order: 4; }
  .hero__curve { display: none; }
  .hero__curve--mobile { display: block; }
  .about, .passport, .price, .signup__inner, .why__inner, .program__head { grid-template-columns: minmax(0, 1fr); }
  .about { gap: 40px; }
  .about__right { padding-top: 0; }
  .why__inner { gap: 32px; }
  .why__text { padding-top: 0; }
  .passport { gap: 48px; }
  /* Порядок на узких экранах: текст → лист → ссылка. */
  .passport__text { display: contents; }
  .passport__visual { justify-self: start; width: 100%; max-width: 560px; order: 5; }
  .passport__text .lnk { order: 6; justify-self: start; }
  .program__head { gap: 24px; }
  .price { gap: 40px; }
  /* Порядок на узких экранах: eyebrow → цена → lead → список → note → кнопка. */
  .price__left, .price__right { display: contents; }
  .price__note { order: 5; }
  .price__right .btn { order: 6; justify-self: start; }
  .signup__inner { gap: 56px; }
  @supports (animation-timeline: view()) {
    .price__left.rv > *,
    .price__right.rv > *,
    .passport__text.rv > * {
      animation: rv .6s var(--ease) both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
  }
}

@media (max-width: 1100px) {
  .nav__links { gap: 24px; }
  .team__people { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .team__title { max-width: none; }
}

@media (max-width: 1040px) {
  /* Ссылки разделов скрыты: в строку помещаются только wordmark и кнопка. */
  .nav__links .navlink { display: none; }
}

@media (max-width: 900px) {
  .program__stages { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 600px) {
  :root {
    --gutter: 20px;
    --nav-h: 64px;
    --button-h: 54px;
    --button-h-nav: 40px;
    --button-px: 24px;
    --text-eyebrow: 12px;
    --text-label: 12px;
    --reveal-offset: 22px;
    --parallax-hero: -50px;
  }
  .disp { line-height: 1.04; }
  .wordmark { gap: 10px; }
  .wordmark .disp { font-size: 17px; }
  .wordmark svg { width: 28px; height: 18px; }
  .nav__inner { gap: 16px; }
  .nav__links { gap: 0; }
  .btn.btn--nav { padding: 0 14px; font-size: 14px; }

  .hero { padding-top: 48px; padding-bottom: 64px; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: 18px; padding-top: 0; }
  .hero__cta .btn { width: 100%; }
  .hero__cta .lnk { align-self: flex-start; font-size: 15px; }
  .hero__photo { padding: 16px; }
  .phl { font-size: 11px; }
  .notice { font-size: 15px; padding: var(--space-3) var(--space-4); }

  .about { padding-top: 64px; padding-bottom: 64px; gap: 28px; }
  .about__left { gap: 28px; }
  .principles { gap: 8px 20px; }
  .about__right { gap: 20px; padding-top: 8px; }
  .about__note { padding-top: 16px; }

  .why__inner { padding-top: 64px; padding-bottom: 64px; gap: 24px; }

  .passport { padding-top: 72px; padding-bottom: 64px; gap: 32px; }
  .passport__visual { padding: 24px 4px 12px; }
  .sheet { min-height: 0; padding: 28px 26px; gap: 22px; box-shadow: var(--shadow-sheet-mobile); }
  .sheet__head { padding-bottom: 12px; }
  .sheet__head .disp { font-size: 22px; }
  .sheet__head .eyebrow { font-size: 10px; }
  .sheet__grid { gap: 20px; }
  .sheet__field { gap: 10px; }
  .sheet__field--wide { margin-top: 0; }
  .sheet__legend { gap: 10px 16px; padding-top: 12px; }
  .sheet__legend span { font-size: 11px; gap: 6px; }
  .dot { width: 9px; height: 9px; }
  .sheet .lbl--long { display: none; }
  .sheet .lbl--short { display: inline; }

  .program { padding-top: 64px; padding-bottom: 72px; gap: 40px; }
  .program__head { gap: 16px; }
  .stage { gap: 20px; padding-top: 20px; }
  .list { gap: 12px; }
  .list li { padding-left: 20px; }
  .list.tight { gap: 8px; }
  .list.tight li { font-size: 14px; }

  .team__inner { padding-top: 64px; padding-bottom: 72px; gap: 40px; }
  .team__head { gap: 14px; }
  .team__people { gap: 32px; }
  .person { display: flex; flex-direction: column; gap: 20px; }
  .person__top { display: flex; gap: 20px; align-items: flex-end; }
  .person__portrait { width: 120px; height: 156px; padding: 10px; flex-shrink: 0; }
  .person__name .muted { font-size: 14px; }
  .person + .person { border-top: 1px solid rgba(63, 97, 70, .3); padding-top: 32px; }

  .price { padding-top: 72px; padding-bottom: 72px; gap: 28px; }
  .price__amount { gap: 12px; }
  .price__note { font-size: 14px; }
  .price__right .btn { justify-self: stretch; width: 100%; }

  .signup__inner { padding-top: 72px; padding-bottom: 80px; gap: 36px; }
  .signup__text { gap: 18px; }
  .pay { gap: 32px; }
  .step { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 20px 0; }
  .step--aside { padding-top: 0; padding-bottom: 0; }
  .step__num { font-size: 20px; }
  .step__note { font-size: 14px; }
  .pay__btn { align-self: stretch; width: 100%; }
  .footer__inner { padding-top: 44px; padding-bottom: 40px; gap: 28px; }
  .footer__top { flex-direction: column; gap: 28px; }
  .footer__brand { gap: 6px; }
  .footer__brand .disp { font-size: 22px; }
  .footer__brand .small { font-size: 13px; }
  .footer__links { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer__disclaimer { font-size: 13px; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 20px; }

  @supports (animation-timeline: view()) {
    .par { animation-range: 0px 900px; }
    .sheet { animation-name: parSMobile; }
    .parT { animation: none; }
  }

  .legal { padding-top: 48px; padding-bottom: 72px; }
  .legal__head { margin-bottom: 32px; }
  .legal .prose { font-size: 16px; }
  .prose h2 { font-size: 28px; }
  .prose h3 { font-size: 23px; }
}

/* ---------- Start (первый поток) ---------- */

.start { background: var(--color-peach); }
.start__inner {
  padding-top: 96px;
  padding-bottom: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.start__eyebrow { color: var(--color-ink); }
.start__date {
  font-size: var(--text-h2-lg);
  color: var(--color-coral-deep);
  max-width: 20em;
}
.start__note {
  max-width: 28em;
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  color: var(--color-ink);
}

@media (max-width: 600px) {
  .start__inner { padding-top: 64px; padding-bottom: 64px; gap: 16px; }
  .start__inner .btn { width: 100%; }
}

/* ---------- Анкета участника ---------- */

.intake {
  max-width: 640px;
  padding-top: 72px;
  padding-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.intake__title { font-size: var(--text-h2); }
.intake__lead {
  max-width: 36em;
  margin: 0;
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
  font-weight: var(--weight-body);
  color: var(--color-muted);
}
.intake__done { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.intake__done .intake__title { font-size: var(--text-h3); }
.intake__done-copy { display: flex; flex-direction: column; gap: 12px; }
.intake__channel { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.intake__channel-url {
  margin: 0;
  max-width: 36em;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--color-muted);
  overflow-wrap: anywhere;
}
.intake__note {
  margin: 0;
  max-width: 36em;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
}
.intake__form { display: flex; flex-direction: column; gap: 28px; margin-top: 16px; }
.intake__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.intake__field { display: flex; flex-direction: column; gap: 8px; }
.intake__label {
  font-size: var(--text-label);
  font-weight: var(--weight-ui);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.intake__form input[type="text"],
.intake__form input[type="email"],
.intake__form input[type="number"],
.intake__form textarea,
.intake__form input[type="file"] {
  width: 100%;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--color-ink);
  border-radius: 0;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: var(--text-body);
  font-weight: var(--weight-body);
  line-height: 1.4;
}
.intake__form textarea { min-height: 96px; resize: vertical; }
.intake__form input::placeholder,
.intake__form textarea::placeholder { color: var(--color-placeholder); }
.intake__form input:hover,
.intake__form textarea:hover,
.intake__form input[type="file"]:hover { border-bottom-color: var(--color-coral-deep); }
.intake__form input:focus,
.intake__form textarea:focus,
.intake__form input[type="file"]:focus {
  outline: none;
  border-bottom: 2px solid var(--color-coral-deep);
  padding-bottom: 11px;
}
.intake__form input[type="number"] { appearance: textfield; }
.intake__form input[type="number"]::-webkit-outer-spin-button,
.intake__form input[type="number"]::-webkit-inner-spin-button { appearance: none; margin: 0; }
.intake__hint { margin: 0; font-size: var(--text-small); line-height: 1.5; color: var(--color-muted); }
.intake__error { margin: 0; font-size: 13px; line-height: 1.4; color: var(--color-coral-deep); }
.intake__alert {
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--color-coral-deep);
}
.intake__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-ink);
}
.intake__consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--color-coral-deep);
  flex: none;
}
.intake__consent a { color: inherit; }
.intake__consent-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.intake__form .btn { align-self: flex-start; margin-top: 4px; }

@media (max-width: 600px) {
  .intake { padding-top: 48px; padding-bottom: 72px; gap: 16px; }
  .intake__form { gap: 24px; }
  .intake__form .btn,
  .intake__channel .btn { width: 100%; }
}
