/* ─── Главная страница · Тёплый, иллюстративный вариант ─── */
body { background: var(--paper-soft); }

.topbar {
  padding: 26px 64px;
  border-bottom: none;
}
.brand-mark { background: var(--rust); color: var(--paper-cream); }

/* HERO — иллюстрация в центре */
.hero {
  padding: 56px 64px 80px;
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-inner .tag { margin: 0 auto; }
.hero h1 {
  font-family: var(--serif-display);
  font-size: 96px;
  line-height: 1;
  font-weight: 500;
  margin: 16px 0 0;
  letter-spacing: -1px;
  color: var(--ink);
}
.hero h1 em.read { color: var(--rust); font-style: italic; }
.hero h1 em.lit  { color: var(--blue-deep); font-style: italic; }
.hero p.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0 auto;
  text-wrap: pretty;
}
.hero-actions {
  display: flex; gap: 16px; justify-content: center; margin-top: 8px;
}

/* Декоративные круги-блики на фоне */
.blob {
  position: absolute;
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}
.blob.b1 { width: 380px; height: 380px; background: var(--rust-soft); opacity: 0.85; top: 40px;  left: -120px; }
.blob.b2 { width: 440px; height: 440px; background: var(--blue-soft); opacity: 0.85; top: 120px; right: -140px; }
.blob.b3 { width: 300px; height: 300px; background: var(--paper-warm); opacity: 0.95;  bottom: -80px; left: 30%; }

/* Парящие подписи рядом с заголовком */
.float-note {
  position: absolute;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 18px;
  color: var(--ink-mute);
  background: var(--paper-cream);
  padding: 10px 18px;
  border: 1px solid var(--paper-edge);
  border-radius: 999px;
  z-index: 3;
}
.float-note.fn1 { top: 40px; left: 16%; transform: rotate(-4deg); }
.float-note.fn2 { top: 80px; right: 14%; transform: rotate(3deg); color: var(--blue-deep); }
.float-note.fn3 { bottom: 60px; left: 18%;  transform: rotate(2deg); color: var(--rust); }
.float-note.fn4 { bottom: 100px; right: 16%; transform: rotate(-3deg); }

/* ─── «О проекте» — три цветные плитки ─── */
.about-wrap {
  padding: 56px 64px;
  background: var(--paper-soft);
  border-top: 1px solid var(--paper-edge);
  position: relative;
  overflow: hidden;
  height: 100vh;
  min-height: 720px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.about-spread {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

.ab-panel {
  border-radius: 14px;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.ab-panel + .ab-panel { margin-top: 20px; }
.ab-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}
.ab-side .ab-panel { padding: 32px 32px; margin: 0; }

/* Главная плитка — рыжая */
.ab-main {
  background: var(--rust-deep);
  color: var(--paper-cream);
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 24px;
  min-height: 520px;
}
.ab-main::before {
  content: '§';
  position: absolute;
  right: -20px; bottom: -80px;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 320px;
  color: rgba(255,255,255,0.07);
  line-height: 0.7;
  pointer-events: none;
}
.ab-tag {
  display: inline-block;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 15px;
  color: rgba(250,245,233,0.85);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.ab-main h2 {
  font-family: var(--serif-display);
  font-size: 64px;
  line-height: 0.98;
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.ab-main h2 em {
  font-style: italic;
  color: var(--paper-warm);
}
.ab-lead {
  font-family: var(--serif-text);
  font-size: 17px;
  line-height: 1.65;
  color: rgba(250,245,233,0.88);
  margin: 28px 0 0;
  max-width: 460px;
  text-wrap: pretty;
}
.ab-divider {
  height: 1px;
  background: rgba(250,245,233,0.18);
  margin: 32px 0 20px;
}
.ab-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
  z-index: 2;
}
.ab-stats > div {
  display: flex; flex-direction: column; gap: 4px;
}
.ab-stats span {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 36px;
  line-height: 1;
  color: var(--paper-cream);
}
.ab-stats span small {
  font-size: 0.5em;
  opacity: 0.7;
  font-style: normal;
  margin-left: 2px;
}
.ab-stats em {
  font-family: var(--serif-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(250,245,233,0.7);
}

/* Голубая плитка — «что внутри» */
.ab-blue {
  background: var(--blue-soft);
  color: var(--ink);
  display: flex; flex-direction: column;
}
.ab-blue::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.18;
}
.ab-mini-tag {
  font-family: var(--serif-body);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.ab-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.ab-list li {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif-text);
  font-size: 16px;
  color: var(--ink-soft);
}
.ab-list li .bullet {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-deep);
  color: var(--paper-cream);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* Кремовая плитка с цитатой */
.ab-cream {
  background: var(--paper-cream);
  color: var(--ink);
  border: 1px solid var(--paper-edge);
  display: flex; flex-direction: column;
  justify-content: center;
}
.ab-mark {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 64px;
  color: var(--rust);
  line-height: 0.6;
  margin-bottom: 6px;
}
.ab-cream blockquote {
  margin: 0;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 400;
  text-wrap: balance;
}
.ab-cream cite {
  display: block;
  margin-top: 16px;
  font-family: var(--serif-body);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Шаги — крупные иконки на круге */
.how {
  padding: 80px 64px;
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background: var(--paper-cream);
  border-top: 1px solid var(--paper-edge);
  position: relative;
  overflow: hidden;
}
.how::before {
  content: '';
  position: absolute;
  left: -120px; top: 40%;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: var(--rust-soft);
  opacity: 0.4;
  pointer-events: none;
}
.how::after {
  content: '';
  position: absolute;
  right: -80px; top: 10%;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: var(--blue-soft);
  opacity: 0.5;
  pointer-events: none;
}
.how > * { position: relative; z-index: 1; }
.how-head {
  text-align: center;
  margin-bottom: 64px;
}
.how-head h2 {
  font-family: var(--serif-display);
  font-size: 52px;
  margin: 16px 0 12px;
  line-height: 1.05;
  font-weight: 500;
}
.how-head p {
  color: var(--ink-mute);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Путь пользователя ─── */
.journey {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
}

/* Зигзаг-дорожка: стрелки между иконками */
.track-top {
  position: absolute;
  top: 78px;
  left: 0; right: 0;
  width: 100%;
  height: 100px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.journey-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}
.station {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 0 8px;
  position: relative;
}
/* Ступеньки: станции 1 и 3 выше, 2 и 4 ниже */
.station--2, .station--4 { margin-top: 100px; }
.station-step {
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--rust);
  margin-bottom: 12px;
  height: 18px;
}
.station--2 .station-step { color: var(--blue-deep); }
.station--3 .station-step { color: var(--sage); }
.station--4 .station-step { color: var(--gold); }

.station-icon {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--paper-cream);
  border: 1px solid var(--paper-edge);
  display: grid; place-items: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 3;
}
.station--1 .station-icon {
  background: var(--rust-soft);
  border-color: var(--rust);
  box-shadow: 0 0 0 6px var(--paper-cream), 0 0 0 7px var(--rust-soft);
}
.station--2 .station-icon {
  background: var(--blue-soft);
  border-color: var(--blue);
  box-shadow: 0 0 0 6px var(--paper-cream), 0 0 0 7px var(--blue-soft);
}
.station--3 .station-icon {
  background: #eef2e9;
  border-color: var(--sage);
  box-shadow: 0 0 0 6px var(--paper-cream), 0 0 0 7px #eef2e9;
}
.station--4 .station-icon {
  background: var(--paper-warm);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px var(--paper-cream), 0 0 0 7px var(--paper-warm);
}
.station-icon::after {
  content: attr(data-n);
  position: absolute;
  top: -8px; left: -8px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--rust);
  color: var(--paper-cream);
  font-family: var(--serif-display);
  font-size: 15px;
  display: grid; place-items: center;
  font-style: italic;
  box-shadow: 0 0 0 3px var(--paper);
}
.station--2 .station-icon::after { background: var(--blue-deep); }
.station--3 .station-icon::after { background: var(--sage); }
.station--4 .station-icon::after { background: var(--gold); }

.station h3 {
  font-family: var(--serif-display);
  font-size: 22px; font-weight: 500;
  margin: 0 0 10px;
  text-wrap: balance;
}
.station--2 h3 { color: var(--blue-deep); }
.station p {
  font-size: 14px; line-height: 1.6;
  color: var(--ink-mute); margin: 0;
  max-width: 240px;
  text-wrap: pretty;
}

/* Мини-цепочка приёмов внутри станции 2 */
.chain-mini {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 8px;
  width: 100%; max-width: 240px;
}
.chain-mini li {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper-cream);
  border: 1px solid var(--paper-edge);
  padding: 8px 12px 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
  font-family: var(--serif-text);
  text-align: left;
}
.chain-mini li .ix {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 11px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.chain-mini li.current {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-deep);
}
.chain-mini li.current .ix { background: var(--blue-deep); color: var(--paper-cream); }

/* Петля-стрелка возврата на шаг 2 */
.track-loop {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 12px;
  overflow: visible;
}
.loop-caption {
  text-align: center;
  font-family: var(--serif-display);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
  margin-top: -22px;
  position: relative;
  z-index: 3;
}

/* Команда — круглые портреты */
.team-warm {
  padding: 80px 64px;
  background: linear-gradient(180deg, var(--paper-warm) 0%, #ead9b5 100%);
  border-top: 1px solid var(--paper-edge);
  height: 100vh;
  min-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.team-warm::before {
  content: '';
  position: absolute;
  left: 10%; bottom: -100px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--rust-soft);
  opacity: 0.35;
  pointer-events: none;
}
.team-warm::after {
  content: '';
  position: absolute;
  right: 8%; top: -80px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: var(--blue-soft);
  opacity: 0.45;
  pointer-events: none;
}
.team-warm > * { position: relative; z-index: 1; }
.team-warm-head {
  text-align: center; margin-bottom: 56px;
}
.team-warm-head h2 {
  font-family: var(--serif-display);
  font-size: 52px; line-height: 1.05;
  margin: 16px 0 12px;
  font-weight: 500;
}
.team-warm-head p {
  color: var(--ink-mute); font-size: 15px;
  max-width: 520px; margin: 0 auto; line-height: 1.6;
}
.team-warm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1080px; margin: 0 auto;
}
.person-warm {
  text-align: center;
}
.person-warm .avatar-circle {
  width: 180px; height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--paper-cream);
  border: 1px solid var(--paper-edge);
  display: grid; place-items: center;
  font-family: var(--serif-display);
  font-style: italic;
  font-size: 80px;
  color: var(--ink-line);
  position: relative;
}
.person-warm:nth-child(1) .avatar-circle { background: var(--rust-soft); color: var(--rust-deep); }
.person-warm:nth-child(2) .avatar-circle { background: var(--blue-soft); color: var(--blue-deep); }
.person-warm:nth-child(3) .avatar-circle { background: var(--paper-cream); color: var(--ink-line); }
.person-warm h3 {
  font-family: var(--serif-display);
  font-size: 22px; margin: 0 0 4px;
  font-weight: 500;
}
.person-warm p {
  font-size: 13px; color: var(--ink-mute);
  line-height: 1.6; margin: 0 auto; max-width: 240px;
}

/* ─── Плавное появление разделов при скролле ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.4s cubic-bezier(.22,.61,.36,1), transform 1.4s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s cubic-bezier(.22,.61,.36,1), transform 1.2s cubic-bezier(.22,.61,.36,1);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms;   }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 360ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 540ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─── Верхнее меню (переопределения для тёплой главной) ─── */
.topbar {
  padding: 22px 56px;
  background: var(--paper-soft);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31,26,18,0.08);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar .menu {
  gap: 8px;
  align-items: center;
}
.topbar .menu li { display: flex; }
.topbar .menu .nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--serif-body);
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: 0.2px;
  transition: background .2s ease, color .2s ease;
  position: relative;
}
.topbar .menu .nav-link:hover {
  background: var(--paper-warm);
  color: var(--rust-deep);
}
.topbar .menu .nav-link.is-active {
  background: var(--paper-warm);
  color: var(--ink);
}
.topbar .menu .nav-link.is-active::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--rust);
}
.topbar .menu .nav-link svg {
  display: block;
  opacity: 0.7;
}
.topbar .menu .nav-link:hover svg { opacity: 1; }

.topbar .menu .nav-divider {
  width: 1px; height: 22px;
  background: var(--ink-line);
  opacity: 0.4;
  margin: 0 6px;
}

.topbar .menu .nav-login {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper-cream);
  font-family: var(--serif-body);
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: background .2s ease, transform .15s ease;
}
.topbar .menu .nav-login:hover {
  background: var(--rust-deep);
  transform: translateY(-1px);
}
.topbar .menu .nav-login svg { display: block; }

/* Станции «Пути читателя» кликабельны */
.station[role="link"] { border-radius: 14px; transition: transform .2s ease, background .2s ease; padding: 10px 8px; }
.station[role="link"]:hover { transform: translateY(-5px); background: rgba(255,255,255,0.5); }
.station[role="link"]:hover .station-icon { box-shadow: 0 16px 26px -16px rgba(31,26,18,0.4); }
.station[role="link"]:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }
