/* Zinītis — главная по макету 5.ai (артборды «Школа» и «Вуз», вход, «С чего начнём?»).
   Размеры заданы от артборда 1920 px через vw с ограничениями clamp(): на 1920 страница
   совпадает с макетом один в один, на 1440 — пропорционально, на телефоне своя раскладка. */

:root {
  --navy: #1f2d47;
  --bg: #f8f7f3;
  --blue: #405e84;
  --mauve: #73576e;
  --green: #426d5c;
  --rust: #b85631;
  --sky: #3f5ba4;
  --ink: #1f2d47;
  --line: clamp(5px, 0.52vw, 10px);
  --r-card: clamp(20px, 2.1vw, 40px);
  --r-band: clamp(14px, 1.1vw, 22px);
  --gutter: clamp(16px, 2.5vw, 48px);
  --sec: clamp(56px, 8.2vw, 158px);
  --fs-display: clamp(30px, 3.125vw, 60px);
  --fs-sub: clamp(16px, 1.5625vw, 30px);
  --fs-title: clamp(19px, 1.5625vw, 30px);
  --fs-body: clamp(14px, 1.0417vw, 20px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--rust); color: #fff; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.hdr :focus-visible, .band :focus-visible, .perks :focus-visible { outline-color: #fff; }
input { caret-color: var(--rust); }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 100;
  padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--navy);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 16px; }

.display { font-family: "Inter", "Segoe UI", system-ui, sans-serif; font-weight: 800; letter-spacing: -0.02em; }

/* ------------------------------------------------------------------ шапка */
.hdr {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: clamp(14px, 1.25vw, 26px) clamp(16px, 5.6vw, 108px);
  color: #fff;
}
.page-light .hdr { position: relative; color: var(--ink); }
.hdr-left { display: flex; align-items: center; gap: clamp(20px, 3.3vw, 64px); }
.logo {
  font-family: "Inter", "Segoe UI", sans-serif; font-weight: 800;
  font-size: clamp(28px, 3.125vw, 60px); line-height: 1; letter-spacing: -0.02em;
  text-decoration: none; color: inherit;
}
.nav { display: flex; gap: clamp(18px, 2.1vw, 40px); }
.nav a, .ftr-links a {
  position: relative; padding: 8px 0; font-weight: 700; font-size: var(--fs-body); text-decoration: none;
}
.nav a::after, .ftr-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav a:hover::after, .ftr-links a:hover::after { transform: scaleX(1); }
.hdr-right { display: flex; align-items: center; gap: clamp(12px, 2.1vw, 40px); }

.seg {
  position: relative; display: inline-flex; padding: 3px;
  border: 2px solid currentColor; border-radius: 999px;
}
.seg button {
  position: relative; z-index: 1; border: 0; background: transparent; color: inherit;
  font: inherit; font-weight: 700; font-size: var(--fs-body); line-height: 1.2;
  padding: 0.42em 1em; border-radius: 999px; cursor: pointer;
  transition: color 0.35s var(--ease-io);
}
.seg button[aria-pressed="true"] { color: var(--navy); }
.page-light .seg button[aria-pressed="true"] { color: #fff; }
.seg-thumb {
  position: absolute; inset: 3px; border-radius: 999px; background: #fff;
  clip-path: inset(0 100% 0 0 round 999px); transition: clip-path 0.45s var(--ease-io);
}
.page-light .seg-thumb { background: var(--navy); }

.lang {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 4px;
  border: 0; background: transparent; color: inherit;
  font: inherit; font-weight: 700; font-size: var(--fs-body); cursor: pointer;
}
.lang svg { width: 0.7em; height: 0.7em; }

.btn-line {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
  padding: 0.42em 1.05em; border: 2px solid currentColor; border-radius: 999px;
  font-weight: 700; font-size: var(--fs-body); text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.hdr .btn-line:hover { background: #fff; color: var(--navy); }
.page-light .hdr .btn-line:hover { background: var(--navy); color: #fff; }

.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 2px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.3s var(--ease-io), opacity 0.2s ease;
}
.burger span { position: relative; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.mnav {
  position: absolute; top: 72px; left: 12px; right: 12px; z-index: 30;
  display: grid; gap: 4px; padding: 10px; border-radius: 22px; background: var(--navy);
  box-shadow: 0 24px 50px -24px rgba(10, 16, 30, 0.7);
  transform-origin: top right; animation: menuIn 0.35s var(--ease-out) both;
}
.mnav[hidden] { display: none; }
.mnav a { padding: 14px 16px; border-radius: 14px; color: #fff; font-weight: 700; text-decoration: none; }
.mnav a:hover { background: rgba(255, 255, 255, 0.08); }

/* ------------------------------------------------------------------ кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.62em 1.25em; border: 0; border-radius: 999px;
  background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: var(--fs-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, background-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(10, 16, 30, 0.6); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: #2a3b5d; }

/* ------------------------------------------------------------------ первый экран */
.hero {
  position: relative; overflow: hidden; display: flex; align-items: flex-start;
  min-height: clamp(540px, 37.5vw, 760px); background: #2a2018; color: #fff;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22, 16, 10, 0.55) 0%, rgba(22, 16, 10, 0.32) 34%, rgba(22, 16, 10, 0) 58%);
}
.hero-in { position: relative; padding: clamp(104px, 7.1vw, 138px) 0 clamp(44px, 4.6vw, 90px) 10vw; max-width: 62vw; }
.hero-h { margin: 0; font-size: var(--fs-display); line-height: 1.2; }
.hero-h .ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-h .ln > span { display: inline-block; }
.hero-sub { margin: clamp(16px, 1.5vw, 30px) 0 0; font-weight: 700; font-size: var(--fs-sub); line-height: 1.3; }
.hero .btn { margin-top: clamp(22px, 2.3vw, 44px); }

/* ------------------------------------------------------------------ полоса преимуществ */
.perks {
  display: flex; justify-content: center; gap: clamp(28px, 10.4vw, 200px);
  margin: 0; padding: clamp(18px, 1.55vw, 30px) clamp(16px, 5vw, 96px);
  list-style: none; background: var(--navy); color: #fff;
}
.perk { display: flex; align-items: center; gap: clamp(12px, 1.15vw, 22px); font-weight: 700; font-size: var(--fs-body); line-height: 1.2; }
.perk svg { flex: 0 0 auto; width: clamp(32px, 2.7vw, 52px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------ цветные полосы */
.band {
  --c: var(--blue);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: clamp(240px, 18.75vw, 360px); margin-left: var(--gutter); margin-right: var(--gutter);
  padding: clamp(40px, 3.6vw, 70px) clamp(20px, 4vw, 80px);
  border-radius: var(--r-band); background: var(--c); color: #fff; text-align: center;
}
.band--mauve { --c: var(--mauve); }
.band--green { --c: var(--green); }
.band--rust { --c: var(--rust); }
.band--sky { --c: var(--sky); }
.band .lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.band .lines path { fill: none; stroke: #fff; stroke-opacity: 0.32; stroke-width: 2; stroke-linecap: round; }
.band h2 { position: relative; margin: 0; font-size: var(--fs-display); line-height: 1.12; text-wrap: balance; }
.band p { position: relative; margin: 0.12em 0 0; font-weight: 700; font-size: var(--fs-sub); line-height: 1.3; text-wrap: balance; }
.band .btn { position: relative; margin-top: clamp(22px, 2.5vw, 46px); }

main > * + * { margin-top: var(--sec); }
main > .perks { margin-top: 0; }
main > .perks + .band { margin-top: var(--gutter); }

/* ------------------------------------------------------------------ задачи */
.tasks {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4.6vw, 88px);
  width: min(72vw, 1384px); margin-left: auto; margin-right: auto; padding: 0; list-style: none;
}
.task {
  --c: var(--blue);
  display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 18px; height: 100%;
  min-height: clamp(124px, 8.9vw, 172px); padding: clamp(16px, 1.45vw, 28px) clamp(18px, 1.6vw, 30px);
  border: var(--line) solid var(--c); border-radius: var(--r-card); background: #fff;
  color: var(--ink); text-decoration: none;
  transition: transform 0.35s var(--ease-out), background-color 0.3s ease;
}
.task:hover { transform: translateY(-5px); background: color-mix(in srgb, var(--c) 7%, #fff); }
.task--green { --c: var(--green); }
.task--rust { --c: var(--rust); }
.task--mauve { --c: var(--mauve); }
.task--flip { flex-direction: row; text-align: right; }
.task-txt { min-width: 0; transition: opacity 0.25s ease, translate 0.25s ease; }
.task.swap .task-txt { opacity: 0; translate: 0 8px; }
.task h3 { margin: 0; font-weight: 700; font-size: var(--fs-title); line-height: 1.2; }
.task p { margin: 0.5em 0 0; font-size: var(--fs-body); line-height: 1.3; max-width: 19em; }
.task--flip p { margin-left: auto; }
.task svg {
  flex: 0 0 auto; width: clamp(56px, 5.6vw, 108px); height: auto; color: var(--ink);
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.5s var(--ease-out);
}
.task:hover svg { transform: scale(1.07) rotate(-5deg); }
.task--flip:hover svg { transform: scale(1.07) rotate(5deg); }

/* ------------------------------------------------------------------ форматы */
.formats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 46px);
  width: min(70.8vw, 1360px); margin-left: auto; margin-right: auto;
}
.fmt {
  --c: var(--blue);
  min-height: clamp(220px, 17.3vw, 332px); padding: clamp(28px, 3vw, 58px) 24px clamp(28px, 3vw, 58px);
  border: var(--line) solid var(--c); border-radius: var(--r-card); background: #fff; text-align: center;
  transition: transform 0.35s var(--ease-out);
}
.fmt:hover { transform: translateY(-5px); }
.fmt--green { --c: var(--green); }
.fmt h3 { margin: 0; font-weight: 700; font-size: var(--fs-title); }
.fmt ul { display: grid; gap: clamp(16px, 2vw, 38px); margin: clamp(22px, 2.5vw, 48px) 0 0; padding: 0; list-style: none; font-weight: 700; font-size: var(--fs-body); }
.fmt li::before { content: "•"; margin-right: 0.35em; }

/* ------------------------------------------------------------------ шаги */
.steps {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.3vw, 44px);
  width: min(90.5vw, 1740px); margin-left: auto; margin-right: auto; padding: 0; list-style: none;
}
.step {
  --c: var(--blue);
  padding: clamp(26px, 2.9vw, 56px) clamp(22px, 2.9vw, 56px) clamp(22px, 2.9vw, 56px);
  border: var(--line) solid var(--c); border-radius: var(--r-card); background: #fff;
}
.step--rust { --c: var(--rust); }
.step--mauve { --c: var(--mauve); }
.step-head { display: flex; align-items: center; gap: clamp(18px, 3.3vw, 64px); padding-left: clamp(0px, 2.1vw, 40px); min-height: clamp(90px, 6.5vw, 124px); }
.step-num { display: block; overflow: hidden; font-size: clamp(56px, 4.9vw, 94px); line-height: 1; }
.step-num > span { display: inline-block; }
.step h3 { margin: 0; font-weight: 700; font-size: var(--fs-title); line-height: 1.18; }
.step p { margin: 0.55em 0 0; font-size: var(--fs-body); line-height: 1.3; }
.step-photo {
  margin: clamp(20px, 2.4vw, 46px) 0 0; overflow: hidden; aspect-ratio: 4 / 3;
  border: var(--line) solid var(--c); border-radius: clamp(16px, 1.6vw, 32px); background: #e9e4dc;
}
.step-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.step:hover .step-photo img { transform: scale(1.05); }

/* ------------------------------------------------------------------ кабинет */
.cab {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(24px, 3vw, 60px);
  width: min(80.4vw, 1544px); margin-left: auto; margin-right: auto;
  padding: clamp(28px, 2.8vw, 54px) clamp(24px, 5.8vw, 112px) clamp(28px, 2.8vw, 54px);
  border: var(--line) solid var(--mauve); border-radius: var(--r-card); background: #fff;
}
.cab h2 { margin: 0; font-weight: 700; font-size: clamp(24px, 2.083vw, 40px); line-height: 1.2; }
.cab-lead { margin: 0.8em 0 0; font-size: var(--fs-sub); line-height: 1.3; max-width: 22em; }
.cab ul { display: grid; gap: clamp(8px, 1.9vw, 36px); margin: 0.3em 0 0; padding: 0; list-style: none; font-family: "Inter", sans-serif; font-weight: 400; font-size: var(--fs-sub); }
.cab li::before { content: "•"; margin-right: 0.35em; }
.plan {
  padding: clamp(16px, 1.4vw, 26px) clamp(12px, 1.2vw, 22px) clamp(14px, 1.3vw, 24px);
  border: var(--line) solid var(--rust); border-radius: clamp(18px, 1.6vw, 32px); background: #fff;
}
.plan-h { margin: 0 0 clamp(8px, 0.9vw, 16px); padding-left: clamp(10px, 1.6vw, 30px); font-weight: 700; font-size: var(--fs-body); }
.plan-rows { position: relative; display: grid; gap: clamp(4px, 0.55vw, 10px); }
.plan-ring {
  position: absolute; left: 0; right: 0; top: 0; z-index: 0; height: 0;
  border: 3px solid var(--rust); border-radius: 999px; pointer-events: none;
  transition: transform 0.55s var(--ease-io), opacity 0.3s ease;
}
.plan-row {
  position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(12px, 1.3vw, 24px);
  width: 100%; min-height: clamp(42px, 2.75vw, 52px); padding: 0 clamp(14px, 1.6vw, 30px);
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  font: inherit; font-size: var(--fs-body); text-align: left; cursor: pointer;
  transition: background-color 0.2s ease;
}
.plan-row:hover { background: rgba(184, 86, 49, 0.06); }
.plan-row svg.ic { flex: 0 0 auto; width: clamp(22px, 1.75vw, 34px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.plan-row .tri { margin-left: auto; width: 0.6em; height: 0.6em; fill: currentColor; transition: transform 0.3s var(--ease-out); }
.plan-row[aria-pressed="true"] .tri { transform: translateX(3px); }

/* ------------------------------------------------------------------ вопросы */
.faq { display: grid; gap: clamp(16px, 2.45vw, 47px); width: min(80.4vw, 1544px); margin-left: auto; margin-right: auto; }
.qa {
  padding: clamp(14px, 1.35vw, 26px) clamp(20px, 3vw, 58px);
  border: var(--line) solid var(--blue); border-radius: clamp(20px, 2vw, 38px); background: #fff;
  transition: transform 0.35s var(--ease-out);
}
.qa:hover { transform: translateX(6px); }
.qa h3 { margin: 0; font-weight: 700; font-size: var(--fs-title); line-height: 1.2; }
.qa p { margin: 0.45em 0 0; font-size: var(--fs-body); line-height: 1.3; }

/* ------------------------------------------------------------------ подвал */
.ftr {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: var(--sec); padding: clamp(20px, 2.4vw, 46px) clamp(16px, 5.6vw, 108px) clamp(40px, 6vw, 120px);
  color: var(--ink);
}
.ftr-links { display: flex; flex-wrap: wrap; gap: 8px clamp(16px, 2.15vw, 42px); }
.ftr .lang { color: var(--ink); }

/* ------------------------------------------------------------------ вход и «С чего начнём?» */
.auth {
  width: min(728px, calc(100% - 32px)); margin: clamp(16px, 2.6vw, 50px) auto clamp(48px, 6vw, 120px);
  padding: clamp(28px, 3vw, 56px) clamp(20px, 1.9vw, 36px) clamp(28px, 3vw, 56px);
  border: var(--line) solid var(--navy); border-radius: var(--r-card); background: #fff;
}
.auth h1 { margin: 0 0 clamp(30px, 3.6vw, 70px); text-align: center; font-size: var(--fs-display); line-height: 1.1; }
.field { display: grid; gap: clamp(10px, 1vw, 18px); }
.field + .field { margin-top: clamp(22px, 2.6vw, 50px); }
.field label { font-weight: 700; font-size: var(--fs-body); }
.field input {
  width: 100%; height: clamp(46px, 2.8vw, 54px); padding: 0 1.1em;
  border: clamp(3px, 0.26vw, 5px) solid var(--navy); border-radius: 999px; background: #fff;
  color: var(--ink); font: inherit; font-size: 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus { outline: none; border-color: var(--sky); box-shadow: 0 6px 18px -12px rgba(63, 91, 164, 0.8); }
.field input[aria-invalid="true"] { border-color: var(--rust); }
.field-err { margin: 0; font-size: 14px; font-weight: 700; color: var(--rust); }
.field-err:empty { display: none; }
.forgot { display: block; width: max-content; margin: 12px 0 0 auto; font-weight: 700; font-size: var(--fs-body); text-decoration: none; }
.forgot:hover, .alt a:hover { text-decoration: underline; text-underline-offset: 4px; }
.auth .btn--navy { width: 100%; margin-top: clamp(28px, 3.3vw, 64px); }
.alt { margin: 18px 0 0; text-align: center; font-weight: 700; font-size: var(--fs-body); }
.alt a { text-decoration: none; }
.auth-note { margin: 18px 0 0; padding: 14px 18px; border-radius: 16px; background: #eef1f7; font-size: 15px; text-align: center; }
.auth-note[hidden] { display: none; }

.roles {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 46px);
  width: min(78.2vw, 1502px); margin: clamp(24px, 2.4vw, 46px) auto clamp(48px, 6vw, 120px);
}
.role {
  --c: var(--rust);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 0.9vw, 16px);
  min-height: clamp(240px, 18.3vw, 352px); padding: clamp(28px, 2.9vw, 56px) 24px;
  border: var(--line) solid var(--c); border-radius: var(--r-card); background: #fff; text-align: center;
  transition: transform 0.35s var(--ease-out);
}
.role:hover { transform: translateY(-5px); }
.role--mauve { --c: var(--mauve); }
.role h2 { margin: 0; font-size: var(--fs-display); line-height: 1.1; }
.role p { margin: 0; font-weight: 700; font-size: var(--fs-sub); line-height: 1.3; max-width: 18em; }
.role .btn { margin-top: clamp(16px, 2vw, 38px); }
.page-light main > .band:first-child { margin-top: clamp(8px, 1vw, 20px); }

/* ------------------------------------------------------------------ движение */
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: none; } }
@keyframes lineUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes heroDrift { from { translate: 0 0; } to { translate: 0 12%; } }

.hdr { animation: fadeDown 0.8s var(--ease-out) both; }
.hero-media img { animation: heroZoom 2.2s var(--ease-out) both; }
.hero-h .ln > span { animation: lineUp 1s var(--ease-out) both; }
.hero-h .ln:nth-child(2) > span { animation-delay: 0.1s; }
.hero-h .ln:nth-child(3) > span { animation-delay: 0.2s; }
.hero-sub { animation: fadeUp 0.9s var(--ease-out) 0.38s both; }
.hero .btn { animation: fadeUp 0.9s var(--ease-out) 0.52s both; }
@supports (animation-timeline: scroll()) {
  .hero-media { animation: heroDrift linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
}

/* JS включает раскрытия по мере прокрутки; без JS всё видно сразу. */
.js [data-reveal="perks"] svg * { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease-io); }
.js [data-reveal="perks"] .perk span { opacity: 0; translate: -10px 0; transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out); }
.js [data-reveal="perks"].is-in svg * { stroke-dashoffset: 0; }
.js [data-reveal="perks"].is-in .perk span { opacity: 1; translate: 0 0; }
.js [data-reveal="perks"] .perk:nth-child(2) *, .js [data-reveal="perks"] .perk:nth-child(2) span { transition-delay: 0.15s; }
.js [data-reveal="perks"] .perk:nth-child(3) *, .js [data-reveal="perks"] .perk:nth-child(3) span { transition-delay: 0.3s; }

/* Полоса раскрывается от центра, как лента; линии прорисовываются следом. */
.js .band[data-reveal] { background: transparent; }
.js .band[data-reveal]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--c);
  clip-path: inset(0 50% 0 50% round var(--r-band)); transition: clip-path 1s var(--ease-io);
}
.js .band[data-reveal].is-in::before { clip-path: inset(0 0 0 0 round var(--r-band)); }
.js .band[data-reveal] h2, .js .band[data-reveal] p, .js .band[data-reveal] .btn {
  opacity: 0; translate: 0 18px; transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out), transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.js .band[data-reveal].is-in h2 { opacity: 1; translate: 0 0; transition-delay: 0.42s, 0.42s, 0s, 0s; }
.js .band[data-reveal].is-in p { opacity: 1; translate: 0 0; transition-delay: 0.52s, 0.52s, 0s, 0s; }
.js .band[data-reveal].is-in .btn { opacity: 1; translate: 0 0; transition-delay: 0.62s, 0.62s, 0s, 0s; }
.js .band[data-reveal] .lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-io); }
.js .band[data-reveal].is-in .lines path { stroke-dashoffset: 0; transition-delay: 0.3s; }
.js .band[data-reveal].is-in .lines path:nth-child(2) { transition-delay: 0.45s; }
.js .band[data-reveal].is-in .lines path:nth-child(3) { transition-delay: 0.55s; }
.js .band[data-reveal].is-in .lines path:nth-child(4) { transition-delay: 0.65s; }
.js .band[data-reveal].is-in .lines path:nth-child(5) { transition-delay: 0.75s; }
.js .band[data-reveal].is-in .lines path:nth-child(6) { transition-delay: 0.85s; }

/* Карточки въезжают по очереди: смещение — через translate, наведение — через transform. */
.js [data-reveal="stagger"] > * {
  opacity: 0; translate: 0 32px;
  transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out), transform 0.35s var(--ease-out), background-color 0.3s ease;
  transition-delay: calc(var(--i, 0) * 0.09s), calc(var(--i, 0) * 0.09s), 0s, 0s;
}
.js [data-reveal="stagger"].is-in > * { opacity: 1; translate: 0 0; }
.js [data-reveal="stagger"].faq > * { translate: -36px 0; }
.js [data-reveal="stagger"].faq.is-in > * { translate: 0 0; }
.js .fmt li { opacity: 0; translate: 0 10px; transition: opacity 0.6s var(--ease-out), translate 0.6s var(--ease-out); }
.js .is-in .fmt li { opacity: 1; translate: 0 0; }
.js .is-in .fmt li:nth-child(1) { transition-delay: 0.35s; }
.js .is-in .fmt li:nth-child(2) { transition-delay: 0.45s; }
.js .is-in .fmt li:nth-child(3) { transition-delay: 0.55s; }

/* Шаги: цифра поднимается из-под маски, фото открывается снизу вверх. */
.js .step-num > span { transform: translateY(105%); transition: transform 0.9s var(--ease-out); }
.js .is-in .step-num > span { transform: none; transition-delay: calc(var(--i, 0) * 0.12s + 0.2s); }
.js .step-photo { clip-path: inset(100% 0 0 0 round clamp(16px, 1.6vw, 32px)); transition: clip-path 1.1s var(--ease-io); }
.js .is-in .step-photo { clip-path: inset(0 0 0 0 round clamp(16px, 1.6vw, 32px)); transition-delay: calc(var(--i, 0) * 0.12s + 0.25s); }
.js .step-photo img { transform: scale(1.14); }
.js .is-in .step-photo img { transform: none; transition: transform 1.4s var(--ease-out) calc(var(--i, 0) * 0.12s + 0.25s); }
.js .is-in .step:hover .step-photo img { transform: scale(1.05); transition-delay: 0s; transition-duration: 0.8s; }

/* Кабинет: строки плана появляются по очереди, рамка выбора потом ходит по ним. */
.js [data-reveal="cab"] { opacity: 0; translate: 0 32px; transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out); }
.js [data-reveal="cab"].is-in { opacity: 1; translate: 0 0; }
.js [data-reveal="cab"] .plan-row { opacity: 0; translate: 16px 0; transition: opacity 0.5s var(--ease-out), translate 0.5s var(--ease-out), background-color 0.2s ease; }
.js [data-reveal="cab"].is-in .plan-row { opacity: 1; translate: 0 0; }
.js [data-reveal="cab"].is-in .plan-row:nth-child(2) { transition-delay: 0.3s; }
.js [data-reveal="cab"].is-in .plan-row:nth-child(3) { transition-delay: 0.38s; }
.js [data-reveal="cab"].is-in .plan-row:nth-child(4) { transition-delay: 0.46s; }
.js [data-reveal="cab"].is-in .plan-row:nth-child(5) { transition-delay: 0.54s; }
.js [data-reveal="cab"] .plan-ring { opacity: 0; }
.js [data-reveal="cab"].is-in .plan-ring { opacity: 1; transition-delay: 0s, 0.7s; }

.js [data-reveal="card"] { opacity: 0; translate: 0 26px; transition: opacity 0.8s var(--ease-out), translate 0.8s var(--ease-out); }
.js [data-reveal="card"].is-in { opacity: 1; translate: 0 0; }

/* ------------------------------------------------------------------ телефон и планшет */
@media (max-width: 1100px) {
  .tasks, .formats { width: auto; margin-left: var(--gutter); margin-right: var(--gutter); }
  .steps { grid-template-columns: 1fr 1fr; width: auto; margin-left: var(--gutter); margin-right: var(--gutter); }
  .steps > :last-child { grid-column: 1 / -1; max-width: calc(50% - 8px); justify-self: center; width: 100%; }
  .cab { grid-template-columns: 1fr; width: auto; margin-left: var(--gutter); margin-right: var(--gutter); }
  .faq { width: auto; margin-left: var(--gutter); margin-right: var(--gutter); }
  .roles { width: auto; margin-left: var(--gutter); margin-right: var(--gutter); }
}
@media (max-width: 900px) {
  .nav, .hdr .lang { display: none; }
  .burger { display: inline-flex; }
  .hero { min-height: 680px; align-items: flex-end; }
  .hero-media img { object-position: 74% 28%; }
  .hero-shade { background: linear-gradient(0deg, rgba(20, 14, 9, 0.88) 0%, rgba(20, 14, 9, 0.62) 42%, rgba(20, 14, 9, 0.12) 72%); }
  .hero-in { max-width: none; padding: 120px 20px 40px; }
  .hero-sub br, .step br { display: none; }
  .perks { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
  .tasks, .formats, .roles { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps > :last-child { max-width: none; }
  .ftr { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hdr .btn-line { display: none; }
  .seg button { padding: 0.4em 0.8em; }
  .step-head { padding-left: 0; }
  .cab ul { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .band[data-reveal]::before { clip-path: none; }
}

@media print {
  .hdr { position: relative; color: var(--ink); }
  .js [data-reveal], .js [data-reveal] *, .js .band[data-reveal]::before { opacity: 1 !important; translate: none !important; clip-path: none !important; stroke-dashoffset: 0 !important; }
}
