/* ==========================================================================
   IMINERA Avatar, K1 «Эталон»: styles.css (шаг 1: каркас)
   Ателье-люкс: тёмный тёплый и кремовый, антиква, воздух, тонкие линии.
   Содержание: 1 токены · 2 reset · 3 типографика · 4 раскладка · 5 кнопки
   6 поля формы · 7 заглушки · 8 шапка · 9 hero · 10 problem · 11 etalon
   12 fit-model · 13 reduced motion
   Mobile-first: базовые стили для 360 px, расширения через min-width.
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  --bg: #1A1714;
  --bg-2: #221E1A;
  --bg-3: #2B2621;
  --cream: #F4EEE4;
  --cream-2: #EAE1D2;
  --cream-3: #DCD0BC;
  --ink: #1F1B17;
  --ink-soft: #5E564C;
  --text: #EFE7DA;
  --text-soft: #B3A99B;
  --line-d: rgba(244, 238, 228, .16);
  --line-l: rgba(31, 27, 23, .16);
  --accent: #E91E63;       /* только точки, линии, выноски; не мелкий текст на тёмном */
  --accent-dark: #C2185B;  /* фон кнопок с белым текстом */
  --accent-darker: #A5134D;
  --field-line: #857A6B;   /* рамка полей: контраст с кремовым не ниже 3:1 */

  --font-head: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(20px, 4vw, 32px);
  --container: 1200px;
  --section-y: clamp(4rem, 9vw, 8rem);
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* Переключатель вариантов 1/2/3 (общий proto-switch-k.css) */
  --sw-bg: transparent;
  --sw-line: var(--line-d);
  --sw-fg: var(--text-soft);
  --sw-fg-hover: var(--text);
  --sw-active-bg: var(--accent-dark);
  --sw-active-fg: #fff;
  --sw-font: 'Montserrat', system-ui, sans-serif;
}

/* Тема секции: тёмная по умолчанию, кремовая через .section--light.
   Дальнейшие шаги берут цвета из --s-* и не зависят от конкретной темы. */
.section--dark,
.section--light {
  background: var(--s-bg);
  color: var(--s-fg);
}
.section--dark {
  --s-bg: var(--bg);
  --s-fg: var(--text);
  --s-soft: var(--text-soft);
  --s-line: var(--line-d);
  --s-line-strong: rgba(244, 238, 228, .45);
  --s-focus: var(--accent);
}
.section--light {
  --s-bg: var(--cream);
  --s-fg: var(--ink);
  --s-soft: var(--ink-soft);
  --s-line: var(--line-l);
  --s-line-strong: rgba(31, 27, 23, .5);
  --s-focus: var(--accent-dark);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--s-focus, var(--accent));
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

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

/* ---------- 3. Типографика ---------- */
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-variant-numeric: lining-nums;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 6.5vw, 5.5rem);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -.01em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
}
h3 {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2;
  font-weight: 500;
}
em { font-style: italic; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--s-soft, var(--text-soft));
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.lead {
  max-width: 36rem;
  margin-top: 24px;
  font-size: 1.0625rem;
  color: var(--s-soft, var(--text-soft));
}

/* ---------- 4. Раскладка ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section__head { max-width: 40rem; }
.section__head h2 { margin-top: 20px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 1024px) {
  .split--5-7 {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(4rem, 7vw, 7rem);
    align-items: start;
  }
}

/* ---------- 5. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .04em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn-primary {
  background: var(--accent-dark);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-darker); }
.btn-secondary {
  background: transparent;
  color: var(--s-fg, var(--text));
  border-color: var(--s-line-strong, rgba(244, 238, 228, .45));
}
.btn-secondary:hover { border-color: currentColor; }
.btn-sm {
  min-height: 44px;
  padding: 0 20px;
  font-size: .8125rem;
}
.btn-block { width: 100%; }
.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

/* ---------- 6. Поля формы (общие; разметка формы приходит на шаге 2) ---------- */
label {
  display: block;
  margin-bottom: 8px;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--s-soft, var(--text-soft));
}
input,
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  background: rgba(255, 255, 255, .55);
  border: 1px solid var(--field-line);
  border-radius: var(--radius);
}
textarea {
  min-height: 128px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder { color: var(--ink-soft); }
input:hover,
textarea:hover { border-color: var(--ink-soft); }

.request-form {
  display: grid;
  gap: 20px;
}
.form-row-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 640px) {
  .form-row-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.form-status {
  padding: 14px 16px;
  font-size: .9375rem;
  color: var(--ink);
  border-left: 2px solid var(--accent-dark);
  background: rgba(194, 24, 91, .08);
}

/* ---------- 7. Заглушки ---------- */
.stub {
  padding: 0 .2em;
  background: rgba(233, 30, 99, .12);
  border-bottom: 1px dashed currentColor;
  border-radius: 1px;
  cursor: help;
}

.img-stub {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--ar, 4 / 5);
  padding: 16px;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .06em;
  text-align: center;
  color: var(--s-soft, var(--text-soft));
  border: 1px dashed var(--s-line-strong, rgba(244, 238, 228, .45));
  background: repeating-linear-gradient(135deg, transparent 0 10px, var(--s-line, var(--line-d)) 10px 11px);
}

/* ---------- 8. Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line-d);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
  min-height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 14px;
}
.logo img {
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Бургер показывается только когда JS поднял класс js-ready */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-d);
  border-radius: var(--radius);
  cursor: pointer;
}
.js-ready .nav-toggle { display: inline-flex; }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Меню: без JS стоит в потоке под логотипом, с JS на мобильном сворачивается в панель */
.header-menu {
  display: flex;
  flex: 0 0 100%;
  flex-direction: column;
  gap: 20px;
  padding-block: 8px 24px;
}
.js-ready .header-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h));
  padding: 8px var(--gutter) 28px;
  overflow-y: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line-d);
}
.js-ready .header-menu.is-open { display: flex; }

.main-nav ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  list-style: none;
}
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-family: var(--font-head);
  font-size: 1.625rem;
  line-height: 1.2;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line-d);
}
.main-nav a:hover { color: #fff; }

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.proto-switch,
.proto-switch__btn { border-radius: var(--radius); }
.header-menu .proto-switch__btn {
  min-width: 44px;
  height: 44px;
}
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone:hover { color: #fff; }
.header-phone__icon { flex: none; color: var(--text-soft); }

@media (min-width: 640px) {
  .logo img { width: 132px; }
}

/* Полная шапка: логотип · навигация по центру · переключатель, телефон, CTA */
@media (min-width: 1280px) {
  .nav-toggle,
  .js-ready .nav-toggle { display: none; }

  .header-menu,
  .js-ready .header-menu {
    display: flex;
    position: static;
    flex: 1 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-height: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border-bottom: 0;
  }

  .main-nav { margin-inline: auto; }
  .main-nav ul {
    flex-direction: row;
    gap: 2px;
  }
  .main-nav a {
    position: relative;
    min-height: 44px;
    padding-inline: 10px;
    font-family: var(--font-body);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-soft);
    border-bottom: 0;
  }
  .main-nav a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s var(--ease);
  }
  .main-nav a:hover { color: var(--text); }
  .main-nav a:hover::after { transform: scaleX(1); }

  .header-tools { flex-wrap: nowrap; gap: 20px; }
  .header-menu .proto-switch__btn {
    min-width: 28px;
    height: 28px;
  }
}

/* ---------- 9. Hero ---------- */
.hero {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: 0;
  overflow-x: clip;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.hero__copy { max-width: 36rem; }
.hero__title { margin-top: 20px; }
.hero__lead {
  max-width: 32rem;
  margin-top: 24px;
  font-size: 1.0625rem;
  color: var(--text-soft);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* Фигура: тёплая «сцена» под фото. Светлое фото умножается на неё и маскируется по краям,
   поэтому растворяется в тёмном hero. --reveal (0..1) готов для анимации шага 3. */
.hero__figure {
  --reveal: 1;
  position: relative;
  isolation: isolate;
  aspect-ratio: 864 / 1184;
  margin-inline: calc(var(--gutter) * -1);
  background: radial-gradient(ellipse 48% 42% at 50% 46%, #5C4F42 0%, #332B24 55%, var(--bg) 100%);
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: brightness(calc(.55 + .45 * var(--reveal)));
  -webkit-mask-image: radial-gradient(ellipse calc(30% + 20% * var(--reveal)) calc(34% + 24% * var(--reveal)) at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse calc(30% + 20% * var(--reveal)) calc(34% + 24% * var(--reveal)) at 50% 50%, #000 62%, transparent 100%);
}

/* Слой выносок: viewBox равен пропорциям фото, поэтому точки лежат на теле при любом размере */
.hero__marks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.mark { pointer-events: none; }
/* Задержка появления выносок по очереди (используется анимацией шага 3) */
.mark--bust,
.mark-label--bust { --mark-delay: 100ms; }
.mark--waist,
.mark-label--waist { --mark-delay: 250ms; }
.mark--hips,
.mark-label--hips { --mark-delay: 400ms; }
.mark__girth,
.mark__lead,
.mark__ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.mark__girth { stroke-opacity: .7; stroke-dasharray: 3 4; }
.mark__lead { stroke-opacity: .9; }
.mark__ring { stroke-opacity: .5; }
.mark__dot { fill: var(--accent); }

.hero__labels {
  position: absolute;
  inset: 0;
  margin: 0;
  list-style: none;
  pointer-events: none;
}
.mark-label {
  position: absolute;
  display: grid;
  gap: 2px;
  font-size: clamp(10px, 2.9vw, 12px);
  line-height: 1.25;
  white-space: nowrap;
}
.mark-label strong {
  font-weight: 500;
  color: var(--text);
}
.mark-label span { color: var(--text-soft); }
/* Подпись стоит над линией выноски: bottom = (100% - y/1184) + 6px.
   transform у подписей свободен для анимации шага 3. */
.mark-label--bust { bottom: calc(57.5% + 6px); right: 2%; text-align: right; }
.mark-label--waist { bottom: calc(45.5% + 6px); left: 2%; text-align: left; }
.mark-label--hips { bottom: calc(29.9% + 6px); right: 2%; text-align: right; }

/* Ряд цифр по нижнему краю hero (подтверждённые данные) */
.hero__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(0px, 4vw, 40px);
  list-style: none;
  border-top: 1px solid var(--line-d);
}
.hero__facts li {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px 0 26px 20px;
  border-left: 1px solid var(--line-d);
}
.hero__facts li:nth-child(odd) {
  padding-left: 0;
  border-left: 0;
}
.hero__facts li:nth-child(n+3) { border-top: 1px solid var(--line-d); }
.fact__num {
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 300;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--text);
}
.fact__unit {
  font-size: .5em;
  font-style: italic;
}
.fact__le {
  display: inline-block;
  width: .36em;
  height: .44em;
  margin-right: .08em;
  vertical-align: .08em;
  fill: none;
  stroke: currentColor;
  stroke-width: .9;
  stroke-linecap: square;
}
.fact__label {
  font-size: .75rem;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--text-soft);
}

@media (min-width: 480px) {
  .hero__figure {
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
  }
}
@media (min-width: 768px) {
  .hero__facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__facts li,
  .hero__facts li:nth-child(odd) {
    padding-left: 24px;
    border-left: 1px solid var(--line-d);
  }
  .hero__facts li:nth-child(n+3) { border-top: 0; }
  .hero__facts li:first-child {
    padding-left: 0;
    border-left: 0;
  }
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2rem, 4vw, 4rem);
  }
  /* колонка уже, чем в мобильной вёрстке, поэтому h1 чуть мельче базового clamp */
  .hero__title { font-size: clamp(3rem, 4.6vw, 4.75rem); }
  .hero__figure { max-width: 520px; }
  .hero__facts { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .hero__figure { max-width: 540px; }
}

/* ---------- 10. Problem (кремовый) ---------- */
.problem { overflow: hidden; }
.problem > .container {
  position: relative;
  z-index: 1;
}

/* K1-06: лекала веером, декоративный фон */
.problem__fan {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 0;
  width: min(100%, 760px);
  height: auto;
  color: var(--ink);
  opacity: .16;
  pointer-events: none;
}
.problem__fan path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1px;
  vector-effect: non-scaling-stroke;
}
.problem__fan .problem__grain { stroke-dasharray: 6 8; }
.problem__origin { fill: currentColor; }

.symptoms {
  margin: 0;
  list-style: none;
  border-bottom: 1px solid var(--s-line);
}
.symptom {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 16px;
  padding-block: 28px;
  border-top: 1px solid var(--s-line);
}
.symptom__num {
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-style: italic;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--s-soft);
}
.symptom__title { margin-bottom: 10px; }
.symptom__body p {
  max-width: 36rem;
  color: var(--s-soft);
}
@media (min-width: 768px) {
  .symptom {
    grid-template-columns: 5rem minmax(0, 1fr);
    padding-block: 36px;
  }
}

/* ---------- 11. Etalon (тёмный) ---------- */
.etalon__figure { margin: 0; }
.etalon__frame {
  position: relative;
  isolation: isolate;
  margin: 0 14px 14px 0;
}
/* смещённая тонкая рамка за фото */
.etalon__frame::before {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  z-index: -1;
  border: 1px solid var(--s-line-strong);
}
.etalon__frame img {
  width: 100%;
  height: auto;
}
.etalon__figure figcaption {
  margin-top: 32px;
  font-size: .75rem;
  line-height: 1.5;
  letter-spacing: .04em;
  color: var(--s-soft);
}

.etalon__content { min-width: 0; }
.etalon__text { margin-top: 32px; }
.etalon__text h3 {
  margin-top: 28px;
  font-style: italic;
  font-weight: 400;
}
.etalon__text h3:first-child { margin-top: 0; }
.etalon__text p {
  max-width: 38rem;
  margin-top: 10px;
  color: var(--s-soft);
}

.passport {
  margin-top: 40px;
  padding: clamp(20px, 3vw, 32px);
  background: var(--bg-2);
  border: 1px solid var(--s-line);
}
.passport__title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 400;
  font-style: italic;
}
.passport__title::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.passport__list { margin: 0; }
.passport__row {
  display: grid;
  gap: 4px;
  padding-block: 16px;
  border-top: 1px solid var(--s-line);
}
.passport dt {
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--s-soft);
}
.passport dd {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-variant-numeric: lining-nums;
  line-height: 1.3;
  color: var(--s-fg);
}
@media (min-width: 640px) {
  .passport__row {
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 24px;
    align-items: baseline;
  }
}

/* ---------- 12. Fit-model (кремовый) ---------- */
/* кремовый тоном темнее, чем problem: белые фото ложатся на него как паспарту */
.fit { --s-bg: var(--cream-2); }
.fit__main { min-width: 0; }
.fit__diptych {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.fit__fig { margin: 0; }
.fit__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--s-line);
}
/* плашка «временно» из tmp-borrowed.css должна лежать над кропом */
.fit__frame.tmp-borrowed::after { z-index: 5; }
.fit__frame img { position: absolute; }
/* живая модель: кадр 2 женщин -> одна фигура от головы до бёдер (zoom-кроп) */
.fit__frame--live img {
  width: 220%;
  max-width: none;
  height: auto;
  left: -13.2%;
  top: -8.6%;
}
.fit__frame--etalon img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.fit__fig figcaption {
  margin-top: 14px;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--s-soft);
}

.compare-wrap {
  margin-top: clamp(40px, 6vw, 64px);
  overflow-x: auto;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.compare th,
.compare td {
  padding: 18px 12px 18px 0;
  text-align: left;
  vertical-align: baseline;
  border-bottom: 1px solid var(--s-line);
}
.compare thead th {
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--s-soft);
}
.compare thead th:last-child {
  color: var(--s-fg);
  border-bottom-color: var(--accent-dark);
}
.compare thead th:first-child { width: 24%; }
.compare tbody th {
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--s-soft);
}
.compare td {
  font-family: var(--font-head);
  font-size: 1.125rem;
  line-height: 1.25;
  color: var(--s-soft);
}
.compare td:last-child {
  font-weight: 500;
  color: var(--s-fg);
}
@media (min-width: 768px) {
  .fit__diptych { gap: 24px; }
  .compare th,
  .compare td { padding-block: 24px; }
  .compare thead th:first-child { width: 20%; }
  .compare td { font-size: 1.5rem; }
}
@media (min-width: 1024px) {
  .fit__head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* ---------- 13. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .nav-toggle span,
  .main-nav a::after { transition: none; }
}
