/* МойПак.Фоток / Маркетплейсы — лендинг аудита карточек.
   Строй и типографика — от mysane.org, бренд и палитра — от MySet.Photos.
   Всё настраиваемое — токены в :root; ниже по файлу сырых значений цвета нет. */

@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/onest-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/onest-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Onest"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("fonts/onest-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* поверхности */
  --paper: #F3EEE5;
  --sheet: #FBF8F2;
  --taupe: #E6DED5;
  --night: #17180F;
  --night2: #222419;
  --glowOlive: rgba(124, 132, 70, .30);
  --glowAmber: rgba(193, 122, 58, .16);

  /* текст */
  --ink: #1F1F1B;
  --ink2: #5F5D55;
  --ink3: #8C897F;
  --onNight: #F5EFE6;
  --onNight2: #A9A797;
  --onNight3: #D7D3C6;

  /* акценты */
  --olive: #5A5E33;
  --oliveSoft: rgba(90, 94, 51, .12);
  /* «стало / исправлено» — отдельный зелёный: олива читалась грязной (владелец, 2026-11-06) */
  --good: #2E8B57;
  --goodOnNight: #7FD3A0;
  --oliveOnNight: #BAC184;
  --amber: #B36E31;
  --amberOnNight: #E3A865;
  --danger: #B3402F;
  --dangerOnNight: #FF9C8A;

  /* линии и стекло */
  --line: rgba(31, 31, 27, .10);
  --lineStrong: rgba(31, 31, 27, .22);
  --lineOnNight: rgba(245, 239, 230, .14);
  --glass: rgba(245, 239, 230, .06);
  --glassStrong: rgba(245, 239, 230, .10);
  --glassRing: rgba(245, 239, 230, .20);
  --scrim: rgba(12, 12, 8, .86);

  /* типографика */
  --font: "Onest", system-ui, sans-serif;
  --fontBrand: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --dw: 300;
  --dwSm: 400;
  --track: -0.02em;
  --fsBody: 17px;
  --fsBodySm: 16px;
  --fsSmall: 15px;
  --fsCaption: 14px;
  --fsMicro: 13px;
  --fsTiny: 12px;
  --fsIcon: 24px;
  --fsSub: 17px;
  --fsLede: clamp(16px, 1.2vw, 18px);
  --fsH1: clamp(34px, 3.8vw, 52px);
  --fsH2: clamp(27px, 2.8vw, 38px);
  --fsH3: clamp(19px, 1.5vw, 22px);
  --fsLead: clamp(18px, 1.4vw, 20px);
  --fsStatement: clamp(18px, 1.5vw, 21px);
  --fsBrand: 22px;
  --fsCardTitle: 18px;
  /* баллы: доля ширины своей шкалы, чтобы «100» влезало в любую колонку */
  --fsScoreLg: clamp(34px, 12cqi, 56px);
  --fsScoreSm: clamp(26px, 10cqi, 34px);

  /* ритм */
  --gutter: clamp(16px, 4vw, 48px);
  --wrap: 1240px;
  --sectionGap: clamp(72px, 8.5vw, 120px);
  --headGap: clamp(28px, 3.2vw, 44px);
  --panelPad: clamp(24px, 3vw, 40px);
  --gap: 16px;
  --gapSm: 10px;

  /* формы */
  --rXl: clamp(24px, 3vw, 36px);
  --rLg: 24px;
  --rMd: 16px;
  --rSm: 10px;
  --rPill: 999px;

  /* движение */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tFast: .2s;
  --tReveal: .7s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fsBody);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p, h1, h2, h3, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 400; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: var(--rSm); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  padding: 12px 18px; border-radius: var(--rPill); background: var(--sheet); color: var(--ink);
}
.skip:focus { top: 12px; }

/* ---------- Примитивы ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border: 0; border-radius: var(--rPill); cursor: pointer;
  font: 600 var(--fsBodySm)/1 var(--font); text-decoration: none; text-align: center;
  transition: transform var(--tFast) ease, background-color var(--tFast) ease, opacity var(--tFast) ease;
}
.pill:active { transform: scale(.98); }
.pill--small { padding: 12px 20px; font-size: var(--fsSmall); }
.pill--light { background: var(--onNight); color: var(--ink); }
.pill--light:hover { background: var(--sheet); }
.pill--ghost { background: transparent; color: var(--onNight); box-shadow: inset 0 0 0 1px var(--glassRing); }
.pill--ghost:hover { background: var(--glass); }
.pill[disabled] { opacity: .6; cursor: progress; }

.tag {
  display: inline-block; padding: 7px 14px; border-radius: var(--rPill);
  font-size: var(--fsCaption); font-weight: 600; line-height: 1;
  background: var(--taupe); color: var(--ink);
}
.panel--dark .tag { background: var(--glassStrong); color: var(--onNight); }

.panel { position: relative; border-radius: var(--rXl); padding: var(--panelPad); }
.panel--light { background: var(--sheet); }
.panel--dark { background: var(--night2); color: var(--onNight); }

.dots { display: grid; gap: 14px; }
.dots li { position: relative; padding-left: 24px; }
.dots li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor; opacity: .3;
}

.wordmark { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: var(--onNight); white-space: nowrap; }
.wordmark--ink { color: var(--ink); }
.wordmarkName { font-family: var(--fontBrand); font-weight: 300; font-size: var(--fsBrand); letter-spacing: var(--track); }
.wordmarkLine { font-size: var(--fsSmall); font-weight: 500; color: var(--onNight2); }
.wordmark--ink .wordmarkLine { color: var(--ink2); }

.section { padding-top: var(--sectionGap); }
.sectionHead { display: grid; gap: 14px; }
.h2 {
  font-weight: var(--dw); font-size: var(--fsH2); line-height: 1.12; letter-spacing: var(--track);
  max-width: 26ch; text-wrap: balance;
}
.sub { font-size: var(--fsSub); color: var(--ink2); max-width: 60ch; text-wrap: pretty; }
.statement {
  margin-top: clamp(28px, 3vw, 40px); max-width: 52ch;
  font-size: var(--fsStatement); line-height: 1.4; letter-spacing: -0.015em; text-wrap: pretty;
}
.statement span { color: var(--ink2); }
.caption { margin-top: 20px; max-width: 80ch; font-size: var(--fsSmall); color: var(--ink2); }

/* ---------- 01. Первый экран ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: min(92svh, 780px);
  display: flex; flex-direction: column;
  background:
    radial-gradient(55% 60% at 82% 30%, var(--glowOlive), transparent 70%),
    radial-gradient(40% 45% at 6% 100%, var(--glowAmber), transparent 70%),
    var(--night);
  color: var(--onNight);
}
.top {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 24px; padding-bottom: 24px;
}
.top nav { display: flex; gap: 4px; }
.top nav a {
  text-decoration: none; font-size: var(--fsSmall); font-weight: 500; color: var(--onNight2);
  padding: 10px 14px; border-radius: var(--rPill); transition: color var(--tFast), background-color var(--tFast);
}
.top nav a:hover { color: var(--onNight); background: var(--glass); }

.heroBody {
  width: 100%; margin-top: auto; padding-bottom: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: end; gap: 40px;
}
.markers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.markers li {
  padding: 8px 14px; border-radius: var(--rPill); font-size: var(--fsCaption); font-weight: 500;
  color: var(--onNight3); box-shadow: inset 0 0 0 1px var(--lineOnNight);
}
.hero h1 {
  font-weight: var(--dw); font-size: var(--fsH1); line-height: 1.08; letter-spacing: var(--track);
  max-width: 20ch; text-wrap: balance;
}
.hero .lede { margin-top: 22px; max-width: 54ch; color: var(--onNight2); font-size: var(--fsLede); }
.actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.roCard {
  display: block; padding: 22px 24px; border-radius: var(--rLg); text-decoration: none;
  background: radial-gradient(120% 100% at 0% 0%, var(--glassStrong), var(--glass) 70%);
  box-shadow: inset 0 0 0 1px var(--glassRing);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: box-shadow var(--tFast) ease;
}
.roCard:hover { box-shadow: inset 0 0 0 1px var(--onNight2); }
.roKicker { display: block; font-size: var(--fsMicro); font-weight: 600; color: var(--onNight2); letter-spacing: .02em; }
.roTitle { display: block; margin-top: 4px; font-size: var(--fsCardTitle); font-weight: 500; letter-spacing: -0.01em; }
.roFacts { display: grid; gap: 4px; margin-top: 18px; font-size: var(--fsCaption); color: var(--onNight3); }
.roMore { display: inline-block; margin-top: 16px; font-size: var(--fsCaption); font-weight: 600; }
.roMore::after { content: " ↓"; }
.roNote { margin-top: 12px; padding: 0 24px; font-size: var(--fsMicro); color: var(--onNight2); }

/* ---------- Шкала баллов (первый экран и пример аудита) ---------- */
.score { display: block; margin-top: 18px; container-type: inline-size; --now: 61; --done: 100; }
.scoreSteps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.scoreStep { display: grid; align-content: start; gap: 4px; }
.scoreStep b { font-weight: var(--dw); line-height: 1; letter-spacing: var(--track); font-variant-numeric: tabular-nums; }
.scoreStep small { font-size: var(--fsMicro); line-height: 1.35; color: var(--onNight2); }
.scoreStep--now b { color: var(--amberOnNight); }
.scoreStep--done b { color: var(--goodOnNight); }
.score--compact .scoreStep b { font-size: var(--fsScoreSm); }
.score--large .scoreStep b { font-size: var(--fsScoreLg); }
.score--large .scoreStep small { font-size: var(--fsCaption); }
.score--large .scoreSteps { gap: 16px; }

.scoreBar { position: relative; display: block; height: 8px; margin-top: 16px; border-radius: var(--rPill); }
.score--large .scoreBar { height: 12px; margin-top: 24px; }
.scoreFill { position: absolute; top: 0; bottom: 0; transform-origin: left center; }
.scoreFill--now { left: 0; width: calc(var(--now) * 1%); background: var(--amberOnNight); border-radius: var(--rPill) 0 0 var(--rPill); }
.scoreFill--done { left: calc(var(--now) * 1%); width: calc((var(--done) - var(--now)) * 1%); background: var(--goodOnNight); border-radius: 0 var(--rPill) var(--rPill) 0; }
.js [data-reveal] .scoreFill { transform: scaleX(0); transition: transform var(--tReveal) var(--ease); }
.js [data-reveal] .scoreFill--done { transition-delay: .25s; }
.js [data-reveal].isOn .scoreFill { transform: none; }

/* ---------- 02. Услуги ---------- */
.services { margin-top: var(--headGap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); counter-reset: none; }
.service { padding: var(--panelPad); border-radius: var(--rXl); background: var(--sheet); display: flex; flex-direction: column; }
.service--lead { background: var(--night2); color: var(--onNight); }
.num { font-size: var(--fsCaption); font-weight: 600; color: var(--ink3); font-variant-numeric: tabular-nums; }
.service--lead .num { color: var(--onNight2); }
.service h3 { margin-top: 20px; font-weight: var(--dwSm); font-size: var(--fsH3); line-height: 1.2; letter-spacing: -0.01em; }
.service p { margin-top: 10px; color: var(--ink2); max-width: 50ch; }
.service--lead p { color: var(--onNight3); }
.service .serviceOut { margin-top: auto; padding-top: 18px; color: var(--ink); font-weight: 500; }
.service--lead .serviceOut { color: var(--onNight); }

/* ---------- 03. Галерея ---------- */
.pairs { margin-top: var(--headGap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pairCard { min-width: 0; padding: clamp(16px, 2vw, 22px); border-radius: var(--rXl); background: var(--sheet); }
.pairChange { font-size: var(--fsSmall); color: var(--ink2); text-wrap: pretty; }
.pairChange b { font-weight: 600; color: var(--ink); }
.pairShots { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pairShots--added { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Подпись — под кадром: поверх она закрывала текст самих кадров. */
.shot { display: grid; gap: 8px; align-content: start; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.shotImg { display: grid; place-items: center; aspect-ratio: 3 / 4; border-radius: var(--rMd); overflow: hidden; background: var(--taupe); }
.shotImg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.shot:hover .shotImg img { transform: scale(1.03); }
/* «Было / Стало» — текстом, не плашкой: плашка читалась кнопкой (владелец). Слева под кадром — и на странице, и в окне. */
.shotLabel, .viewerShot figcaption { justify-self: start; font-size: var(--fsCaption); font-weight: 600; line-height: 1.2; }
.shot--source .shotLabel { color: var(--ink2); }
.shot--result .shotLabel { color: var(--good); }

/* ---------- 04. Пример аудита ---------- */
.example { margin-top: var(--headGap); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: start; }
.exampleScore { display: grid; gap: 28px; position: sticky; top: 24px; }
.exampleScore .score { margin-top: 0; }
.exampleFacts { display: grid; gap: 0; }
.exampleFacts > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--lineOnNight); }
.exampleFacts dt { font-size: var(--fsSmall); color: var(--onNight2); }
.exampleFacts dd { font-size: var(--fsBodySm); color: var(--onNight); }
.exampleScore .pill { justify-self: start; }

.exampleFound { display: grid; gap: 4px; }
.exampleFoundHead { font-size: var(--fsLead); color: var(--onNight); }
.exampleReport { display: grid; gap: 10px; justify-items: start; }
.exampleReport p { font-size: var(--fsSmall); color: var(--onNight2); }

/* Макет карточки «как на Ozon»: свои цвета только внутри .oz — карточку берём с Ozon и туда же возвращаем. */
.ozExample { min-width: 0; display: grid; gap: 14px; }
.ozSwitch { justify-self: start; display: flex; gap: 4px; padding: 4px; border-radius: var(--rPill); background: var(--taupe); }
.ozSwitch button { padding: 9px 16px; border: 0; border-radius: var(--rPill); cursor: pointer; font-size: var(--fsSmall); font-weight: 500; background: transparent; color: var(--ink2); }
.ozSwitch button[aria-pressed="true"] { background: var(--ink); color: var(--onNight); }
.oz {
  --ozBlue: #005BFF; --ozText: #001A34; --ozMuted: #707F8D; --ozLine: #E5E8EB; --ozBg: #FFFFFF; --ozNew: #E8F6EE; --ozBad: #FFE6E6;
  --ozThumb: 40px; --ozR: 12px; --ozRs: 6px; --ozRx: 4px;
  min-width: 0; padding: clamp(16px, 2vw, 24px); border-radius: var(--rLg); background: var(--ozBg); color: var(--ozText);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.oz[data-oz-state="was"] [data-now], .oz[data-oz-state="now"] [data-was] { display: none; }
.ozCrumbs { font-size: var(--fsTiny); color: var(--ozMuted); }
.ozTop { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ozGallery { display: grid; grid-template-columns: var(--ozThumb) minmax(0, 1fr); gap: 10px; align-items: start; }
.ozThumbs { display: grid; gap: 6px; }
.ozThumbs img { width: var(--ozThumb); height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--ozRs); border: 1px solid var(--ozLine); }
.ozThumbs img:first-child { border-color: var(--ozBlue); }
/* Как на Ozon: лента короче главного фото, остальные миниатюры — за прокруткой. */
.ozThumbs img:nth-child(n + 7) { display: none; }
.ozMain { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--ozR); }
.ozInfo { min-width: 0; display: grid; gap: 10px; align-content: start; }
.ozBrand { justify-self: start; font-size: var(--fsSmall); font-weight: 600; color: var(--ozBlue); }
.ozTitle { font-size: clamp(17px, 1.6vw, 20px); font-weight: 700; line-height: 1.3; text-wrap: pretty; }
.ozAboutHead { margin-top: 6px; font-size: var(--fsBodySm); font-weight: 700; }
.ozAbout { display: grid; gap: 7px; font-size: var(--fsCaption); }
.ozAbout > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 8px; align-items: start; }
.ozAbout dt { display: flex; align-items: flex-end; gap: 4px; color: var(--ozMuted); }
.ozAbout dt::after { content: ""; flex: 1; border-bottom: 1px dotted var(--ozLine); transform: translateY(-4px); }
.ozAbout .ozNew dd { background: var(--ozNew); border-radius: var(--ozRx); padding: 0 4px; justify-self: start; }
.ozDescription { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ozLine); display: grid; gap: 10px; font-size: var(--fsCaption); line-height: 1.55; }
.ozTags { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.ozTag, .ozMore { color: var(--ozBlue); }
.ozTag--bad { background: var(--ozBad); border-radius: var(--ozRx); padding: 0 4px; }
.ozMore { color: var(--ozMuted); }

/* ---------- 05. Два уровня ---------- */
.levels { margin-top: var(--headGap); display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.levels h3 { margin-top: 20px; font-weight: var(--dwSm); font-size: var(--fsH3); line-height: 1.2; letter-spacing: -0.01em; }
.levels .dots { margin-top: 20px; }
.levels .panel--dark .dots { color: var(--onNight3); }

/* ---------- 06. Ранжирование ---------- */
.ranking { margin-top: var(--headGap); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 56px); }
.factorsHead { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 12px; font-size: var(--fsMicro); font-weight: 600; color: var(--ink3); border-bottom: 1px solid var(--line); }
.factorList { display: grid; }
.factor {
  display: grid; grid-template-columns: minmax(0, 15fr) minmax(0, 10fr) 64px; align-items: center; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--fsSmall);
}
.factorName small { display: block; font-size: var(--fsTiny); color: var(--ink3); }
/* шкала 0–40%: максимум из таблицы WB */
.factorTrack { position: relative; height: 10px; border-radius: var(--rPill); background: var(--taupe); }
.factorTrack i {
  position: absolute; top: 0; bottom: 0; border-radius: var(--rPill); background: var(--ink2);
  left: calc(var(--from) / 40 * 100%);
  width: max(6px, calc((var(--to) - var(--from)) / 40 * 100%));
  transform-origin: left center;
}
.factorValue { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.factor--ours { font-weight: 600; }
.factor--ours .factorTrack i { background: var(--olive); }
.factor--ours .factorValue { color: var(--olive); }
.js [data-reveal] .factorTrack i { transform: scaleX(0); transition: transform var(--tReveal) var(--ease); }
.js [data-reveal].isOn .factorTrack i { transform: none; }
.factorsSource { margin-top: 16px; font-size: var(--fsCaption); color: var(--ink2); }
.rankingNotes { align-self: start; font-size: var(--fsBodySm); color: var(--ink2); }
.rankingNotes b { color: var(--ink); }

/* ---------- 07. Масштаб и пилот ---------- */
.scale { margin-top: var(--headGap); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.scaleCopy { padding: var(--panelPad) 0; padding-right: clamp(0px, 3vw, 40px); }
.chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 10px 16px; border-radius: var(--rPill); background: var(--sheet); font-size: var(--fsSmall); font-weight: 500; }
.pilot { display: grid; gap: 24px; }
.pilot .tag { justify-self: start; }
.pilotLead { font-size: var(--fsLead); line-height: 1.4; letter-spacing: -0.015em; }
.pilotSteps { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; counter-reset: pilot; }
.pilotSteps li {
  counter-increment: pilot; padding: 14px 16px; border-radius: var(--rMd); background: var(--glass);
  font-size: var(--fsSmall); color: var(--onNight3);
}
.pilotSteps li::before { content: counter(pilot, decimal-leading-zero); display: block; margin-bottom: 4px; font-size: var(--fsTiny); font-weight: 600; color: var(--onNight2); }
.pilotNote { font-size: var(--fsSmall); color: var(--onNight2); }
.pilot .pill { justify-self: start; }

/* ---------- 08. Стоимость ---------- */
.costs { margin-top: var(--headGap); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.costs li { padding: 22px 24px; border-radius: var(--rLg); background: var(--sheet); }
.costs b { display: block; font-size: var(--fsCardTitle); font-weight: 600; letter-spacing: -0.01em; }
.costs span { display: block; margin-top: 8px; font-size: var(--fsSmall); color: var(--ink2); }

/* ---------- 09. Форма ---------- */
.contactWrap { padding: var(--sectionGap) var(--gutter) var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; scroll-margin-top: 0; }
.contact {
  position: relative; overflow: hidden; border-radius: var(--rXl);
  padding: clamp(32px, 6vw, 80px) clamp(22px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start;
  background: radial-gradient(50% 70% at 90% 110%, var(--glowOlive), transparent 70%), var(--night);
  color: var(--onNight);
}
.contact h2 { font-weight: var(--dw); font-size: var(--fsH2); line-height: 1.12; letter-spacing: var(--track); text-wrap: balance; }
.contact .lede { margin-top: 18px; max-width: 46ch; color: var(--onNight2); font-size: var(--fsLede); }
.contactAlt { margin-top: 24px; font-size: var(--fsBodySm); color: var(--onNight2); }
.contactAlt a { color: var(--onNight); }

.leadForm { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: var(--fsCaption); font-weight: 600; color: var(--onNight3); }
.field input {
  width: 100%; padding: 16px 18px; border: 0; border-radius: var(--rMd);
  font: 400 var(--fsBodySm)/1.3 var(--font); color: var(--onNight);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--lineOnNight);
  transition: box-shadow var(--tFast);
}
.field input::placeholder { color: var(--onNight2); opacity: .7; }
.field input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--onNight); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--dangerOnNight); }
.fieldError { font-size: var(--fsCaption); color: var(--dangerOnNight); }
.consent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; align-items: start; font-size: var(--fsSmall); color: var(--onNight3); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--oliveOnNight); }
.consent .fieldError { grid-column: 2; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.leadForm .pill { justify-self: start; margin-top: 6px; }
.formNote { font-size: var(--fsCaption); color: var(--onNight2); }
.formStatus { padding: 14px 16px; border-radius: var(--rMd); background: var(--glass); font-size: var(--fsSmall); color: var(--onNight); }
.formStatus a { color: var(--onNight); }
.formStatus.isError { box-shadow: inset 0 0 0 1px var(--dangerOnNight); }
.leadDone { align-self: center; padding: 28px; border-radius: var(--rLg); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glassRing); }
.leadDone:focus { outline: none; }
.leadDone h3 { font-size: var(--fsH3); font-weight: var(--dwSm); letter-spacing: var(--track); }
.leadDone p { margin-top: 12px; color: var(--onNight3); }

/* ---------- 10. Футер ---------- */
.foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 32px; align-items: start;
  padding: 32px 8px 16px; font-size: var(--fsCaption); color: var(--ink2);
}
.footBrand p { margin-top: 6px; }
.footLinks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footLinks a { font-weight: 500; color: var(--ink); text-decoration: none; }
.footLinks a:hover { text-decoration: underline; }
.footLegal { grid-column: 1 / -1; max-width: 90ch; font-size: var(--fsMicro); color: var(--ink3); }

/* ---------- Просмотр работы ---------- */
.viewer {
  width: min(100vw - 2 * var(--gutter), 1100px); max-width: none; max-height: calc(100svh - 2 * var(--gutter));
  padding: 0; border: 0; border-radius: var(--rLg); background: var(--night); color: var(--onNight); overflow: hidden;
}
.viewer::backdrop { background: var(--scrim); }
.viewerBody { display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: calc(100svh - 2 * var(--gutter)); }
.viewerMedia { display: grid; place-items: center; min-height: 0; background: var(--night2); }
/* Пара — рядом; на узком экране — по одному кадру, переключателем. */
.viewerPair { width: 100%; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
.viewerShot { display: grid; gap: 8px; justify-items: start; justify-self: center; margin: 0; }
.viewerShot img { max-width: 100%; max-height: calc(100svh - 2 * var(--gutter) - 120px); width: auto; height: auto; object-fit: contain; border-radius: var(--rMd); }
.viewerShot--source figcaption { color: var(--onNight2); }
.viewerShot--result figcaption { color: var(--goodOnNight); }
.viewerBar { display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; }
.viewerCaption { flex: 1; min-width: 0; font-size: var(--fsSmall); color: var(--onNight3); }
.viewerSwitch { display: none; gap: 4px; padding: 4px; border-radius: var(--rPill); background: var(--glass); }
.viewerSwitch[hidden] { display: none; }
.viewerSwitch button { padding: 8px 14px; border: 0; border-radius: var(--rPill); cursor: pointer; font-size: var(--fsCaption); font-weight: 500; background: transparent; color: var(--onNight2); }
.viewerSwitch button[aria-pressed="true"] { background: var(--onNight); color: var(--ink); }
.viewerClose { width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; font-size: var(--fsIcon); line-height: 1; background: var(--glass); color: var(--onNight); }

/* ---------- Адаптив ---------- */
@media (max-width: 1000px) {
  .top nav { display: none; }
  .heroBody { grid-template-columns: minmax(0, 1fr); }
  .readout { max-width: 440px; }
  .example { grid-template-columns: minmax(0, 1fr); }
  .pairs { grid-template-columns: minmax(0, 1fr); }
  .exampleScore { position: static; }
  .ranking { grid-template-columns: minmax(0, 1fr); }
  .scale { grid-template-columns: minmax(0, 1fr); }
  .scaleCopy { padding: 0; }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .costs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: var(--fsBodySm); }
  .hero { min-height: 0; }
  .heroBody { margin-top: 32px; }
  .services, .levels, .costs { grid-template-columns: minmax(0, 1fr); }
  .ozTop { grid-template-columns: minmax(0, 1fr); }
  .actions .pill { flex: 1 1 auto; }
  .wordmarkLine { display: none; }
  .factor { grid-template-columns: minmax(0, 1fr) 60px; gap: 6px 12px; }
  .factorTrack { grid-column: 1 / -1; grid-row: 2; }
  .factorsHead span:last-child { text-align: right; }
  .pilotSteps { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .viewerBar { flex-wrap: wrap; }
  .viewerSwitch { display: flex; }
  .viewerPair { grid-auto-flow: row; }
  .viewer[data-show="result"] .viewerShot--source, .viewer[data-show="source"] .viewerShot--result { display: none; }
  .viewerCaption { flex-basis: 100%; order: -1; }
}
@media (max-width: 380px) {
  .top .pill--small { padding: 10px 14px; }
  .scoreSteps { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] .scoreFill, .js [data-reveal] .factorTrack i { transform: none; transition: none; }
  .pill, .shotImg img { transition: none; }
}
