/* =========================================================
   Анна — авитолог.
   Светлый фон, чёрные секции, оранжевые акценты, крупная типографика.
   Каждый блок — «сцена» высотой в экран. С включённым JS сцены
   становятся липкими (sticky), а прокрутка управляет анимацией.
   ========================================================= */

:root {
  --bg: #F5F1EA;
  --surface: #FFFFFF;
  --ink: #111111;
  --ink-soft: #4A4642;
  --dark: #121110;
  --dark-2: #1E1C1A;
  --on-dark: #F5F1EA;
  --on-dark-soft: #B9B2A9;
  --orange: #D63A05;        /* фон оранжевых блоков (белый текст 4.7:1) */
  --orange-text: #B32E02;   /* оранжевый текст на светлом фоне */
  --orange-bright: #FF5A1F; /* акцент на чёрном фоне */
  --line: rgba(17, 17, 17, .12);
  --line-dark: rgba(245, 241, 234, .14);

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --content: 1280px;
  --edge: max(var(--gutter), calc((100vw - var(--content)) / 2 + var(--gutter)));

  --header-h: 72px;
  --screen: 100vh;
  --stage-h: calc(var(--screen) - var(--header-h));

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@supports (height: 100svh) { :root { --screen: 100svh; } }
@media (max-width: 899px) { :root { --header-h: 64px; } }

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--orange) var(--bg);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.55;
  overflow-x: clip;
}

::selection { background: var(--orange-bright); color: var(--ink); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--orange); border-radius: 10px; border: 2px solid var(--bg); }

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }

.container { width: 100%; max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }

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

/* ---------- Видимый фокус с клавиатуры ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #fff;
  border-radius: 6px;
}
.cases :focus-visible, .about :focus-visible, .faq-panel :focus-visible,
.footer :focus-visible, .nudge :focus-visible {
  outline-color: var(--orange-bright);
  box-shadow: 0 0 0 6px var(--dark);
}

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

/* ---------- Кнопки: при наведении — контрастная инверсия ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 24px;
  border: 2px solid transparent; border-radius: 999px;
  font: 700 16px/1.2 var(--font-body);
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .12s;
}
.btn:active { transform: scale(.97); }
.btn--lg { min-height: 58px; padding: 16px 30px; font-size: 17px; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }

/* чёрная кнопка стоит на оранжевом → при наведении становится белой */
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #fff; color: var(--ink); }
/* оранжевая кнопка на светлом фоне → при наведении чёрная */
.btn--accent { background: var(--orange-bright); color: var(--ink); }
.btn--accent:hover { background: var(--ink); color: #fff; }
/* прозрачная на оранжевом → при наведении чёрная */
.btn--ghost-light { border-color: #fff; color: #fff; }
.btn--ghost-light:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
/* оранжевая кнопка на чёрном (во всплывающем окне) → белая */
.nudge .btn--accent:hover { background: #fff; color: var(--ink); }

.accent { color: var(--orange-text); }
.cases .accent, .about .accent { color: var(--orange-bright); }

/* ---------- Полоса прогресса прокрутки ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  height: 4px; background: rgba(17,17,17,.08);
  pointer-events: none;
}
.progress__bar {
  position: absolute; inset: 0;
  background: var(--orange-bright);
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}
.progress__mark {
  position: absolute; top: 0; width: 2px; height: 4px; background: var(--ink);
  opacity: .35;
}
.progress__mark.is-passed { opacity: 0; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(245, 241, 234, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.logo__mark {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--orange); color: #fff; font: 800 18px var(--font-display);
}
.logo__text { display: flex; flex-direction: column; font: 700 18px/1.1 var(--font-display); }
.logo__text small { font: 600 12px var(--font-body); color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 24px; }
.nav__list a { font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 2px; }
.nav__list a:hover { color: var(--orange-text); text-decoration: underline; text-decoration-thickness: 2px; }

.burger { display: none; }

@media (max-width: 1023px) {
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 12px; border: 0; border-radius: 50%;
    background: var(--ink); cursor: pointer; transition: background-color .2s;
  }
  .burger:hover { background: var(--orange); }
  .burger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease-out), opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    max-height: calc(var(--screen) - var(--header-h)); overflow-y: auto;
    padding: 16px var(--gutter) 28px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0,0,0,.12);
  }
  .nav[hidden] { display: none; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--line); }
}
@media (min-width: 1024px) { .nav[hidden] { display: flex; } }
@media (max-width: 479px) { .logo__mark { width: 38px; height: 38px; } }

/* =========================================================
   СЦЕНЫ
   ========================================================= */
.scene { position: relative; }
.stage { position: relative; min-height: var(--stage-h); }

.motion .scene[style*="--len"] { height: calc(var(--stage-h) + var(--len) * var(--screen)); }
.motion .scene[style*="--len"] > .stage {
  position: sticky; top: var(--header-h);
  height: var(--stage-h); min-height: 0;
  overflow: hidden;
}

.section__title { font-size: clamp(28px, min(4.2vw, 7vh), 60px); text-wrap: balance; }
.section__lead { margin-top: 14px; max-width: 54ch; font-size: clamp(15px, min(1.3vw, 2.2vh), 19px); color: var(--ink-soft); }

/* Появление блоков при прокрутке (включается только с JS) */
.motion .reveal {
  opacity: 0;
  transform: translateY(48px) scale(.98);
  filter: blur(10px);
  transition: opacity .8s var(--ease-out), transform .9s var(--ease-out), filter .8s var(--ease-out);
}
.motion .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* ---------- 1. Первый экран ---------- */
.hero { --p: 0; }
.hero__stage {
  display: flex; flex-direction: column;
  background: var(--orange); color: #fff; overflow: hidden;
}
.hero__media { overflow: hidden; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(calc(1 + var(--p) * .22));
  will-change: transform;
}
.hero__caption {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 16px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(17,17,17,.6); color: #fff; font-size: 13px; font-weight: 600;
}
.hero__content {
  position: relative; z-index: 1; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: clamp(20px, 5vh, 64px);
}
.hero__title {
  font-size: clamp(28px, min(4.3vw, 8.4vh), 76px);
  font-weight: 800; line-height: 1.02; letter-spacing: -.03em;
}
.hero__title .line {
  display: block; width: max-content; max-width: 100%;
  --dir: -1;
  transform: translateX(calc(var(--p) * var(--dir) * 45vw));
  opacity: calc(1 - var(--p) * 1.3);
}
.hero__title .line:nth-child(even) { --dir: 1; }
.hero__title .line--accent { color: var(--ink); }
.hero__lead {
  max-width: 36ch; margin-top: clamp(14px, 3vh, 28px);
  font-size: clamp(15px, min(1.45vw, 2.5vh), 21px); font-weight: 500;
  opacity: calc(1 - var(--p) * 2);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 3.6vh, 36px);
  opacity: calc(1 - var(--p) * 2.2);
  transform: translateY(calc(var(--p) * 40px));
}

/* Появление первого экрана при загрузке: строки выезжают из-под маски */
.motion .hero__title .line { animation: line-in .9s var(--ease-out) both; }
.motion .hero__title .line:nth-child(2) { animation-delay: .08s; }
.motion .hero__title .line:nth-child(3) { animation-delay: .16s; }
.motion .hero__title .line:nth-child(4) { animation-delay: .24s; }
@keyframes line-in {
  from { clip-path: inset(0 0 100% 0); translate: 0 .5em; }
  to   { clip-path: inset(0 0 -10% 0); translate: 0 0; }
}

/* Лента ниш — едет при прокрутке */
.ticker { position: relative; z-index: 2; flex: none; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.ticker__list {
  display: flex; gap: 28px; width: max-content;
  padding: clamp(12px, 2vh, 20px) var(--edge);
  font: 700 clamp(13px, 1.3vw, 17px)/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .02em;
  white-space: nowrap;
  transform: translateX(calc(var(--p) * -40%));
}
.ticker__list li { display: flex; align-items: center; gap: 28px; }
.ticker__list li:not(:last-child)::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-bright);
}

@media (min-width: 900px) {
  .hero__media { position: absolute; inset: 0; }
  /* фото привязано к верху: на любом экране голова Анны в кадре, обрезаются только ноги */
  .hero__media img { object-position: 85% 0; transform-origin: 78% 8%; }
  .hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(120,28,0,.38) 0%, rgba(120,28,0,.12) 45%, rgba(0,0,0,0) 62%);
  }
  .hero__lead { max-width: min(44%, 36ch); }
  .hero__caption { bottom: calc(clamp(12px, 2vh, 20px) * 2 + 24px); }
}
@media (max-width: 899px) {
  .hero__content { flex: none; order: -1; padding-bottom: 12px; }
  .hero__title { font-size: clamp(26px, min(7.6vw, 5.4vh), 48px); }
  .hero__lead-extra { display: none; }
  .hero__more { display: none; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media { position: relative; flex: 1; min-height: 0; }
  .hero__media img { object-position: 50% 6%; transform-origin: 50% 15%; }
  .hero__media::before {
    content: ""; position: absolute; inset: 0 0 auto 0; height: 14%; z-index: 1;
    background: linear-gradient(var(--orange), rgba(214,58,5,0));
  }
}

/* ---------- 2. Кейсы: смена слайдов ---------- */
.cases__stage {
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(14px, 3.4vh, 36px);
  padding-block: clamp(16px, 4vh, 48px);
  background: var(--dark); color: var(--on-dark);
}
.cases__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cases__counter { flex: none; font: 800 clamp(28px, min(3.4vw, 6vh), 52px)/1 var(--font-display); color: var(--orange-bright); font-variant-numeric: tabular-nums; }
.cases__total { color: var(--on-dark-soft); font-size: .5em; }

.cases__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-inline: var(--edge); }
.case {
  flex: none; width: min(1040px, calc(100vw - 2 * var(--gutter) - 64px));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 48px);
  padding: clamp(22px, 4.4vh, 52px) clamp(22px, 3.4vw, 52px);
  background: var(--dark-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  transform-origin: 50% 50%;
}
.case--accent { background: var(--orange); border-color: var(--orange); color: #fff; }
.case__metric { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.case__num {
  font: 800 clamp(48px, min(8vw, 15vh), 136px)/.95 var(--font-display); letter-spacing: -.04em;
  color: var(--orange-bright); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.case--accent .case__num { color: var(--ink); }
.case__num-label { max-width: 26ch; font-size: clamp(14px, min(1.3vw, 2.2vh), 18px); color: var(--on-dark-soft); }
.case--accent .case__num-label { color: #fff; }
.case__body { display: flex; flex-direction: column; gap: clamp(10px, 2vh, 20px); }
.case__title { font-size: clamp(22px, min(2.4vw, 4.2vh), 36px); }
.case__list { display: grid; gap: clamp(8px, 1.6vh, 16px); }
.case__list dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-bright); }
.case--accent .case__list dt { color: #fff; }
.case__list dd { margin: 2px 0 0; font-size: clamp(14px, min(1.15vw, 2vh), 17px); }
.case__meta { margin-top: auto; font-size: 13px; color: var(--on-dark-soft); }
.case--accent .case__meta { color: #fff; }

.cases__progress { height: 3px; background: var(--line-dark); border-radius: 3px; overflow: hidden; }
.cases__progress span { display: block; height: 100%; background: var(--orange-bright); transform-origin: 0 50%; transform: scaleX(var(--cases-progress, 0)); }

/* без JS / с ограничением анимации — обычная листалка пальцем */
html:not(.motion) .cases__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
html:not(.motion) .cases__viewport::-webkit-scrollbar { display: none; }
html:not(.motion) .case { scroll-snap-align: center; }
html:not(.motion) .cases__foot, html:not(.motion) .cases__counter { display: none; }

@media (max-width: 899px) {
  .case { width: calc(100vw - 2 * var(--gutter)); grid-template-columns: 1fr; gap: 14px; padding: 20px; }
  .case__metric { gap: 4px; }
  .case__num { font-size: clamp(44px, min(15vw, 8.6vh), 80px); }
}

/* ---------- 3. Услуги: стопка раздвигается ---------- */
.services__stage {
  display: flex; flex-direction: column; justify-content: center;
  gap: clamp(16px, 3.4vh, 36px);
  padding-block: clamp(16px, 4vh, 48px);
}
.services__wrap { flex: 1; min-height: 0; max-height: 600px; }
.services {
  height: 100%;
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.service {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  padding: clamp(20px, 3.4vh, 36px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(17,17,17,.06);
}
.service--accent { grid-column: span 2; background: var(--orange); border-color: var(--orange); color: #fff; }
.service__title { font-size: clamp(20px, min(2vw, 3.6vh), 30px); text-wrap: balance; }
.service--accent .service__title { font-size: clamp(26px, min(3.4vw, 6vh), 52px); }
.service p { color: var(--ink-soft); font-size: clamp(14px, min(1.15vw, 2vh), 17px); }
.service--accent p { color: #fff; max-width: 52ch; font-size: clamp(15px, min(1.3vw, 2.3vh), 19px); }
.service--accent .btn { align-self: flex-start; }
.service mark { background: var(--ink); color: #fff; padding: 0 .25em; border-radius: .2em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

@media (max-width: 899px) {
  .services { display: flex; flex-direction: column; height: auto; }
  .service--accent .service__title { font-size: clamp(24px, 7vw, 34px); }
  .service__title { font-size: clamp(22px, 6.4vw, 30px); }
  .services__wrap { max-height: none; }

  /* на телефоне с анимацией: карточки лежат колодой и наезжают друг на друга */
  .motion .services__wrap { position: relative; }
  .motion .services { position: absolute; inset: 0 var(--gutter); }
  .motion .service { position: absolute; left: 0; right: 0; top: calc(var(--i) * 10px); bottom: 0; box-shadow: 0 -12px 30px rgba(17,17,17,.10); }
  .service:nth-child(1) { --i: 0; }
  .service:nth-child(2) { --i: 1; }
  .service:nth-child(3) { --i: 2; }
  .service:nth-child(4) { --i: 3; }
  .service:nth-child(5) { --i: 4; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .services__head .section__lead { display: none; }
}

/* ---------- 4. Обо мне: окно с фото увеличивается ---------- */
.about { --e: 1; --t: 1; }
.about__stage {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(16px, 4vh, 48px) var(--edge);
  background: var(--dark); color: var(--on-dark);
}
.about__photo {
  position: relative; height: 100%; max-height: calc(var(--stage-h) - 2 * clamp(16px, 4vh, 48px));
  border-radius: var(--radius); overflow: hidden; background: var(--orange);
  clip-path: inset(calc((1 - var(--e)) * 30%) calc((1 - var(--e)) * 24%) calc((1 - var(--e)) * 34%) calc((1 - var(--e)) * 24%) round var(--radius));
}
.about__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  transform: scale(calc(1.3 - var(--e) * .3)); transform-origin: 50% 25%;
}
.about__photo figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(17,17,17,.7); color: #fff; font-size: 13px; font-weight: 600;
  opacity: var(--t);
}
.about__text > * {
  --k: clamp(0, (var(--t) - var(--d, 0)) * 3, 1);
  opacity: var(--k);
  transform: translateY(calc((1 - var(--k)) * 32px));
}
.about__lead { --d: .12; }
.facts { --d: .24; }
.about__title { font-size: clamp(26px, min(4vw, 6.8vh), 60px); text-wrap: balance; }
.about__lead { margin-top: clamp(12px, 2.4vh, 24px); max-width: 52ch; color: var(--on-dark-soft); font-size: clamp(15px, min(1.3vw, 2.3vh), 19px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: clamp(16px, 3.4vh, 36px); }
.fact {
  display: flex; flex-direction: column; gap: 4px;
  padding: clamp(12px, 2vh, 20px); border-radius: var(--radius-sm); border: 1px solid var(--line-dark);
}
.fact__big { font: 800 clamp(17px, min(2vw, 3.6vh), 30px)/1.1 var(--font-display); color: var(--orange-bright); font-variant-numeric: tabular-nums; }
.fact > span { color: var(--on-dark-soft); font-size: clamp(13px, 1vw, 15px); line-height: 1.35; }

@media (max-width: 899px) {
  .about__stage { display: flex; flex-direction: column; justify-content: flex-end; padding: 0; }
  .about__photo { position: absolute; inset: 0; max-height: none; border-radius: 0;
    clip-path: inset(calc((1 - var(--e)) * 14%) calc((1 - var(--e)) * 18%) calc((1 - var(--e)) * 50%) calc((1 - var(--e)) * 18%) round calc((1 - var(--e)) * 24px)); }
  .about__photo img { object-position: 50% 0; }
  .about__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(18,17,16,0) 22%, rgba(18,17,16,.82) 52%, var(--dark) 72%); opacity: var(--t); }
  .about__photo figcaption { top: 16px; bottom: auto; }
  .about__text { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(16px, 3vh, 28px); }
  .about__title { font-size: clamp(24px, min(7vw, 4.6vh), 36px); }
  .fact { padding: 10px 12px; }
}
@media (max-width: 899px) and (max-height: 700px) { .about__lead { display: none; } }

/* ---------- 5. Этапы: линия зажигает шаги ---------- */
.steps-scene { --e: 1; --fill: 1; }
.steps__stage { display: flex; align-items: center; padding-block: clamp(16px, 4vh, 48px); }
.steps__inner { display: flex; flex-direction: column; gap: clamp(24px, 6vh, 64px); }
.steps {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  padding-top: 28px;
}
.steps::before, .steps::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px;
}
.steps::before { background: var(--line); }
.steps::after { background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--fill)); }
.step {
  display: flex; flex-direction: column; gap: 10px;
  transform: translateX(calc((1.5 - var(--i)) * 70% * (1 - var(--e))));
  opacity: .32;
  transition: opacity .5s var(--ease-out);
}
.step:nth-child(1) { --i: 0; } .step:nth-child(2) { --i: 1; } .step:nth-child(3) { --i: 2; } .step:nth-child(4) { --i: 3; }
.step__num {
  font: 800 clamp(44px, min(5.4vw, 10vh), 88px)/1 var(--font-display);
  color: transparent; -webkit-text-stroke: 2px var(--ink);
  transition: color .5s var(--ease-out), -webkit-text-stroke-color .5s;
}
.step__title { font-size: clamp(19px, min(1.8vw, 3.4vh), 26px); margin-bottom: 6px; }
.step > div { opacity: clamp(0, (var(--e) - .6) * 2.5, 1); }
.step p { color: var(--ink-soft); font-size: clamp(14px, min(1.15vw, 2vh), 17px); }
.step.is-on, html:not(.motion) .step { opacity: 1; }
.step.is-on .step__num, html:not(.motion) .step__num { color: var(--orange); -webkit-text-stroke-color: var(--orange); }

@media (max-width: 899px) {
  .steps { grid-template-columns: 1fr; gap: clamp(14px, 3vh, 28px); padding: 0 0 0 0; }
  .steps::before, .steps::after { left: 25px; right: auto; top: 8px; bottom: 8px; width: 3px; height: auto; }
  .steps::after { transform-origin: 50% 0; transform: scaleY(var(--fill)); }
  .step { position: relative; z-index: 1; flex-direction: row; gap: 16px; transform: translateY(calc((1.5 - var(--i)) * 60% * (1 - var(--e)))); }
  .step__num { flex: none; width: 54px; padding-block: 2px; background: var(--bg); font-size: 32px; text-align: center; -webkit-text-stroke-width: 1.5px; }
  .step__title { margin-bottom: 2px; }
}

/* ---------- 6. FAQ ---------- */
.panel { min-height: var(--stage-h); display: flex; align-items: center; padding-block: clamp(24px, 6vh, 64px); }
.faq-panel { background: var(--dark); color: var(--on-dark); }
.faq__inner { display: grid; gap: 28px; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
.faq { border-top: 1px solid var(--line-dark); }
.faq__item { border-bottom: 1px solid var(--line-dark); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: clamp(14px, 2.6vh, 24px) 0; cursor: pointer; list-style: none;
  font: 700 clamp(16px, 1.5vw, 21px)/1.35 var(--font-body);
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat,
    var(--orange-bright);
  transition: transform .3s var(--ease-out), background-color .2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--orange-bright); }
.faq__item p { padding: 0 56px 22px 0; color: var(--on-dark-soft); max-width: 66ch; }
.motion .faq__item[open] p { animation: faq-open .45s var(--ease-out); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-8px); } }
@media (max-width: 899px) { .faq__inner { grid-template-columns: 1fr; gap: 16px; } .faq__item p { padding-right: 0; } .faq__item summary { padding-block: 12px; } .faq__item summary::after { width: 36px; height: 36px; } }

/* ---------- 7. Контакты: оранжевый блок раскрывается ---------- */
.contacts {
  --e: 1;
  min-height: var(--stage-h);
  display: flex; align-items: center;
  padding-block: clamp(28px, 7vh, 80px);
  background: var(--orange); color: #fff;
  clip-path: inset(calc((1 - var(--e)) * 10%) calc((1 - var(--e)) * 12%) round calc((1 - var(--e)) * 48px));
}
.contacts__inner > * { transform: translateY(calc((1 - var(--e)) * 60px)); }
.contacts__title { max-width: 15ch; font-size: clamp(30px, min(5.4vw, 9vh), 84px); font-weight: 800; text-wrap: balance; }
.contacts__lead { margin-top: 16px; max-width: 46ch; font-size: clamp(16px, 1.4vw, 21px); font-weight: 500; }
.contacts__list { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: clamp(24px, 5vh, 40px) 0 clamp(20px, 4vh, 32px); }
@media (max-width: 767px) { .contacts__list { grid-template-columns: 1fr; } }
.contact-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: clamp(18px, 3vh, 28px) 72px clamp(18px, 3vh, 28px) 24px; border-radius: var(--radius);
  background: var(--ink); color: #fff; text-decoration: none;
  transition: background-color .2s, color .2s;
}
.contact-card:hover { background: #fff; color: var(--ink); }
.contact-card__label { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange-bright); }
.contact-card:hover .contact-card__label { color: var(--orange-text); }
.contact-card__value { font: 700 clamp(16px, 1.6vw, 22px)/1.25 var(--font-display); overflow-wrap: anywhere; }
.contact-card__arrow {
  position: absolute; right: 24px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-card:hover .contact-card__arrow path { transform: translate(2px, -2px); }
.contact-card__arrow path { transition: transform .2s var(--ease-out); }
.contacts :focus-visible { box-shadow: 0 0 0 6px #fff; }

/* ---------- Подвал ---------- */
.footer { background: var(--ink); color: var(--on-dark-soft); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px; }
.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--orange-bright); }

/* ---------- Всплывающее сообщение (через 5 секунд бездействия) ---------- */
.nudge {
  position: fixed; z-index: 70; right: 24px; bottom: 24px;
  width: min(380px, calc(100vw - 24px));
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px;
  padding: 18px 18px 18px 18px;
  background: var(--dark); color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.2);
}
.nudge[hidden] { display: none; }
.nudge.is-visible { animation: nudge-in .55s var(--ease-out) both; }
.nudge.is-leaving { animation: nudge-out .25s ease-in both; }
@keyframes nudge-in { from { opacity: 0; transform: translateY(28px) scale(.94); } }
@keyframes nudge-out { to { opacity: 0; transform: translateY(16px) scale(.97); } }
.nudge__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--orange); }
.nudge__title { font: 700 15px/1.2 var(--font-display); padding-right: 36px; }
.nudge__text { margin-top: 6px; font-size: 15px; color: var(--on-dark-soft); }
.nudge__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; }
.nudge__link { font-size: 14px; font-weight: 600; color: var(--on-dark); }
.nudge__link:hover { color: var(--orange-bright); }
.nudge__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--on-dark); cursor: pointer; transition: background-color .2s;
}
.nudge__close:hover { background: rgba(255,255,255,.12); }
.nudge__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 599px) { .nudge { right: 12px; left: 12px; bottom: 12px; width: auto; } }

/* ---------- Ограничение анимации ---------- */
@media (prefers-reduced-motion: reduce) {
  .nudge.is-visible, .nudge.is-leaving { animation-name: fade; }
  @keyframes fade { from { opacity: 0; } }
}
