/* Лаборатория феминности · site_v2
   «Раскрытая книга, найденная в саду»: восемь глав-разворотов,
   тонкое оглавление сверху, номера глав сбоку, гравюры на прозрачном фоне. */

/* ── переменные ─────────────────────────────────────── */
:root {
  --milk-paper: #F5F0E8;   /* молочная бумага — основной фон */
  --cream-page: #F0E9DC;   /* кремовая страница */
  --parchment: #FAF6EE;    /* светлый пергамент */
  --paper-rose: #F5EEE9;   /* молочная + розовый подтон 4% */
  --paper-lavender: #F1EBE3; /* кремовая + лавандовый подтон 3% */

  --warm-graphite: #3A3230;
  --ink: #2C2523;
  --sepia: #6B5B4E;
  --dusty-pink: #C9A9A0;
  --lavender: #B8A9C9;
  --sage: #8B9478;
  --warm-ochre: #C4A265;
  --terracotta: #B07D6A;

  /* «чернильные» ступени акцентных цветов: текст не бывает прозрачным,
     тишина делается цветом, а не альфой (≥4.5:1 на всех пяти фонах) */
  --ochre-deep: #7E6128;   /* буквицы, номера глав, акцентные линейки */
  --terra-deep: #8E5C49;   /* даты встреч */
  --rose-deep: #7E5B52;    /* ссылки, приглашения, маргиналии */
  --lav-deep: #746489;     /* лавандовые пометки */
  --sage-deep: #646E58;    /* примечания форм */
  --page-shadow: #E5DDD0;
  --link-hover: #B08D84;
  --btn-hover: #E8E0D2;

  --head: "Cormorant Garamond", Georgia, serif;
  --text: "EB Garamond", Georgia, serif;
  --hand: "Caveat", cursive;

  --measure: 660px;   /* ширина текстовой колонки, ≤75 знаков */
  --spread: 1200px;   /* ширина разворота */
  --fade: 180px;      /* длина перехода тона между главами */
  --paper-age: 1;     /* сила «возраста» бумаги: 0 — чистый лист, 1.5 — заметно старше */

  /* модульная шкала в rem: на мобильных корень 16px, и вся шкала дышит сама */
  --fs-folio: .75rem;                  /* служебная мелочь: навигация, фолио, legal */
  --fs-note: .9rem;                    /* примечания, кнопки, приглашения */
  --fs-small: .95rem;                  /* вторичный текст: описания, био */
  --fs-body: 1.05rem;                  /* основной текст */
  --fs-h3: 1.35rem;                    /* заголовки карточек, шагов, встреч */
  --fs-name: 1.55rem;                  /* имена */
  --fs-pull: 1.6rem;                   /* врезки и выносные цитаты */
  --fs-closing: 1.7rem;                /* финальная фраза */
  --fs-sub: clamp(1.15rem, 2.2vw, 1.4rem);  /* подзаголовок главы */
  --fs-h2: clamp(1.9rem, 4.2vw, 2.6rem);    /* заголовок главы */
  --fs-h1: clamp(2.4rem, 5.4vw, 3.55rem);   /* титул */
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--warm-graphite);
  background-color: var(--milk-paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: oldstyle-nums;  /* старостильные цифры: даты, фолио */
  hanging-punctuation: first;
}

p { text-wrap: pretty; orphans: 2; widows: 2; }
h1, h2, h3 { text-wrap: balance; }

/* волокна и зерно листа поверх всего: материал, а не обои.
   Фактуры режет tools/paper.py из сырья модели (assets-src/t*.jpg) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 59;
  pointer-events: none;
  opacity: var(--paper-age);
  background: url("../img/t1-paper.b930870a.webp") 0 0 / 512px 512px repeat;
}

/* рамка разворота: одна фиксированная виньетка экрана вместо кромочных теней
   у каждой главы — у стыков глав и разделителей не возникает резких границ */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--paper-age);
  box-shadow: inset 0 0 110px -34px rgba(122, 104, 82, .05);
}

img { max-width: 100%; height: auto; }

::selection { background: rgba(201, 169, 160, .3); }

a { color: inherit; }

:focus-visible {
  outline: 1px solid var(--dusty-pink);
  outline-offset: 4px;
}

/* ── утилиты ────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 8px; left: 50%;
  transform: translate(-50%, -200%);
  z-index: 200;
  padding: 8px 20px;
  font: italic .85rem/1 var(--text);
  color: var(--warm-graphite);
  background: var(--parchment);
  border: 1px solid var(--page-shadow);
  border-radius: 2px;
  text-decoration: none;
  transition: transform .3s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

.centered { text-align: center; }

/* без JS страница должна быть читаемой сразу */
.no-js .fade-in { opacity: 1; transform: none; }

/* мягкое проявление при первом входе в кадр */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 900ms ease-out, transform 900ms ease-out;
}
.fade-in.visible { opacity: 1; transform: none; }

/* ── оглавление сверху ──────────────────────────────── */
.nav-contents {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 18px 48px 16px;
  background: linear-gradient(to bottom, var(--milk-paper) 55%, rgba(245, 240, 232, 0));
  transition: opacity .5s ease;
}

.nav-word {
  font: italic var(--fs-folio)/1 var(--text);
  letter-spacing: .08em;
  color: var(--sepia);
}

.nav-contents a {
  font-size: var(--fs-folio);
  letter-spacing: .08em;
  color: var(--sepia);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.nav-contents a:hover { color: var(--rose-deep); border-color: var(--dusty-pink); }
.nav-contents a.active { color: var(--ink); }

.nav-dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background-color: var(--page-shadow);
  display: inline-block;
}

/* оглавление прячется при быстром листании вниз и возвращается наверх */
.nav-contents.dimmed { opacity: 0; pointer-events: none; }

/* ── номера глав сбоку ──────────────────────────────── */
.page-indicator {
  position: fixed;
  right: 30px; top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--page-shadow);
  transition: background-color .3s ease, transform .3s ease;
}
.page-dot:hover { background-color: var(--link-hover); }
.page-dot.active { background-color: var(--dusty-pink); transform: scale(1.35); }

/* подпись главы при наведении */
.page-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font: italic var(--fs-folio)/1 var(--text);
  color: var(--sepia);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .3s ease;
}
.page-dot:hover::after, .page-dot.active::after { opacity: 1; }

/* ── оглавление на мобильных ────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 20px;
  background: linear-gradient(to bottom, var(--milk-paper) 65%, rgba(245, 240, 232, 0));
}

.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background-color: var(--warm-graphite);
  opacity: .6;
  transition: transform .3s ease, opacity .3s ease;
}
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--milk-paper);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--head);
  font-size: var(--fs-h3);
  color: var(--sepia);
  text-decoration: none;
  transition: color .3s ease;
}
.mobile-menu a:hover { color: var(--ink); }

/* ── главы-развороты ────────────────────────────────── */
section {
  position: relative;
  isolation: isolate;  /* разводы (::before с z-index:-1) ложатся на фон главы, а не под него */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px;
}

/* разводы: влага, когда-то тронувшая лист. Лежат в бумаге, под чернилами;
   зеркалим по главам, чтобы развороты не повторялись */
section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: calc(var(--paper-age) * .9);
  background: url("../img/t2-bloom.698fa464.webp") center / cover no-repeat;
  /* к кромкам главы разводы сходят на нет: стык с соседней главой
     и разделителем остаётся непрерывным */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
section:nth-of-type(even)::before { transform: scaleX(-1); }
section:nth-of-type(3n)::before { transform: scaleY(-1); background-position: 38% 62%; }
section:nth-of-type(6n)::before { transform: scale(-1); }
section:nth-of-type(4n+1)::before { background-position: 62% 34%; }

.section-inner {
  width: 100%;
  max-width: var(--spread);
  margin: 0 auto;
}

.text-column {
  max-width: var(--measure);
  margin: 0 auto;
}

.section-number {
  font-family: var(--head);
  font-size: .85rem;
  font-style: italic;
  letter-spacing: .16em;
  color: var(--ochre-deep);
  margin-bottom: 16px;
}

.section-heading {
  font-family: var(--head);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-subheading {
  font-family: var(--head);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-sub);
  line-height: 1.5;
  color: var(--sepia);
  margin-bottom: 8px;
}

.section-image { display: block; width: auto; }
.section-image.centered { margin: 32px auto; }
.section-image.small { max-width: 210px; margin-inline: auto; }

.chapter-endpiece {
  display: block;
  width: 130px;
  margin: 64px auto 0;
  opacity: .8;
}

/* ── разделители между главами ──────────────────────── */
.section-divider {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 24px;
}
.section-divider img { display: block; opacity: .75; }

/* ── 01 · титул ─────────────────────────────────────── */
.section-title {
  flex-direction: column;
  text-align: center;
  /* патина в углах — только титульный разворот, едва заметная */
  background-image:
    radial-gradient(42% 34% at 0% 0%, rgba(150, 128, 100, .05), rgba(150, 128, 100, 0) 72%),
    radial-gradient(26% 30% at 100% 6%, rgba(150, 128, 100, .03), rgba(150, 128, 100, 0) 74%),
    linear-gradient(180deg, var(--parchment) 0%, var(--milk-paper) 85%);
}

.section-title .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.corner-ornament {
  position: absolute;
  top: 76px; left: 48px;
  width: 85px;
  opacity: .5;
  pointer-events: none;
}

/* лёгкое потемнение краёв титульного разворота — не более 3% */
.vignette-left, .vignette-right {
  position: absolute;
  top: 0; bottom: 0;
  width: 90px;
  pointer-events: none;
}
.vignette-left { left: 0; background: linear-gradient(to right, rgba(229, 221, 208, .28), transparent); }
.vignette-right { right: 0; background: linear-gradient(to left, rgba(229, 221, 208, .28), transparent); }

.title-art { width: 240px; margin-bottom: 40px; }

.title-main {
  font-family: var(--head);
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: .05em;
  color: var(--ink);
  margin-bottom: 28px;
}

.title-sub {
  font-family: var(--head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  line-height: 1.55;
  color: var(--sepia);
  max-width: 520px;
  margin-bottom: 40px;
}

.title-folio {
  font-size: var(--fs-folio);
  font-style: italic;
  letter-spacing: .08em;
  color: var(--sepia);
}

.title-scroll-hint {
  position: absolute;
  bottom: 44px; left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-folio);
  letter-spacing: .12em;
  color: var(--sepia);
  animation: gentlePulse 4s ease-in-out infinite;
  transition: opacity 1s ease;
}
/* гаснет после первого листания: animation перебивает inline-стиль, поэтому классом */
.title-scroll-hint.gone { opacity: 0; animation: none; }
@keyframes gentlePulse {
  0%, 100% { opacity: .9; }
  50% { opacity: 1; }
}

/* ── 02 · фемина ────────────────────────────────────── */
.section-femininity {
  background: linear-gradient(180deg,
    var(--milk-paper) 0, var(--paper-rose) var(--fade),
    var(--paper-rose) calc(100% - var(--fade)), var(--milk-paper) 100%);
}

.femininity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 80px;
  align-items: center;
}

.body-text {
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--warm-graphite);
  margin-bottom: 1.35rem;
}

/* буквица — живая типографика вместо отдельной картинки:
   знак в три строки текста, цвет — охра в чернилах (≥3:1 для крупного знака) */
.dropcap::first-letter {
  float: left;
  font-family: var(--head);
  font-weight: 500;
  font-size: 7.2em;
  line-height: .76;
  margin: 8px 14px 0 0;
  color: var(--ochre-deep);
}

/* разрядка первых слов после буквицы — приём инкунабул */
.versal {
  font-variant-caps: small-caps;
  letter-spacing: .08em;
}

/* акцент первого уровня: курсив + чернила + волосяное подчёркивание */
.hl {
  font-style: italic;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--dusty-pink);
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
}

/* акцент второго уровня: врезка-вопрос в теле главы */
.lead-question {
  font-family: var(--head);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-pull);
  line-height: 1.5;
  color: var(--ink);
  margin: 2rem 0 2rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--warm-ochre);
}

.femininity-figure img { display: block; width: 270px; margin: 0 auto; }

/* пометка на полях: рукописный шрифт + малая виньетка */
.margin-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 340px;
  margin: 36px 0 0 auto;
  padding-left: 12px;
}
.margin-note img { width: 44px; opacity: .85; flex: none; }
.margin-note span {
  font-family: var(--hand);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--rose-deep);
}

/* ── 03 · оптика ────────────────────────────────────── */
.section-optics {
  background: linear-gradient(180deg,
    var(--milk-paper) 0, var(--cream-page) var(--fade),
    var(--cream-page) calc(100% - var(--fade)), var(--milk-paper) 100%);
}
.section-optics .section-image { width: 400px; max-width: 100%; margin-top: 40px; }

.optics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 72px;
  max-width: 940px;
  margin: 56px auto 0;
}

.optic-card {
  padding: 32px 24px 28px;
  text-align: center;
  border-top: 1px solid rgba(229, 221, 208, .9);
}

.optic-emblem { height: 72px; width: auto; margin-bottom: 22px; opacity: .9; }

.optic-title {
  font-family: var(--head);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}

.optic-desc {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--sepia);
}

/* ── 04 · для кого ──────────────────────────────────── */
.section-forwhom { background: var(--milk-paper); }

.sketches {
  max-width: 900px;
  margin: 56px auto 0;
}

.sketch {
  display: flex;
  align-items: center;
  gap: 56px;
  padding: 44px 0;
}
.sketch + .sketch { border-top: 1px solid rgba(229, 221, 208, .8); }
/* зарисовки чередуются: картинка то слева, то справа */
.sketch.flip img { order: 2; }

.sketch img {
  /* basis и height — auto: иначе атрибут height из html растягивает кадр
     поперёк пропорции (flex-basis задаёт ширину, height остаётся фиксом) */
  flex: 0 0 auto;
  display: block;
  width: auto;
  height: auto;
  max-width: 270px;
  max-height: 320px;
  margin: 0 auto;
  opacity: .92;
}
/* плотные кадры без воздуха (ладони, стол) — чуть меньше воздушных */
.sketch img.dense { max-width: 215px; max-height: 260px; }

.sketch figcaption {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--fs-body);
  font-style: italic;
  line-height: 1.72;
  color: var(--warm-graphite);
}
.sketch figcaption::before { content: "— "; color: var(--dusty-pink); }

/* выносная цитата — акцент второго уровня: звёздочка-цветочек над ней */
.quote-star {
  display: block;
  width: 26px; height: 26px;
  margin: 64px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23C4A265' stroke-width='.9'%3E%3Cellipse cx='12' cy='7' rx='2' ry='4.6'/%3E%3Cellipse cx='12' cy='7' rx='2' ry='4.6' transform='rotate(60 12 12)'/%3E%3Cellipse cx='12' cy='7' rx='2' ry='4.6' transform='rotate(120 12 12)'/%3E%3Cellipse cx='12' cy='7' rx='2' ry='4.6' transform='rotate(180 12 12)'/%3E%3Cellipse cx='12' cy='7' rx='2' ry='4.6' transform='rotate(240 12 12)'/%3E%3Cellipse cx='12' cy='7' rx='2' ry='4.6' transform='rotate(300 12 12)'/%3E%3Ccircle cx='12' cy='12' r='1.3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}

.section-quote {
  font-family: var(--head);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-pull);
  line-height: 1.55;
  text-align: center;
  color: var(--ink);
  max-width: 560px;
  margin: 20px auto 0;
}

/* ── 05 · о нас ─────────────────────────────────────── */
.section-about {
  background: linear-gradient(180deg,
    var(--milk-paper) 0, var(--paper-lavender) var(--fade),
    var(--paper-lavender) calc(100% - var(--fade)), var(--milk-paper) 100%);
}

.lavender-note {
  align-self: center;
  justify-self: center;
  width: 44px;
  height: auto;
  opacity: .75;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 44px;
  max-width: 900px;
  margin: 56px auto 0;
}

.about-person { text-align: center; }

.about-photo { width: auto; height: 400px; margin-bottom: 28px; }

.about-name {
  font-family: var(--head);
  font-weight: 400;
  font-size: var(--fs-name);
  color: var(--ink);
  margin-bottom: 16px;
}

.about-text {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--warm-graphite);
  max-width: 380px;
  margin: 0 auto 14px;
  text-align: left;
}

.about-note {
  font-family: var(--hand);
  font-size: 1rem;
  color: var(--lav-deep);
  margin-top: 22px;
}

/* ── 06 · встречи ───────────────────────────────────── */
.section-meetings { background: var(--milk-paper); }
.section-meetings .section-image { margin-bottom: 40px; }

.meetings-list {
  max-width: 660px;
  margin: 0 auto;
  list-style: none;
}

.meeting-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 32px;
  align-items: baseline;
  padding: 30px 0 30px 18px;
}
.meeting-item + .meeting-item { border-top: 1px solid rgba(229, 221, 208, .9); }

.meeting-date {
  font-size: var(--fs-note);
  letter-spacing: .04em;
  color: var(--terra-deep);
}

.meeting-title {
  font-family: var(--head);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 6px;
}

.meeting-desc {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--sepia);
}

/* прошедшие — записи в архиве: сепия вместо прозрачности */
.meeting-item.past .meeting-date,
.meeting-item.past .meeting-title,
.meeting-item.past .meeting-desc { color: var(--sepia); }

/* ближайшие — полный цвет, чернильная дата и тонкая розовая линия слева */
.meeting-item.upcoming { position: relative; }
.meeting-item.upcoming::before {
  content: "";
  position: absolute;
  left: 0; top: 30px; bottom: 30px;
  width: 2px;
  background-color: var(--dusty-pink);
  opacity: .55;
}
.meeting-item.upcoming .meeting-date {
  font-family: var(--text);
  font-weight: 500;
  color: var(--terra-deep);
}

/* будущие — наброски: пунктир, курсив, сепия */
.meeting-item.future { position: relative; }
.meeting-item.future::before {
  content: "";
  position: absolute;
  left: 0; top: 30px; bottom: 30px;
  border-left: 1px dashed var(--dusty-pink);
  opacity: .7;
}
.meeting-item.future .meeting-title,
.meeting-item.future .meeting-desc { font-style: italic; color: var(--sepia); }
.meeting-item.future .meeting-date { color: var(--sepia); }

/* ── 07 · формат ────────────────────────────────────── */
.section-format {
  background: linear-gradient(180deg,
    var(--milk-paper) 0, var(--cream-page) var(--fade),
    var(--cream-page) calc(100% - var(--fade)), var(--milk-paper) 100%);
}

.format-steps {
  max-width: 780px;
  margin: 56px auto 0;
}

.format-step {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 0;
}
.format-step + .format-step { border-top: 1px solid rgba(229, 221, 208, .8); }
.format-step.flip .step-image { order: 2; }

.format-step > div { flex: 1 1 0; min-width: 0; }

.step-image {
  flex: 0 1 240px;
  display: block;
  width: auto;
  max-width: 240px;
  margin: 0 auto;
  opacity: .92;
}

.format-step-title {
  font-family: var(--head);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 14px;
}

.format-step-text {
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--warm-graphite);
}

.formats-lead {
  font-family: var(--head);
  font-style: italic;
  font-size: 1.15rem;
  text-align: center;
  color: var(--sepia);
  margin: 72px auto 40px;
}

/* карточки форматов — как страницы каталога */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 980px;
  margin: 0 auto;
}

.format-card {
  padding: 32px 24px 28px;
  text-align: center;
  background: rgba(250, 246, 238, .5);
  border: 1px solid rgba(229, 221, 208, .9);
  border-radius: 2px;
}

.card-emblem { height: 66px; width: auto; margin-bottom: 20px; }

.card-title {
  font-family: var(--head);
  font-weight: 400;
  font-size: var(--fs-h3);
  color: var(--ink);
  margin-bottom: 12px;
}

.card-desc {
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--sepia);
  margin-bottom: 20px;
}

/* ссылка-приглашение, а не кнопка-призыв */
.card-invite {
  font-style: italic;
  font-size: var(--fs-note);
  color: var(--rose-deep);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .3s ease, border-color .3s ease;
}
.card-invite:hover { color: var(--terra-deep); border-color: currentColor; }

/* ── 08 · рядом ─────────────────────────────────────── */
.section-invitation {
  text-align: center;
  background: linear-gradient(180deg,
    var(--milk-paper) 0, var(--parchment) var(--fade), var(--parchment) 100%);
}
.section-invitation .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.invitation-art { width: 120px; margin-bottom: 40px; }

.invitation-text {
  font-family: var(--head);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.6vw, 1.35rem);
  line-height: 1.6;
  color: var(--warm-graphite);
  max-width: 520px;
  margin-bottom: 44px;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 380px;
  margin-bottom: 20px;
}

.subscribe-input {
  width: 100%;
  padding: 13px 20px;
  font-family: var(--text);
  font-size: var(--fs-small);
  font-style: italic;
  color: var(--warm-graphite);
  background: rgba(255, 253, 248, .45);
  border: 1px solid var(--page-shadow);
  border-radius: 2px;
  outline: none;
  transition: border-color .3s ease, background-color .3s ease;
}
.subscribe-input::placeholder { color: var(--sepia); }
.subscribe-input:focus { border-color: var(--dusty-pink); background: rgba(255, 253, 248, .7); }

.subscribe-btn {
  padding: 10px 32px;
  font-family: var(--text);
  font-size: var(--fs-note);
  font-style: italic;
  letter-spacing: .02em;
  color: var(--rose-deep);
  background: transparent;
  border: 1px solid var(--dusty-pink);
  border-radius: 2px;
  cursor: pointer;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.subscribe-btn:hover { background-color: var(--btn-hover); color: var(--ink); border-color: var(--link-hover); }

.form-note {
  font-style: italic;
  font-size: var(--fs-note);
  color: var(--sage-deep);
}

.legal {
  font-size: var(--fs-folio);
  font-style: italic;
  color: var(--sepia);
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
  margin-bottom: 48px;
}

.social-link {
  display: block;
  color: var(--sepia);
  transition: color .3s ease;
}
.social-link:hover { color: var(--rose-deep); }
.social-link svg { display: block; width: 22px; height: 22px; }

.closing-phrase {
  font-family: var(--head);
  font-weight: 400;
  font-size: var(--fs-closing);
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 44px;
}

.final-art { width: 200px; opacity: .9; }

/* ── подвал ─────────────────────────────────────────── */
.site-footer {
  padding: 40px 24px 56px;
  text-align: center;
  background: var(--parchment);
}
.site-footer img { display: block; margin: 0 auto 16px; opacity: .7; }
.site-footer p {
  font-size: var(--fs-folio);
  font-style: italic;
  color: var(--sepia);
}

/* ── адаптивность ───────────────────────────────────── */
@media (max-width: 1180px) {
  .corner-ornament { width: 68px; top: 72px; left: 28px; }
}

@media (max-width: 1023px) {
  section { padding: 96px 32px; }
  .nav-contents { padding: 16px 24px 14px; gap: 6px 16px; }
  .nav-contents a { font-size: .7rem; }
  .nav-word { display: none; }
  .page-indicator { display: none; }

  .femininity-layout { grid-template-columns: 1fr; gap: 56px; }
  .femininity-figure { order: -1; }
  .margin-note { margin-inline: auto; }

  .optics-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }

  .sketch, .sketch.flip { gap: 40px; }
  .sketch img, .sketch.flip img { max-width: 210px; max-height: 270px; }
  .sketch img.dense { max-width: 170px; max-height: 215px; }
  .sketch.flip img { order: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 72px; }
  .lavender-note { width: 40px; }

  .format-step, .format-step.flip { gap: 40px; }
  .format-step .step-image, .format-step.flip .step-image { flex-basis: 200px; max-width: 200px; order: 0; }

  .cards-grid { grid-template-columns: 1fr; gap: 28px; max-width: 460px; }
}

@media (max-width: 767px) {
  html { font-size: 16px; }
  section { padding: 72px 24px; min-height: 0; }
  .section-title { min-height: 100svh; padding: 96px 24px 88px; }

  .nav-contents { display: none; }
  .mobile-nav { display: block; }
  .corner-ornament { width: 56px; top: 64px; left: 16px; }
  .title-art { width: 190px; margin-bottom: 32px; }
  .title-scroll-hint { bottom: 28px; }

  .dropcap::first-letter { font-size: 5.4em; }
  .margin-note { max-width: none; }

  .optics-grid { grid-template-columns: 1fr; gap: 28px; }
  .optic-card { border-top: none; border-bottom: 1px solid rgba(229, 221, 208, .9); padding-bottom: 28px; }

  .sketch, .sketch.flip {
    flex-direction: column;
    gap: 24px;
    padding: 36px 0;
    text-align: center;
  }
  .sketch img, .sketch.flip img { order: 0; max-width: 230px; max-height: 300px; }
  .sketch img.dense { max-width: 185px; max-height: 235px; }
  .sketch figcaption, .sketch.flip figcaption { text-align: left; }

  .about-photo { height: 320px; }
  .about-text { text-align: left; }

  .meeting-item { grid-template-columns: 1fr; gap: 6px; padding-left: 14px; }
  .meeting-item.upcoming::before { top: 24px; bottom: 24px; }

  .format-step, .format-step.flip {
    flex-direction: column;
    gap: 24px;
    padding: 32px 0;
  }
  .format-step .step-image, .format-step.flip .step-image { order: 0; flex-basis: auto; max-width: 220px; }

  .subscribe-form { max-width: 320px; }
  .final-art { width: 160px; }
  .chapter-endpiece { width: 104px; margin-top: 48px; }
}

/* ── уважение к настройкам и печать ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

@media print {
  .nav-contents, .mobile-nav, .page-indicator, .title-scroll-hint, body::before, body::after { display: none; }
  section { min-height: 0; padding: 24px 0; page-break-inside: avoid; }
}
