/* ============================================================
   Фотосессия для сайта знакомств — landing v3
   Монохромный тёплый UI. Цвет на странице даёт только фотография.
   ============================================================ */

/* Пока Spectral и Manrope едут по сети, текст набирается запасным шрифтом.
   На кириллице system-ui (SF / Segoe / Roboto) примерно на 10 % уже Manrope:
   абзацы переносились по-другому, и в момент подмены весь герой подпрыгивал —
   на это приходился весь CLS страницы. Цифры ниже сняты замером в браузере
   (advance width и fontBoundingBox на кириллической строке заголовка):
   Manrope / Arial = 101.16 %, Spectral / Georgia = 100.33 %.
   size-adjust добирает остаток на платформах, где Arial и Georgia подменяют
   на что-то другое. */
@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("Helvetica"), local("Roboto");
  size-adjust: 101.16%;
  ascent-override: 105.77%;
  descent-override: 29.65%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Spectral Fallback";
  src: local("Georgia"), local("Times New Roman");
  size-adjust: 100.33%;
  ascent-override: 105.65%;
  descent-override: 45.85%;
  line-gap-override: 0%;
}

:root {
  --bg: #f4f2ef;
  --bg-deep: #e9e6e0;
  --paper: #fffdfa;
  --stage: #100f0c;
  --ink: #15140f;
  --ink-2: #35332b;
  --muted: #6b675c;
  --line: #dcd8d0;
  --line-soft: #e8e4dc;
  --cta: #15140f;
  --cta-hover: #33302a;

  --font-display: "Spectral", "Spectral Fallback", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Manrope Fallback", Arial, Helvetica, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 34rem;
  --shell: 1180px;
  --rail: 1360px;
  --header-h: 60px;
  /* Панель редактора рисует mu-plugin и сам переопределяет эту переменную
     (36px, на узких экранах 44px). Для посетителя она нулевая. Всё, что
     прилипает к верху вьюпорта, смещаем на её высоту. */
  --admin-bar-h: 0px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* height:auto обязателен: иначе HTML-атрибут height="1152" остаётся
   presentational hint'ом, aspect-ratio игнорируется и кадр рендерится
   в свои полные 1152 px. */
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.rail {
  width: 100%;
  max-width: var(--rail);
  margin-inline: auto;
  padding-inline: clamp(1.125rem, 4vw, 2.5rem);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 0.75rem 1rem; text-decoration: none;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
/* Pointer-activated controls keep focus for a11y but should not show a ring. */
.no-focus-ring:focus-visible { outline: none; }

/* ---------- shared type roles ---------- */

/* маленький uppercase label вместо большого serif H2 у служебных секций */
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.h-sm {
  font-family: var(--font-body);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lead {
  max-width: var(--measure);
  color: var(--ink-2);
}

.quiet {
  color: var(--muted);
  font-size: 0.9375rem;
}
.quiet a { text-decoration-color: var(--line); }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.875rem 1.5rem;
  background: var(--cta);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { background: var(--cta-hover); }

.btn-sm {
  min-height: 44px;
  padding: 0.625rem 1.125rem;
  font-size: 0.9375rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow:hover::after { transform: translateX(3px); }

.link-quiet {
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.link-quiet:hover { color: var(--ink); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: var(--admin-bar-h);
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav {
  display: none;
  gap: 1.5rem;
  margin-inline: auto;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}
.header-actions .link-quiet { display: none; }

/* anchors must clear the sticky header */
[id] { scroll-margin-top: calc(var(--admin-bar-h) + var(--header-h) + 20px); }

/* ---------- reveal ---------- */

/* Маска живёт на img, а не на наблюдаемом элементе: clip-path на самом
   наблюдаемом узле обнуляет его intersection rect, и IntersectionObserver
   уже никогда не срабатывает. */
.reveal-mask > img {
  clip-path: inset(0 0 100% 0);
  transform: scale(1.03);
  transition: clip-path 1s var(--ease), transform 1.2s var(--ease);
}
.reveal-mask.is-in > img {
  clip-path: inset(0 0 0 0);
  transform: scale(1);
}

/* ---------- 1. hero ---------- */

.hero {
  padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.hero-copy { max-width: 40rem; }

#hero-h1 { display: block; margin-bottom: 1.125rem; }

.h1-kicker {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.875rem;
}

.h1-promise {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7.2vw, 3.9rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 32rem;
  color: var(--ink-2);
  margin-bottom: 1.5rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}
.hero-proof span { display: inline-flex; align-items: center; }
.hero-proof a { color: var(--muted); text-decoration-color: var(--line); }
.hero-proof a:hover { color: var(--ink); }

.hero-fig { margin: 0; }
.hero-fig img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.hero-fig figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

/* мобильно: главный кадр видно сразу, второй уходит парой */
.hero-fig-a { width: 74%; }
.hero-fig-b { width: 44%; margin-left: auto; margin-top: -14%; }

/* ---------- 2. works rail ---------- */

.works { padding-block: clamp(2rem, 5vw, 3.5rem); }

.works-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.works-head .label { margin-bottom: 0.375rem; }

.strip {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* рельс выходит за правый край — намёк на горизонтальную прокрутку */
  padding-inline: clamp(1.125rem, 4vw, 2.5rem);
  padding-bottom: 0.5rem;
}
.strip::-webkit-scrollbar { display: none; }

/* Размер задаём ширине li, а не высоте картинки: при height-driven вёрстке
   ширина flex-элемента берётся из интринсика файла (768 px), картинка
   рендерится уже и между кадрами появляются гигантские зазоры. */
.strip li {
  flex: 0 0 auto;
  width: 64vw;
  max-width: 300px;
  scroll-snap-align: start;
}
.strip img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  cursor: zoom-in;
}

/* Подсказка и стрелки под рельсом: скрытый скроллбар и кадры, уходящие за
   правый край, сами по себе не объясняют, что ленту можно листать. */
.strip-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.875rem;
}

.strip-hint {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.strip-hint-rail { margin: 0.75rem 0 0; }

.strip-nav { display: flex; gap: 0.375rem; }

.strip-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.strip-btn:hover { border-color: var(--ink); background: var(--paper-2, transparent); }
.strip-btn:disabled { opacity: 0.28; cursor: default; }
.strip-btn:disabled:hover { border-color: var(--line); background: transparent; }

/* На тач-экранах листают пальцем — стрелки только там, где есть курсор */
@media (hover: none) {
  .strip-nav { display: none; }
}

/* ---------- 3. statement ---------- */

.statement {
  background: var(--stage);
  color: var(--paper);
  padding-block: clamp(5rem, 22vw, 12rem);
}
/* Сужаем содержимое через детей, а не через сам .rail: собственный max-width
   на .rail-элементе побеждает, а его margin-inline:auto остаётся — и блок
   центруется вместо выравнивания по сетке. */
.statement-inner > * { max-width: 46rem; }
.statement h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.4vw, 3rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}
.statement p {
  max-width: var(--measure);
  color: color-mix(in srgb, var(--paper) 66%, transparent);
}

/* ---------- 4. natural ---------- */

.natural { padding-block: clamp(2.5rem, 7vw, 5.5rem); }

.natural-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.natural-copy { max-width: var(--measure); }
.natural-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.natural-copy p + p { margin-top: 0.875rem; }
.natural-copy > p { color: var(--ink-2); }

.natural-not {
  margin-block: 1.5rem;
  border-top: 1px solid var(--line);
}
.natural-not li {
  padding: 0.625rem 0 0.625rem 1.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
  position: relative;
}
.natural-not li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--line);
}

.natural-fig { margin: 0; }
.natural-fig img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.natural-fig figcaption {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- 5. set ---------- */

.set {
  background: var(--bg-deep);
  padding-block: clamp(2.5rem, 7vw, 5.5rem);
}

.set-head { margin-bottom: clamp(1.5rem, 4vw, 2.75rem); }
.set-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.875rem;
  max-width: 30ch;
  text-wrap: balance;
}

/* На телефоне серия идёт свайп-рельсом: шесть кадров столбиком дают
   4100 px и убивают ритм, а смысл секции — что это ОДНА съёмка. */
.set-grid {
  display: flex;
  gap: 0.625rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline: clamp(1.125rem, 4vw, 2.5rem);
  padding-bottom: 0.5rem;
}
.set-grid::-webkit-scrollbar { display: none; }
.set-item {
  flex: 0 0 auto;
  width: 66vw;
  max-width: 300px;
  scroll-snap-align: start;
}

.set-item img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

.set-cap {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.set-cap span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.set-foot { margin-top: clamp(1.5rem, 3vw, 2.25rem); }

/* ---------- 6. direction ---------- */

.direct { padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.direct-head { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.direct-head > * { max-width: var(--measure); }
.direct-head .quiet { margin-top: 0.5rem; }

.direct-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.directives li {
  position: relative;
  padding: 1.125rem 0;
  border-top: 1px solid var(--line);
  transition: opacity 0.4s var(--ease);
}
.directives li:last-child { border-bottom: 1px solid var(--line); }
.directives h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}
.directives p { font-size: 0.9375rem; color: var(--muted); }

/* sticky сцена только на десктопе */
.direct-stage { display: none; }
.direct-frames { position: relative; }
.direct-frames img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.direct-frames img:not(:first-child) {
  position: absolute;
  inset: 0;
  height: 100%;
}
.direct-frames img { opacity: 0; transition: opacity 0.6s var(--ease); }
.direct-frames img.is-active { opacity: 1; }
.direct-counter {
  margin-top: 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.direct-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(-1 * clamp(1.125rem, 4vw, 2.5rem));
  padding-inline: clamp(1.125rem, 4vw, 2.5rem);
}
.direct-rail::-webkit-scrollbar { display: none; }
.direct-rail li { flex: 0 0 auto; width: 56vw; max-width: 280px; scroll-snap-align: start; }
.direct-rail img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; cursor: zoom-in; }

/* Класс ставит скрипт на кадры, которые открываются в лайтбоксе */
.is-zoomable { cursor: zoom-in; }

/* ---------- 7. people ---------- */

.people { padding-block: clamp(2.5rem, 7vw, 5rem); }

.people-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.people-head h2 {
  font-family: var(--font-body);
  font-size: clamp(1.375rem, 2.6vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 1.6vw, 1rem);
  max-width: var(--rail);
  margin-inline: auto;
  padding-inline: clamp(1.125rem, 4vw, 2.5rem);
}
.people-grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.people-grid figcaption {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

.people-foot { margin-top: clamp(1.25rem, 3vw, 2rem); max-width: var(--measure); }

/* ---------- 8. women ---------- */

.women {
  background: var(--bg-deep);
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.women-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
.women-copy { max-width: var(--measure); }
.women-copy p + p { margin-top: 0.875rem; }
.women-copy > p { color: var(--ink-2); }
.women-copy h2 { margin-bottom: 0.875rem; }

.women-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.4vw, 0.75rem);
}
.women-rail img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.women-rail figcaption {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
}

/* ---------- 9. prepare ---------- */

.prepare { padding-block: clamp(2.5rem, 7vw, 5rem); }
.prepare-head { margin-bottom: clamp(1.25rem, 3vw, 2rem); }

.prepare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}
.prepare-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}
.prepare-panel p { max-width: 30rem; color: var(--ink-2); }
.prepare-panel p + p { margin-top: 0.75rem; }
.prepare-panel figure { margin: 1.25rem 0 0; }
.prepare-panel figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.prepare-panel figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------- 10. compare ---------- */

.compare { padding-block: clamp(2.5rem, 7vw, 5rem); }
.compare-head { margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.compare-head .lead { margin-top: 0.75rem; }

.compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
}

/* Пара рядом, а не слайдер: кадры «до» и «после» сняты в разном масштабе,
   на линии раздела лица не совпадали и пара читалась как два человека.
   «До» намеренно мельче — это телефонный кадр, он и должен быть скромнее. */
.compare-pair {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 0.5rem;
  align-items: end;
}
.compare-pair figure { margin: 0; }
.compare-pair img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 22%;
}
.compare-now img { aspect-ratio: 2 / 3; object-position: center top; }
.compare-pair figcaption {
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-now figcaption { color: var(--ink); }

.compare-meta { margin-top: 1rem; }
.compare-meta h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
}
.compare-meta p { font-size: 0.875rem; color: var(--muted); }

/* ---------- 11. author ---------- */

.author {
  background: var(--bg-deep);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.author-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}
.author-fig { margin: 0; max-width: 56vw; }
.author-fig img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.author-body { max-width: var(--measure); }
.author-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.author-body p + p { margin-top: 0.75rem; }

/* ---------- 12. pricing ---------- */

.pricing { padding-block: clamp(2.5rem, 7vw, 5rem); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.pricing-aside .lead { margin-top: 0.75rem; }
.pricing-fig { margin: 1.5rem 0 0; max-width: 50vw; }
.pricing-fig img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.pricing-fig figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.price-row {
  padding: 1.375rem 0;
  border-top: 1px solid var(--line);
}
.price-row:last-of-type { border-bottom: 1px solid var(--line); }

.price-name {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}
.price-chip {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 2px;
  text-transform: uppercase;
}
.price-sum {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.4vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.price-sum s { font-size: 0.5em; color: var(--muted); font-weight: 400; }
.price-desc { max-width: 34rem; font-size: 0.9375rem; color: var(--ink-2); }
.price-act { margin-top: 1rem; }

.price-row-focus {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem;
  margin-block: 0.5rem;
}
.price-row-focus + .price-row { border-top: 1px solid var(--line); }

/* Отметка выбранного пакета. Рисуем её на самой ссылке, а не фоном ряда:
   у ряда нет горизонтальных отступов, заливка липла бы к тексту, а любая
   попытка их добавить расширяет ряд шире колонки. Стрелка меняется на
   галочку — сдвига вёрстки нет. */
.price-row.is-picked .link-arrow { border-color: var(--ink); }
.price-row.is-picked .link-arrow::after { content: "✓"; transform: none; }
.price-row.is-picked .btn {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 20%, transparent);
}

.price-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- 13. reviews ---------- */

.reviews { padding-block: clamp(2.5rem, 7vw, 5rem); }

.review-lead { margin: 0 0 1.75rem; max-width: 44rem; }
.review-lead p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.4vw, 1.9rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 0.875rem;
}
.review-lead footer,
.review-pair footer {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.review-lead footer span,
.review-pair footer span { font-weight: 500; color: var(--muted); }

.review-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.review-pair blockquote { margin: 0; max-width: 30rem; }
.review-pair p {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin-bottom: 0.625rem;
}

.review-proof { margin-top: 1.5rem; }

/* ---------- 14. faq ---------- */

.faq-section { padding-block: clamp(2.5rem, 7vw, 5rem); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
}
.faq-aside .quiet { margin-top: 0.5rem; }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.875rem 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  padding: 0 0 1.125rem;
  max-width: 44rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ---------- 15. final ---------- */

.final {
  background: var(--stage);
  color: var(--paper);
  padding-block: clamp(2.5rem, 7vw, 5rem);
  /* Room so #final-title can clear the sticky header at max scroll. */
  padding-bottom: max(clamp(2.5rem, 7vw, 5rem), calc(var(--admin-bar-h) + var(--header-h) + 4rem));
}
.final-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.final-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5.4vw, 2.9rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin-bottom: 0.75rem;
  text-wrap: balance;
}
.final-sub {
  color: color-mix(in srgb, var(--paper) 66%, transparent);
  margin-bottom: 1.75rem;
  max-width: 30rem;
}

.lead-form { max-width: 30rem; }
.lead-fields {
  display: grid;
  gap: 0.875rem;
  margin-bottom: 1rem;
}
.lead-form label { display: block; }
.lead-form label > span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  margin-bottom: 0.375rem;
}
.lead-form input[type="text"] {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.875rem;
  background: color-mix(in srgb, var(--paper) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 22%, transparent);
  border-radius: 2px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
}
.lead-form input::placeholder { color: color-mix(in srgb, var(--paper) 38%, transparent); }
.lead-form input:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 1px;
}
.lead-form input[aria-invalid="true"] {
  border-color: #e0a08a;
}
.lead-form .btn {
  background: var(--paper);
  color: var(--ink);
  width: 100%;
}
.lead-form .btn:hover { background: color-mix(in srgb, var(--paper) 88%, var(--ink)); }
.lead-form .btn[disabled] { opacity: 0.6; cursor: progress; }

.form-bait {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Пакет, выбранный в блоке цен. Появляется только после выбора. */
.form-pack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin-bottom: 1rem;
  padding: 0.625rem 0.875rem;
  background: color-mix(in srgb, var(--paper) 10%, transparent);
  border-left: 2px solid var(--paper);
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}
/* display: flex перебивает браузерное [hidden] { display: none }, и чип с
   пустым названием пакета висел в форме до того, как тариф выбрали. */
.form-pack[hidden] { display: none; }
.form-pack b { font-weight: 700; color: var(--paper); }
/* Отдельный контрол, а не ссылка внутри абзаца, — тач-зона должна быть
   полноценной, поэтому набираем высоту, а не только подчёркнутый текст. */
.form-pack a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.form-pack a:hover { color: var(--paper); }

.form-note {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--paper) 52%, transparent);
}
.form-note a { color: inherit; }

.form-status {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.form-status.is-ok { color: #9fd6ae; }
.form-status.is-err { color: #e8a98f; }

.final-direct {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  font-size: 0.9375rem;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}
/* Telegram / WhatsApp / телефон стоят отдельными кнопками, а не внутри
   предложения, поэтому на них не действует исключение WCAG 2.5.8 для ссылок
   в тексте — добираем палец до 44 px. */
.final-direct a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--paper);
  font-weight: 600;
}

.final-fig { margin: 0; }
.final-fig img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.final-fig figcaption {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: color-mix(in srgb, var(--paper) 52%, transparent);
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: 2rem 6.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.footer-row a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration-color: var(--line);
}
.footer-row a:hover { color: var(--ink); }

/* ---------- sticky mobile CTA ---------- */

.sticky-cta {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 0.5rem;
  padding: 0.625rem clamp(1.125rem, 4vw, 2.5rem);
  padding-bottom: max(0.625rem, env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.sticky-cta[hidden] { display: none; }
.sticky-cta .btn { flex: 1; }
.sticky-cta .sticky-tg {
  display: grid;
  place-items: center;
  min-width: 52px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: var(--admin-bar-h) 0 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(12, 11, 9, 0.94);
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  margin: 0;
  display: grid;
  gap: 0.625rem;
  justify-items: center;
  max-height: 100%;
}
.lightbox img {
  max-height: min(calc(82vh - var(--admin-bar-h)), 1100px);
  max-width: 100%;
  width: auto;
  object-fit: contain;
}
.lightbox figcaption {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 253, 250, 0.62);
}
/* Подложка под стрелками обязательна: кадр занимает почти всю ширину, и
   белый глиф на светлой фотографии просто исчезал. Радиус 2px — как у
   остальных элементов страницы, чтобы это не выглядело чужим контролом. */
.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: rgba(12, 11, 9, 0.55);
  border: 0;
  border-radius: 2px;
  color: #fffdfa;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lightbox button:hover { background: rgba(12, 11, 9, 0.8); }
.lightbox-close {
  top: max(0.5rem, env(safe-area-inset-top));
  right: max(0.5rem, env(safe-area-inset-right));
}
.lightbox button:focus-visible {
  outline: 2px solid #fffdfa;
  outline-offset: -6px;
}
.lightbox-prev { left: 0.25rem; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 0.25rem; top: 50%; translate: 0 -50%; }

/* На телефоне вертикальный кадр занимает почти всю ширину, поэтому стрелки
   по центру лежали бы прямо на человеке. Уводим их в нижние углы — там
   свободное затемнение, и два тач-таргета разнесены по разным краям.
   Пролистывать при этом удобнее свайпом, кнопки остаются как подстраховка. */
@media (max-width: 639px) {
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: max(0.5rem, env(safe-area-inset-bottom));
    translate: none;
  }

  /* На 390×844 текстовый блок занимал весь первый экран, и от фотографии
     оставалась полоска в сотню пикселей. Подбираем вертикальный ритм так,
     чтобы кадр начинался заметно выше — страница про фотографию. */
  .hero { padding-block-start: 1.25rem; }
  .hero-grid { gap: 1.25rem; }
  #hero-h1 { margin-bottom: 0.875rem; }
  .hero-sub { margin-bottom: 1.25rem; }
  .hero-cta { margin-bottom: 1.25rem; }
  .hero-proof { padding-top: 0.875rem; }
}

/* ============================================================
   BREAKPOINTS
   ============================================================ */

@media (min-width: 640px) {
  .review-pair { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: repeat(2, 1fr); }
  .prepare-grid { grid-template-columns: repeat(2, 1fr); }

  /* Текста в панелях разное количество, и кадры начинались на разной высоте:
     рядом стоящие снимки одного размера это сразу выдаёт. Прижимаем их к низу
     колонки — низ и верх совпадают, потому что пропорции одинаковые. */
  .prepare-panel { display: flex; flex-direction: column; }
  .prepare-panel figure { margin-top: auto; padding-top: 1.25rem; }
  .strip li { width: 34vw; }
  .direct-rail li { width: 30vw; }
}

/* Четыре портрета в ряд раскладываем только с планшета. На 640px они давали
   плитки по 140px — то есть при росте экрана кадры становились мельче, чем
   в двух колонках до этого. Здесь ряд начинается от 170px. */
@media (min-width: 768px) {
  .people-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 900px) {
  :root { --header-h: 66px; }

  .nav { display: flex; }
  .header-actions .link-quiet { display: inline-flex; }

  /* Герой на высоту экрана: кадры уходят в правый край вьюпорта, а не
     стоят аккуратной колонкой внутри рельса. Урок Linear/Hinge — снимок
     занимает экран. Вертикали при этом только сужаются по кропу, что
     безопасно; расширять их нельзя. */
  .hero { padding-block: 0; }
  .hero-grid {
    max-width: none;
    margin-inline: 0;
    padding-left: max(clamp(1.125rem, 4vw, 2.5rem), calc((100vw - var(--rail)) / 2 + 2.5rem));
    padding-right: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr) minmax(0, 0.4fr);
    gap: clamp(0.75rem, 1.6vw, 1.25rem);
    align-items: stretch;
    min-height: min(calc(100svh - var(--header-h) - var(--admin-bar-h)), 820px);
  }
  .hero-copy {
    grid-column: 1;
    align-self: center;
    padding-block: 2.5rem;
    padding-right: clamp(1.5rem, 3vw, 3rem);
  }
  .hero-fig-a, .hero-fig-b {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: 100%;
    margin: 0;
  }
  /* Крупный портрет тянем на всю высоту: у кадра с лицом подрезать поля по
     бокам безопасно. Второму кадру так делать нельзя — он в полный рост, и
     при height: 100% из него срезалось около 38 % ширины, из-за чего кадр
     читался как обрезанный краем экрана. Поэтому он остаётся в своих
     пропорциях 2:3 и просто стоит ниже. */
  /* Заголовок набран по ширине вьюпорта, а живёт в колонке ~44 % от него.
     С прежним clamp(1.9rem, 7.2vw, 3.9rem) от 900px и выше упирался в
     максимум 62px и на 1024 разваливался на пять строк, раздувая герой
     ниже сгиба. Здесь кегль считается от десктопной сетки. */
  .h1-promise { font-size: clamp(2.4rem, 4.4vw, 3.9rem); }

  .hero-fig-a img { aspect-ratio: auto; height: 100%; min-height: 0; }
  .hero-fig-a { grid-column: 2; padding-top: 3.5rem; }
  /* Кадр в полный рост оставлен почти в своих пропорциях: 0.6 против
     родных 0.667 срезает 10 % ширины вместо 38 %, которые уходили при
     растяжении на всю высоту. Низ выровнен с подписью первого кадра. */
  .hero-fig-b {
    grid-column: 3;
    align-self: end;
    padding-bottom: 1.25rem;
  }
  .hero-fig-b img { aspect-ratio: 0.6; height: auto; }
  .hero-fig figcaption { padding-bottom: 1.25rem; }
  .hero-fig-b figcaption { padding-bottom: 0; }

  .natural-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); }

  /* серия: асимметрия с вертикальными сдвигами */
  .set-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: start;
    max-width: var(--rail);
    margin-inline: auto;
    overflow: visible;
  }
  .set-item { width: auto; max-width: none; }

  .strip li { width: 23vw; max-width: 340px; }
  .set-1 { grid-column: 1 / span 2; }
  .set-2 { grid-column: 3 / span 2; margin-top: 3.5rem; }
  .set-3 { grid-column: 5 / span 2; }
  .set-4 { grid-column: 1 / span 2; margin-top: 1rem; }
  .set-5 { grid-column: 3 / span 2; }
  .set-6 { grid-column: 5 / span 2; margin-top: 2.5rem; }

  /* sticky сцена: текст ведёт, фото держится */
  .direct-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: start;
  }
  .direct-stage {
    display: block;
    position: sticky;
    top: calc(var(--admin-bar-h) + var(--header-h) + 2rem);
  }
  .direct-frames img { max-height: calc(74vh - var(--admin-bar-h)); width: 100%; }
  .direct-rail { display: none; }
  /* Серия и кадры поз на десктопе разложены сеткой и липкой сценой —
     листать там нечего, подсказки со стрелками не нужны. */
  .direct-rail + .strip-hint,
  .strip-foot-mobile { display: none; }
  /* Неактивные пункты гасились через opacity: 0.4 — подпись падала до 1.7:1,
     а заголовок до 2.5:1, читать их было нельзя. Это содержание, а не декор,
     поэтому гасим цветом и остаёмся выше 4.5:1: неактивный пункт — --muted
     (4.8:1 на этом фоне), активный — почти чёрный. Разница видна не хуже. */
  .directives li h3,
  .directives li p { transition: color 0.4s var(--ease); }
  .directives li h3 { color: var(--muted); }
  .directives li.is-active h3 { color: var(--ink); }
  .directives li.is-active p { color: var(--ink-2); }

  /* Кадр ведут двое: прокрутка и курсор. Наведение — не единственный способ
     увидеть фотографию (при прокрутке они меняются сами), поэтому touch и
     клавиатура ничего не теряют. */
  /* Шаг между пунктами задаёт скорость истории: при прежних 92px одно
     движение колеса (120px) перескакивало через пункт, и кадр менялся
     рывками. 2.5rem сверху и снизу дают ряд ~136px — меньше одного
     «щелчка» колеса, поэтому кадры идут по одному. Заодно список стал
     дышать: 17px заголовки в 92px ряду стояли слишком тесно. */
  .directives li { padding-block: 2.5rem; }
  .directives li::before {
    content: "";
    position: absolute;
    left: -1.25rem;
    top: 2.75rem;
    width: 3px;
    height: 1.125rem;
    background: var(--ink);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
  }
  .directives li.is-active::before { opacity: 1; }

  .people-head { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr); align-items: end; }

  .women-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr); align-items: center; }

  .author-grid {
    grid-template-columns: auto minmax(0, 0.34fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.75rem);
    align-items: end;
  }
  .author-grid .label { grid-row: 1; margin: 0; }
  .author-fig { max-width: none; }

  .pricing-grid { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1fr); }
  .pricing-fig { max-width: none; }

  .faq-grid { grid-template-columns: minmax(0, 0.5fr) minmax(0, 1fr); }

  .final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr); }
  .lead-form .btn { width: auto; min-width: 15rem; }

  .sticky-cta { display: none; }
  .site-footer { padding-bottom: 2rem; }
}

@media (min-width: 1280px) {
  .strip { gap: 0.625rem; }
  .set-grid { gap: 2rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal-mask > img {
    clip-path: none !important;
    transform: none !important;
  }
  .direct-frames img { opacity: 1; }
  .direct-frames img:not(.is-active) { opacity: 0; }
  .directives li { opacity: 1 !important; }
}
