/* ============================================
   ТУННЕЛЬ ПРЕДПРИНИМАТЕЛЯ — токены
   ============================================ */
:root {
  --bg:         #F5F6F4; /* прохладный нейтральный фон */
  --bg-raised:  #EDEFEA;
  --ink:        #15171C; /* графит, почти чёрный — текст и "точка" */
  --accent:     #2B4C6F; /* стальной синий — приборный акцент */
  --accent-dim: #5A7690; /* притушенная сталь — hover/линки, AA */
  --line:       #C7CAC3; /* тонкие разделители */
  --muted:      #3A3D3A; /* вторичный текст, WCAG AA на bg */

  --font-display: 'Unbounded', sans-serif;
  --font-body:    'Manrope', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --container-w: 61.8vw;
  --container-max: 920px;
  --container-min: 88vw;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

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

.container {
  width: min(var(--container-min), var(--container-w));
  max-width: var(--container-max);
  margin: 0 auto;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 6vw, 64px);
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
}

.topbar__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.topbar__mark .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
}

.topbar__nav a { color: var(--muted); transition: color 0.2s var(--ease); }
.topbar__nav a:hover { color: var(--ink); }
.topbar__cta {
  color: var(--accent) !important;
  font-weight: 600;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border-radius: 3px;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

/* ============================================
   HERO — точка на стекле, периферия проявляется
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  overflow: hidden;
  --focus: 0; /* 0..1, растёт при скролле, управляется через JS */
}

.hero__field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__field .hero__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% - 4vh));
}

@keyframes dot-focus {
  0%, 100% { transform: translate(-50%, calc(-50% - 4vh)) scale(1); }
  50%      { transform: translate(-50%, calc(-50% - 4vh)) scale(1.25); }
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: dot-focus 3.5s var(--ease) infinite;
  z-index: 3;
}

/* Периферия: слова-объекты бизнеса, разбросаны вокруг точки.
   Изначально почти невидимы. Проявляются с задержкой — как будто зрение адаптируется. */
.hero__periphery {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.08em;
  color: var(--ink);
  opacity: 0;
  white-space: nowrap;
  animation: periphery-appear 9s var(--ease) infinite;
  animation-delay: var(--d, 0s);
  pointer-events: none;
}

@keyframes periphery-appear {
  0%   { opacity: 0; }
  20%  { opacity: 0.08; }  /* едва различимо — фон */
  55%  { opacity: 0.22; }  /* проступает */
  75%  { opacity: 0.10; }  /* снова уходит в фон */
  100% { opacity: 0; }
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.hero__micro {
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.hero__scrollhint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: var(--line);
  overflow: hidden;
}
.hero__scrollhint span {
  display: block;
  width: 100%;
  height: 40%;
  background: var(--ink);
  animation: scrollhint 2.2s var(--ease) infinite;
}
@keyframes scrollhint {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ============================================
   REVEAL SYSTEM — periphery проявляется
   ============================================ */
.reveal-section {
  padding: 120px 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(4px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 36px);
  margin: 0 0 48px;
  letter-spacing: -0.01em;
}

/* ============================================
   MISSION ZERO — расшифровка эксперимента
   ============================================ */
.missionzero__inner {
  text-align: center;
  max-width: 640px;
}

.missionzero__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 24px;
}

.missionzero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.missionzero__subtitle {
  font-size: 20px;
  color: var(--muted);
  font-style: italic;
  margin: 0 0 32px;
}

.missionzero__lead {
  font-size: 18px;
  color: var(--ink);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ============================================
   SYSTEM — метод, не книга
   ============================================ */
.system__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin: 0 0 20px;
}

.system__lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
  margin: 0 0 64px;
  line-height: 1.6;
}

.metro {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.metro__node {
  display: flex;
  gap: 24px;
  padding: 8px 0;
}

.metro__marker {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}

.metro__node--soon .metro__marker {
  background: transparent;
  border: 1px solid var(--accent-dim);
}

.metro__body {
  padding-bottom: 8px;
}

.metro__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  margin-bottom: 10px;
}

.metro__label em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--accent-dim);
  letter-spacing: 0.04em;
  margin-left: 4px;
}

.metro__body p {
  color: var(--muted);
  font-size: 17px;
  margin: 0;
  max-width: 520px;
  line-height: 1.55;
}

.metro__node--soon .metro__label,
.metro__node--soon p {
  opacity: 0.75;
}

.metro__connector {
  width: 1px;
  height: 40px;
  background: var(--line);
  margin-left: 4px;
}

/* ============================================
   CYCLE — принцип метода
   ============================================ */
.cycle__flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 17px;
  margin-bottom: 48px;
}

.cycle__arrow {
  color: var(--accent-dim);
}

.cycle__conclusion {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 500;
  line-height: 1.4;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  max-width: 720px;
}

/* ============================================
   MISSIONS — семь миссий, приборная панель
   ============================================ */
.missions {
  background: var(--bg-raised);
}

.missions__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.missions__item {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease), background 0.3s var(--ease);
}

.missions__item:hover {
  padding-left: 12px;
  background: rgba(43, 76, 111, 0.04);
}

.missions__num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
  flex-shrink: 0;
  width: 42px;
}

.missions__text {
  font-size: 18px;
}

/* ============================================
   KIT — форма
   ============================================ */
.kit__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.kit__text p { color: var(--muted); font-size: 18px; line-height: 1.6; }

.kit__proof {
  font-size: 17px;
  color: var(--ink);
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 18px;
  margin: 28px 0 0;
  line-height: 1.55;
}

.kit__proof-number {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--accent);
}

.kit__form { margin-top: 32px; }

.kit__form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kit__form-row input {
  flex: 1;
  min-width: 200px;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.2s var(--ease);
}
.kit__form-row input:focus { border-color: var(--accent); }

.kit__privacy {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.kit__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.kit__consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.kit__consent a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  transition: color 0.2s var(--ease);
}
.kit__consent a:hover { color: var(--ink); }

.kit__thanks {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 2px solid var(--accent);
  background: rgba(43, 76, 111, 0.06);
  font-size: 17px;
}

.kit__thanks a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-dim);
  transition: color 0.2s var(--ease);
}
.kit__thanks a:hover { color: var(--ink); }
.kit__thanks-contacts {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.kit__thanks-contacts a { font-weight: 500; }

/* Сцена: один лист под лёгким наклоном + панель-счётчик поверх */
.sheet-scene {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.sheet-scene__page {
  display: block;
  width: 100%;
  height: auto;
  background: #FFFFFF;
  border: 1px solid var(--line);
  transform: rotate(-4deg);
  transform-origin: 50% 60%;
  box-shadow:
    0 30px 60px -30px rgba(21, 23, 28, 0.28),
    0 10px 20px -12px rgba(21, 23, 28, 0.12),
    0 2px 4px -2px rgba(21, 23, 28, 0.06);
  transition: transform 0.6s var(--ease);
}

.sheet-scene:hover .sheet-scene__page {
  transform: rotate(-2deg) translateY(-4px);
}

/* Панель-счётчик — вырезанный акцент, лежит поверх листа справа-снизу */
.panel {
  position: absolute;
  right: -8%;
  bottom: 0;
  width: 78%;
  padding: 20px 22px 22px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 3px;
  box-shadow:
    0 24px 40px -18px rgba(21, 23, 28, 0.38),
    0 6px 14px -8px rgba(21, 23, 28, 0.18);
  transform: rotate(2deg);
  transform-origin: 100% 100%;
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--accent-dim);
  margin-bottom: 12px;
}

.panel__number {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(28px, 4.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.panel__unit {
  font-size: 0.42em;
  color: var(--accent-dim);
  margin-left: 8px;
}

.panel__progress {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 18px 0 10px;
}

.panel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--accent-dim);
  background: transparent;
  position: relative;
  flex: 0 0 auto;
}

.panel__dot:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  width: 8px;
  height: 1px;
  background: var(--accent-dim);
  opacity: 0.5;
}

.panel__dot--done {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}

.panel__dot--active {
  background: var(--bg);
  border-color: var(--bg);
  box-shadow: 0 0 0 3px rgba(245, 246, 244, 0.15);
}

.panel__foot {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--accent-dim);
}

.book__cover img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border: 1px solid var(--line);
  display: block;
  margin: 0 auto;
}

/* ============================================
   BOOK — первая точка входа
   ============================================ */
.book {
  background: var(--bg-raised);
}

.book__inner {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 56px;
  align-items: center;
}

.book__cover img {
  width: 100%;
  max-width: 260px;
  height: auto;
  border: 1px solid var(--line);
  display: block;
}

.book__text p { color: var(--muted); font-size: 18px; line-height: 1.6; }

/* ============================================
   AI — тизер AI-проводника
   ============================================ */
.ai__inner {
  max-width: 640px;
}

.ai__lead {
  font-size: 18px;
  color: var(--ink);
  margin: 0 0 18px;
  line-height: 1.6;
}

.ai__note {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 40px;
}

.ai__form { max-width: 480px; }

/* ============================================
   FAQ
   ============================================ */
.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}

.faq__item summary {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 21px);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  line-height: 1.35;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
  line-height: 1;
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__item summary:hover { color: var(--accent); }

.faq__item p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  max-width: 700px;
}

.faq__item a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  transition: color 0.2s var(--ease);
}
.faq__item a:hover { color: var(--ink); }

/* ============================================
   AUTHOR
   ============================================ */
.author {
  background: var(--bg-raised);
}

.author__inner { max-width: 680px; }

.author__text p { color: var(--muted); font-size: 18px; line-height: 1.6; }

.author__note {
  font-family: var(--font-display);
  font-style: normal;
  color: var(--ink) !important;
  font-size: 19px;
  font-weight: 500;
}

.author__link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid var(--accent-dim);
  transition: color 0.2s var(--ease);
}
.author__link:hover { color: var(--ink); }

.inline-link {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  transition: color 0.2s var(--ease);
}
.inline-link:hover { color: var(--ink); }

/* ============================================
   FINAL — вторая точка
   ============================================ */
.final {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 24px;
}

.final__field {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.final__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  animation: dot-breathe 5s var(--ease) infinite;
}

.final__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 560px;
}

.final__tagline {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 40px;
}

.final__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 32px 24px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.footer__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer__row--contacts {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 13px;
}
.footer__row--legal {
  font-size: 12px;
  opacity: 0.75;
}

.footer__inner a { transition: color 0.2s var(--ease); }
.footer__inner a:hover { color: var(--ink); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 860px) {
  .kit__inner { grid-template-columns: 1fr; gap: 40px; }
  .kit__preview { order: -1; }
  .sheet-scene { max-width: 320px; }
  .panel { right: -4%; width: 88%; padding: 16px 18px 18px; }
  .panel__number { font-size: 30px; }
  .book__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .book__cover { order: -1; }
  .book__cover img { margin: 0 auto; }
}

@media (max-width: 560px) {
  .container { width: 88vw; }
  .reveal-section { padding: 80px 20px; }
  .topbar { padding: 16px 20px; }
  .topbar__nav { gap: 16px; font-size: 13px; }
  .hero { padding: 100px 20px 60px; }
  .hero__dot { top: -6vh; }
  .missions__item { gap: 16px; }
  .kit__form-row { flex-direction: column; }
  .kit__form-row .btn { width: 100%; }
  .cycle__flow { font-size: 13px; gap: 8px; }
  .metro__node { gap: 16px; }
  .topbar { flex-wrap: nowrap; }
  .topbar__mark span:last-child { display: none; }
  .topbar__nav { gap: 12px; font-size: 12px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .hero__content {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero__dot, .final__dot, .hero__scrollhint span, .hero__periphery {
    animation: none !important;
  }
  .hero__periphery { opacity: 0.15; }
}
