/* Метаболический паспорт — стили сайта.
 * Значения — из 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.dark { background: var(--color-ink); color: var(--color-paper); }
.btn.dark:hover { background: var(--color-coral-deep); color: #fff; }

.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); }

.field {
  width: 100%;
  height: var(--field-h);
  border: 0;
  border-bottom: 1px solid var(--color-ink);
  background: transparent;
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  font-size: 18px;
  color: var(--color-ink);
  padding: 0;
  border-radius: var(--radius-field);
  transition: border-color var(--dur-hover) var(--ease);
  appearance: none;
}
.field::placeholder { color: var(--color-placeholder); opacity: 1; }
.field:hover { border-bottom-color: var(--color-coral-deep); }
.field:focus { outline: 0; border-bottom: 2px solid var(--color-coral-deep); }
.field[aria-invalid="true"] { border-bottom: 2px solid var(--color-coral-deep); }

.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);
}
.step:last-child { border-bottom: 1px solid var(--color-field-dark-rule); }
.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; }
.pay__receipt { font-size: 16px; line-height: 1.5; color: var(--color-on-dark-body); max-width: 34em; }
.pay__receipt a { color: var(--color-on-dark); }
.pay__receipt a:hover { color: var(--color-coral-on-dark); }

.form__field { display: flex; flex-direction: column; gap: 6px; }

/* ---------- 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 :focus-visible { outline-color: var(--color-on-dark); }

/* ---------- Login ---------- */

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
}
.login__panel {
  background: var(--color-sage);
  padding: 40px 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.login__panel > * { position: relative; z-index: 2; }
.login__panel .wordmark { align-self: flex-start; }
.login__curve {
  position: absolute;
  left: -40px;
  top: 240px;
  width: 960px;
  height: 420px;
  max-width: none;
  pointer-events: none;
  z-index: 1 !important;
}
.login__intro { display: flex; flex-direction: column; gap: 20px; max-width: 420px; }
.login__intro .disp { font-size: clamp(44px, 5vw, 72px); overflow-wrap: normal; }
.login__intro .body { color: var(--color-sage-deep); font-size: 17px; }
.login__legal { font-size: var(--text-legal); line-height: 1.6; color: var(--color-sage-deep); }
.login__main {
  padding: 40px 80px 48px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 44px;
}
.login__head { display: flex; flex-direction: column; gap: 14px; }
.login__head .disp { font-size: clamp(36px, 3.3vw, 48px); }
.login__form { display: flex; flex-direction: column; gap: 36px; }
.login__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.login__actions .lnk { font-size: 15px; }
.login__notice { font-size: 14px; line-height: 1.5; color: var(--color-coral-deep); }
.login__foot {
  font-size: 15px;
  color: var(--color-muted);
  border-top: var(--rule) solid var(--color-rule);
  padding-top: 24px;
}

/* ---------- 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; }
.curve--login { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation-delay: .3s; }

@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 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,
  .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; }
  .login { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .login__panel { padding: 28px 40px 40px; gap: 40px; min-height: 0; }
  .login__curve { top: 120px; width: 120%; height: auto; }
  .login__main { padding: 56px 40px 64px; }
}

@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) {
  /* Ссылки nav уходят в футер: ниже этой ширины wordmark + 4 ссылки + кнопка не помещаются без переноса. */
  .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;
    --field-h: 52px;
    --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__text { gap: 28px; }
  .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__num { font-size: 20px; }
  .step__note { font-size: 14px; }
  .pay__btn { align-self: stretch; width: 100%; }
  .pay__receipt { font-size: 15px; }
  .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; }

  .login__panel { padding: 20px 20px 32px; gap: 32px; }
  .login__curve { top: 60px; left: -30px; width: 130%; opacity: .7; }
  .login__main { padding: 48px 20px 56px; gap: 32px; }
  .login__form { gap: 28px; }
  .login__actions { flex-direction: column; align-items: stretch; gap: 18px; }
  .login__actions .btn { width: 100%; }
  .login__actions .lnk { align-self: flex-start; }

  .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; }
}
