:root {
  --ink: #0f1a12;
  --paper: #f3f1ea;
  --white: #ffffff;
  --accent: #b8e07a;
  --font: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --pad: clamp(28px, 4.2vw, 88px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: #0b0f0c; }
body {
  font-family: var(--font);
  color: var(--white);
  background: #0b0f0c;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 40px;
  padding: 26px var(--pad);
  transition: color .5s ease, background-color .5s ease, padding .5s ease;
}
.site-header.is-light { color: var(--ink); background: rgba(243, 241, 234, .82); backdrop-filter: blur(14px); padding-block: 16px; }
.logo-slot {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  padding: 9px 16px; border: 1px dashed currentColor; border-radius: 999px; opacity: .75;
}
.nav { display: flex; gap: 34px; margin-left: auto; font-size: 14px; letter-spacing: .01em; }
.nav a { opacity: .82; transition: opacity .25s; }
.nav a:hover { opacity: 1; }
.header-cta {
  font-size: 14px; padding: 11px 22px; border-radius: 999px;
  border: 1px solid currentColor; transition: background-color .3s, color .3s;
}
.header-cta:hover { background: var(--white); color: var(--ink); }
.site-header.is-light .header-cta:hover { background: var(--ink); color: var(--paper); }

/* ---------- Flight (pinned) ---------- */
.flight { position: relative; height: 1000vh; /* точная высота ставится из JS */ }
.stage {
  position: sticky; top: 0; height: 100vh; width: 100%;
  overflow: hidden; background: #0b0f0c;
  contain: layout paint;
}
.poster, .screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 56%;
  display: block;
}
.screen { image-rendering: auto; transform-origin: 50% 45%; will-change: transform; }
.poster.is-hidden { visibility: hidden; }

/* мягкое затенение слева — только под текстом, интенсивность управляется из JS */
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 14, 8, .55) 0%, rgba(6, 14, 8, .22) 30%, rgba(6, 14, 8, 0) 52%),
    linear-gradient(180deg, rgba(6, 14, 8, .38) 0%, rgba(6, 14, 8, 0) 18%);
  will-change: opacity;
}
.dim { position: absolute; inset: 0; background: #050806; opacity: 0; pointer-events: none; will-change: opacity; }

/* ---------- Chapters ---------- */
.chapter {
  position: absolute; left: var(--pad);
  max-width: min(30vw, 520px);
  opacity: 0; will-change: opacity, transform;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.chapter--hero { bottom: 13vh; max-width: min(44vw, 760px); }
.chapter--seeds { top: 50%; margin-top: -150px; max-width: min(27vw, 460px); }
.chapter--products { top: 15vh; max-width: min(26vw, 440px); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; opacity: .9;
  margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow .num { font-variant-numeric: tabular-nums; color: var(--accent); letter-spacing: .1em; }
.eyebrow--dark { color: var(--ink); }

h1 {
  font-weight: 300; font-size: clamp(44px, 5.1vw, 96px);
  line-height: 1.02; letter-spacing: -.035em;
}
h2 {
  font-weight: 300; font-size: clamp(34px, 3.4vw, 64px);
  line-height: 1.05; letter-spacing: -.03em;
}
.lead { margin-top: 26px; font-size: clamp(15px, 1.05vw, 19px); line-height: 1.55; opacity: .86; max-width: 34em; }
.link-cta {
  display: inline-flex; gap: 12px; align-items: center; margin-top: 30px;
  font-size: 15px; padding: 14px 24px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(10px);
  transition: background-color .3s, color .3s;
}
.link-cta:hover { background: var(--white); color: var(--ink); }

/* ---------- Scroll hint ---------- */
.scroll-hint {
  position: absolute; left: 50%; bottom: 4.5vh; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; opacity: .85;
  will-change: opacity;
}
.scroll-hint i { width: 1px; height: 46px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; }
.scroll-hint i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: #fff; animation: drip 2.2s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes drip { to { top: 100%; } }

/* ---------- Progress rail ---------- */
.rail {
  position: absolute; right: var(--pad); top: 50%; height: 34vh; transform: translateY(-50%);
  width: 140px; will-change: opacity;
}
.rail-line { position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .25); }
.rail-fill { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: #fff; transform-origin: 0 0; transform: scaleY(0); }
.rail ol { list-style: none; }
.rail li {
  position: absolute; right: 0; transform: translateY(-50%);
  display: flex; align-items: center; gap: 10px; padding-right: 18px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  opacity: .45; transition: opacity .4s ease;
}
.rail li::after {
  content: ""; position: absolute; right: -3px; width: 7px; height: 7px; border-radius: 50%;
  background: #0b0f0c; border: 1px solid #fff; transition: background-color .4s;
}
.rail li b { font-weight: 500; font-variant-numeric: tabular-nums; }
.rail li.is-active { opacity: 1; }
.rail li.is-active::after { background: #fff; }

/* ---------- Loading bar (не блокирует скролл) ---------- */
.loadbar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .08); transition: opacity .8s ease .3s; }
.loadbar div { height: 100%; width: 100%; background: rgba(255, 255, 255, .7); transform-origin: 0 0; transform: scaleX(0); transition: transform .25s linear; }
.loadbar.is-done { opacity: 0; }

/* ---------- Next section ---------- */
.next {
  position: relative; z-index: 5;
  margin-top: -100vh; /* наезжает на закреплённую сцену */
  min-height: 100vh;
  background: var(--paper); color: var(--ink);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -30px 80px rgba(0, 0, 0, .25);
}
.next-inner { padding: 18vh var(--pad) 14vh; max-width: 1600px; }
.next-title { font-size: clamp(36px, 3.6vw, 68px); margin-bottom: 12vh; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4vw; border-top: 1px solid rgba(15, 26, 18, .15); padding-top: 40px; }
.cols h3 { font-weight: 400; font-size: 24px; letter-spacing: -.01em; margin: 16px 0 12px; }
.cols p { font-size: 15px; line-height: 1.6; opacity: .7; }
.col-num { font-size: 12px; letter-spacing: .14em; opacity: .5; }
.foot { padding: 30px var(--pad); font-size: 13px; opacity: .5; border-top: 1px solid rgba(15, 26, 18, .1); }

/* логотип Hazera под заголовком у мужчины с семенами: оригинальный файл, белый — фильтром (решение владельца 16.11.2026);
   появляется и исчезает вместе с блоком #ch2 (прозрачность задаёт flight.js) */
.chapter-logo { display: block; width: clamp(150px, 11vw, 210px); height: auto; margin-top: 26px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 14px rgba(0, 0, 0, .35)); }
