/* ===========================================================================
   «Экспедиция к себе настоящему»
   Дизайн-система и стили. Один файл, без препроцессоров и сборки.

   Содержание:
   01. Шрифты
   02. Токены
   03. Сброс и база
   04. Типографика
   05. Кнопки и поля
   06. Появление при прокрутке
   07. Шапка
   08. Первый экран
   09. Секции лендинга
   10. Маршрут
   11. Вопросы и ответы
   12. Подвал
   13. Квест
   14. Экран расчёта
   15. Отчёт
   16. Атмосфера: бумага, свет, туман, тушь
   17. Печать (PDF)
   =========================================================================== */

/* 01. Шрифты ------------------------------------------------------------- */

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/spectral-300-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/spectral-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/spectral-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/spectral-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}

/* 02. Токены ------------------------------------------------------------- */

:root {
  /* Цвет */
  --paper:       #FEFCF7;
  --paper-warm:  #F3ECE0;
  --sand:        #EDE4D6;
  --sand-deep:   #DED2BF;

  --ink:         #232A26;
  --ink-soft:    #4F584F;
  --ink-mute:    #596057;

  --teal:        #2E6B66;
  --teal-soft:   #7FB0AA;
  --teal-wash:   #E8F0EE;
  --sage:        #6E866A;
  --gold:        #785911;
  --gold-soft:   #DFC895;

  --line:        rgba(35, 42, 38, 0.10);
  --line-strong: rgba(35, 42, 38, 0.18);
  /* Границы интерактивных элементов: не светлее 3:1 к бумаге (WCAG 1.4.11). */
  --line-ui:     rgba(35, 42, 38, 0.52);

  /* Типографика */
  --font-display: 'Spectral', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --fs-display: clamp(2.5rem, 1.55rem + 3.6vw, 4.25rem);
  --fs-h2:      clamp(1.85rem, 1.3rem + 2.3vw, 2.95rem);
  --fs-h3:      clamp(1.2rem, 1.06rem + 0.62vw, 1.55rem);
  --fs-lead:    clamp(1.04rem, 0.97rem + 0.36vw, 1.26rem);
  --fs-body:    1rem;
  --fs-small:   0.875rem;
  --fs-micro:   0.78rem;

  /* Ритм */
  --wrap:        1180px;
  --wrap-narrow: 720px;
  --wrap-text:   640px;
  --gutter:      clamp(1.25rem, 5vw, 3rem);
  --section:     clamp(4.5rem, 9vw, 8.5rem);

  --radius:      4px;
  --radius-lg:   8px;

  /* Движение */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.5s;
  --dur-slow: 0.9s;
}

/* 03. Сброс и база ------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  font-feature-settings: 'kern' 1, 'liga' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, picture { max-width: 100%; display: block; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
/* На тёмных поверхностях бирюзовый контур не читается — берём светлый. */
.band :focus-visible,
.consult :focus-visible,
.interstitial :focus-visible { outline-color: var(--gold-soft); }

::selection { background: var(--gold-soft); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }
.wrap--text   { max-width: var(--wrap-text); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
}
.skip-link:focus { left: 0; }

/* 04. Типографика -------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

.display {
  font-size: var(--fs-display);
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.25; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
  flex: none;
}
.eyebrow--center { justify-content: center; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--ink-soft);
}

.muted { color: var(--ink-mute); }
.small { font-size: var(--fs-small); }
.micro { font-size: var(--fs-micro); line-height: 1.55; }

.serif { font-family: var(--font-display); font-weight: 300; }

.rule {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0;
}

.link-quiet {
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-quiet:hover { color: var(--teal); border-color: var(--teal-soft); }

/* 05. Кнопки и поля ------------------------------------------------------ */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.05rem 2.1rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--teal);
  transform: translateY(101%);
  transition: transform 0.55s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { box-shadow: 0 12px 30px -14px rgba(35, 42, 38, 0.55); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-ui);
  padding: 0.72rem 1.4rem;
  font-size: 0.9rem;
}
.btn--ghost:hover { color: var(--paper); border-color: transparent; }

.btn--quiet {
  --btn-bg: transparent;
  --btn-fg: var(--ink-soft);
  border-color: var(--line);
}
.btn--quiet::after { background: var(--sand); }
.btn--quiet:hover { color: var(--ink); box-shadow: none; }

.btn--wide { width: 100%; }
.btn[disabled] { opacity: 0.35; pointer-events: none; }

.btn-arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.field { display: block; margin-bottom: 1.6rem; }
.field__label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.field__hint {
  display: block;
  font-size: var(--fs-micro);
  color: var(--ink-mute);
  margin-top: 0.5rem;
  line-height: 1.5;
}
.field__input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: transparent;
  border: 1px solid var(--line-ui);
  border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field__input::placeholder { color: var(--ink-mute); opacity: 1; }
.field__input:hover { border-color: var(--ink-soft); }
.field__input:focus {
  border-color: var(--teal);
  background: #fff;
}
.field__input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.field__error {
  display: none;
  font-size: var(--fs-micro);
  color: #A8452F;
  margin-top: 0.5rem;
}
.field.is-invalid .field__input { border-color: #C4715C; }
.field.is-invalid .field__error { display: block; }

/* 06. Появление при прокрутке -------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* 07. Шапка -------------------------------------------------------------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  padding-block: 1.1rem;
  transition: background-color 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft),
              padding 0.45s var(--ease-soft), transform 0.45s var(--ease);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav.is-stuck {
  background: rgba(252, 250, 246, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 0.7rem;
}
.nav.is-hidden { transform: translateY(-120%); }
/* Шапка спрятана прокруткой — но не тогда, когда в ней клавиатурный фокус. */
.nav.is-hidden:focus-within { transform: none; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.brand__mark { width: 26px; height: 26px; flex: none; color: var(--teal); }
.brand__text { display: none; }
@media (max-width: 559px) { .brand { min-width: 44px; } }
@media (min-width: 560px) { .brand__text { display: block; } }

.nav__links {
  display: none;
  gap: 2rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__links a { position: relative; padding-block: 0.45rem; }
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

/* 08. Первый экран ------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 8vw, 7rem);
  padding-top: 7rem;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
/* Снимок отражён по горизонтали: так гребень уходит вправо и не спорит с текстом. */
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  transform: scaleX(-1) scale(1.08);
  animation: heroIn 2.4s var(--ease) forwards;
}
@keyframes heroIn { to { transform: scaleX(-1) scale(1); } }

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(252,250,246,0.55) 0%, rgba(252,250,246,0) 30%),
    linear-gradient(to top, var(--paper) 3%, rgba(250,247,240,0.5) 17%, rgba(250,247,240,0.06) 52%);
}

.hero__inner { max-width: 700px; }
.hero .display { margin-bottom: 1.5rem; max-width: 9.6em; }
.hero .lead { margin-bottom: 2.4rem; max-width: 36ch; }
.hero__note {
  margin-top: 1.15rem;
  font-size: var(--fs-micro);
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (min-width: 900px) { .hero__scroll { display: flex; } }
.hero__scroll span { width: 1px; height: 42px; background: linear-gradient(var(--ink-mute), transparent); }
.hero__scroll span::after {
  content: '';
  display: block;
  width: 1px; height: 12px;
  background: var(--teal);
  animation: scrollCue 2.6s var(--ease-soft) infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(30px); opacity: 0; }
}

/* 09. Секции лендинга ---------------------------------------------------- */

.section { padding-block: var(--section); }
.section--warm { background: var(--paper-warm); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section__head { max-width: 46ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; max-width: 40ch; }
.section__head--center .eyebrow { justify-content: center; }
.section__head h2 { margin-bottom: 1.1rem; max-width: 16ch; }
.section__head--center h2 { max-width: none; margin-inline: auto; }
.section__head .lead { max-width: 42ch; }

/* Карточки «что вы получите» */
.cards {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 50px -34px rgba(35, 42, 38, 0.5);
}
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand); }
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }
.card__body { padding: 1.5rem 1.5rem 1.75rem; }
.card__icon { color: var(--teal); margin-bottom: 0.85rem; }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.62; }

/* Блок «о проекте» */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .split { grid-template-columns: 0.85fr 1fr; } }
.split h2 { margin-bottom: 1.1rem; }
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }

.blocks { display: grid; gap: 1.9rem; margin-top: 2.2rem; }
.block__title {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.block p { color: var(--ink-soft); }

/* Полоса призыва */
.band {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(4rem, 8vw, 7rem);
  text-align: center;
}
.band h2 { margin-bottom: 1.2rem; }
.band .lead { color: rgba(252, 250, 246, 0.72); margin-inline: auto; max-width: 46ch; margin-bottom: 2.4rem; }
.band .btn { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.band .btn::after { background: var(--gold-soft); }
.band .btn:hover { color: var(--ink); }

/* 10. Маршрут ------------------------------------------------------------ */

.route {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.route__item {
  position: relative;
  padding: 1.55rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.route__num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
  flex: none;
  width: 1.6rem;
  padding-top: 0.15rem;
}

@media (min-width: 700px) {
  .route { grid-template-columns: repeat(2, 1fr); }
  .route__item { padding-inline: 1.8rem; border-right: 1px solid var(--line); }
  .route__item:nth-child(2n) { border-right: 0; }
  .route__item:nth-child(2n + 1) { padding-left: 0; }
  .route__item:last-child { grid-column: 1 / -1; border-right: 0; padding-left: 0; }
}
/* Четыре колонки — только когда ячейка шире 250px, иначе названия ломаются. */
@media (min-width: 1180px) {
  .route { grid-template-columns: repeat(4, 1fr); }
  .route__item:nth-child(2n) { border-right: 1px solid var(--line); }
  .route__item:nth-child(2n + 1) { padding-left: 1.8rem; }
  .route__item:nth-child(4n) { border-right: 0; }
  .route__item:nth-child(4n + 1) { padding-left: 0; }
  .route__item:last-child { grid-column: span 2; }
}

.route__title { font-size: 1.06rem; margin-bottom: 0.2rem; }
.route__sub { font-size: var(--fs-small); color: var(--ink-mute); margin: 0; }

/* 11. Вопросы и ответы --------------------------------------------------- */

.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: 1.02rem;
  color: var(--ink);
  transition: color var(--dur) var(--ease);
}
.faq__q:hover { color: var(--teal); }
.faq__sign {
  flex: none;
  width: 14px; height: 14px;
  margin-top: 0.5rem;
  position: relative;
}
.faq__sign::before, .faq__sign::after {
  content: '';
  position: absolute;
  background: var(--ink-mute);
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.faq__sign::before { inset: 50% 0 auto; height: 1px; transform: translateY(-50%); }
.faq__sign::after  { inset: 0 50% auto; width: 1px; transform: translateX(-50%); }
.faq__item.is-open .faq__sign::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 62ch;
  padding-bottom: 1.5rem;
}

/* 12. Подвал ------------------------------------------------------------- */

.footer {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  font-size: var(--fs-small);
  color: var(--ink-soft);
}
.footer__top {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 800px) { .footer__top { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.footer__legal p { font-size: var(--fs-micro); color: var(--ink-mute); line-height: 1.65; margin-bottom: 0.9rem; }
.footer__links { display: grid; gap: 0.1rem; align-content: start; }
.footer__links a {
  color: var(--ink-soft);
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer__links a:hover { color: var(--teal); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  color: var(--ink-mute);
}

/* Раскрывающийся правовой блок */
.disclosure > summary {
  cursor: pointer;
  list-style: none;
  color: var(--ink-mute);
  font-size: var(--fs-micro);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  transition: color var(--dur) var(--ease);
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:hover { color: var(--ink); }
.disclosure > summary::after {
  content: '';
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.4s var(--ease);
}
.disclosure[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.disclosure__body {
  padding-top: 0.9rem;
  animation: fadeUp 0.5s var(--ease);
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } }

/* 13. Квест -------------------------------------------------------------- */

.view { display: none; }
.view.is-active { display: block; }

.quest {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.quest__bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(252, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.quest__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.quest__step {
  font-size: var(--fs-micro);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.quest__loc {
  font-family: var(--font-display);
  font-size: 0.98rem;
  color: var(--ink-soft);
}
@media (max-width: 400px) { .quest__loc { display: none; } }
.quest__exit {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink-mute);
  font-size: var(--fs-micro);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  margin-right: -0.75rem;
  transition: color var(--dur) var(--ease);
}
.quest__exit:hover { color: var(--ink); }

.progress {
  height: 2px;
  background: var(--sand);
  overflow: hidden;
}
.progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--sage), var(--teal));
  transition: width 0.7s var(--ease);
}

.quest__body {
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}

.q {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}
.q__loc {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.q__text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.2rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  margin-bottom: 2.2rem;
  text-wrap: balance;
}

.scale { display: grid; gap: 0.5rem; margin-bottom: 2rem; }
.scale__opt {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  width: 100%;
  padding: 0.95rem 1.15rem;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-size: 0.98rem;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease),
              transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.scale__opt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal-wash);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.scale__opt > * { position: relative; }
.scale__opt:hover { border-color: var(--teal-soft); color: var(--ink); }
.scale__opt:hover::before { transform: scaleX(1); }
.scale__opt.is-selected {
  border-color: var(--teal);
  color: var(--ink);
  background: var(--teal-wash);
}
.scale__dot {
  flex: none;
  width: 20px; height: 20px;
  border: 1px solid var(--line-ui);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color 0.35s var(--ease), background-color 0.35s var(--ease);
}
.scale__dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  transform: scale(0);
  transition: transform 0.4s var(--ease);
}
.scale__opt.is-selected .scale__dot { border-color: var(--teal); }
.scale__opt.is-selected .scale__dot::after { transform: scale(1); }
.scale__key {
  margin-left: auto;
  font-size: var(--fs-micro);
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: 3px;
  min-width: 20px;
  text-align: center;
  line-height: 18px;
  display: none;
}
@media (min-width: 820px) and (pointer: fine) { .scale__key { display: block; } }

.q__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.q__hint {
  font-size: var(--fs-micro);
  color: var(--ink-mute);
  display: none;
}
@media (min-width: 820px) and (pointer: fine) { .q__hint { display: block; } }

.q-enter { animation: qIn 0.55s var(--ease) both; }
.q-exit  { animation: qOut 0.3s var(--ease-soft) both; }
@keyframes qIn  { from { opacity: 0; transform: translateY(18px); } }
@keyframes qOut { to   { opacity: 0; transform: translateY(-14px); } }

/* Переход между локациями */
.interstitial {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--paper);
  padding: var(--gutter);
  animation: fadeIn 0.6s var(--ease) both;
}
.interstitial::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Затемнение рассчитано на самый светлый снимок: текст поверх него держит 4.5:1. */
  background:
    linear-gradient(rgba(24, 30, 26, 0.68), rgba(24, 30, 26, 0.78) 45%, rgba(24, 30, 26, 0.84));
}
.interstitial__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.interstitial__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  animation: slowZoom 6s var(--ease) forwards;
}
@keyframes slowZoom { to { transform: scale(1); } }
.interstitial__inner { position: relative; z-index: 2; max-width: 34ch; }
.interstitial__num {
  font-size: var(--fs-micro);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 1rem;
}
.interstitial h2 { margin-bottom: 1rem; }
.interstitial p { color: rgba(252, 250, 246, 0.9); }
.interstitial__line {
  width: 40px; height: 1px;
  background: var(--gold-soft);
  margin: 1.6rem auto;
  transform: scaleX(0);
  transform-origin: center;
  animation: lineIn 1.1s 0.35s var(--ease) forwards;
}
@keyframes lineIn { to { transform: scaleX(1); } }
@keyframes fadeIn { from { opacity: 0; } }
.interstitial.is-out { animation: fadeOut 0.5s var(--ease) both; }
@keyframes fadeOut { to { opacity: 0; } }

/* 14. Экран расчёта ------------------------------------------------------ */

.analyzing {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
  overflow: hidden;
}
.analyzing__media { position: absolute; inset: 0; z-index: -2; opacity: 0.55; }
.analyzing__media img { width: 100%; height: 100%; object-fit: cover; }
.analyzing::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--paper), rgba(252,250,246,0.66), var(--paper));
}
.analyzing__inner { max-width: 32ch; }
.analyzing__orb {
  width: 74px; height: 74px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  border: 1px solid var(--teal-soft);
  position: relative;
  animation: breathe 3.4s var(--ease-soft) infinite;
}
.analyzing__orb::before,
.analyzing__orb::after {
  content: '';
  position: absolute;
  inset: -14px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: ripple 3.4s var(--ease-soft) infinite;
}
.analyzing__orb::after { animation-delay: 1.7s; }
@keyframes breathe { 50% { transform: scale(0.9); } }
@keyframes ripple {
  0%   { transform: scale(0.85); opacity: 0; }
  35%  { opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.analyzing h1 { margin-bottom: 1.2rem; }
.analyzing__line {
  color: var(--ink-soft);
  min-height: 3.2em;
  transition: opacity 0.5s var(--ease);
}
.analyzing__line.is-fading { opacity: 0; }

/* 15. Отчёт -------------------------------------------------------------- */

.report { padding-block: 7rem clamp(3rem, 6vw, 5rem); }

.report__head {
  text-align: center;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.report__meta {
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.2rem;
}
.report__title { margin-bottom: 0.9rem; }
.report__sub { color: var(--ink-soft); max-width: 46ch; margin-inline: auto; }

.rsec { margin-bottom: clamp(2.8rem, 6vw, 4.4rem); }
.rsec__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.rsec__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.rsec__lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem);
  line-height: 1.36;
  letter-spacing: -0.012em;
  margin-bottom: 1.2rem;
}
.rsec p { color: var(--ink-soft); }

.rlist { display: grid; gap: 1.15rem; }
.ritem {
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 1rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.ritem:last-child { border-bottom: 0; padding-bottom: 0; }
.ritem__mark {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--teal-wash);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: var(--fs-micro);
  font-variant-numeric: tabular-nums;
  margin-top: 0.1rem;
}
.ritem--warm .ritem__mark { background: #F6EEDE; color: var(--gold); }
.ritem__title {
  grid-column: 2;
  margin: 0 0 0.3rem;
  font-weight: 500;
  font-size: 1.02rem;
}
.ritem__text {
  grid-column: 2;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Ключевые темы — строками: слева название и шкала, справа наблюдение */
.themes { display: grid; gap: 1.1rem; }
.theme {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}
@media (min-width: 660px) {
  .theme {
    grid-template-columns: 160px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 2.2rem;
    row-gap: 0.85rem;
  }
  .theme__label { grid-column: 1; grid-row: 1; }
  .theme__meter { grid-column: 1; grid-row: 2; align-self: start; }
  .theme h3     { grid-column: 2; grid-row: 1; }
  .theme__text  { grid-column: 2; grid-row: 2; }
}
.theme__label {
  font-size: var(--fs-micro);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}
.theme__meter {
  height: 3px;
  background: var(--sand);
  border-radius: 2px;
  overflow: hidden;
  margin: 0;
}
.theme__meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 2px;
  background: var(--teal);
  transition: width 1.2s var(--ease) 0.3s;
}
.theme--low  .theme__meter i { background: var(--gold); }
.theme--mid  .theme__meter i { background: var(--sage); }
.theme h3 { font-size: 1.14rem; margin: 0; }
.theme__text { font-size: 0.95rem; line-height: 1.62; color: var(--ink-soft); margin: 0; }

/* Символический блок */
.symbolic {
  background: var(--paper-warm);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.symbolic__intro { font-size: 0.93rem; color: var(--ink-soft); margin-bottom: 1.8rem; }
.symbolic__grid {
  display: grid;
  gap: 1.8rem 2.2rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  align-items: start;
}
.symbolic__card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.symbolic__card p { font-size: 0.94rem; margin: 0; }
.symbolic__outro {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-micro);
  color: var(--ink-mute);
}

/* Рекомендации */
.recs { display: grid; gap: 1.1rem; }
.rec {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
@media (min-width: 660px) {
  .rec { grid-template-columns: 160px 1fr; column-gap: 2.2rem; }
  .rec__kind { grid-column: 1; grid-row: 1 / -1; }
  .rec > :not(.rec__kind) { grid-column: 2; }
}
.rec__kind {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}
.rec__title { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.25; margin: 0; }
.rec__by { font-size: var(--fs-small); color: var(--ink-mute); margin: 0; }
.rec__note { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.62; margin: 0.35rem 0 0; }
.rec__steps { margin: 0.7rem 0 0; padding-left: 1.15rem; font-size: 0.92rem; color: var(--ink-soft); }
.rec__steps li { margin-bottom: 0.35rem; }
.rec__steps li:last-child { margin-bottom: 0; }

/* Приглашение */
.consult {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  text-align: center;
}
.consult h3 { font-size: var(--fs-h3); margin-bottom: 0.9rem; }
.consult p { color: rgba(252, 250, 246, 0.72); max-width: 44ch; margin-inline: auto; margin-bottom: 2rem; }
.consult__btns { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.consult__btns .btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: rgba(252, 250, 246, 0.4);
  padding: 0.8rem 1.5rem;
  font-size: 0.9rem;
}
.consult__btns .btn::after { background: var(--paper); }
.consult__btns .btn:hover { color: var(--ink); border-color: transparent; }

.report__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
}
.report__legal {
  margin-top: 2.5rem;
  font-size: var(--fs-micro);
  color: var(--ink-mute);
  line-height: 1.65;
  text-align: center;
  max-width: 64ch;
  margin-inline: auto;
}

/* Отчёт проявляется сверху вниз — читателю дают время начать с первой строки. */
#view-report.is-active #report-body > * {
  animation: reportIn 0.7s var(--ease) both;
}
#report-body > *:nth-child(1) { animation-delay: 0.05s; }
#report-body > *:nth-child(2) { animation-delay: 0.13s; }
#report-body > *:nth-child(3) { animation-delay: 0.21s; }
#report-body > *:nth-child(4) { animation-delay: 0.29s; }
#report-body > *:nth-child(5) { animation-delay: 0.36s; }
#report-body > *:nth-child(n + 6) { animation-delay: 0.42s; }
@keyframes reportIn { from { opacity: 0; transform: translateY(14px); } }

/* Форма перед стартом */
.start {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 7rem var(--gutter) 4rem;
}
.start__inner { width: 100%; max-width: 460px; }
.start h1 { margin-bottom: 0.9rem; }
.start .lead { margin-bottom: 2.4rem; font-size: 1.02rem; }
.start__privacy {
  margin-top: 1.4rem;
  font-size: var(--fs-micro);
  color: var(--ink-mute);
  line-height: 1.6;
  text-align: center;
}
.start__back {
  background: none; border: 0; cursor: pointer;
  color: var(--ink-mute); font-size: var(--fs-micro);
  display: inline-flex; align-items: center; min-height: 44px;
  margin-bottom: 1.4rem; padding: 0.4rem 0;
  transition: color var(--dur) var(--ease);
}
.start__back:hover { color: var(--ink); }

/* 16. Атмосфера: бумага, свет, туман, тушь -------------------------------- */

/* Содержимое лежит над световым полем, но под зерном и курсором. */
.view { position: relative; z-index: 1; }

/* Медленный свет. Три пятна ходят по экрану за полторы-две минуты — движение
   почти не считывается глазом, но белое перестаёт быть плоским. */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient span {
  position: absolute;
  display: block;
  border-radius: 50%;
  will-change: transform;
}
.ambient span:nth-child(1) {
  width: 78vmax; height: 78vmax;
  top: -26vmax; left: -18vmax;
  background: radial-gradient(circle closest-side, rgba(247, 234, 207, 0.55), rgba(247, 234, 207, 0) 72%);
  animation: drift1 92s var(--ease-soft) infinite alternate;
}
.ambient span:nth-child(2) {
  width: 68vmax; height: 68vmax;
  top: 18vmax; right: -22vmax;
  background: radial-gradient(circle closest-side, rgba(228, 242, 239, 0.48), rgba(228, 242, 239, 0) 72%);
  animation: drift2 118s var(--ease-soft) infinite alternate;
}
.ambient span:nth-child(3) { display: none; }
@keyframes drift1 { to { transform: translate3d(14vmax, 9vmax, 0) scale(1.14); } }
html.is-still .ambient span { animation-play-state: paused; }
@keyframes drift2 { to { transform: translate3d(-13vmax, 12vmax, 0) scale(0.9); } }
@keyframes drift3 { to { transform: translate3d(10vmax, -11vmax, 0) scale(1.12); } }

/* Зерно васи поверх всего: страница перестаёт быть экраном и становится листом. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background-image: url('../img/grain.webp');
  background-size: 256px 256px;
  opacity: 0.14;
  mix-blend-mode: multiply;
}

/* Раньше стык секций размывался градиентом. Оказалось, что это только съедает
   перепад: граница должна читаться как смена листа, а не как туман. */
.section--warm { position: relative; }

/* Туман над хребтом в первом экране. Две полосы идут навстречу друг другу
   так медленно, что замечаешь их, только если задержаться. */
.hero__layer {
  position: absolute;
  inset: -14% 0;
  z-index: 0;
  will-change: transform;
}
.hero__mist {
  position: absolute;
  inset: 34% 0 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.hero__mist i {
  position: absolute;
  left: -60%;
  width: 220%;
  height: 60%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%,
              rgba(250, 247, 240, 0.30), rgba(250, 247, 240, 0) 68%);
  will-change: transform;
}
.hero__mist i:nth-child(1) { top: 6%;  animation: mistA 96s linear infinite; }
.hero__mist i:nth-child(2) { top: 34%; height: 48%; animation: mistB 132s linear infinite; }
@keyframes mistA { to { transform: translate3d(26%, 0, 0); } }
@keyframes mistB { to { transform: translate3d(-24%, 0, 0); } }

/* Туман крутится только пока первый экран на виду, а свет — пока вкладка
   активна. Ниже по коду, чем сокращение animation, иначе оно вернёт running. */
html.is-still .hero__mist i,
.hero__mist.is-away i { animation-play-state: paused; }

/* Полоса-передышка между «Маршрутом» и «О проекте». */
.vista {
  position: relative;
  min-height: clamp(22rem, 52vh, 34rem);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.vista__media {
  position: absolute;
  inset: -9% 0;
  will-change: transform;
}
.vista__media img { width: 100%; height: 100%; object-fit: cover; }
.vista::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--paper) 0%, rgba(250, 247, 240, 0.10) 26%,
                              rgba(250, 247, 240, 0.10) 68%, var(--paper) 97%);
}
.vista__inner { position: relative; z-index: 1; }
.vista__line {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.05rem);
  line-height: 1.42;
  letter-spacing: -0.012em;
  max-width: 24ch;
  margin-left: clamp(0rem, 12vw, 11rem);
  margin-right: auto;
  color: var(--ink);
  text-align: left;
  text-wrap: balance;
}
.vista__mark {
  width: 1px;
  height: clamp(2.2rem, 5vw, 3.4rem);
  background: linear-gradient(var(--gold), transparent);
  margin: 0 auto 1.6rem;
}

/* Тушь. Курсор оставляет след, который впитывается в бумагу за секунду.
   Включается только на устройствах с точным указателем — см. atmosphere.js. */
/* Холст лежит ПОД содержимым: тушь ложится на бумагу, а не поверх набора.
   Иначе след проходит сквозь строки и пачкает то, что человек читает. */
.ink-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity 0.6s var(--ease);
}
html.has-ink .ink-canvas { opacity: 0.85; }

html.has-ink,
html.has-ink a,
html.has-ink button,
html.has-ink summary,
html.has-ink label,
html.has-ink [role='button'] { cursor: none; }
html.has-ink input,
html.has-ink textarea { cursor: text; }

.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  /* Смешивание живёт именно здесь. Если повесить его на саму точку, ничего не
     произойдёт: .cursor из-за position: fixed создаёт свой слой, и точке уже
     не с чем смешиваться — она остаётся просто белой. */
  mix-blend-mode: difference;
}
html.has-ink .cursor.is-visible { opacity: 1; }

/* Курсор — одна точка. Над тем, что можно нажать, она разрастается
   в мягкое пятно: понятно, что элемент живой, и ничего не мельтешит.

   Точка белая, а слой над ней смешивается в режиме difference. На бумаге это
   даёт чёрную точку, на тёмной кнопке и на снимке — светлую. Подпись под
   разросшимся пятном не пропадает, а выворачивается и остаётся читаемой. */
.cursor__dot {
  position: absolute;
  top: 0; left: 0;
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border: 0 solid #fff;
  border-radius: 50%;
  background: #fff;
  will-change: transform;
  transition: width 0.4s var(--ease), height 0.4s var(--ease),
              margin 0.4s var(--ease), border-width 0.4s var(--ease),
              background-color 0.35s var(--ease);
}
/* Над кнопкой точка вырастает вдвое и остаётся точкой: круг больше этого
   уже накрывает подпись, ради которой на кнопку и наводят. */
.cursor.is-active .cursor__dot {
  width: 21px; height: 21px;
  margin: -10.5px 0 0 -10.5px;
}
.cursor.is-pressed .cursor__dot { width: 15px; height: 15px; margin: -7.5px 0 0 -7.5px; }
.cursor:not(.is-active).is-pressed .cursor__dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; }

/* 17. Печать (PDF) ------------------------------------------------------- */

@media print {
  @page { margin: 16mm 14mm; }

  html { scroll-behavior: auto; }
  body {
    background: #fff;
    color: #1a1a1a;
    font-size: 10.5pt;
    line-height: 1.5;
  }

  .nav, .footer, .hero__scroll, .report__actions, .consult__btns,
  .quest__bar, .no-print, .skip-link,
  .ambient, .ink-canvas, .cursor, .vista { display: none !important; }

  body::after { display: none !important; }   /* зерно на бумаге ни к чему */

  /* Проявление отчёта на бумаге не нужно и опасно: лист может уйти в печать пустым. */
  #view-report.is-active #report-body > * { animation: none !important; }
  .symbolic__outro { break-inside: avoid; }

  .view { display: none !important; }
  .view.is-active { display: block !important; }

  .report { padding: 0; }
  .wrap { max-width: none; padding: 0; }

  .report__head {
    text-align: left;
    border-bottom: 1pt solid #c9c9c9;
    padding-bottom: 8mm;
    margin-bottom: 8mm;
  }
  .report__sub { margin-inline: 0; }

  /* Секции не запрещаем разрывать — иначе внизу страниц остаются пустые поля.
     Разрыв запрещён только внутри отдельных карточек и пунктов. */
  .rsec { margin-bottom: 7mm; }
  .rsec__title { color: #1a1a1a; border: 0; break-after: avoid; }
  .rsec__title::after { background: #d5d5d5; }
  .rsec__lead { break-after: avoid; }

  .ritem, .theme, .rec, .symbolic__card, .consult { break-inside: avoid; }
  .theme, .rec { border: 1pt solid #d5d5d5; margin-bottom: 4mm; }
  .symbolic { break-inside: auto; }

  .symbolic { background: #f6f4f0; }
  .consult { background: #f6f4f0; color: #1a1a1a; border: 1pt solid #d5d5d5; }
  .consult p { color: #4a4a4a; }

  .reveal { opacity: 1 !important; transform: none !important; }
  .theme__meter i { transition: none; }

  a[href^="http"]::after { content: ' (' attr(href) ')'; font-size: 8pt; color: #666; }
  .report__legal { text-align: left; max-width: none; page-break-inside: avoid; }
}

/* Уважение к системной настройке «меньше движения» ----------------------- */

/* Свет и туман — украшение. Кто просил не двигать экран, тот его не увидит. */
@media (prefers-reduced-motion: reduce) {
  .ambient span,
  .hero__mist i { animation: none !important; }
  .hero__mist { opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  /* Снимок остаётся отражённым — движения нет, зеркало нужно композиции. */
  .hero__media img { transform: scaleX(-1); }
  .interstitial__media img { transform: none; }
}
