/* ============================================================
   СЕРДЦЕ ВЕРЫ — стили прелоадера и первой сцены
   ============================================================ */

@font-face {
  font-family: "Geometria";
  src: url("fonts/geometria/geometria_light.woff2") format("woff2"),
       url("fonts/geometria/geometria_light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geometria";
  src: url("fonts/geometria/geometria_lightitalic.woff2") format("woff2"),
       url("fonts/geometria/geometria_lightitalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/lora/lora-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/lora/lora-italic-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/lora/lora-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('fonts/lora/lora-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Onest — самохостинг (subset latin+cyrillic), без внешней зависимости от Google */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/onest/onest-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/onest/onest-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/onest/onest-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/onest/onest-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/onest/onest-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/onest/onest-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --black: #050506;
  --text-soft: rgba(243, 240, 234, 0.92);
  --text-dim: rgba(243, 240, 234, 0.55);
  --gold: #d9c08a;
  --ease: cubic-bezier(0.6, 0.05, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--black);
  color: var(--text-soft);
  font-family: "Onest", system-ui, sans-serif;
  /* clip, а НЕ hidden: hidden на <html> делает корень scroll-контейнером и
     ломает прокрутку в Android Chrome (на iOS работало). clip скрывает
     горизонтальное переполнение, не создавая scroll-контейнер. */
  overflow-x: clip;
  overscroll-behavior-y: none;        /* убираем «резинку» по вертикали */
  -webkit-font-smoothing: antialiased;
}

/* Второй блок — сплошной чёрный. Лежит ПОВЕРХ фиксированной сцены и
   наезжает на неё при скролле, перекрывая нижние артефакты параллакса. */
.block-2 {
  position: relative;
  z-index: 10;
  margin-top: 135vh;     /* запас прокрутки для параллакса (видео не наезжает на чистого героя) */
  min-height: 100vh;
  /* верхняя кромка мягко проявляется из прозрачности — без строгой линии перехода */
  background: linear-gradient(180deg, transparent 0, #000 18vh);
  background-color: transparent;
  /* внутри — реклама вопросами; верхний отступ выводит контент в зону под переходом */
  padding: clamp(3rem, 12vh, 7rem) 6vw clamp(3rem, 8vh, 6rem);
}

/* ============ БЛОК 1: ПРЕЛОАДЕР ============ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: transparent;   /* чёрный экран дают «веки»; за ними — сцена */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1.6s var(--ease);
}

.preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.dust-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;                /* над «веками», чтобы пыль была видна */
  transition: opacity 1.6s var(--ease);
}
.preloader.is-opening .dust-canvas { opacity: 0; }

.preloader__content {
  position: relative;
  z-index: 4;                /* над «веками» и пылью */
  text-align: center;
  padding: 0 8vw;
  transition: opacity 1.8s var(--ease), transform 1.8s var(--ease);
}

.preloader.is-opening .preloader__content {
  opacity: 0;
  transform: scale(1.06);
}

/* Надзаголовок «Книга» — в стиле секционных kicker'ов, появляется первым */
.preloader__kicker {
  margin-bottom: clamp(0.85rem, 2vh, 1.35rem);
  opacity: 0;
  filter: blur(10px);
  animation: wordIn 1.6s var(--ease) 0.3s forwards;
}

/* Заголовок книги */
.preloader__title {
  font-family: "Geometria", "Playfair Display", serif;
  font-style: normal;
  font-weight: 300;
  font-size: clamp(2rem, 5.6vw, 4rem);
  line-height: 1.18;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
}

/* появление слово за словом — медленно из блюра */
.preloader__title span {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(6px);
  animation: wordIn 2s var(--ease) forwards;
}
.preloader__title span:nth-of-type(1) { animation-delay: 0.7s; }
.preloader__title span:nth-of-type(2) { animation-delay: 1.5s; }

/* Подзаголовок — приглашение в путь */
.preloader__subtitle {
  margin-top: clamp(1.4rem, 3.4vh, 2.4rem);
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.32rem);
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: rgba(247, 219, 184, 0.88);   /* тёплый пастельный тон */
  opacity: 0;
  filter: blur(10px);
  animation: wordIn 2.2s var(--ease) 2.4s forwards;
}

@keyframes wordIn {
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* кнопка входа — появляется только после загрузки ассетов */
.preloader__enter {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: clamp(2.4rem, 5vh, 3.6rem) auto 0;
  padding: 1em 2.6em;
  font-family: "Onest", "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 240, 234, 0.95);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(243, 240, 234, 0.35);
  border-radius: 999px;
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 1.4s var(--ease), transform 1.4s var(--ease),
              border-color 0.4s var(--ease), background 0.4s var(--ease),
              box-shadow 0.4s var(--ease), visibility 0s linear 1.4s;
  pointer-events: none;
}
.preloader__enter::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(243, 240, 234, 0.18);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}
.preloader.is-ready .preloader__enter {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  /* небольшая задержка, чтобы кнопка появилась ПОСЛЕ того,
     как заголовок и подзаголовок полностью проявятся (~4.6s суммарно) */
  transition: opacity 1.6s var(--ease) 2.6s, transform 1.6s var(--ease) 2.6s,
              border-color 0.4s var(--ease), background 0.4s var(--ease),
              box-shadow 0.4s var(--ease), visibility 0s linear 2.6s;
}
.preloader.is-ready .preloader__enter::before {
  opacity: 1;
  animation: enterPulse 3.6s ease-out infinite;
  animation-delay: 3.6s;
  transition: opacity 0.8s var(--ease) 3.6s;
}
/* ФИКС «невидимого объекта по центру»: после входа (is-opening/is-hidden)
   ни прелоадер, ни его кнопка «Начать» не должны ловить клики/hover.
   Кнопка держала pointer-events:auto через .is-ready (который остаётся навсегда),
   поэтому невидимая, но кликабельная кнопка зависала по центру поверх контента. */
.preloader.is-opening,
.preloader.is-hidden { pointer-events: none; }
.preloader.is-opening .preloader__enter,
.preloader.is-hidden .preloader__enter { pointer-events: none !important; }
.preloader__enter:hover {
  border-color: rgba(247, 219, 184, 0.9);
  background: rgba(247, 219, 184, 0.10);
  color: #fff;
  box-shadow: 0 0 36px rgba(247, 219, 184, 0.22);
}
@keyframes enterPulse {
  0%   { box-shadow: 0 0 0 0 rgba(243, 240, 234, 0.22); }
  70%  { box-shadow: 0 0 0 18px rgba(243, 240, 234, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 240, 234, 0); }
}

@keyframes quoteIn {
  to { opacity: 1; filter: blur(0); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.78; }
  50%      { opacity: 1; }
}
@keyframes cuePulse {
  0%   { box-shadow: 0 0 0 0 rgba(243,240,234,0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(243,240,234,0); }
  100% { box-shadow: 0 0 0 0 rgba(243,240,234,0); }
}

/* «Веки» — открытие глаз */
.eyelid {
  position: absolute;
  left: 0;
  width: 100%;
  height: 52%;
  background: var(--black);
  z-index: 2;
  pointer-events: none;
  transform: translateY(0);
  transition: transform 3s var(--ease), opacity 2.6s var(--ease);
}
.eyelid--top    { top: 0; }
.eyelid--bottom { bottom: 0; }

.preloader.is-opening .eyelid--top    { transform: translateY(-100%); opacity: 0; }
.preloader.is-opening .eyelid--bottom { transform: translateY(100%);  opacity: 0; }

/* ============ БЛОК 2: СЦЕНА ============ */

.scene {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--app-h, 100vh);   /* зафиксированная высота — не дёргается от тулбара iOS */
  z-index: 1;
  overflow: hidden;
  opacity: 0;
  transition: opacity 3s var(--ease);
}
.scene.is-visible { opacity: 1; }

.parallax {
  position: absolute;
  top: -10%; left: -6%; right: -6%; bottom: -10%;  /* запас под сдвиг */
  filter: brightness(0.85) saturate(1.04);          /* сама картинка чуть темнее (мягко) */
}

.layer {
  position: absolute;
  inset: 0;                            /* полная высота — без жёстких обрезов */
  background-position: center bottom;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: transform;
}
.layer--sky { background-position: center top; overflow: hidden; }

/* Слои масштабируются по ШИРИНЕ экрана (vw) и привязаны к нижнему краю.
   Так композиция одинакова на экранах любой высоты, а offset (тоже в vw, см. JS)
   сдвигает слой пропорционально → расположение стабильно на всех экранах. */

/* ГОРЫ (2.webp) — широкая панорама, чуть шире вьюпорта. */
.layer--mount {
  background-size: 116vw auto;
  background-position: center bottom;
}
/* ПЕРЕДНИЙ ПЛАН (4.webp) — арки и «сердце»: ровно по ширине, без боковой обрезки. */
.layer--front {
  background-size: 100vw auto;
  background-position: center bottom;
}

/* две видео-дорожки внутри слоя неба — кросс-фейд для бесшовного цикла */
.sky-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;            /* никаких кликов/контролов */
  transition: opacity 1.2s linear;
}
/* прячем любые нативные контролы плеера (выглядывали из-за гор) */
.sky-video::-webkit-media-controls,
.sky-video::-webkit-media-controls-enclosure,
.sky-video::-webkit-media-controls-panel,
.sky-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
}

/* Картинка-слой лежит ПОВЕРХ градиента-плейсхолдера.
   Нет файла → 404 → браузер показывает градиент. Положишь файл → виден он. */
.layer--sky {
  background-image: var(--img, none),
    linear-gradient(180deg, #1a2436 0%, #2e3a4d 35%, #6b6377 70%, #b89a86 100%);
}
.layer--mount {
  background-image: var(--img, none),
    linear-gradient(180deg, transparent 45%, rgba(40,46,62,0.85) 62%, rgba(28,32,44,0.95) 100%);
}
.layer--mid {
  background-image: var(--img, none),
    linear-gradient(180deg, transparent 58%, rgba(18,26,20,0.9) 80%, rgba(12,18,14,1) 100%);
}
.layer--front {
  background-image: var(--img, none),
    linear-gradient(180deg, transparent 70%, rgba(6,10,8,0.95) 92%, #060a08 100%);
}

/* Атмосфера поверх слоёв */
.scene__fog {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 80%, rgba(220,210,190,0.12), transparent 55%),
              linear-gradient(180deg, rgba(255,250,240,0.06) 0%, transparent 40%);
  animation: fogDrift 18s ease-in-out infinite alternate;
}
@keyframes fogDrift {
  from { transform: translateX(-2%) scale(1.02); opacity: 0.8; }
  to   { transform: translateX(2%)  scale(1.06); opacity: 1; }
}

.scene__rays {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: conic-gradient(from 200deg at 60% -10%,
              transparent 0deg, rgba(255,240,210,0.10) 14deg, transparent 30deg);
  opacity: 0.7;
  animation: rays 12s ease-in-out infinite alternate;
}
@keyframes rays {
  from { opacity: 0.45; }
  to   { opacity: 0.85; }
}

/* fade-оверлей: затемняет сцену при скролле — мягкий переход ко 2-му блоку */
.scene__fadeout {
  position: fixed;
  inset: 0;
  z-index: 8;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

.scene__content {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;        /* текст уходит вверх, к открытому небу */
  text-align: center;
  padding: 15vh 6vw 0;
}

/* ===== Подсказка «листайте вниз» ===== */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 5vh, 52px);
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--gold);
  opacity: 0.78;                         /* стартовое; дальше opacity ведёт JS (гаснет при скролле) */
  -webkit-tap-highlight-color: transparent;
}
.scroll-hint__label {
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}
.scroll-hint__chev {
  display: block;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
  animation: scrollHintBob 2.1s ease-in-out infinite;
}
.scroll-hint:hover .scroll-hint__label,
.scroll-hint:hover .scroll-hint__chev { color: #f0dcae; }
@keyframes scrollHintBob {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50%      { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint__chev { animation: none; }
}

/* лёгкое затемнение сверху видео — контраст под текст, мягко (без жёстких краёв) */
.scene__shade {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.34) 0%,
    rgba(0, 0, 0, 0.16) 30%,
    rgba(0, 0, 0, 0) 58%);
}

/* ===== Двухслойный заголовок ===== */
.scene__title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(22px);
}
.scene.is-visible .scene__title {
  animation: riseIn 2.2s var(--ease) 0.6s forwards;
}

/* ГЛАВНЫЙ заголовок — Geometria Light Italic, белый 90% */
.title-ghost {
  font-family: "Geometria", "Playfair Display", serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);   /* чуть меньше */
  line-height: 1.08;
  letter-spacing: 0.08em;              /* трекинг ~8% */
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45), 0 1px 4px rgba(0, 0, 0, 0.35);
}
/* ПОДЗАГОЛОВОК — чистый гротеск Onest, заметно меньше, мягкий пастельно-оранжевый */
.title-main {
  margin-top: clamp(1.6rem, 3vh, 2.6rem);   /* «воздух» между заголовком и подзаголовком */
  white-space: nowrap;
  font-family: "Onest", sans-serif;
  font-weight: 500;
  font-size: clamp(1.1rem, 2.1vw, 1.7rem);   /* чуть больше */
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(247, 219, 184, 0.9);     /* пастельный тон неба у солнца */
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

/* плотная светлая кнопка — чёткий призыв, «приземляет» композицию */
.btn-path {
  margin-top: clamp(2.4rem, 5vh, 3.4rem);
  padding: 1.05em 3em;
  font-family: "Onest", "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;              /* ~9% */
  text-transform: uppercase;
  color: #2a2018;                      /* тёмно-коричневый, как самые тёмные деревья */
  background: rgba(255, 255, 255, 0.94);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(22px);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.scene.is-visible .btn-path {
  animation: riseIn 2.2s var(--ease) 1.4s forwards;
}
.btn-path:hover {
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ============ КОНТРОЛЛЕР ЗВУКА ============ */

.sound-toggle {
  position: fixed;
  top: 1.6rem; right: 1.6rem;
  z-index: 200;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s var(--ease), border-color 0.4s;
}
.sound-toggle.is-shown { opacity: 0.8; }
.sound-toggle:hover { border-color: var(--gold); opacity: 1; }

.sound-toggle__bars { display: flex; align-items: center; gap: 2px; height: 16px; }
.sound-toggle__bars i {
  width: 2px; background: var(--text-soft); border-radius: 2px;
  animation: eq 1s ease-in-out infinite;
}
.sound-toggle__bars i:nth-child(1) { height: 6px;  animation-delay: 0s;   }
.sound-toggle__bars i:nth-child(2) { height: 14px; animation-delay: 0.2s; }
.sound-toggle__bars i:nth-child(3) { height: 9px;  animation-delay: 0.4s; }
.sound-toggle__bars i:nth-child(4) { height: 12px; animation-delay: 0.1s; }
@keyframes eq {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1); }
}
.sound-toggle.is-muted .sound-toggle__bars i { animation-play-state: paused; transform: scaleY(0.35); opacity: 0.5; }

/* ссылка-пилюля на страницу для читателей — слева от кнопки звука */
.nav-pill {
  position: fixed;
  top: 1.6rem; right: calc(1.6rem + 44px + 12px);
  z-index: 200;
  height: 44px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 16px;
  color: var(--gold);
  text-decoration: none;
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(217, 192, 138, 0.35);
  border-radius: 999px;
  opacity: 0;
  transition: opacity 1s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.nav-pill.is-shown { opacity: 0.85; }
.nav-pill:hover { opacity: 1; border-color: var(--gold); background: rgba(217, 192, 138, 0.12); color: #f0dcae; }
.nav-pill__icon { width: 18px; height: 18px; flex: none; }
.nav-pill__label { white-space: nowrap; }

@media (max-width: 680px) {
  /* на мобильных — компактная круглая иконка без подписи */
  .nav-pill { padding: 0; width: 44px; justify-content: center; gap: 0; }
  .nav-pill__label { display: none; }
}

/* на узких экранах однострочный заголовок переносим, чтобы не вылезал */
@media (max-width: 680px) {
  .title-main { white-space: normal; }
  .title-ghost { font-size: clamp(1.8rem, 9vw, 3rem); }

  /* Низ сцены всегда прикрыт тёмным. Передний слой (арки) при скролле уходит
     вверх, и снизу могло показаться видео-небо (облака). Эта тёмная подложка,
     прибитая к низу сцены (не параллаксит), маскирует такой просвет и читается
     как земля/глубина. Десктопа не касается. */
  .scene__shade {
    background:
      linear-gradient(180deg, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.16) 30%, rgba(0,0,0,0) 58%),
      linear-gradient(0deg, #05080a 0%, rgba(5,8,10,0.94) 10%, rgba(5,8,10,0.5) 20%, transparent 33%);
  }

  /* Портретные варианты слоёв: если в HTML задан data-img-mobile
     (JS кладёт его в --img-m) — берём его; иначе откат на обычный --img.
     Пока портретных файлов нет, поведение мобилки не меняется. */
  .layer--mount {
    background-image: var(--img-m, var(--img, none)),
      linear-gradient(180deg, transparent 45%, rgba(40,46,62,0.85) 62%, rgba(28,32,44,0.95) 100%);
  }
  .layer--front {
    background-image: var(--img-m, var(--img, none)),
      linear-gradient(180deg, transparent 70%, rgba(6,10,8,0.95) 92%, #060a08 100%);
  }
}

/* ============================================================
   БЛОК 3: РЕКЛАМА ВОПРОСАМИ
   ============================================================ */

.questions__inner {
  max-width: 940px;
  margin: 0 auto;
}

/* ----- ВИДЕО: главный акцент ----- */
.video-figure {
  margin: 0 0 clamp(2.6rem, 7vh, 5rem);
}
.video-figure__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  /* кинематографичный плейсхолдер — виден, пока нет файла видео */
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(70, 62, 52, 0.55), transparent 58%),
    linear-gradient(180deg, #15171c 0%, #0a0b0e 100%);
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(217, 192, 138, 0.14);
}
.video-figure__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  opacity: 1;                        /* показываем постер-превью до запуска */
  transition: opacity 0.6s var(--ease);
}
.video-figure.is-playing .video-figure__media { opacity: 1; }

.video-figure__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.36));
  border: none;
  cursor: pointer;
  transition: opacity 0.5s var(--ease);
}
.video-figure.is-playing .video-figure__play {
  opacity: 0;
  pointer-events: none;
}
.video-figure__play::before {
  content: "";
  position: absolute;
  width: clamp(72px, 9vw, 92px);
  height: clamp(72px, 9vw, 92px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(217, 192, 138, 0.5);
  box-shadow: 0 0 44px rgba(217, 192, 138, 0.22);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.video-figure__play:hover::before {
  transform: scale(1.08);
  box-shadow: 0 0 64px rgba(217, 192, 138, 0.42);
}
.video-figure__triangle {
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
  margin-left: 6px;                  /* оптическая центровка треугольника */
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent var(--text-soft);
}
.video-figure__caption {
  margin-top: 1rem;
  text-align: center;
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: opacity 0.5s var(--ease);
}
.video-figure.is-playing .video-figure__caption { opacity: 0; }

/* ----- ТЕКСТ ВОПРОСОВ ----- */
.questions__text p {
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  line-height: 1.85;
  letter-spacing: 0.004em;
  color: var(--text-soft);
  margin: 0;
}

/* первые два абзаца — две колонки на десктопе */
.questions__text .ornament-mini { margin: clamp(0.4rem, 1.5vh, 1rem) 0 clamp(1.8rem, 4vh, 2.6rem); }
.questions__cols {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 3.6vw, 2.8rem);
}
/* тонкая золотая линия между колонками вопросов — редакторский акцент */
.questions__cols::before {
  content: "";
  position: absolute;
  top: 8%; bottom: 8%;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(217, 192, 138, 0.32), transparent);
  pointer-events: none;
}
.questions__cols > p + p { margin-top: 0; }

.questions__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  margin-top: clamp(2.2rem, 5vh, 3.2rem);
}
/* вторая кнопка «После прочтения книги» — уравниваем размер со «Заказать книгу» */
.questions__cta .btn-outline { padding: 1em 2.4em; }

@media (max-width: 760px) {
  .questions__cols { grid-template-columns: 1fr; gap: 1.5em; }
  .questions__cols::before { display: none; }
}

/* третий абзац — отдельный смысловой акцент */
.questions__accent {
  position: relative;
  margin-top: clamp(2.6rem, 6vh, 4rem);
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.6rem, 4vw, 2.6rem);
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.16);
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(217, 192, 138, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.035), rgba(255, 250, 240, 0.012));
}
/* верхняя линия — мягче и не от края до края */
.questions__accent::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 192, 138, 0.32), transparent);
}
/* изящный вертикальный акцент слева — тает у краёв (вместо грубой сплошной полосы 3px) */
.questions__accent::after {
  content: "";
  position: absolute;
  left: 0; top: 16%; bottom: 16%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(217, 192, 138, 0.9), transparent);
}
.questions__accent p {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.85;
  color: var(--text-soft);
}
.questions__accent .lead {
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.01em;
}

/* ============================================================
   БЛОК 4: СОДЕРЖАНИЕ — КАРТОЧКИ С ИКОНКАМИ
   ============================================================ */

.contents {
  position: relative;
  z-index: 10;
  background: var(--black);
  padding: clamp(2rem, 6vh, 4rem) 6vw clamp(5rem, 12vh, 8rem);
  overflow: hidden;
}
.contents::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/images/window.webp") center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.contents__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}
.contents__head { text-align: center; }
.contents__kicker {
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.contents__title {
  margin-top: 1.1rem;
  font-family: "Geometria", "Playfair Display", serif;
  font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92);
}

/* сетка карточек */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.2vw, 1.6rem);
  margin-top: clamp(3rem, 7vh, 5rem);
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.4vw, 1.4rem);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(140% 120% at 0% 0%, rgba(217, 192, 138, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.04), rgba(255, 250, 240, 0.013));
  border: 1px solid rgba(217, 192, 138, 0.16);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
/* крупный полупрозрачный номер-водяной знак (целиком внутри карточки) */
.card::before {
  content: attr(data-num);
  position: absolute;
  top: clamp(0.7rem, 1.6vw, 1.1rem);
  right: clamp(0.9rem, 2vw, 1.4rem);
  font-family: "Geometria", "Playfair Display", serif;
  font-weight: 300;
  font-size: clamp(3rem, 4.4vw, 4rem);
  line-height: 1;
  color: rgba(217, 192, 138, 0.10);
  pointer-events: none;
}
.card:hover {
  border-color: rgba(217, 192, 138, 0.42);
  transform: translateY(-4px);
  box-shadow:
    0 26px 54px rgba(0, 0, 0, 0.42),
    0 0 32px rgba(217, 192, 138, 0.08);
}
.card__icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(46px, 6vw, 56px);
  height: clamp(46px, 6vw, 56px);
  border-radius: 13px;
  color: var(--gold);
  background: radial-gradient(circle at 50% 32%, rgba(217, 192, 138, 0.18), rgba(217, 192, 138, 0.04));
  border: 1px solid rgba(217, 192, 138, 0.28);
  box-shadow: inset 0 0 16px rgba(217, 192, 138, 0.08);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.card__icon svg {
  width: 56%;
  height: 56%;
}
.card:hover .card__icon {
  border-color: rgba(217, 192, 138, 0.6);
  box-shadow:
    inset 0 0 18px rgba(217, 192, 138, 0.14),
    0 0 22px rgba(217, 192, 138, 0.2);
  transform: scale(1.05);
}
.card__text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.55;
  color: var(--text-soft);
}
.card__text b {
  font-weight: 600;
  color: var(--gold);
}

/* ----- появление при скролле ----- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 680px) {
  .cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.2s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   БЛОКИ 5–9: ОБЩИЕ ЭЛЕМЕНТЫ
   ============================================================ */

.kicker {
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
}
.section-title {
  margin: 1rem 0 0;
  font-family: "Geometria", "Playfair Display", serif;
  font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.92);
}

/* акцентная карточка (повторно используемый паттерн) */
.accent-card {
  position: relative;
  margin-top: clamp(2rem, 5vh, 3rem);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.16);
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(217, 192, 138, 0.10), transparent 55%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.035), rgba(255, 250, 240, 0.012));
}
.accent-card::before {
  content: "";
  position: absolute;
  left: 8%; right: 8%; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 192, 138, 0.32), transparent);
}
.accent-card::after {
  content: "";
  position: absolute;
  left: 0; top: 16%; bottom: 16%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(217, 192, 138, 0.9), transparent);
}
.accent-card p {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.8;
  color: var(--text-soft);
}

/* кнопки */
.btn-gold {
  display: inline-block;
  padding: 1em 2.4em;
  font-family: "Onest", "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a2018;
  background: linear-gradient(180deg, #e6cf9c, #d9c08a);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30), inset 0 0 0 1px rgba(217, 192, 138, 0.4);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
}
.btn-gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38), 0 0 26px rgba(217, 192, 138, 0.3);
}
.btn-gold:disabled { opacity: 0.55; cursor: default; transform: none; filter: none; }

.btn-outline {
  display: inline-block;
  padding: 0.85em 1.8em;
  font-family: "Onest", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  background: rgba(217, 192, 138, 0.06);
  border: 1px solid rgba(217, 192, 138, 0.4);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn-outline:hover {
  background: rgba(217, 192, 138, 0.14);
  border-color: rgba(217, 192, 138, 0.7);
  color: #f0dcae;
  transform: translateY(-2px);
}

/* ============ БЛОК 5: ЦИТАТА ============ */
.quote-block {
  position: relative;
  z-index: 10;
  background: var(--black);
  padding: clamp(4rem, 12vh, 8rem) 6vw;
}
.bookquote {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
}
.bookquote__photo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.bookquote__mark {
  display: block;
  font-family: "Geometria", "Playfair Display", serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.6;
  color: rgba(217, 192, 138, 0.4);
  margin-bottom: 0.3rem;
}
.bookquote__text {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--text-soft);
}
.bookquote__src {
  margin-top: 1.6rem;
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}
/* мобильные: колонки в стопку, картинка сверху (крупнее прежнего), по центру */
@media (max-width: 760px) {
  .bookquote {
    grid-template-columns: 1fr;
    gap: clamp(1.6rem, 4vh, 2.4rem);
    text-align: center;
  }
  .bookquote__photo { max-width: 420px; margin: 0 auto; }
}

/* ============ БЛОК 6: УНИКАЛЬНОСТЬ ============ */
.unique {
  position: relative;
  z-index: 10;
  background: var(--black);
  padding: clamp(3rem, 9vh, 6rem) 6vw;
}
.unique__inner { max-width: 880px; margin: 0 auto; }
.unique__head { text-align: center; margin-bottom: clamp(2rem, 5vh, 3.5rem); }
.unique__body > p {
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0;
}
.unique__body > p + p { margin-top: 1.4em; }

/* ============ БЛОК 7: ОБ АВТОРЕ ============ */
.author {
  position: relative;
  z-index: 10;
  background: var(--black);
  padding: clamp(3rem, 9vh, 6rem) 6vw;
}
.author__inner { max-width: 960px; margin: 0 auto; }
.author__head { text-align: center; margin-bottom: clamp(2rem, 5vh, 3rem); }
.author__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.author__photo { margin: 0; }
.author__photo img {
  width: 100%;
  height: auto;             /* иначе атрибут height="1024" игнорирует aspect-ratio */
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  display: block;
}
.author__name {
  margin: 0 0 1.2rem;
  font-family: "Geometria", "Playfair Display", serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.94);
}
.author__bio p {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-soft);
}

/* ============ БЛОК 8: ЧИТАТЬ ФРАГМЕНТ ============ */
.cta-read {
  position: relative;
  z-index: 10;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(217, 192, 138, 0.07), transparent 60%),
    var(--black);
  padding: clamp(4rem, 11vh, 7rem) 6vw;
}
.cta-read__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 40%);   /* текст | картинка */
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  text-align: left;
}
.cta-read__photo {
  margin: 0;
  max-width: none;   /* заполняет свою колонку */
}
.cta-read__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.cta-read .section-title { text-align: left; font-size: clamp(1.5rem, 2.8vw, 2.2rem); margin: 0 0 clamp(1.8rem, 4vh, 2.6rem); }
/* мобильные: в стопку — картинка сверху, заголовок и кнопка под ней, по центру */
@media (max-width: 760px) {
  .cta-read__inner { grid-template-columns: 1fr; gap: clamp(1.8rem, 4vh, 2.6rem); text-align: center; }
  .cta-read__text { order: 2; }
  .cta-read__photo { order: 1; max-width: 400px; margin: 0 auto; }
  .cta-read .section-title { text-align: center; }
}

/* ============ БЛОК 9: ЗАКАЗАТЬ ============ */
.order {
  position: relative;
  z-index: 10;
  background: var(--black);
  padding: clamp(3rem, 9vh, 6rem) 6vw clamp(6rem, 14vh, 10rem);
}
.order__inner { max-width: 900px; margin: 0 auto; }
.order__head { text-align: center; margin-bottom: clamp(2.5rem, 6vh, 4rem); }
.order__list { display: flex; flex-direction: column; gap: clamp(1rem, 2.4vw, 1.6rem); }
.order-opt {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.04), rgba(255, 250, 240, 0.013));
  border: 1px solid rgba(217, 192, 138, 0.16);
  transition: border-color 0.4s var(--ease);
}
.order-opt:hover { border-color: rgba(217, 192, 138, 0.34); }
.order-opt__badge {
  flex: 0 0 auto;
  width: clamp(40px, 7vw, 48px);
  height: clamp(40px, 7vw, 48px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-family: "Geometria", "Playfair Display", serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--gold);
  background: radial-gradient(circle at 50% 35%, rgba(217, 192, 138, 0.16), rgba(217, 192, 138, 0.04));
  border: 1px solid rgba(217, 192, 138, 0.3);
}
.order-opt__main { flex: 1; min-width: 0; }
.order-opt__title {
  margin: 0 0 0.3rem;
  font-family: "Onest", sans-serif;
  font-weight: 600;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: #f1e7d3;
}
.order-opt__price {
  margin: 0 0 1.1rem;
  font-family: "Onest", sans-serif;
  font-size: 0.98rem;
  color: var(--gold);
}
.order-opt__links { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.order-opt__hint { margin: 0.9rem 0 0; font-size: 0.88rem; color: var(--text-dim); }

/* (CSS формы заказа удалён — формы на странице нет, заказ по внешним ссылкам) */

/* Единый видимый фокус для навигации с клавиатуры (доступность, WCAG 2.4.7).
   Золотое кольцо ~11:1 на чёрном — хорошо заметно, но только при клавиатуре (:focus-visible). */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (max-width: 680px) {
  .order-opt { flex-direction: column; }
}

/* ============ ФУТЕР ============ */
.site-footer {
  position: relative;
  z-index: 10;
  background: var(--black);
  border-top: 1px solid rgba(217, 192, 138, 0.12);
  padding: clamp(2.5rem, 6vh, 4rem) 6vw;
  text-align: center;
}
.site-footer__title {
  font-family: "Geometria", "Playfair Display", serif;
  font-weight: 300;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.9);
}
.site-footer__author {
  margin-top: 0.5rem;
  font-family: "Onest", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.site-footer__copy {
  margin-top: 1.3rem;
  font-family: "Onest", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}

/* ============ МОБИЛЬНЫЕ ПРАВКИ (блоки 4–9, переход, заголовки) ============ */
@media (max-width: 680px) {
  /* короче «чёрный» переход к блоку с видео:
     раньше margin-top:240vh давал огромный чёрный экран после раннего затемнения */
  .block-2 {
    margin-top: 115vh;
    padding: clamp(4rem, 14vh, 8rem) 6vw clamp(2.5rem, 6vh, 4rem);
  }

  /* заголовки чуть меньше — иначе некрасиво переносятся (напр. блок «Содержание») */
  .section-title,
  .contents__title {
    font-size: clamp(1.35rem, 6.4vw, 1.65rem);
    letter-spacing: 0.02em;
  }
  .author__name { font-size: clamp(1.3rem, 5.6vw, 1.6rem); }
  .bookquote__text { font-size: clamp(1rem, 4vw, 1.14rem); }

  /* блок «Об авторе»: на мобилке колонкой, иначе текст уезжал за кадр */
  .author__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    text-align: center;
  }
  .author__photo {
    max-width: 240px;
    margin: 0 auto;
  }
}

/* ============ ОРНАМЕНТЫ / РАЗДЕЛИТЕЛИ ============ */
.ornament-divider {
  display: flex;
  justify-content: center;
  margin: clamp(4rem, 8vh, 6rem) auto 0;
  color: rgba(217, 192, 138, 0.45);
  max-width: 460px;
}
/* Разделитель по центру разрыва между секциями: секция-владелец и следующая
   отдают ему часть вертикальных отступов, чтобы он не «прилипал» к верхнему краю. */
section:has(> .ornament-divider:last-child) { padding-bottom: clamp(2.5rem, 6vh, 4rem); }
section:has(> .ornament-divider:last-child) + section { padding-top: clamp(2.5rem, 6vh, 4rem); }
.ornament-divider svg {
  width: 100%;
  height: auto;
  max-height: 28px;
}
.ornament-divider--lg {
  max-width: 560px;
  margin-top: clamp(4.5rem, 9vh, 6.5rem);
  color: rgba(217, 192, 138, 0.55);
}
.ornament-divider--lg svg { max-height: 38px; }

.ornament-mini {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.2rem, 2.8vh, 1.8rem);
  color: rgba(217, 192, 138, 0.45);
}
.ornament-mini svg { width: clamp(120px, 22vw, 180px); height: auto; }

/* ============ ФОТО В РАЗДЕЛЕ «УНИКАЛЬНОСТЬ» ============ */
.unique__photo {
  max-width: 560px;   /* средний центрованный акцент, а не баннер во всю ширину */
  margin: clamp(2.4rem, 6vh, 3.6rem) auto clamp(1.4rem, 3vh, 2.2rem);
}
.unique__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.2);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.unique__cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(2rem, 5vh, 3rem);
}

/* ============================================================
   СТРАНИЦА ДЛЯ ПРОЧИТАВШИХ КНИГУ (readers.html)
   ============================================================ */
.readers-page { background: var(--black); }

/* верхняя панель: ссылка «на главную» + кнопка звука */
.readers-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 2rem);
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.85), rgba(5, 5, 6, 0));
  pointer-events: none;
}
.readers-topbar > * { pointer-events: auto; }
.readers-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  color: var(--gold);
  text-decoration: none;
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(217, 192, 138, 0.35);
  border-radius: 999px;
  opacity: 0.85;
  transition: opacity 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease), color 0.4s var(--ease);
}
.readers-back:hover { opacity: 1; border-color: var(--gold); background: rgba(217, 192, 138, 0.12); color: #f0dcae; }
.readers-back svg { width: 16px; height: 16px; flex: none; }
/* на этой странице кнопка звука не «выезжает», а видна сразу */
.readers-topbar .sound-toggle {
  position: static;
  opacity: 0.85;
}

.readers-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(6rem, 16vh, 9rem) clamp(1.5rem, 5vw, 3rem) clamp(4rem, 10vh, 7rem);
}

.readers-hero { text-align: center; margin-bottom: clamp(3rem, 9vh, 6rem); }
.readers-hero .section-title { margin-bottom: clamp(1.6rem, 4vh, 2.4rem); }
/* абзацы приветствия держим в комфортной для чтения ширине */
.readers-hero .readers-text { max-width: 760px; margin: 0 auto; }

.readers-section { margin: clamp(3rem, 9vh, 6rem) 0; }
/* заголовок секции (кикер + тайтл) — по центру */
.readers-section > header { text-align: center; margin-bottom: clamp(2rem, 5vh, 3rem); }
.readers-section > .kicker { display: block; text-align: center; }
.readers-section .section-title { text-align: center; }

/* абзацы страницы */
.readers-text p {
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.85;
  color: var(--text-soft);
  margin: 0;
}
.readers-text p + p { margin-top: 1.4em; }

/* пронумерованные способы связи */
.connect-list {
  list-style: none;
  margin: clamp(2.4rem, 6vh, 3.6rem) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.2rem, 3vw, 1.8rem);
}
.connect-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.18);
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(217, 192, 138, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(255, 250, 240, 0.03), rgba(255, 250, 240, 0.01));
}
.connect-item__num {
  width: 38px; height: 38px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: "Geometria", "Playfair Display", serif;
  font-size: 1.15rem;
  color: var(--gold);
  border: 1px solid rgba(217, 192, 138, 0.4);
  border-radius: 50%;
}
.connect-item__body p {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.8;
  color: var(--text-soft);
}
.connect-item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

/* карточки представленных людей */
.friends {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3vw, 2rem);
  margin-top: clamp(1.6rem, 4vh, 2.4rem);
}
.friend-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.16);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.03), rgba(255, 250, 240, 0.008));
}
.friend-card__photo {
  margin: 0;
  width: 132px; height: 132px;
}
.friend-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(217, 192, 138, 0.25);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  display: block;
}
.friend-card__name {
  margin: 0 0 0.8rem;
  font-family: "Geometria", "Playfair Display", serif;
  font-weight: 300;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.94);
}
.friend-card__body p {
  margin: 0 0 1.2rem;
  font-family: "Onest", sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.75;
  color: var(--text-soft);
}

.readers-outro {
  margin-top: clamp(2.4rem, 6vh, 3.6rem);
  text-align: center;
  font-family: "Onest", sans-serif;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.75;
  color: var(--text-dim);
}

@media (max-width: 560px) {
  .connect-item { grid-template-columns: 1fr; }
  .connect-item__num { margin-bottom: 0.2rem; }
  .friend-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .friend-card__body { text-align: left; }
}

/* ============ «ДЛЯ КОГО ЭТА КНИГА» ============ */
.forwhom {
  position: relative;
  z-index: 10;
  background: var(--black);
  padding: clamp(3rem, 9vh, 6rem) 6vw;
}
.forwhom__inner { max-width: 820px; margin: 0 auto; }
.forwhom__head { text-align: center; margin-bottom: clamp(2rem, 5vh, 3rem); }
.forwhom__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.4vh, 1.4rem);
}
.forwhom__item {
  display: flex;
  align-items: flex-start;
  gap: clamp(0.9rem, 2vw, 1.3rem);
}
.forwhom__mark {
  flex: none;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.1rem;
  border-radius: 50%;
  color: var(--gold);
  background: radial-gradient(circle at 50% 32%, rgba(217, 192, 138, 0.18), rgba(217, 192, 138, 0.04));
  border: 1px solid rgba(217, 192, 138, 0.3);
  box-shadow: inset 0 0 12px rgba(217, 192, 138, 0.08);
}
.forwhom__mark svg { width: 15px; height: 15px; }
.forwhom__item p {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-soft);
}
.forwhom__item p b { color: var(--gold); font-weight: 600; }

/* ============ ВСТУПИТЕЛЬНОЕ СЛОВО (ОТЗЫВ) ============ */
.endorse {
  position: relative;
  z-index: 10;
  background: var(--black);
  padding: clamp(3rem, 9vh, 6rem) 6vw;
}
.endorse__head { text-align: center; margin-bottom: clamp(2rem, 5vh, 3rem); }
.endorse__list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 3.5vh, 2.4rem);
}
.endorse__item {
  margin: 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: clamp(1.6rem, 4vw, 2.6rem);
  align-items: center;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.16);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.035), rgba(255, 250, 240, 0.012));
}
.endorse__photo { margin: 0; }
.endorse__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(217, 192, 138, 0.25);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.endorse__body { margin: 0; }
.endorse__mark {
  display: block;
  font-family: "Geometria", "Playfair Display", serif;
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  line-height: 0.5;
  color: rgba(217, 192, 138, 0.4);
  margin-bottom: 0.5rem;
}
.endorse__quote {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.92);
}
.endorse__attr {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.endorse__name {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--gold);
}
.endorse__role {
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--text-soft);
  opacity: 0.85;
}
.endorse__role a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(217, 192, 138, 0.45);
  text-underline-offset: 2px;
  transition: color 0.3s var(--ease), text-decoration-color 0.3s var(--ease);
}
.endorse__role a:hover { color: #f0dcae; text-decoration-color: var(--gold); }
@media (max-width: 640px) {
  .endorse__item { grid-template-columns: 1fr; text-align: center; gap: clamp(1.4rem, 4vh, 2rem); }
  .endorse__photo { max-width: 150px; margin: 0 auto; }
  .endorse__mark { line-height: 0.8; }
  .endorse__attr { align-items: center; }
}

/* ============ ПЛАВАЮЩАЯ КНОПКА «ЗАКАЗАТЬ» ============ */
/* плавающие кнопки — кластер внизу справа */
.fab-cluster {
  position: fixed;
  right: clamp(1rem, 3vw, 1.6rem);
  bottom: calc(clamp(1rem, 3vw, 1.6rem) + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), visibility 0.55s;
}
.fab-cluster.is-shown { opacity: 1; visibility: visible; transform: none; }
.buy-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85em 1.5em;
  font-family: "Onest", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a2018;
  text-decoration: none;
  background: linear-gradient(180deg, #e6cf9c, #d9c08a);
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(217, 192, 138, 0.45);
  transition: filter 0.3s var(--ease), box-shadow 0.3s var(--ease);
  cursor: pointer;
}
.buy-fab:hover {
  filter: brightness(1.06);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5), 0 0 24px rgba(217, 192, 138, 0.3);
}
.buy-fab__icon { width: 16px; height: 16px; flex: none; }
.fab-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85em 1.4em;
  font-family: "Onest", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2a2018;
  text-decoration: none;
  background: linear-gradient(180deg, #e6cf9c, #d9c08a);
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(217, 192, 138, 0.45);
  transition: filter 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.fab-read:hover {
  filter: brightness(1.06);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5), 0 0 24px rgba(217, 192, 138, 0.3);
}
.fab-read__icon { width: 16px; height: 16px; flex: none; }
@media (max-width: 680px) {
  .buy-fab, .fab-read { padding: 0.7em 1em; font-size: 11px; }
}

/* ============ БЛОК «ПОСЛЕ ПРОЧТЕНИЯ» ============ */
.after-read {
  position: relative;
  z-index: 10;
  background: var(--black);
  padding: clamp(3rem, 9vh, 6rem) 6vw;
  text-align: center;
}
.after-read__inner { max-width: 620px; margin: 0 auto; }
.after-read__text {
  margin: clamp(1.4rem, 3.5vh, 2rem) 0 0;
  font-family: "Onest", sans-serif;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.8;
  color: var(--text-soft);
}
.after-read__cta { margin-top: clamp(1.8rem, 4.5vh, 2.6rem); }

/* ============ ВИТРАЖ ТРАДИЦИЙ (лаба) ============ */
.vitrazh {
  position: relative;
  z-index: 10;
  background: var(--black);
  padding: clamp(3rem, 9vh, 6rem) 6vw;
  overflow: hidden;
}
.vitrazh__inner { max-width: 1000px; margin: 0 auto; }
.vitrazh__head { text-align: center; margin-bottom: clamp(2.4rem, 6vh, 3.6rem); }
.vitrazh__lead {
  max-width: 640px;
  margin: 1.4rem auto 0;
  font-family: "Onest", sans-serif;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  color: var(--text-soft);
}
.vitrazh__windows {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: clamp(0.5rem, 1.6vw, 1.1rem);
  max-width: 700px;
  margin: 0 auto;
}
/* общий «свет» сверху — одна лампада на все окна */
.vitrazh__windows::before {
  content: "";
  position: absolute;
  left: 50%; top: -22%;
  width: 62%; height: 62%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 238, 200, 0.22), transparent 70%);
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
}
.vwin {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Onest", sans-serif;
}
.vwin__glass {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 2;
  border-radius: 999px 999px 10px 10px;
  border: 1px solid rgba(217, 192, 138, 0.4);
  background: linear-gradient(180deg, var(--g1) 0%, var(--g2) 45%, var(--g3) 75%, #E9B44C 100%);
  filter: saturate(0.45) brightness(0.55);
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.55);
  position: relative;
  transition: filter 0.5s var(--ease), box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
/* свинцовые перемычки витража */
.vwin__glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 48.5%, rgba(0, 0, 0, 0.28) 50%, transparent 51.5%),
    linear-gradient(0deg, transparent 31%, rgba(0, 0, 0, 0.22) 33%, transparent 35%, transparent 64%, rgba(0, 0, 0, 0.22) 66%, transparent 68%);
  pointer-events: none;
}
.vwin__name {
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  color: var(--text-dim);
  transition: color 0.4s var(--ease);
}
@media (hover: hover) {
  .vwin:hover .vwin__glass { filter: saturate(0.7) brightness(0.78); transform: translateY(-3px); }
}
.vwin[aria-selected="true"] { z-index: 2; }
.vwin[aria-selected="true"] .vwin__glass {
  filter: none;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.3), 0 0 34px rgba(233, 180, 76, 0.5);
  transform: scale(1.06);
}
/* протестантское окно светлее — не даём ему поблёкнуть до серого в покое */
.vwin[data-trad="prot"]:not([aria-selected="true"]) .vwin__glass { filter: saturate(0.5) brightness(0.66); }
.vwin[aria-selected="true"] .vwin__name { color: var(--gold); }
.vwin:focus-visible { outline: none; }
.vwin:focus-visible .vwin__glass { box-shadow: inset 0 0 22px rgba(0,0,0,0.4), 0 0 0 2px var(--gold); }

.vitrazh__panel {
  position: relative;
  max-width: 720px;
  margin: clamp(1.8rem, 4vh, 2.6rem) auto 0;
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.16);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.035), rgba(255, 250, 240, 0.012));
  min-height: 150px;
}
.vpanel { display: none; }
.vpanel.is-active { display: block; animation: vfade 0.5s var(--ease); }
@keyframes vfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vpanel__prayer {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.92);
}
.vpanel__src {
  margin: 1.1rem 0 0;
  font-family: "Onest", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--gold);
  opacity: 0.8;
}
@media (max-width: 680px) {
  .vitrazh__windows { gap: 0.4rem; max-width: 100%; }
  .vwin__glass { aspect-ratio: 1 / 2.2; border-radius: 999px 999px 7px 7px; }
  .vwin__name { font-size: 0.6rem; }
}

/* ============ КАРТОЧКИ-ЦИТАТЫ (лаба) ============ */
.qcards {
  position: relative;
  z-index: 10;
  background: var(--black);
  padding: clamp(3rem, 9vh, 6rem) 6vw;
}
.qcards__inner { max-width: 1100px; margin: 0 auto; }
.qcards__head { text-align: center; margin-bottom: clamp(2rem, 5vh, 3rem); }
.qcards__cover {
  margin: 0 auto clamp(1.8rem, 4.5vh, 2.6rem);
  max-width: clamp(340px, 60vw, 500px);
}
.qcards__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.qcards__viewport { position: relative; }
.qcards__track {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.25rem;
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.6rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.qcards__track::-webkit-scrollbar { display: none; }
.qcard {
  scroll-snap-align: start;
  flex: 0 0 clamp(258px, 78vw, 348px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(220px, 30vh, 260px);
  padding: clamp(1.8rem, 3.2vw, 2.4rem);
  border-radius: 16px;
  border: 1px solid rgba(217, 192, 138, 0.16);
  background: linear-gradient(180deg, rgba(255, 250, 240, 0.045), rgba(255, 250, 240, 0.012));
}
.qcard__mark {
  font-family: "Geometria", "Playfair Display", serif;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 0.5;
  color: rgba(217, 192, 138, 0.4);
  margin-bottom: 0.7rem;
}
.qcard__text {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}
.qcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: clamp(1.4rem, 3vh, 2rem);
}
.qcard__src {
  font-family: "Onest", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
}
.qcard__share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5em 0.9em;
  font-family: "Onest", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(217, 192, 138, 0.06);
  border: 1px solid rgba(217, 192, 138, 0.3);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.qcard__share:hover { background: rgba(217, 192, 138, 0.14); border-color: rgba(217, 192, 138, 0.6); color: #f0dcae; }
.qcard__share svg { width: 13px; height: 13px; flex: none; }
.qcards__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.72);
  border: 1px solid rgba(217, 192, 138, 0.3);
  color: var(--gold);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.qcards__nav:hover { border-color: var(--gold); background: rgba(217, 192, 138, 0.12); }
.qcards__nav svg { width: 18px; height: 18px; }
.qcards__nav--prev { left: -10px; }
.qcards__nav--next { right: -10px; }
@media (max-width: 720px) {
  .qcards__nav { display: none; }
}
/* тост */
.qtoast {
  position: fixed;
  left: 50%; bottom: 2rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 300;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  background: rgba(20, 18, 14, 0.95);
  border: 1px solid rgba(217, 192, 138, 0.4);
  color: #f0dcae;
  font-family: "Onest", sans-serif;
  font-size: 13px;
  letter-spacing: 0.03em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.qtoast.is-shown { opacity: 1; visibility: visible; transform: translateX(-50%); }

/* ============ ССЫЛКА «СКАЧАТЬ PDF» ПОД КНОПКОЙ ЧТЕНИЯ ============ */
.cta-read__pdf-row { margin: clamp(0.9rem, 2vh, 1.3rem) 0 0; }
.cta-read__pdf {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.cta-read__pdf svg { width: 13px; height: 13px; flex: none; }
.cta-read__pdf:hover { color: var(--gold); }

/* ============ ИНЛАЙН-РИДЕР ФРАГМЕНТА (лаба) ============ */
body.reader-open { overflow: hidden; }
.reader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.6rem, 3vw, 2rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.reader.is-open { opacity: 1; visibility: visible; }
.reader__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 4, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.reader__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(90vh, 900px);
  background: linear-gradient(180deg, #0d0d0f, #0a0a0b);
  border: 1px solid rgba(217, 192, 138, 0.18);
  border-radius: 18px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateY(18px) scale(0.99);
  transition: transform 0.4s var(--ease);
}
.reader.is-open .reader__panel { transform: none; }
.reader__bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(1rem, 2.5vw, 1.3rem) clamp(1.2rem, 3vw, 1.8rem);
  border-bottom: 1px solid rgba(217, 192, 138, 0.12);
}
.reader__eyebrow {
  font-family: "Onest", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.8;
}
.reader__close {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(217, 192, 138, 0.06);
  border: 1px solid rgba(217, 192, 138, 0.25);
  color: var(--gold);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.reader__close:hover { border-color: var(--gold); background: rgba(217, 192, 138, 0.14); }
.reader__close svg { width: 18px; height: 18px; }
.reader__audio {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: clamp(0.9rem, 2.4vw, 1.2rem) clamp(1.2rem, 3vw, 1.8rem);
  border-bottom: 1px solid rgba(217, 192, 138, 0.12);
  background: rgba(217, 192, 138, 0.03);
}
.reader__audio-label {
  font-family: "Onest", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.reader__parts { display: flex; gap: 0.5rem; }
.reader__part {
  padding: 0.4em 1em;
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(217, 192, 138, 0.05);
  border: 1px solid rgba(217, 192, 138, 0.22);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.reader__part.is-active {
  color: #2a2018;
  background: linear-gradient(180deg, #e6cf9c, #d9c08a);
  border-color: transparent;
}
#readerAudio { width: 100%; height: 40px; }
.reader__body {
  overflow-y: auto;
  padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(1.2rem, 4vw, 2.4rem);
  -webkit-overflow-scrolling: touch;
}
.reader__text { max-width: 62ch; margin: 0 auto; }
.reader__text h2 {
  margin: 0 0 1.4rem;
  font-family: "Geometria", "Playfair Display", serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: rgba(255, 255, 255, 0.94);
  text-align: center;
}
.reader__text h3 {
  margin: 2rem 0 1rem;
  font-family: "Geometria", "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--gold);
}
.reader__text p {
  margin: 0 0 1.15em;
  font-family: "Onest", sans-serif;
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.75;
  color: var(--text-soft);
}
@media (max-width: 560px) {
  .reader__panel { max-height: 94vh; border-radius: 14px; }
}

/* ---- модалка «Мечта» (страница readers): две части, задачи-списки ---- */
.dream__part { margin: 0; }
.dream__no {
  display: block;
  font-family: "Onest", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}
.reader__text.dream h2 {
  text-align: left;
  margin: 0 0 1.3rem;
  color: var(--gold);
  font-weight: 400;
}
.reader__text.dream h3 {
  margin: 1.7rem 0 0.55rem;
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dream__tasks {
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: dt;
}
.dream__tasks li {
  counter-increment: dt;
  position: relative;
  padding-left: 2.6rem;
  margin: 0 0 1.05em;
  font-family: "Onest", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.72;
  color: var(--text-soft);
}
.dream__tasks li::before {
  content: counter(dt);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Onest", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(217, 192, 138, 0.4);
  border-radius: 50%;
}
.dream__sep {
  margin: 2.6rem auto;
  max-width: 260px;
  color: var(--gold);
  opacity: 0.7;
}
.dream__sep svg { width: 100%; height: auto; display: block; }

/* ============ КРАФТ 2026: ЗЕРНО · VIEW TRANSITIONS · НАТИВНЫЙ СКРОЛЛ ============ */

/* плавный кросс-фейд при переходе главная <-> readers (поддерживающие браузеры) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.5s; }

/* лёгкое «зерно» в тон карандашной графике */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%27140%27%20height%3D%27140%27%3E%3Cfilter%20id%3D%27n%27%3E%3CfeTurbulence%20type%3D%27fractalNoise%27%20baseFrequency%3D%270.85%27%20numOctaves%3D%272%27%20stitchTiles%3D%27stitch%27%2F%3E%3CfeColorMatrix%20type%3D%27saturate%27%20values%3D%270%27%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%27100%25%27%20height%3D%27100%25%27%20filter%3D%27url%28%23n%29%27%2F%3E%3C%2Fsvg%3E");
  background-size: 140px 140px;
}

/* нативные scroll-driven анимации появления (где поддерживаются; иначе — JS-фолбэк) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      opacity: 1;
      transform: none;
      animation: reveal-native linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }
    @keyframes reveal-native {
      from { opacity: 0; transform: translateY(26px); }
      to   { opacity: 1; transform: none; }
    }
  }
}
/* Мобилка: scroll-driven reveal прячет часть длинных абзацев (нижние строки на
   своём transform-слое не успевают отрисоваться → «текст появляется» при скролле).
   На узких экранах показываем контент сразу, без анимации появления. */
@media (max-width: 680px) {
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}


/* ============ СТРАНИЦА-МАНИФЕСТ (Всеобщая декларация веры) ============ */
.manifest-page { background: var(--black); }
.manifest-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1.1rem clamp(1.2rem, 4vw, 2rem);
  background: linear-gradient(180deg, rgba(5, 5, 6, 0.9), rgba(5, 5, 6, 0));
  pointer-events: none;
}
.manifest__back {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px;
  font-family: "Onest", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.08em; color: var(--gold); text-decoration: none;
  background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(217, 192, 138, 0.3);
  border-radius: 999px; transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.manifest__back:hover { border-color: var(--gold); background: rgba(217, 192, 138, 0.12); }
.manifest__back svg { width: 16px; height: 16px; }

.manifest { position: relative; z-index: 10; padding: clamp(5rem, 14vh, 8rem) 6vw clamp(4rem, 10vh, 6rem); }
.manifest__inner { max-width: 720px; margin: 0 auto; }
.manifest__head { text-align: center; margin-bottom: clamp(2.4rem, 6vh, 3.6rem); }
.manifest__title {
  margin: 1rem 0 0;
  font-family: "Geometria", "Playfair Display", serif; font-weight: 300;
  font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.15; letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.95);
}
.manifest__preamble p {
  margin: 0 0 1.15em;
  font-family: "Onest", sans-serif; font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.75; color: var(--text-soft);
}
.manifest__lead {
  margin: clamp(1.6rem, 4vh, 2.2rem) 0 0;
  font-family: "Lora", Georgia, serif; font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6;
  color: rgba(255, 255, 255, 0.9); text-align: center;
}
.m-group { margin-top: clamp(2.6rem, 6vh, 3.6rem); }
.m-group__title {
  margin: 0 0 clamp(1.4rem, 3.5vh, 2rem);
  font-family: "Onest", sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold);
  padding-bottom: 0.7rem; border-bottom: 1px solid rgba(217, 192, 138, 0.18);
}
.m-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(1.6rem, 4vh, 2.4rem); }
.m-point { display: grid; grid-template-columns: clamp(2.2rem, 5vw, 3rem) 1fr; gap: clamp(0.8rem, 2vw, 1.4rem); }
.m-point__num {
  font-family: "Geometria", "Playfair Display", serif; font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.1;
  color: rgba(217, 192, 138, 0.55); text-align: right;
}
.m-point__body p { margin: 0 0 0.7em; font-family: "Onest", sans-serif; font-size: clamp(1.02rem, 1.5vw, 1.14rem); line-height: 1.72; color: var(--text-soft); }
.m-point__body p:last-child { margin-bottom: 0; }
.m-point__q { color: rgba(255, 255, 255, 0.94); font-weight: 600; }
.m-point__sub { list-style: none; margin: 0.4rem 0 0.7rem; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.m-point__sub li {
  position: relative; padding-left: 1.3rem;
  font-family: "Onest", sans-serif; font-size: clamp(0.98rem, 1.4vw, 1.08rem); line-height: 1.6; color: var(--text-soft);
}
.m-point__sub li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: rgba(217, 192, 138, 0.5); }

.manifest__reflect { margin-top: clamp(1rem, 3vh, 2rem); text-align: center; }
.manifest__questions { list-style: none; margin: clamp(1.4rem, 3.5vh, 2rem) 0 0; padding: 0; display: flex; flex-direction: column; gap: clamp(1rem, 2.5vh, 1.5rem); }
.manifest__questions li {
  max-width: 600px; margin: 0 auto;
  font-family: "Lora", Georgia, serif; font-style: italic;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem); line-height: 1.6; color: var(--text-dim);
}
.manifest__foot { margin-top: clamp(3rem, 8vh, 4.5rem); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.manifest__back-link { font-family: "Onest", sans-serif; font-size: 12px; letter-spacing: 0.06em; color: var(--text-dim); text-decoration: none; transition: color 0.3s var(--ease); }
.manifest__back-link:hover { color: var(--gold); }

/* ссылка на манифест в футере главной */
.site-footer__links { margin: 0.7rem 0 0; }
.site-footer__links a {
  font-family: "Onest", sans-serif; font-size: 12px; letter-spacing: 0.06em;
  color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(217, 192, 138, 0.35); padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-footer__links a:hover { color: #f0dcae; border-color: var(--gold); }
