/* ==========================================================================
   IMINERA Avatar, 0.1 «Лаборатория Iminera»: digital-avatar/page.css
   Страница «Цифровой аватар». Общие токены, кнопки, шапка, форма, шаги, FAQ и футер
   лежат в ../styles.css, View Transitions, reveal и сканер hero в ../effects.css.

   Содержание:
    1 страница, иллюстрации (общие классы SVG)    2 hero
    3 проблема                                    4 решение (Card Hover)
    5 как это работает                            6 преимущества
    7 для кого (Card Hover)                       8 цена и форматы
    9 интеграция с оцифровкой                    10 FAQ и форма
   11 reduced motion
   Mobile-first: база для 360 px. Движение только под prefers-reduced-motion: no-preference,
   hover только под (hover: hover) and (pointer: fine).
   ========================================================================== */

/* ---------- 1. Страница и иллюстрации ---------- */
/* H1 получает то же имя, что заголовок карточки на хабе: заголовок «перетекает» при переходе */
.page-avatar h1 { view-transition-name: t-avatar; }

/* Иллюстрация hero принимает «разворот» иллюстрации карточки хаба: имя то же, что у хаба.
   Содержимое пары разное (иконка и большой каркас), поэтому это не морф фигуры, а разворот рамки
   с кросс-фейдом. Старый кадр вписывается целиком (contain), новый заполняет рамку (cover). */
.page-avatar .av-fig { view-transition-name: t-avatar-art; }
::view-transition-group(t-avatar-art) {
  animation-duration: .45s;
  animation-timing-function: cubic-bezier(.23, 1, .32, 1);
}
::view-transition-old(t-avatar-art),
::view-transition-new(t-avatar-art) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  animation-duration: .45s;
  animation-timing-function: ease;
}
::view-transition-old(t-avatar-art) { object-fit: contain; }

.av-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
/* линии каркаса всегда тонкие, сколько бы ни был увеличен SVG */
.av-defs * { vector-effect: non-scaling-stroke; }

/* Слои каркаса: <use class="u-…"> наследует stroke/fill, поэтому стиль задаём на самом <use> */
.u-body,
.u-mesh,
.u-grade,
.u-piece-line,
.u-fine {
  fill: none;
  stroke: var(--text);
  stroke-linecap: round;
  stroke-linejoin: round;
}
.u-body { stroke-width: 1.4px; stroke-opacity: .92; }
.u-mesh { stroke-width: 1px; stroke-opacity: .34; }
.u-grade { stroke-width: 1px; stroke-opacity: .5; stroke-dasharray: 5 5; }
.u-nodes { fill: var(--accent); stroke: none; }
.u-piece,
.u-piece use { fill: none; stroke: var(--ink); stroke-width: 1.3px; stroke-linejoin: round; }
.u-piece-line { stroke: var(--ink); stroke-width: 1.4px; stroke-opacity: 1; }
.u-fine { stroke: var(--ink); stroke-width: 1px; stroke-opacity: .55; }
.av-arrow {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.av-arrow--dash { stroke-dasharray: 4 5; }

/* фон «чертёжный стол»: тёплое пятно и мелкая сетка */
.av-fig,
.sol-card__art {
  background:
    radial-gradient(ellipse 58% 48% at 50% 46%, rgba(160, 138, 114, .26), transparent 72%),
    linear-gradient(rgba(244, 238, 228, .045) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgba(244, 238, 228, .045) 1px, transparent 1px) 0 0 / 32px 100%,
    var(--bg-2);
}

/* ---------- 2. Hero ---------- */
.av-hero {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow-x: clip;
}
.av-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.av-hero__copy { max-width: 42rem; }
.av-hero__title {
  margin-top: 20px;
  font-size: clamp(2rem, 8.6vw, 3.25rem);
  line-height: 1.06;
}
.av-hero__lead {
  max-width: 34rem;
  margin-top: 24px;
  font-size: 1.0625rem;
  color: var(--text-soft);
}
.av-bullets {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding-top: 24px;
  list-style: none;
  border-top: 1px solid var(--line-d);
}
.av-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--text);
}
.av-bullets__icon {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
}
.av-bullets__icon circle { stroke-opacity: .55; }
.av-bullets__icon path { stroke-linecap: round; stroke-linejoin: round; }
.av-hero__cta { margin-top: 32px; }

/* Фигура. --reveal (0..1) ведёт проявление свечения (effects.css), --scan ведёт маску каркаса.
   Без JS и при reduced-motion оба равны 1: всё видно сразу. */
@property --scan {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@keyframes av-scan {
  from { --scan: 0; }
  to { --scan: 1; }
}
.av-fig {
  --reveal: 1;
  position: relative;
  isolation: isolate;
  overflow: clip;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  border: 1px solid var(--line-d);
}
.av-fig::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 46% 40% at 50% 44%, rgba(233, 30, 99, .12), transparent 70%);
  opacity: calc(.2 + .8 * var(--reveal));
}
.av-fig__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--scan) * 100%), transparent calc(var(--scan) * 100% + 2%));
  mask-image: linear-gradient(to bottom, #000 calc(var(--scan) * 100%), transparent calc(var(--scan) * 100% + 2%));
}
.av-floor {
  fill: none;
  stroke: var(--text-soft);
  stroke-width: 1px;
  stroke-opacity: .4;
  stroke-dasharray: 1 5;
  vector-effect: non-scaling-stroke;
}

/* мерные элементы: классы mark__* и mark-label получают проявление из effects.css */
.mark__frame,
.mark__ruler {
  fill: none;
  stroke: var(--text-soft);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.mark__frame { stroke-opacity: .55; }
.mark__ruler { stroke-opacity: .5; }
/* деления шкалы: толстый пунктир по вертикальной линии даёт короткие горизонтальные штрихи */
.av-ticks { stroke-width: 10px; stroke-dasharray: 1 19; stroke-opacity: .4; }
.av-ticks--major { stroke-width: 18px; stroke-dasharray: 1 99; stroke-opacity: .7; }
.mark { pointer-events: none; }
.mark--bust { --mark-at: 1.45s; }
.mark--waist { --mark-at: 1.75s; }
.mark--hips { --mark-at: 2.05s; }
.mark__girth,
.mark__lead,
.mark__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.mark__girth { stroke-opacity: .85; stroke-dasharray: 3 4; }
.mark__lead { stroke-opacity: .9; }
.mark__ring { stroke-opacity: .5; }
.mark__dot { fill: var(--accent); }

.av-fig__labels {
  position: absolute;
  inset: 0;
  margin: 0;
  list-style: none;
  pointer-events: none;
}
.mark-label {
  position: absolute;
  right: 2%;
  font-size: clamp(9px, 2.6vw, 12px);
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
  text-align: right;
}
.mark-label strong { font-weight: 500; color: var(--text); }
/* подпись над линией выноски: bottom = (100% - y / 640) + 6px */
.mark-label--bust { --mark-at: 1.45s; bottom: calc(59.4% + 6px); }
.mark-label--waist { --mark-at: 1.75s; bottom: calc(42.2% + 6px); }
.mark-label--hips { --mark-at: 2.05s; bottom: calc(22.7% + 6px); }

.av-fig__tag {
  position: absolute;
  top: 5.5%;
  left: 12%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 28%;
  font-size: clamp(10px, 2.8vw, 11px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.av-fig__tag::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: .35em;
  background: var(--accent);
  border-radius: 50%;
}

/* линия «сканера» включается только в effects.css */
.hero__scan { display: none; }

/* маска каркаса едет за сканером: те же 2.4 с, задержка и кривая, что у линии в effects.css */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal-ready .av-fig { --scan: 0; }
  .js-reveal-ready .av-fig.is-in .av-fig__svg {
    animation: av-scan 2.4s var(--ease-in-out) .55s both;
  }

  /* Приход с хаба через View Transitions (класс vt-arrive ставит <head>, см. index.html).
     Каркас, сетка, узлы, рамка и линейка стоят в итоговом виде уже в момент снимка перехода:
     иначе «новый» кадр иллюстрации был бы пустой рамкой. Мерки, подписи и линия сканера
     ждут конца перехода (vt-wait), затем идут с короткими задержками. */
  html.vt-arrive.js-reveal-ready .av-fig { --scan: 1; --reveal: 1; }
  html.vt-arrive.js-reveal-ready .av-fig.is-in { animation: none; }
  html.vt-arrive.js-reveal-ready .av-fig.is-in .av-fig__svg { animation: none; }
  html.vt-arrive.js-reveal-ready .av-fig .mark__frame,
  html.vt-arrive.js-reveal-ready .av-fig .mark__ruler { opacity: 1; animation: none; }
  html.vt-arrive .mark--bust,
  html.vt-arrive .mark-label--bust { --mark-at: .25s; }
  html.vt-arrive .mark--waist,
  html.vt-arrive .mark-label--waist { --mark-at: .5s; }
  html.vt-arrive .mark--hips,
  html.vt-arrive .mark-label--hips { --mark-at: .75s; }
  html.vt-arrive.vt-wait.js-reveal-ready .av-fig.is-in .mark,
  html.vt-arrive.vt-wait.js-reveal-ready .av-fig.is-in .mark-label,
  html.vt-arrive.vt-wait.js-reveal-ready .av-fig.is-in .hero__scan { animation-play-state: paused; }
}

@media (min-width: 640px) {
  .av-hero__title { font-size: clamp(2.5rem, 6vw, 3.5rem); }
}
@media (min-width: 1024px) {
  .av-hero__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2rem, 5vw, 5rem);
  }
  .av-hero__title { font-size: clamp(2.75rem, 4vw, 3.75rem); }
  .av-fig {
    max-width: 480px;
    margin-inline: auto 0;
  }
}

/* ---------- 3. Проблема (кремовый) ---------- */
.av-problem__text {
  display: grid;
  gap: 20px;
  max-width: 38rem;
  padding-left: clamp(16px, 3vw, 28px);
  border-left: 1px solid var(--s-line-strong);
}
.av-problem__text p { color: var(--s-soft); }
.av-problem__lead {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  line-height: 1.22;
  color: var(--s-fg);
}
.av-problem__answer {
  position: relative;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--s-fg);
}
.av-problem__answer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: calc(-1 * clamp(16px, 3vw, 28px) - 1px);
  width: 2px;
  height: 100%;
  background: var(--accent-dark);
}
.av-problem__art {
  width: 100%;
  max-width: 34rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.av-problem__art svg { width: 100%; height: auto; }

/* ---------- 4. Решение (тёмный, Card Hover) ----------
   Статика: карточка = схема сверху и панель с названием, двумя строками и ценой.
   Hover: кремовая панель выезжает снизу и перекрашивает блок с текстом, по схеме проходит
   линия сканера, за курсором светится пятно. Содержимое видно в обоих состояниях. */
.sol-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  list-style: none;
}
.sol-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: clip;
  background: var(--bg-2);
  border: 1px solid var(--s-line);
}
.sol-card--personal::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  z-index: 2;
  width: 56px;
  height: 2px;
  background: var(--accent);
}
.sol-card__art {
  position: relative;
  height: clamp(250px, 66vw, 380px);
  overflow: hidden;
  border-bottom: 1px solid var(--s-line);
}
.sol-card__art svg {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 14px;
}
.sol-dim,
.sol-ruler,
.sol-lead,
.sol-tape,
.sol-tape-ticks,
.sol-rings circle {
  fill: none;
  vector-effect: non-scaling-stroke;
}
.sol-dim { stroke: var(--text-soft); stroke-width: 1px; stroke-opacity: .7; }
.sol-ruler { stroke: var(--text-soft); stroke-width: 9px; stroke-opacity: .5; stroke-dasharray: 1 11; }
.sol-lead { stroke: var(--accent); stroke-width: 1px; stroke-opacity: .85; }
.sol-rings circle { stroke: var(--accent); stroke-width: 1px; stroke-opacity: .7; }
.sol-tape { stroke: var(--accent); stroke-width: 1.2px; }
.sol-tape-ticks { stroke: var(--accent); stroke-width: 7px; stroke-dasharray: 1 5; stroke-opacity: .7; }

.sol-card__info {
  --i-fg: var(--text);
  --i-soft: var(--text-soft);
  position: relative;
  isolation: isolate;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 3vw, 32px);
  color: var(--i-fg);
}
/* кремовая панель: в статике спрятана под нижним краем карточки (её обрезает overflow: clip) */
.sol-card__info::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--cream);
  transform: translateY(101%);
}
.sol-card__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-style: italic;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--i-soft);
}
.sol-card__title { font-size: clamp(1.75rem, 3vw, 2.375rem); line-height: 1.1; }
.sol-card__list {
  margin: 0;
  list-style: none;
  color: var(--i-soft);
  border-bottom: 1px solid var(--s-line);
}
.sol-card__list li {
  padding-block: 11px;
  border-top: 1px solid var(--s-line);
}
.sol-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: auto;
  padding-top: 8px;
}
.sol-card__price-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--i-soft);
}
.sol-card__price-value {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  font-variant-numeric: lining-nums;
  line-height: 1;
  white-space: nowrap;
}

@keyframes art-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js-ready .sol-card {
    transition: border-color .3s var(--ease-out);
  }
  .js-ready .sol-card:hover { border-color: var(--s-line-strong); }

  .js-ready .sol-card__info::before { transition: transform .4s var(--ease-out); }
  .js-ready .sol-card__info {
    transition: color .3s var(--ease-out);
  }
  .js-ready .sol-card__num,
  .js-ready .sol-card__list,
  .js-ready .sol-card__price-label { transition: color .3s var(--ease-out); }
  .js-ready .sol-card__list,
  .js-ready .sol-card__list li { transition: color .3s var(--ease-out), border-color .3s var(--ease-out); }

  .js-ready .sol-card:hover .sol-card__info {
    --i-fg: var(--ink);
    --i-soft: var(--ink-soft);
  }
  .js-ready .sol-card:hover .sol-card__info::before { transform: none; }
  .js-ready .sol-card:hover .sol-card__list,
  .js-ready .sol-card:hover .sol-card__list li { border-color: var(--line-l); }
  .js-ready .sol-card--personal:hover .sol-card__price-value { color: var(--accent-dark); }

  /* пятно света за курсором (позицию задаёт page.js через --mx и --my) */
  .js-ready .sol-card__art::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 40%), rgba(233, 30, 99, .18), transparent 62%);
    opacity: 0;
    transition: opacity .35s var(--ease-out);
    pointer-events: none;
  }
  .js-ready .sol-card:hover .sol-card__art::before { opacity: 1; }

  /* линия сканера проходит по схеме один раз при наведении */
  .js-ready .sol-card__art::after {
    content: "";
    position: absolute;
    inset: 0;
    border-bottom: 1px solid var(--accent);
    background: linear-gradient(to top, rgba(233, 30, 99, .16), transparent 34%);
    opacity: 0;
    pointer-events: none;
  }
  .js-ready .sol-card:hover .sol-card__art::after {
    animation: art-scan .9s var(--ease-in-out) 1 both;
  }
}

@media (min-width: 768px) {
  .sol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

/* ---------- 5. Как это работает (кремовый) ---------- */
.av-how__head { min-width: 0; }
.timing {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 20px;
  border-top: 1px solid var(--s-line);
}
.timing__label {
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--s-soft);
}
.timing__num {
  font-family: var(--font-head);
  font-size: clamp(4rem, 9vw, 6.5rem);
  font-weight: 300;
  font-variant-numeric: lining-nums;
  line-height: .95;
  letter-spacing: -.02em;
}
.timing__cap {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: italic;
}
.av-steps { min-width: 0; }
/* Иконка шага: на 360 px лежит над текстом, с 640 px стоит справа от него.
   Порядок в DOM: номер, текст, иконка (иконка не мешает чтению). */
.av-steps .step {
  grid-template-columns: 3.25rem minmax(0, 1fr);
  grid-template-areas: "num icon" "num body";
}
.av-steps .step__num { grid-area: num; }
.av-steps .step__body { grid-area: body; }
.step__icon {
  grid-area: icon;
  box-sizing: border-box;
  justify-self: start;
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  padding: 8px;
  overflow: visible;
  fill: none;
  stroke: var(--s-fg);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--s-card);
  border: 1px solid var(--s-line);
}
@media (min-width: 640px) {
  .av-steps .step {
    grid-template-columns: 3.25rem minmax(0, 1fr) 64px;
    grid-template-areas: "num body icon";
    column-gap: 16px;
  }
  .step__icon {
    align-self: start;
    justify-self: end;
    width: 64px;
    height: 64px;
    margin-bottom: 0;
  }
}

/* Слои иконки. Акцент на кремовом фоне: --accent-dark (контраст графики выше 3:1). */
.si .a { stroke: var(--accent-dark); }
.si .f { fill: var(--accent-dark); stroke: none; }
.si .n circle { fill: var(--accent-dark); stroke: none; }
.si__chip { fill: var(--s-card); }
.si .scan { transform: translateY(30px); }

@keyframes si-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes si-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes si-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes si-drop { from { opacity: 0; transform: translateY(-9px); } to { opacity: 1; transform: none; } }
/* луч сканера: вниз по силуэту и обратно к уровню талии */
@keyframes si-scan {
  0% { opacity: 0; transform: translateY(0); }
  14% { opacity: 1; }
  62% { opacity: 1; transform: translateY(48px); }
  100% { opacity: 1; transform: translateY(30px); }
}

/* Иконки играют, когда шаг входит в экран (page.js ставит .is-icons на список и .is-play на шаг);
   повтор при hover. Без JS и при reduced-motion все линии нарисованы сразу. */
@media (prefers-reduced-motion: no-preference) {
  .av-steps.is-icons .step:not(.is-play) .si .d { stroke-dasharray: 1 2; stroke-dashoffset: 1; }
  .av-steps.is-icons .step:not(.is-play) .si .f,
  .av-steps.is-icons .step:not(.is-play) .si .n circle,
  .av-steps.is-icons .step:not(.is-play) .si .scan,
  .av-steps.is-icons .step:not(.is-play) .si .drop { opacity: 0; }

  .av-steps .step.is-play .si .d {
    stroke-dasharray: 1 2;
    animation: si-draw .7s var(--ease-out) var(--d, 0s) both;
  }
  .av-steps .step.is-play .si .f { animation: si-fade .6s ease-out var(--d, 0s) both; }
  .av-steps .step.is-play .si .n circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: si-pop .4s var(--ease-out) var(--d, 0s) both;
  }
  .av-steps .step.is-play .si .scan { animation: si-scan 1.6s var(--ease-in-out) 1s both; }
  .av-steps .step.is-play .si .drop { animation: si-drop .55s var(--ease-out) var(--d, 0s) both; }
}
@media (min-width: 1024px) {
  .av-how__head { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}

/* линия-прогресс: поверх тонкой линии шага заливается акцентом по мере прокрутки */
.step::after {
  content: "";
  display: none;
  position: absolute;
  top: 48px;
  bottom: 8px;
  left: 20px;
  width: 1px;
  background: var(--accent-dark);
  transform: scaleY(0);
  transform-origin: top;
}
.step:last-child::after { display: none; }
@keyframes step-line {
  to { transform: scaleY(1); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .step:not(:last-child)::after {
      display: block;
      animation: step-line linear both;
      animation-timeline: view();
      animation-range: entry 70% cover 50%;
    }
  }
  /* запасной вариант без scroll-driven animations: page.js ставит .is-lit при входе шага в экран */
  @supports not (animation-timeline: view()) {
    .js-ready .step:not(:last-child)::after {
      display: block;
      transition: transform .8s var(--ease-out);
    }
    .js-ready .step.is-lit:not(:last-child)::after { transform: scaleY(1); }
  }
}

/* ---------- 6. Преимущества (тёмный) ----------
   Не карточки, а строки под тонкой линией: номер, заголовок. Линия при наведении заливается акцентом. */
.adv-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 clamp(24px, 4vw, 56px);
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  list-style: none;
}
.adv-list__item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: baseline;
  align-content: start;
  gap: 0 8px;
  padding-block: 28px 32px;
  border-top: 1px solid var(--s-line);
}
.adv-list__item::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.adv-list__num {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-style: italic;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--s-soft);
}
.adv-list__title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
}
@media (min-width: 768px) {
  .adv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .adv-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adv-list__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px 0;
    padding-block: 28px 40px;
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js-ready .adv-list__item::before { transition: transform .5s var(--ease-out); }
  .js-ready .adv-list__item:hover::before { transform: scaleX(1); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  .adv-list__item:hover::before { transform: scaleX(1); }
}

/* ---------- 7. Для кого (кремовый, Card Hover) ----------
   Статика: номер и название сверху, тёмная полоса со значком снизу.
   Hover: верхняя панель уезжает вверх, снизу выезжает тёмная панель со значком и названием. */
.aud-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  list-style: none;
}
.aud-card {
  position: relative;
  display: flex;
  min-width: 0;
  background: var(--cream-2);
  border: 1px solid var(--s-line);
}
.aud-card__inner {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
.aud-card__top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 24px 20px;
}
.aud-card__num {
  font-family: var(--font-head);
  font-size: 2rem;
  font-style: italic;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--s-soft);
}
.aud-card__title {
  font-size: clamp(1.625rem, 2.4vw, 2rem);
  line-height: 1.12;
}
.aud-card__more {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding: 14px 24px;
  color: var(--cream);
  background: var(--bg);
}
.aud-card__icon {
  flex: none;
  width: 36px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* название на тёмной панели нужно только при hover-раскрытии */
.aud-card__echo { display: none; }

@media (min-width: 640px) {
  .aud-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
  .aud-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .js-ready .aud-card { min-height: 16rem; cursor: default; }
  .js-ready .aud-card__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 1fr;
    overflow: hidden;
    overflow: clip;
  }
  .js-ready .aud-card__top,
  .js-ready .aud-card__more { grid-area: 1 / 1; }

  .js-ready .aud-card__top {
    position: relative;
    justify-content: space-between;
    padding: 24px;
    transform: translateY(calc(var(--shown, 0) * -101%));
    transition: transform .4s var(--ease-out);
  }
  /* плюс в углу: подсказка, что у карточки есть продолжение */
  .js-ready .aud-card__top::after {
    content: "";
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 14px;
    height: 14px;
    color: var(--s-soft);
    background:
      linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
      linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  }
  .js-ready .aud-card__more {
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: 0;
    padding: 28px 24px;
    transform: translateY(calc((1 - var(--shown, 0)) * 101%));
    transition: transform .4s var(--ease-out);
  }
  .js-ready .aud-card__more::before {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--accent);
  }
  .js-ready .aud-card__icon { width: 64px; height: 64px; stroke-width: 1.1; }
  .js-ready .aud-card__echo {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.375rem, 1.9vw, 1.75rem);
    line-height: 1.15;
    color: var(--cream);
  }
  .js-ready .aud-card:hover { --shown: 1; }
}

/* ---------- 8. Цена и форматы (тёмный) ----------
   Не карточки, а компактная сводка: строки с пунктирным заполнителем, скидка, кнопка. */
.av-price__body { min-width: 0; max-width: 40rem; }
.pricelist { margin: 0; }
.pricelist__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-block: 20px;
  border-top: 1px solid var(--s-line);
}
.pricelist__row:last-child { border-bottom: 1px solid var(--s-line); }
.pricelist dt {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  color: var(--s-soft);
}
.pricelist dd {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 300;
  font-variant-numeric: lining-nums;
  line-height: 1;
  white-space: nowrap;
}
@media (min-width: 640px) {
  .pricelist__row {
    flex-direction: row;
    align-items: baseline;
    gap: 16px;
  }
  /* пунктирный заполнитель между названием и ценой */
  .pricelist dt {
    display: flex;
    flex: 1 1 auto;
    align-items: baseline;
    gap: 16px;
  }
  .pricelist dt::after {
    content: "";
    flex: 1 1 auto;
    min-width: 24px;
    border-bottom: 1px dotted var(--s-line-strong);
    transform: translateY(-.25em);
  }
}
.discount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}
.discount__badge {
  min-height: 32px;
  padding: 0 14px;
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: none;
}
.discount__text {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.3;
}
.av-price__cta { margin-top: 36px; }

/* Переключатель «1 аватар / 3 и более»: segmented control на radio. Виден только с JS
   (без него остаются цены за 1 аватар). Бегунок едет по :checked без скрипта. */
.seg {
  display: none;
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
  width: 100%;
  max-width: 22rem;
  margin: 0 0 28px;
  padding: 3px;
  border: 1px solid var(--s-line-strong);
}
.js-ready .seg { display: grid; }
.seg__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.seg__label {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 44px;
  margin: 0;
  padding: 0 16px;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  color: var(--s-soft);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.seg__input:checked + .seg__label { color: #fff; }
.seg__input:focus-visible + .seg__label { outline: 2px solid var(--s-focus); outline-offset: 2px; }
.seg__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--accent-dark);
}
#qty-3:checked ~ .seg__thumb { transform: translateX(100%); }
@media (hover: hover) and (pointer: fine) {
  .seg__input:not(:checked) + .seg__label:hover { color: var(--s-fg); }
}

.pricelist dd { font-variant-numeric: lining-nums tabular-nums; }

/* подпись и итоговые цены для скринридера (aria-live) */
.price-note { display: none; min-height: 1.5em; margin-top: 18px; }
.js-ready .price-note { display: block; }
.price-note__vis {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  font-style: italic;
  line-height: 1.3;
  color: var(--s-soft);
  opacity: 0;
}
.av-price__body[data-qty="3"] .price-note__vis { opacity: 1; }

@keyframes badge-pop {
  from { opacity: .4; transform: scale(.9); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .js-ready .seg__label { transition: color .2s ease; }
  .js-ready .seg__thumb { transition: transform .3s var(--ease-out); }
  .js-ready .price-note__vis {
    transform: translateY(4px);
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  }
  .js-ready .av-price__body[data-qty="3"] .price-note__vis { transform: none; }
  .js-ready .av-price__body[data-qty="3"] .discount__badge { animation: badge-pop .4s var(--ease-out) both; }
}

/* ---------- 9. Интеграция с оцифровкой лекал (кремовый) ---------- */
.av-link__cta { margin-top: 32px; }
.av-link__art { min-width: 0; }
.av-link__art svg { width: 100%; max-width: 36rem; height: auto; }
.av-link__note {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}

/* Точки лекала -> каркас аватара. Разметка и CSS описывают ИТОГОВОЕ состояние («точки на каркасе»):
   его видят без JS, при reduced-motion и после прыжка. page.js (WAAPI) возвращает точки на лекало
   и по hover или фокусу кнопки переносит их на узлы каркаса. */
.leap-slots circle {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1px;
  stroke-opacity: .55;
  stroke-dasharray: 2 2;
  vector-effect: non-scaling-stroke;
}
.av-link__art .leap-nodes { fill: var(--ink-soft); fill-opacity: .45; }
.leap__hits,
.leap__dots { pointer-events: none; }
.leap__lit,
.leap__ring,
.leap__dot { transform-box: fill-box; transform-origin: center; }
.leap__lit { fill: var(--accent); fill-opacity: .28; }
.leap__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.leap__dot { fill: var(--accent-dark); }
@keyframes dash-flow { to { stroke-dashoffset: -9px; } }
@media (prefers-reduced-motion: no-preference) {
  .av-link__art.is-hot .av-arrow--dash { animation: dash-flow .6s linear infinite; }
}

/* ---------- 10. FAQ и форма ---------- */
@media (min-width: 1024px) {
  .av-faq__head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
    align-self: start;
  }
}
.faq__body a {
  color: var(--s-fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--s-line-strong);
}
.faq__body a:hover { text-decoration-color: currentColor; }

/* ---------- 11. Reduced motion ----------
   Движение включается только в блоках под prefers-reduced-motion: no-preference (выше).
   Здесь остаётся статика: каркас виден целиком, шаги и карточки без анимации. */
@media (prefers-reduced-motion: reduce) {
  .av-fig { --scan: 1; --reveal: 1; }
}

/* колонки split не должны распирать сетку длинным содержимым */
.av-problem__body,
.av-link__copy { min-width: 0; }

/* каркас на кремовом фоне рисуется тёмным */
.section--light .u-body,
.section--light .u-mesh { stroke: var(--ink); }
.section--light .u-mesh { stroke-opacity: .3; }

/* Шапка на подстранице: пунктов навигации на один больше («← Лаборатория»), поэтому на 1280–1439 px
   чуть плотнее, чтобы всё помещалось в одну строку. */
@media (min-width: 1280px) and (max-width: 1439px) {
  .header-menu { gap: 12px; }
  .main-nav a {
    padding-inline: 7px;
    font-size: .6875rem;
    letter-spacing: .06em;
  }
  .main-nav a::after { left: 7px; right: 7px; }
  .header-tools { gap: 14px; }
  .header-phone { font-size: .8125rem; }
  .header-tools .btn-sm { padding-inline: 16px; }
}
