/* ============================================
   «Земля медведя» — sakhpress.ru спецпроект
   Стайлгайд: см. 01-structura-i-stilguide.md
   ============================================ */

:root {
  --color-forest-dark: #20382B;
  --color-forest-darker: #152520;
  --color-amber: #D39B3A;
  --color-amber-soft: #E7C07E;
  --color-ice: #C7DCE5;
  --color-earth: #7A5A3A;
  --color-cream: #F7F4EE;
  --color-graphite: #1F2328;

  --font-display: 'Nunito', sans-serif;
  --font-body: 'PT Serif', serif;
  --font-ui: 'Manrope', sans-serif;

  --container-max: 1180px;
  --section-pad-x: clamp(20px, 6vw, 96px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-graphite);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  margin: 0;
}

.eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
}

/* ===== Секция ===== */
.section {
  position: relative;
  width: 100%;
}

/* ===== HERO (pinned-главы, XREAL-стиль) ===== */
.hero {
  position: relative;
  height: 320vh;            /* высота = путь скролла для 3 глав */
  background: var(--color-forest-darker);
}

.hero__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  will-change: transform;
}

.hero__bg-picture,
.hero__bg-picture img,
.hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__bg img {
  object-fit: cover;
  object-position: center bottom;
}

.hero__bg-video {
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  transition: opacity 1.4s ease;
  pointer-events: none;
}

.hero__bg-video.is-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg-video { display: none; }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top,
      rgba(12, 20, 16, .55) 0%,
      rgba(12, 20, 16, .25) 20%,
      rgba(12, 20, 16, 0) 45%),
    linear-gradient(105deg,
      rgba(12, 20, 16, .80) 0%,
      rgba(12, 20, 16, .38) 32%,
      rgba(12, 20, 16, 0) 60%);
  pointer-events: none;
}

/* Сцена: все главы лежат в одной ячейке грида, друг поверх друга */
.hero__stage {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  padding: clamp(24px, 6vh, 72px) var(--section-pad-x) clamp(48px, 10vh, 104px);
}

.chapter {
  grid-area: 1 / 1;         /* все главы в одну ячейку — наложение */
  align-self: end;
  max-width: 820px;
  will-change: transform, opacity;
}

.hero__eyebrow {
  color: var(--color-amber-soft);
  margin: 0 0 1.1rem;
}

.hero__title {
  font-size: clamp(2rem, 5.4vw, 4.1rem);
  line-height: 1.08;
  color: var(--color-cream);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(12, 20, 16, .5);
}

.hero__title .accent,
.hero__chapter-title .accent { color: var(--color-amber); }

.hero__chapter-title {
  font-size: clamp(1.8rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  color: var(--color-cream);
  margin: 0 0 1.2rem;
  max-width: 16ch;
  text-shadow: 0 2px 18px rgba(12, 20, 16, .5);
}

.hero__chapter-text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--color-ice);
  max-width: 46ch;
  margin: 0;
  text-shadow: 0 1px 12px rgba(12, 20, 16, .55);
}

.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: 2rem;
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--color-cream);
  opacity: .9;
}

.hero__cue-icon {
  width: 18px;
  height: 18px;
  flex: none;
  animation: hero-bob 2.2s ease-in-out infinite;
}

@keyframes hero-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(7px); }
}

/* Точки-индикатор глав */
.hero__dots {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 3vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(247, 244, 238, .35);
  transition: background .35s ease, transform .35s ease;
}

.hero__dot.is-active {
  background: var(--color-amber);
  transform: scale(1.35);
}

/* Fallback без JS/GSAP: показываем только первую главу, без наложения */
.no-js-fallback .chapter { grid-area: auto; }
.no-js-fallback .chapter[data-chapter="1"],
.no-js-fallback .chapter[data-chapter="2"] { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero__cue-icon { animation: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 700px) {
  .hero__pin { min-height: 540px; }
  .hero__stage {
    align-items: end;
    padding-bottom: clamp(56px, 12vh, 96px);
  }
  .hero__title { max-width: 100%; font-size: clamp(1.85rem, 8vw, 2.6rem); }
  .hero__chapter-title { max-width: 100%; font-size: clamp(1.7rem, 7vw, 2.4rem); }
  .hero__chapter-text { max-width: 100%; }
  .hero__dots { right: 12px; gap: 10px; }
}

/* ============================================
   Общие утилиты секций
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}

.section-eyebrow {
  color: var(--color-earth);
  margin: 0 0 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1.14;
  color: var(--color-graphite);
  margin: 0;
  max-width: 24ch;
  text-wrap: balance;
}

/* Появление при скролле */
[data-anim] {
  opacity: 0;
  transform: translateY(28px);
}
.no-js [data-anim],
.no-js-fallback [data-anim] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-anim] { opacity: 1; transform: none; }
}

/* ============================================
   Блок 2 — Почему именно сейчас
   ============================================ */
.why {
  background: var(--color-cream);
  padding: clamp(64px, 12vh, 140px) 0;
}

.why__head { margin-bottom: clamp(32px, 5vh, 56px); }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
  margin-bottom: clamp(16px, 2vh, 24px);
}

.stats__source {
  font-family: var(--font-ui);
  font-size: .84rem;
  color: var(--color-graphite);
  opacity: .55;
  margin: 0 0 clamp(40px, 6vh, 72px);
}

.stat {
  padding: clamp(20px, 2.4vw, 32px);
  background: #fff;
  border: 1px solid rgba(31, 35, 40, .08);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(31, 35, 40, .04);
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--color-forest-dark);
  margin-bottom: .6rem;
}

.stat__num--accent { color: var(--color-amber); }

.stat__label {
  font-family: var(--font-ui);
  font-size: .98rem;
  line-height: 1.4;
  color: var(--color-graphite);
  opacity: .8;
}

.why__lead {
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 1.5;
  color: var(--color-graphite);
  max-width: 42ch;
  margin: 0 0 clamp(36px, 6vh, 64px);
}

.why__fact {
  margin-top: clamp(36px, 6vh, 64px);
  background: #fff;
  border: 1px solid rgba(31, 35, 40, .08);
  border-radius: 18px;
  overflow: hidden;
  max-width: 920px;
  box-shadow: 0 8px 32px rgba(31, 35, 40, .06);
}

.why__fact--photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
}

.why__fact-media {
  position: relative;
  min-height: 280px;
  background: var(--color-forest-darker);
}

.why__fact-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.why__fact-media-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--font-ui);
  font-size: .74rem;
  font-weight: 600;
  color: var(--color-cream);
  background: rgba(18, 28, 22, .6);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.why__fact-body {
  padding: clamp(24px, 3vw, 40px);
  border-left: 4px solid var(--color-earth);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why__fact-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-earth);
  margin: 0 0 .9rem;
}

.why__fact-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-graphite);
  margin: 0 0 1rem;
}

.why__fact-quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-forest-dark);
  border-left: 2px solid var(--color-amber);
  padding-left: 14px;
  margin: 0 0 .8rem;
}

.why__fact-cite {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .82rem;
  color: var(--color-graphite);
  opacity: .65;
  margin: 0;
}

.season {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 28px);
}

.season__card {
  background: #fff;
  border: 1px solid rgba(31, 35, 40, .08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(31, 35, 40, .05);
  display: flex;
  flex-direction: column;
}

.season__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-forest-darker);
  overflow: hidden;
}

.season__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.season__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(18, 28, 22, .82);
  color: var(--color-cream);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .02em;
  backdrop-filter: blur(4px);
}

.season__body {
  padding: clamp(16px, 1.6vw, 22px);
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.season__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--color-forest-dark);
  margin: 0;
}

.season__text {
  font-family: var(--font-body);
  font-size: .98rem;
  line-height: 1.5;
  color: var(--color-graphite);
  opacity: .85;
  margin: 0;
}

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr; }
  .season { grid-template-columns: repeat(2, 1fr); }
  .why__fact--photo { grid-template-columns: 1fr; }
  .why__fact-media { min-height: 220px; }
  .why__fact-body { border-left: none; border-top: 4px solid var(--color-earth); }
}

@media (max-width: 520px) {
  .season { grid-template-columns: 1fr; }
}

/* ============================================
   Блок 3 — Медведь без мифов (flip-карточки)
   ============================================ */
.myths {
  background: var(--color-forest-dark);
  padding: clamp(64px, 12vh, 140px) 0;
}

.myths__head { margin-bottom: clamp(36px, 6vh, 64px); }

.myths .section-eyebrow { color: var(--color-amber-soft); }

.myths__title { color: var(--color-cream); }

.myths__hint {
  font-family: var(--font-ui);
  font-size: .95rem;
  color: var(--color-ice);
  opacity: .75;
  margin: 1rem 0 0;
}

.myths__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 26px);
}

.myth {
  perspective: 1400px;
}

/* Кнопка-обёртка = карточка */
.myth__inner {
  position: relative;
  display: block;
  width: 100%;
  min-height: 200px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.4, .2, .2, 1);
  font-family: inherit;
  text-align: left;
}

.myth__inner[aria-expanded="true"] {
  transform: rotateY(180deg);
}

.myth__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: clamp(20px, 2.2vw, 28px);
  border-radius: 18px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(247, 244, 238, .14);
}

.myth__face--front {
  background: linear-gradient(160deg, #2b4a39 0%, #223d2e 100%);
}

.myth__face--back {
  background: linear-gradient(160deg, #34502f 0%, #26401f 100%);
  transform: rotateY(180deg);
  justify-content: flex-start;
}

.myth { display: block; }

.myth__badge {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.myth__badge--false {
  background: rgba(211, 155, 58, .16);
  color: var(--color-amber);
}

.myth__badge--true {
  background: var(--color-amber);
  color: #241a08;
}

.myth__face--front .myth__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.25;
  color: var(--color-cream);
}

.myth__face--back .myth__text {
  font-family: var(--font-body);
  font-size: clamp(.98rem, 1.2vw, 1.08rem);
  line-height: 1.5;
  color: var(--color-cream);
}

.myth__flip {
  margin-top: auto;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .85rem;
  color: var(--color-amber-soft);
}

.myth__inner:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 3px;
  border-radius: 18px;
}

/* Fallback без JS вообще: показываем обе стороны стопкой, без переворота.
   Класс .js ставится скриптом; если JS отключён — класса нет, флип-режим не активен. */
.no-js .myth__inner { transform: none !important; min-height: 0; height: auto; }
.no-js .myth__face {
  position: static;
  inset: auto;
  backface-visibility: visible;
  transform: none;
  margin-bottom: 12px;
}
.no-js .myth__flip { display: none; }

@media (prefers-reduced-motion: reduce) {
  .myth__inner { transition: none; }
}

@media (max-width: 900px) {
  .myths__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .myths__grid { grid-template-columns: 1fr; }
}

/* ============================================
   Блок 4 — Где возникает конфликт (карта зон)
   ============================================ */
.zones {
  background: var(--color-cream);
  padding: clamp(64px, 12vh, 140px) 0;
}

.zones__head { margin-bottom: clamp(32px, 5vh, 56px); }

.zones__hint {
  font-family: var(--font-ui);
  font-size: .92rem;
  color: var(--color-graphite);
  opacity: .6;
  margin: 1rem 0 0;
}

.zones__interactive {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}

.zones__scene {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-forest-darker);
  box-shadow: 0 8px 32px rgba(31, 35, 40, .12);
}

.zones__scene picture,
.zones__scene img {
  display: block;
  width: 100%;
  height: auto;
}

.zones__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.zones__pin-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-amber);
  border: 3px solid rgba(247, 244, 238, .9);
  box-shadow: 0 0 0 0 rgba(211, 155, 58, .55);
  transition: transform .25s ease, box-shadow .25s ease;
  flex: none;
}

.zones__pin-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .8rem;
  color: var(--color-cream);
  background: rgba(18, 28, 22, .82);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.zones__pin:hover .zones__pin-label,
.zones__pin:focus-visible .zones__pin-label,
.zones__pin.is-active .zones__pin-label {
  opacity: 1;
  transform: translateX(0);
}

.zones__pin:hover .zones__pin-dot,
.zones__pin:focus-visible .zones__pin-dot {
  transform: scale(1.15);
}

.zones__pin.is-active .zones__pin-dot {
  background: var(--color-cream);
  box-shadow: 0 0 0 6px rgba(211, 155, 58, .45);
}

.zones__pin:focus-visible {
  outline: none;
}
.zones__pin:focus-visible .zones__pin-dot {
  outline: 3px solid var(--color-amber);
  outline-offset: 2px;
}

.zones__panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.zones__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zones__legend-btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .85rem;
  color: var(--color-graphite);
  background: #fff;
  border: 1px solid rgba(31, 35, 40, .12);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.zones__legend-btn.is-active {
  background: var(--color-forest-dark);
  border-color: var(--color-forest-dark);
  color: var(--color-cream);
}

.zones__legend-btn:hover { border-color: var(--color-forest-dark); }

.zones__detail {
  background: #fff;
  border: 1px solid rgba(31, 35, 40, .08);
  border-radius: 18px;
  padding: clamp(20px, 2.2vw, 28px);
  box-shadow: 0 4px 20px rgba(31, 35, 40, .05);
  min-height: 220px;
}

.zones__detail-eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-forest-dark);
  margin: 0 0 1rem;
}

.zones__detail-why,
.zones__detail-todo {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--color-graphite);
  margin: 0 0 .9rem;
}

.zones__detail-why strong,
.zones__detail-todo strong {
  font-family: var(--font-ui);
  color: var(--color-forest-dark);
}

.zones__detail-todo { margin-bottom: 0; }

@media (max-width: 900px) {
  .zones__interactive { grid-template-columns: 1fr; }
  .zones__pin-label { font-size: .75rem; }
}

@media (max-width: 560px) {
  .zones__pin-label { display: none; }
  .zones__pin.is-active .zones__pin-label {
    display: inline-block;
    opacity: 1;
    transform: none;
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
  }
  /* Нижние точки: подпись над точкой, чтобы не обрезалась краем сцены */
  .zones__pin[data-zone="road"].is-active .zones__pin-label,
  .zones__pin[data-zone="dump"].is-active .zones__pin-label,
  .zones__pin[data-zone="river"].is-active .zones__pin-label {
    top: auto;
    bottom: 22px;
  }
  /* Крайние точки: прижимаем подпись к стороне, чтобы не уходила за край */
  .zones__pin[data-zone="dacha"].is-active .zones__pin-label,
  .zones__pin[data-zone="edge"].is-active .zones__pin-label {
    left: -6px;
    transform: none;
  }
  .zones__pin[data-zone="river"].is-active .zones__pin-label {
    left: auto;
    right: -6px;
    transform: none;
  }
}

/* ============================================
   Блок 5 — Что делать в угодьях (чек-лист)
   ============================================ */
.rules {
  background: var(--color-forest-dark);
  padding: clamp(64px, 12vh, 140px) 0;
}

.rules__head { margin-bottom: clamp(36px, 6vh, 64px); }

.rules .section-eyebrow { color: var(--color-amber-soft); }

.rules__title {
  color: var(--color-cream);
  max-width: 28ch;
}

.rules__groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: clamp(28px, 4vh, 44px);
}

.rules__group-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-amber);
  margin: 0 0 1.2rem;
}

.rules__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rules__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.45;
  color: var(--color-cream);
}

.rules__icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.rules__icon svg { width: 13px; height: 13px; }

.is-do .rules__icon {
  background: rgba(211, 155, 58, .18);
  color: var(--color-amber);
}

.is-dont .rules__icon {
  background: rgba(247, 244, 238, .1);
  color: var(--color-ice);
}

.is-dont span:last-child { opacity: .88; }

.rules__gear {
  background: rgba(247, 244, 238, .06);
  border: 1px solid rgba(211, 155, 58, .35);
  border-radius: 16px;
  padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.rules__gear-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .92rem;
  color: var(--color-amber-soft);
  margin: 0;
  flex: none;
}

.rules__gear-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rules__gear-list li {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .88rem;
  color: var(--color-cream);
  background: rgba(211, 155, 58, .14);
  border: 1px solid rgba(211, 155, 58, .3);
  border-radius: 999px;
  padding: 6px 14px;
}

@media (max-width: 760px) {
  .rules__groups { grid-template-columns: 1fr; gap: 32px; }
  .rules__gear { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   Блок 6 — Если встреча случилась
   ============================================ */
.encounter {
  background: var(--color-cream);
  padding: clamp(64px, 12vh, 140px) 0;
}

.encounter__head { margin-bottom: clamp(28px, 4vh, 44px); }

.encounter__hint {
  font-family: var(--font-ui);
  font-size: .92rem;
  color: var(--color-graphite);
  opacity: .6;
  margin: 1rem 0 0;
}

.encounter__interactive {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
  margin-bottom: clamp(28px, 4vh, 44px);
}

.encounter__tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.encounter__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(31, 35, 40, .05);
  transition: border-color .2s ease, transform .2s ease;
}

.encounter__tab:hover { transform: translateY(-2px); }

.encounter__tab.is-active {
  border-color: var(--color-amber);
}

.encounter__tab-media {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-forest-darker);
}

.encounter__tab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.encounter__tab-label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .88rem;
  color: var(--color-graphite);
  text-align: center;
}

.encounter__tab.is-active .encounter__tab-label { color: var(--color-forest-dark); }

.encounter__panel {
  background: #fff;
  border: 1px solid rgba(31, 35, 40, .08);
  border-radius: 18px;
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: 0 4px 20px rgba(31, 35, 40, .05);
  min-height: 280px;
}

.encounter__steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.encounter__steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.encounter__steps li::before {
  content: counter(step);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-amber);
  color: #241a08;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.encounter__step-text {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--color-graphite);
  padding-top: 3px;
}

.encounter__signs {
  background: #fff;
  border: 1px solid rgba(31, 35, 40, .1);
  border-radius: 14px;
  padding: 16px 20px;
}

.encounter__signs summary {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-forest-dark);
  cursor: pointer;
}

.encounter__signs-body {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.encounter__signs-body p {
  font-family: var(--font-body);
  font-size: .96rem;
  line-height: 1.5;
  color: var(--color-graphite);
  margin: 0;
}

.encounter__signs-body strong {
  font-family: var(--font-ui);
  color: var(--color-forest-dark);
}

@media (max-width: 860px) {
  .encounter__interactive { grid-template-columns: 1fr; }
  .encounter__tabs { grid-template-columns: repeat(4, 1fr); }
  .encounter__tab-label { font-size: .78rem; }
}

@media (max-width: 520px) {
  .encounter__tabs { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Блок 7 — Истории с Сахалина
   ============================================ */
.heroes {
  background: var(--color-forest-dark);
  padding: clamp(64px, 12vh, 140px) 0;
}

.heroes__head { margin-bottom: clamp(36px, 6vh, 64px); }

.heroes .section-eyebrow { color: var(--color-amber-soft); }

.heroes__title {
  color: var(--color-cream);
  max-width: 26ch;
}

.heroes__expert {
  background: rgba(247, 244, 238, .05);
  border: 1px solid rgba(211, 155, 58, .4);
  border-left: 4px solid var(--color-amber);
  border-radius: 16px;
  padding: clamp(24px, 3.4vw, 44px);
  margin-bottom: clamp(36px, 5vh, 56px);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.heroes__expert-media {
  width: 140px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(211, 155, 58, .5);
}

.heroes__expert-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heroes__expert-body { min-width: 0; }

.heroes__expert--compact {
  grid-template-columns: 1fr;
}

.heroes__expert-body--full { min-width: 0; }

.heroes__expert-quote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.28;
  color: var(--color-cream);
  margin: 0 0 1rem;
}

.heroes__expert-quote-secondary {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-ice);
  margin: 0 0 1.4rem;
}

.heroes__expert-cite {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.heroes__expert-name {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .98rem;
  color: var(--color-amber);
}

.heroes__expert-role {
  font-family: var(--font-ui);
  font-size: .86rem;
  color: var(--color-cream);
  opacity: .8;
}

.heroes__expert-source {
  font-family: var(--font-ui);
  font-size: .8rem;
  color: var(--color-ice);
  opacity: .55;
  margin-top: 4px;
}

.heroes__subhead {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .95rem;
  color: var(--color-amber-soft);
  margin: 0 0 20px;
}

.heroes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
  margin-bottom: clamp(24px, 4vh, 36px);
  max-width: 720px;
}

.heroes__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.heroes__portrait {
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--color-forest-darker);
}

.heroes__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heroes__quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-cream);
  margin: 0;
  position: relative;
  padding-left: 18px;
  border-left: 2px solid var(--color-amber);
}

.heroes__role {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .85rem;
  color: var(--color-amber-soft);
  margin: 0;
}

.heroes__disclaimer {
  font-family: var(--font-ui);
  font-size: .84rem;
  line-height: 1.5;
  color: var(--color-ice);
  opacity: .6;
  max-width: 60ch;
  margin: 0;
}

@media (max-width: 860px) {
  .heroes__grid { grid-template-columns: 1fr; gap: 32px; }
  .heroes__expert {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .heroes__expert-cite { align-items: center; }
}

/* ============================================
   Блок 7.5 — Разговор с учёным (Кречмар)
   ============================================ */
.kr {
  background: var(--color-forest-darker);
  padding: clamp(64px, 12vh, 140px) 0;
  color: var(--color-cream);
}
.kr .section-eyebrow { color: var(--color-amber-soft); }
.kr__head { margin-bottom: clamp(36px, 6vh, 64px); }
.kr__title { color: var(--color-cream); max-width: 30ch; }

.kr__layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.kr__profile {
  position: sticky;
  top: 24px;
  background: rgba(247, 244, 238, .05);
  border: 1px solid rgba(211, 155, 58, .4);
  border-radius: 16px;
  padding: 28px 24px;
}
.kr__badge {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 3px solid rgba(211, 155, 58, .6);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.9rem;
  color: var(--color-amber);
  margin-bottom: 16px;
}
.kr__photo {
  display: block;
  width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; margin-bottom: 16px;
  border: 3px solid rgba(211, 155, 58, .6);
}
.kr__name {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.4rem; margin: 0 0 6px; color: var(--color-cream);
}
.kr__role {
  font-family: var(--font-ui); font-size: .88rem;
  color: var(--color-amber-soft); margin: 0 0 14px; line-height: 1.45;
}
.kr__bio {
  font-family: var(--font-body); font-size: .95rem;
  line-height: 1.55; color: var(--color-ice); margin: 0 0 16px;
}
.kr__books {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.kr__books li {
  font-family: var(--font-ui); font-size: .76rem;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid rgba(231, 192, 126, .45);
  color: var(--color-cream);
}

.kr__qa-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
  min-width: 0;
}
.kr__qa {
  background: rgba(247, 244, 238, .05);
  border: 1px solid rgba(199, 220, 229, .18);
  border-radius: 16px;
  padding: clamp(20px, 2.4vw, 30px);
  min-width: 0;
}
.kr__qa--wide, .kr__qa--pull, .kr__qa--rule { grid-column: 1 / -1; }

.kr__q {
  font-family: var(--font-ui); font-size: .86rem; font-weight: 600;
  color: var(--color-ice); margin: 0 0 14px; line-height: 1.4;
  display: flex; gap: 10px; align-items: baseline;
}
.kr__n {
  font-family: var(--font-display); font-weight: 800;
  color: var(--color-amber); font-size: 1rem; flex: none;
}
.kr__a {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 1.7vw, 1.38rem); line-height: 1.38;
  color: var(--color-cream);
}
.kr__a--big {
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.2;
}
.kr__note {
  font-family: var(--font-body); font-size: .95rem; line-height: 1.55;
  color: var(--color-ice); opacity: .9; margin: 16px 0 0;
}

.kr__qa--pull {
  border-left: 4px solid var(--color-amber);
  background: rgba(211, 155, 58, .1);
}
.kr__slogan {
  display: inline-block; margin: 18px 0 0;
  padding: 10px 18px; border-radius: 10px;
  background: var(--color-amber); color: var(--color-graphite);
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}
.kr__qa--rule {
  background: var(--color-amber); border-color: var(--color-amber);
}
.kr__qa--rule .kr__q,
.kr__qa--rule .kr__a { color: var(--color-graphite); }
.kr__qa--rule .kr__n { color: var(--color-forest-dark); }

.kr__agree {
  position: relative;
  overflow: hidden;
  margin-top: clamp(40px, 7vh, 72px);
  padding: clamp(32px, 5vw, 72px);
  border-radius: 24px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(211, 155, 58, .28) 0%, rgba(211, 155, 58, 0) 55%),
    linear-gradient(135deg, #2c4a39 0%, var(--color-forest-dark) 100%);
  border: 1px solid rgba(231, 192, 126, .5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.kr__agree::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--color-amber);
}
.kr__agree-art {
  position: absolute;
  right: clamp(12px, 3vw, 40px); top: clamp(12px, 3vw, 32px);
  width: clamp(110px, 16vw, 200px);
  color: var(--color-amber);
  opacity: .35;
  pointer-events: none;
}
.kr__agree-eyebrow {
  position: relative;
  display: inline-block;
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-amber);
  color: var(--color-graphite);
  font-family: var(--font-ui); font-weight: 800;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
}
.kr__agree-text {
  position: relative;
  margin: 0;
  max-width: 34ch;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.35rem, 2.9vw, 2.3rem);
  line-height: 1.3;
  color: var(--color-cream);
  text-wrap: pretty;
}
.kr__agree-text mark {
  background: none;
  color: var(--color-amber);
  text-decoration: underline;
  text-decoration-color: rgba(211, 155, 58, .6);
  text-decoration-thickness: .08em;
  text-underline-offset: .2em;
  text-decoration-skip-ink: none;
}

@media (max-width: 900px) {
  .kr__layout { grid-template-columns: 1fr; }
  .kr__profile { position: static; }
  .kr__qa-list { grid-template-columns: 1fr; }
  .kr__agree-art { display: none; }
}

/* ============================================
   Блок 9 — Финал
   ============================================ */
.finale {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--color-forest-darker);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}

.finale__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
}

.finale__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.finale__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(10, 18, 14, .88) 0%, rgba(10, 18, 14, .45) 40%, rgba(10, 18, 14, .15) 70%);
  pointer-events: none;
}

.finale__content {
  position: relative;
  z-index: 2;
  padding: clamp(48px, 10vh, 96px) var(--section-pad-x) clamp(40px, 7vh, 72px);
  max-width: 860px;
}

.finale__eyebrow {
  color: var(--color-amber-soft);
  margin: 0 0 1.1rem;
}

.finale__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--color-cream);
  margin: 0 0 1.4rem;
  text-shadow: 0 2px 18px rgba(10, 18, 14, .5);
}

.finale__quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--color-ice);
  border-left: 2px solid var(--color-amber);
  padding-left: 16px;
  margin: 0 0 2rem;
}

.finale__quote-cite {
  display: block;
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 600;
  font-size: .85rem;
  color: var(--color-amber-soft);
  margin-top: 6px;
}

.finale__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(28px, 4vh, 44px);
}

.finale__share {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .95rem;
  color: #241a08;
  background: var(--color-amber);
  border: none;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  transition: transform .2s ease;
}

.finale__share:hover { transform: translateY(-1px); }

.finale__back {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(247, 244, 238, .4);
  padding-bottom: 2px;
}

.finale__back:hover { border-color: var(--color-cream); }

.finale__social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(20px, 3vh, 32px);
}

.finale__social-title {
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--color-ice);
  opacity: .7;
  margin-right: 4px;
}

.finale__social-link {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .85rem;
  color: var(--color-cream);
  background: rgba(247, 244, 238, .08);
  border: 1px solid rgba(247, 244, 238, .25);
  border-radius: 999px;
  padding: 6px 16px;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease;
}

.finale__social-link:hover {
  background: rgba(211, 155, 58, .18);
  border-color: var(--color-amber);
}

.finale__sources {
  font-family: var(--font-ui);
  font-size: .78rem;
  line-height: 1.5;
  color: var(--color-ice);
  opacity: .55;
  max-width: 60ch;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .finale__video { display: none; }
}

/* ============================================
   Блок 8 — Чек-лист + мини-тест
   ============================================ */
.checklist {
  background: var(--color-cream);
  padding: clamp(64px, 12vh, 140px) 0;
}

.checklist__head { margin-bottom: clamp(32px, 5vh, 56px); }

.checklist__card {
  background: var(--color-forest-dark);
  border-radius: 20px;
  padding: clamp(28px, 3.4vw, 44px);
  margin-bottom: clamp(36px, 6vh, 64px);
  max-width: 720px;
}

.checklist__card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--color-amber);
  margin: 0 0 1.2rem;
}

.checklist__card-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist__card-list li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--color-cream);
  padding-left: 26px;
  position: relative;
}

.checklist__card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-amber);
  font-weight: 700;
}

/* --- Тест --- */
.quiz {
  background: #fff;
  border: 1px solid rgba(31, 35, 40, .08);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 40px);
  max-width: 640px;
  box-shadow: 0 4px 24px rgba(31, 35, 40, .05);
}

.quiz__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--color-forest-dark);
  margin: 0 0 20px;
}

.quiz__progress {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .82rem;
  color: var(--color-earth);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 10px;
}

.quiz__question {
  font-family: var(--font-body);
  font-size: 1.12rem;
  line-height: 1.45;
  color: var(--color-graphite);
  margin: 0 0 18px;
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.quiz__option {
  text-align: left;
  font-family: var(--font-ui);
  font-size: .98rem;
  color: var(--color-graphite);
  background: var(--color-cream);
  border: 1px solid rgba(31, 35, 40, .1);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}

.quiz__option:hover { border-color: var(--color-forest-dark); }

.quiz__option.is-correct {
  background: rgba(122, 168, 116, .18);
  border-color: #5c9457;
  font-weight: 700;
}

.quiz__option.is-wrong {
  background: rgba(196, 90, 76, .12);
  border-color: #c45a4c;
}

.quiz__explain {
  font-family: var(--font-body);
  font-style: italic;
  font-size: .96rem;
  line-height: 1.5;
  color: var(--color-graphite);
  opacity: .85;
  margin: 0 0 18px;
}

.quiz__explain[hidden] { display: none; }

.quiz__next,
.quiz__restart {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .92rem;
  color: #241a08;
  background: var(--color-amber);
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
}

.quiz__next[hidden] { display: none; }

.quiz__result { text-align: center; padding: 12px 0; }

.quiz__result-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--color-forest-dark);
  margin: 0 0 12px;
}

.quiz__result-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-graphite);
  margin: 0 0 22px;
}


/* ============================================
   1.5 — Познакомьтесь с героем (360° разворот)
   ============================================ */
.spin {
  position: relative;
  height: 280vh;
  background: var(--color-forest-darker);
}

.spin__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.spin__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.spin__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(10, 18, 14, .85) 0%, rgba(10, 18, 14, .15) 45%, rgba(10, 18, 14, 0) 70%);
  pointer-events: none;
}

.spin__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  padding: 0 var(--section-pad-x);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-bottom: clamp(40px, 8vh, 80px);
}

.spin__eyebrow {
  color: var(--color-amber-soft);
  margin: 0 0 1.2rem;
}

.spin__facts {
  position: relative;
  display: grid;
  min-height: 4.5em;
  align-items: center;
  margin-bottom: 1.4rem;
}

.spin__fact {
  grid-area: 1 / 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.3;
  color: var(--color-cream);
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
  text-shadow: 0 2px 16px rgba(10, 18, 14, .6);
}

.spin__fact.is-active {
  opacity: 1;
  transform: translateY(0);
}

.spin__hint {
  font-family: var(--font-ui);
  font-size: .85rem;
  color: var(--color-ice);
  opacity: .65;
  margin: 0;
}

@media (max-width: 700px) {
  .spin { height: 240vh; }
  .spin__content { padding-bottom: clamp(32px, 10vh, 64px); }
}

/* ============================================
   Прелоадер
   ============================================ */
html.is-loading,
html.is-loading body {
  overflow: hidden;
  height: 100%;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .7s ease, visibility .7s ease;
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  width: min(280px, 70vw);
  text-align: center;
}

.preloader__label {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-amber-soft);
  margin: 0 0 18px;
}

.preloader__bar {
  height: 3px;
  background: rgba(247, 244, 238, .15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--color-amber);
  border-radius: 999px;
  transition: width .2s ease;
}

.preloader__percent {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--color-cream);
  margin: 0;
}

/* Если JS не выполнился вовсе — не блокируем страницу навсегда */
.no-js .preloader { display: none; }
.no-js.is-loading { overflow: visible; }
.no-js.is-loading body { overflow: visible; }
