/* ==========================================================================
   IMINERA Avatar, 0.1 «Лаборатория Iminera», тёмный: styles.css
   ОБЩИЙ файл: его подключают хаб и обе подстраницы (digital-avatar/, physical-mannequin/).
   Секции, которые относятся только к хабу (hero, выбор, «Почему»), лежат в hub.css.
   Движение (View Transitions, reveal, hover-эффекты) лежит в effects.css.

   Содержание:
    1 токены и темы секций      2 reset и база          3 типографика
    4 раскладка                 5 кнопки                6 форма и поля
    7 заглушки                  8 шапка                 9 футер
   10 блок «контакты и форма»  11 .section__head        12 .cards-grid и .card
   13 .steps                   14 .faq                 15 .price-card и .badge
   16 reduced motion
   Mobile-first: базовые стили для 360 px, расширения через min-width
   (640 / 768 / 1024 / 1280).
   ========================================================================== */

/* ---------- 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;

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

  /* Кривые движения (emil-design-eng): вход и отклик = ease-out, движение по экрану = ease-in-out */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);

  /* Переключатель вариантов (общий 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--dark) или кремовая (.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);
  --s-card: var(--bg-2);
  --s-card-hover: var(--bg-3);
  /* поля формы на тёмном */
  --f-bg: rgba(244, 238, 228, .05);
  --f-fg: var(--text);
  --f-ph: var(--text-soft);
  --f-border: #7A7064;
  --f-border-hover: var(--text-soft);
}
.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);
  --s-card: var(--cream-2);
  --s-card-hover: var(--cream-3);
  /* поля формы на кремовом: рамка контрастирует не ниже 3:1 */
  --f-bg: rgba(255, 255, 255, .55);
  --f-fg: var(--ink);
  --f-ph: var(--ink-soft);
  --f-border: #857A6B;
  --f-border-hover: var(--ink-soft);
}

/* ---------- 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.04;
  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);
}

.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;
  }
  .split--6-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }
}

/* ---------- 5. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  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),
    transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.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;
}

/* стрелка внутри кнопки: <svg class="btn__arrow"> */
.btn__arrow {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__arrow { transform: translateX(4px); }
}

/* значок внешней ссылки: <svg class="ext-icon"> */
.ext-icon {
  display: inline-block;
  flex: none;
  width: 10px;
  height: 10px;
  margin-left: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 6. Форма и поля ----------
   Разметка:
   <form class="form" id="request-form">
     <p class="form__status" id="form-status" role="status" aria-live="polite" hidden></p>
     <div class="field"><label for="f-name">Имя <span class="req" aria-hidden="true">*</span></label><input ...></div>
     <div class="field-row"> два .field в ряд (с 640 px) </div>
     <div class="field field--consent"><label class="consent"><input type="checkbox" required><span>…</span></label></div>
     <button class="btn btn-primary btn-block" type="submit">…</button>
     <p class="form__hint">…</p>
   </form>
   Цвета полей берутся из --f-* темы секции (кремовая и тёмная). */
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(--f-fg, var(--ink));
  background: var(--f-bg, rgba(255, 255, 255, .55));
  border: 1px solid var(--f-border, #857A6B);
  border-radius: var(--radius);
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
textarea {
  min-height: 128px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder { color: var(--f-ph, var(--ink-soft)); }
input:hover,
textarea:hover { border-color: var(--f-border-hover, var(--ink-soft)); }

.form {
  display: grid;
  gap: 20px;
}
.field,
.field-row > div { min-width: 0; }
.field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}
@media (min-width: 640px) {
  .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.req { color: var(--accent-dark); }
.section--dark .req { color: var(--accent); }

/* чекбокс согласия */
.field--consent { margin-top: -4px; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: .8125rem;
  font-weight: 400;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: normal;
  color: var(--s-soft, var(--text-soft));
}
.consent input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  min-height: 0;
  margin-top: 1px;
  accent-color: var(--accent-dark);
}

.form__status {
  padding: 14px 16px;
  font-size: .9375rem;
  color: var(--s-fg, var(--ink));
  border-left: 2px solid var(--accent-dark);
  background: rgba(194, 24, 91, .1);
}
.form__status[hidden] { display: none; }
.form__hint {
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--s-soft, var(--ink-soft));
}

/* ---------- 7. Заглушки ---------- */
/* ссылки-заглушки (соцсети, политика): видны глазом, подсказка в title */
.stub {
  padding: 0 .2em;
  background: rgba(233, 30, 99, .12);
  border-bottom: 1px dashed currentColor;
  border-radius: 1px;
  cursor: help;
}
a[title^="Заглушка"] { 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. Шапка ----------
   Логотип · навигация · переключатель вариантов · телефон · CTA.
   До 1280 px всё, кроме логотипа, уходит в бургер-меню. Без JS меню стоит в потоке. */
.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);
}

.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-out), opacity .2s var(--ease-out);
}
.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); }

.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; }
.main-nav a[aria-current="page"] { color: #fff; font-style: italic; }
.main-nav .ext-icon { width: 14px; height: 14px; margin-left: 10px; }
/* «← Лаборатория» на подстраницах: <li><a class="main-nav__back" href="../">← Лаборатория</a></li> */
.main-nav__back { color: var(--text-soft); }

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

@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;
    font-style: normal;
    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-out);
  }
  .main-nav a:hover { color: var(--text); }
  .main-nav a:hover::after,
  .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .main-nav a[aria-current="page"] { color: var(--text); font-style: normal; }
  .main-nav .ext-icon { width: 10px; height: 10px; margin-left: 6px; }

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

/* ---------- 9. Футер (тёмный) ----------
   <footer class="section--dark site-footer"> … footer__top / footer__mid / footer__bottom */
.site-footer {
  padding-block: clamp(2.5rem, 6vw, 4rem) 32px;
  border-top: 1px solid var(--s-line);
}
.site-footer a {
  color: var(--s-fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--s-line-strong);
  transition: text-decoration-color .18s var(--ease), color .18s var(--ease);
}
.site-footer a:hover { text-decoration-color: currentColor; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}
.footer__logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.footer__logo img {
  width: 132px;
  height: auto;
  filter: brightness(0) invert(1);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin: 0;
  list-style: none;
}
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 1.25rem;
}
.footer__mid {
  display: grid;
  gap: 24px 40px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--s-line);
}
.footer__col-title {
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--s-soft);
}
.footer__list {
  display: grid;
  margin: 0;
  list-style: none;
}
.footer__list a,
.footer__contacts a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 32px;
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--s-line);
  font-size: .875rem;
  color: var(--s-soft);
}
.footer__small {
  font-size: .75rem;
  letter-spacing: .04em;
}
.footer__small a { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 768px) {
  .footer__mid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 10. Контакты и форма ----------
   <section class="section section--light contact" id="form">
     .container.split.split--5-7 > .section__head.contact__head + .contact__panel > form.form */
.contact { overflow-x: clip; }
.contact__links {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin-top: 32px;
}
.contact__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
  color: var(--s-fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  text-decoration-color: var(--s-line-strong);
  transition: text-decoration-color .18s var(--ease);
}
.contact__links a:hover { text-decoration-color: currentColor; }
.contact__panel {
  min-width: 0;
  padding: clamp(20px, 4vw, 40px);
  background: var(--s-card);
  border: 1px solid var(--s-line);
}
@media (min-width: 1024px) {
  .contact__head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* ---------- 11. Заголовок секции ----------
   <div class="section__head">
     <p class="eyebrow">Преимущества</p>
     <h2 id="…">Заголовок</h2>
     <p class="lead">Необязательный подзаголовок</p>
   </div> */
.section__head { max-width: 44rem; }
.section__head h2 { margin-top: 20px; }
.section__head .lead { max-width: 38rem; }
.section__head--wide { max-width: 56rem; }

/* отступ между заголовком секции и её содержимым */
.section__head + .cards-grid,
.section__head + .steps,
.section__head + .faq,
.section__head + .prices { margin-top: clamp(2.5rem, 6vw, 4rem); }

/* ---------- 12. Сетка карточек и базовая карточка ----------
   <ul class="cards-grid cards-grid--3">
     <li class="card"><span class="card__num" aria-hidden="true">01</span><h3 class="card__title">…</h3><p class="card__text">…</p></li>
   </ul>
   Колонки: по умолчанию авто (от 16rem); --2, --3, --4 фиксируют число колонок на широком экране. */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 12px;
  margin: 0;
  list-style: none;
}
@media (min-width: 640px) {
  .cards-grid { gap: 16px; }
  .cards-grid--2,
  .cards-grid--3,
  .cards-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .cards-grid { gap: 20px; }
  .cards-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: clamp(20px, 3vw, 32px);
  color: var(--s-fg);
  background: var(--s-card);
  border: 1px solid var(--s-line);
  border-radius: var(--radius);
}
.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);
}
.card__title {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  line-height: 1.15;
}
.card__text {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--s-soft);
}
/* короткая акцентная засечка в углу: «живая» карточка */
.card--mark::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 40px;
  height: 2px;
  background: var(--accent-dark);
}
.section--dark .card--mark::before { background: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .card { transition: background-color .2s var(--ease), border-color .2s var(--ease); }
  .card:hover {
    background: var(--s-card-hover);
    border-color: var(--s-line-strong);
  }
}

/* ---------- 13. Шаги ----------
   <ol class="steps">            (вертикально, с тонкой линией; .steps--row даёт 4 колонки с 1024 px)
     <li class="step">
       <span class="step__num" aria-hidden="true">1</span>
       <div class="step__body">
         <h3 class="step__title">Вы оставляете заявку</h3>
         <p class="step__text">…</p>
         <p class="step__meta">3–5 рабочих дней</p>   (необязательно)
       </div>
     </li>
   </ol>
   <p class="steps__total">Тайминг: …</p> */
.steps {
  display: grid;
  margin: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  padding-bottom: 36px;
}
.step:last-child { padding-bottom: 0; }
/* тонкая вертикальная линия от кружка к следующему */
.step::before {
  content: "";
  position: absolute;
  top: 48px;
  bottom: 8px;
  left: 20px;
  width: 1px;
  background: var(--s-line-strong);
}
.step:last-child::before { display: none; }
.step__num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-style: italic;
  font-variant-numeric: lining-nums;
  line-height: 1;
  color: var(--s-fg);
  background: var(--s-bg);
  border: 1px solid var(--s-line-strong);
  border-radius: 50%;
}
.step__body { padding-top: 6px; }
.step__title {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.2;
}
.step__text {
  max-width: 36rem;
  margin-top: 8px;
  color: var(--s-soft);
}
.step__meta {
  display: inline-block;
  margin-top: 12px;
  padding: 2px 10px;
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--s-soft);
  border: 1px solid var(--s-line-strong);
}
.steps__total {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 20px;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-style: italic;
  line-height: 1.3;
  border-top: 1px solid var(--s-line);
}
.steps__total::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
@media (min-width: 1024px) {
  .steps--row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 28px;
  }
  .steps--row .step {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 0;
  }
  /* линия идёт горизонтально от кружка к следующему */
  .steps--row .step::before {
    top: 20px;
    bottom: auto;
    left: 52px;
    right: -20px;
    width: auto;
    height: 1px;
  }
  .steps--row .step__body { padding-top: 20px; }
}

/* ---------- 14. FAQ ----------
   <div class="faq">
     <details class="faq__item"><summary>Вопрос</summary><div class="faq__body"><p>Ответ</p></div></details>
   </div> */
.faq { min-width: 0; max-width: 56rem; }
.faq__item { border-top: 1px solid var(--s-line); }
.faq .faq__item:last-child { border-bottom: 1px solid var(--s-line); }
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 18px;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.3;
  color: var(--s-fg);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
/* плюс из двух линий: при открытии поворачивается в крестик */
.faq__item summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--s-soft);
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  transition: transform .25s var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item summary:focus-visible { outline-offset: -2px; }
.faq__body { padding: 0 40px 24px 0; }
.faq__body p {
  max-width: 40rem;
  color: var(--s-soft);
}

/* плавное раскрытие там, где браузер умеет ::details-content (Chrome 131+) */
@media (prefers-reduced-motion: no-preference) {
  @supports selector(::details-content) {
    .faq { interpolate-size: allow-keywords; }
    .faq__item::details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size .3s var(--ease-out), content-visibility .3s allow-discrete;
    }
    .faq__item[open]::details-content { block-size: auto; }
  }
}

/* ---------- 15. Карточка цены и бейдж ----------
   <div class="prices cards-grid cards-grid--2">
     <article class="price-card">
       <p class="price-card__label">Типовой аватар</p>
       <p class="price-card__price">20 000 ₽</p>
       <p class="price-card__note">…</p>
       <ul class="price-card__list"><li>…</li></ul>
       <a class="btn btn-secondary" href="#form">…</a>
     </article>
   </div>
   .price-card--featured подсвечивает карточку акцентной засечкой; .badge ставится рядом с ценой. */
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  padding: clamp(24px, 3.5vw, 40px);
  color: var(--s-fg);
  background: var(--s-card);
  border: 1px solid var(--s-line);
  border-radius: var(--radius);
}
.price-card--featured { border-color: var(--s-line-strong); }
.price-card--featured::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 56px;
  height: 2px;
  background: var(--accent-dark);
}
.section--dark .price-card--featured::before { background: var(--accent); }
.price-card__label {
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--s-soft);
}
.price-card__price {
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 5vw, 4rem);
  font-weight: 300;
  font-variant-numeric: lining-nums;
  line-height: 1;
  white-space: nowrap;
}
.price-card__note {
  max-width: 24rem;
  color: var(--s-soft);
}
.price-card__list {
  align-self: stretch;
  margin: 0;
  list-style: none;
  color: var(--s-soft);
  border-bottom: 1px solid var(--s-line);
}
.price-card__list li {
  padding-block: 12px;
  border-top: 1px solid var(--s-line);
}
.price-card .btn { margin-top: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--s-fg);
  border: 1px solid var(--accent);
  border-radius: 100px;
}

/* ---------- 16. Reduced motion ----------
   Статика: переходы выключены, раскрытие FAQ и движение стрелок убрано.
   Отклик цвета (hover) остаётся мгновенным, этого достаточно для понимания. */
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn__arrow,
  .nav-toggle span,
  .main-nav a::after,
  .card,
  input,
  textarea,
  .faq__item summary::after,
  .contact__links a,
  .site-footer a { transition: none; }
  .btn:active { transform: none; }
}
