/* ════════════════════════════════════════════════════════════
   Советник — лендинг, стили
   Палитра, типографика и движение по DS v0.2.
   ════════════════════════════════════════════════════════════ */

:root {
  /* Tokens — синхронно с DS v0.2 */
  --paper: #F4EFE6;
  --surface: #FAF6EC;
  --surface-deep: #ECE5D7;
  --ink: #1A1612;
  --ink-soft: #5E544A;
  --ink-mute: #8A8073;
  --hairline: #D9D0BE;
  --hairline-soft: #E5DDCB;
  --clay: oklch(0.56 0.11 45);
  --clay-deep: oklch(0.45 0.10 45);
  --clay-soft: oklch(0.93 0.035 50);
  --sage: oklch(0.52 0.045 160);
  --sage-soft: oklch(0.93 0.025 160);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px;

  --r-sm: 6px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;

  --e-line: 0 0 0 1px var(--hairline);
  --e-soft: 0 1px 2px rgba(60,40,20,0.04), 0 12px 28px -16px rgba(60,40,20,0.14);
  --e-raised: 0 2px 4px rgba(60,40,20,0.05), 0 28px 56px -28px rgba(60,40,20,0.2);

  --dur-fast: 0.2s; --dur-base: 0.35s; --dur-slow: 0.7s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  --max: 1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  opacity: 0.3; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.36  0 0 0 0 0.28  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
::selection { background: var(--clay-soft); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; }

/* ── Shared: section frame ── */
section { padding: var(--s24) clamp(20px, 4vw, 48px); position: relative; z-index: 2; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--clay-deep);
  margin-bottom: var(--s4);
}
.section-label::before {
  content: ""; width: 24px; height: 1px; background: var(--clay);
}

h1, .h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(46px, 6.4vw, 92px); line-height: 1.02;
  letter-spacing: -0.025em; color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic; color: var(--clay-deep);
  position: relative; display: inline-block;
  animation: emGlowPulse 5s ease-in-out 2.9s infinite;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  top: -0.12em; bottom: -0.12em;
  left: -0.2em; width: 50%;
  background: linear-gradient(105deg, transparent 0%, oklch(0.90 0.08 55 / 0.38) 50%, transparent 100%);
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  animation: emShimmer 9s ease-in-out 2.6s infinite;
}
@keyframes emGlowPulse {
  0%, 100% { text-shadow: none; }
  50%       { text-shadow: 0 0 20px oklch(0.56 0.11 45 / 0.28), 0 0 40px oklch(0.56 0.11 45 / 0.10); }
}
@keyframes emShimmer {
  0%          { opacity: 0; transform: translateX(-110%); }
  5%          { opacity: 1; }
  14%         { opacity: 0; transform: translateX(250%); }
  14.01%, 100% { opacity: 0; transform: translateX(-110%); }
}
.ink-underline {
  position: absolute;
  left: 0; right: 0; bottom: -0.04em;
  width: 100%; height: 0.22em;
  color: var(--clay);
  pointer-events: none;
}
.ink-underline path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: inkStroke 1.1s cubic-bezier(0.4, 0, 0.2, 1) 1.4s forwards;
}
@keyframes inkStroke {
  to { stroke-dashoffset: 0; }
}
h1 em, .h1 em { font-style: italic; color: var(--clay-deep); }

h2, .h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4.2vw, 56px); line-height: 1.06;
  letter-spacing: -0.02em; color: var(--ink);
  text-wrap: balance;
}
h2 em, .h2 em { font-style: italic; color: var(--clay-deep); }

h3, .h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; line-height: 1.2; letter-spacing: -0.01em;
}

p { color: var(--ink-soft); text-wrap: pretty; }

.section-subtitle {
  font-size: 19px; color: var(--ink-soft);
  max-width: 60ch; margin-top: var(--s4); line-height: 1.55;
  text-wrap: pretty;
}

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s6);
}
.logo {
  display: flex; align-items: baseline; gap: 12px;
  flex-shrink: 0; padding: 4px 0;
}
.logo-mark {
  width: 36px; height: 36px;
  transform: translateY(8px);
  transition: transform var(--dur-base) var(--ease);
}
.logo:hover .logo-mark { transform: translateY(8px) scale(1.06); }
.logo-text {
  font-family: var(--serif); font-size: 26px;
  letter-spacing: -0.02em; color: var(--ink);
  line-height: 1;
}
.logo-ai {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--clay-deep);
  margin-left: 4px; font-weight: 500;
  text-transform: uppercase;
  align-self: flex-start;
  transform: translateY(2px);
}

nav.primary { display: flex; align-items: center; gap: var(--s8); }
nav.primary a {
  font-size: 14px; color: var(--ink-soft);
  font-weight: 400; white-space: nowrap;
  position: relative; padding: 6px 0;
  transition: color var(--dur-fast);
}
nav.primary a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--ink);
  transition: right var(--dur-base) var(--ease);
}
nav.primary a:hover { color: var(--ink); }
nav.primary a:hover::after { right: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 20px; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent; outline: none; white-space: nowrap;
  transition: all var(--dur-fast) var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-text { background: transparent; color: var(--clay-deep); padding: 11px 4px; }
.btn-text:hover { color: var(--ink); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; transform: translateY(-1px); }

.burger {
  display: none; background: none; border: none; padding: 6px;
  color: var(--ink);
}
.mobile-nav {
  display: none; position: absolute; top: 72px; left: 0; right: 0;
  background: var(--paper); border-bottom: 1px solid var(--hairline);
  padding: var(--s6) clamp(20px, 4vw, 48px) var(--s8);
  flex-direction: column; gap: var(--s4);
  animation: fadeDown 0.3s var(--ease);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 16px; color: var(--ink-soft); padding: 10px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.mobile-nav .btn { margin-top: var(--s2); }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════ */
.hero {
  padding-top: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(40px, 6vw, 96px);
  position: relative; overflow: hidden;
}
.hero::before {
  /* Глиняное свечение в фоне — микро-параллакс на курсор + медленное «дыхание» */
  content: ""; position: absolute;
  right: -200px; top: -120px;
  width: 600px; height: 600px;
  background: radial-gradient(circle at center, var(--clay-soft) 0%, transparent 65%);
  opacity: 0.5; z-index: 0;
  transform: translate3d(var(--hpx, 0), var(--hpy, 0), 0);
  transition: transform 0.9s var(--ease);
  will-change: transform, opacity;
  /* `scale` и `opacity` анимируются отдельно от `transform` — параллакс не ломается */
  animation: heroBreath 9s ease-in-out infinite;
}
@keyframes heroBreath {
  0%, 100% { opacity: 0.42; scale: 1; }
  50%      { opacity: 0.6;  scale: 1.06; }
}

/* Созвездие памяти — деликатные узлы со связями в фоне (P-03: память видна, но не мешает) */
.hero-constellation {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  color: var(--ink-mute);
  opacity: 0.85;
}
.hero-constellation .cn-links { stroke: currentColor; stroke-width: 1; opacity: 0.32; fill: none; }
.hero-constellation .cn-node { fill: currentColor; opacity: 0.45; }
.hero-constellation .cn-node.accent { fill: var(--clay); opacity: 0.6; }
.hero-constellation .cn-drift { animation: cnDrift 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
.hero-constellation .cn-breathe { animation: cnBreathe 7s ease-in-out infinite; }
.hero-constellation .cn-breathe:nth-of-type(2) { animation-delay: 2.2s; }
@keyframes cnDrift {
  from { transform: translate(0, 0); }
  to   { transform: translate(14px, -10px); }
}
@keyframes cnBreathe {
  0%, 100% { opacity: 0.42; }
  50%      { opacity: 0.85; }
}

/* Индикатор «Советник печатает…» в чат-панели */
.m.typing .m-bubble {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 13px 14px;
}
.m.typing .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-mute);
  animation: typingDot 1.2s ease-in-out infinite;
}
.m.typing .dot:nth-child(2) { animation-delay: 0.16s; }
.m.typing .dot:nth-child(3) { animation-delay: 0.32s; }
@keyframes typingDot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-3px); }
}
/* Последовательное появление сообщений (когда диалогом управляет JS) */
.stream.seq .m { animation: none; opacity: 0; transform: translateY(10px); }
.stream.seq .m.show { animation: msgIn 0.5s var(--ease) forwards; }

/* Полоса прогресса чтения — тонкий хейрлайн под шапкой */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 200;
  background: transparent;
  pointer-events: none;
}
.scroll-progress::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--clay) 0%, var(--clay-deep) 100%);
  transform: scaleX(var(--p, 0));
  transform-origin: left center;
}

/* Орнамент-разделитель между секциями */
.ornament {
  max-width: var(--max); margin: 0 auto;
  padding: var(--s8) clamp(20px, 4vw, 48px);
  display: flex; align-items: center; gap: 18px;
  position: relative; z-index: 2;
}
.ornament-line { flex: 1; height: 1px; background: var(--hairline); }
.ornament-center {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.ornament-dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 32%, transparent);
  flex-shrink: 0;
  position: relative;
}
.ornament-dot::before, .ornament-dot::after {
  content: ""; position: absolute;
  width: 12px; height: 1px;
  top: 50%; background: var(--hairline);
  opacity: 0.7;
}
.ornament-dot::before { right: 6px; }
.ornament-dot::after { left: 6px; }
.ornament-seal {
  width: 22px; height: 22px; flex-shrink: 0;
  opacity: 0.78;
  transition: transform 0.6s var(--ease), opacity 0.4s var(--ease);
}
.ornament-center:hover .ornament-seal { opacity: 1; transform: rotate(-6deg) scale(1.08); }
.ornament-paper { background: var(--paper); }
.ornament-surface { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.hero-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 6px 14px 6px 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: var(--s8);
}
.hero-badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px var(--sage-soft);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px var(--sage-soft); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--sage-soft) 70%, transparent); }
}
.hero h1 { margin-bottom: var(--s6); }
.hero h1 .word {
  display: inline-block;
  opacity: 0; transform: translateY(20px);
  animation: wordIn 0.7s var(--ease) forwards;
}
.hero h1 .word:nth-child(1) { animation-delay: 0.1s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.2s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.3s; }
.hero h1 .word:nth-child(4) { animation-delay: 0.55s; }
.hero h1 .word:nth-child(5) { animation-delay: 0.65s; }
.hero h1 .word:nth-child(6) { animation-delay: 0.75s; }
@keyframes wordIn {
  to { opacity: 1; transform: none; }
}
.hero-sub {
  font-size: 19px; color: var(--ink-soft); max-width: 50ch;
  margin-bottom: var(--s12); line-height: 1.55;
  opacity: 0; animation: wordIn 0.8s var(--ease) 1.0s forwards;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: var(--s3);
  align-items: center; margin-bottom: var(--s4);
  opacity: 0; animation: wordIn 0.8s var(--ease) 1.2s forwards;
}
.hero-note {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-mute);
  opacity: 0; animation: wordIn 0.8s var(--ease) 1.4s forwards;
  margin-top: var(--s2);
}

/* ── Chat panel ── */
.chat-panel {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: var(--s8); box-shadow: var(--e-soft);
  position: relative;
  opacity: 0; transform: translateY(20px);
  animation: chatIn 0.9s var(--ease) 0.4s forwards;
  /* лёгкий параллакс на курсор — отдельно от transform появления */
  translate: var(--cpx, 0) var(--cpy, 0);
  transition: translate 0.9s var(--ease);
}
@keyframes chatIn {
  to { opacity: 1; transform: none; }
}
.chat-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: var(--s4); border-bottom: 1px dashed var(--hairline);
  margin-bottom: var(--s6);
}
.chat-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--serif); font-size: 19px;
}
.chat-title svg { width: 22px; height: 22px; }
.chat-status {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  display: flex; align-items: center; gap: 6px;
}
.chat-status::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft);
}

.stream { display: flex; flex-direction: column; gap: var(--s4); }
.m {
  display: flex; flex-direction: column;
  max-width: 86%;
  opacity: 0; transform: translateY(10px);
  animation: msgIn 0.5s var(--ease) forwards;
}
.m:nth-child(1) { animation-delay: 0.8s; }
.m:nth-child(2) { animation-delay: 1.1s; }
.m:nth-child(3) { animation-delay: 1.4s; }
.m:nth-child(4) { animation-delay: 1.7s; }
@keyframes msgIn {
  to { opacity: 1; transform: none; }
}
.m.user { align-self: flex-end; align-items: flex-end; }
.m.advisor { align-self: flex-start; }

.m-bubble {
  padding: 11px 14px; border-radius: var(--r-lg);
  font-size: 14px; line-height: 1.5;
}
.m.advisor .m-bubble {
  background: var(--paper); border: 1px solid var(--hairline);
  border-bottom-left-radius: var(--r-sm);
}
.m.user .m-bubble {
  background: var(--ink); color: var(--paper);
  border-bottom-right-radius: var(--r-sm);
}
.m.voice .m-bubble {
  background: var(--ink); color: var(--paper);
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
}

.vw { display: flex; align-items: center; gap: 2px; height: 18px; }
.vw span {
  display: block; width: 2.5px; background: var(--paper);
  border-radius: 2px;
  animation: wave 1.4s ease-in-out infinite;
}
.vw span:nth-child(1){height:30%;animation-delay:0s}
.vw span:nth-child(2){height:70%;animation-delay:.1s}
.vw span:nth-child(3){height:100%;animation-delay:.2s}
.vw span:nth-child(4){height:55%;animation-delay:.3s}
.vw span:nth-child(5){height:85%;animation-delay:.4s}
.vw span:nth-child(6){height:40%;animation-delay:.5s}
.vw span:nth-child(7){height:75%;animation-delay:.6s}
.vw span:nth-child(8){height:30%;animation-delay:.7s}
.vw span:nth-child(9){height:65%;animation-delay:.8s}
.vw span:nth-child(10){height:45%;animation-delay:.9s}
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}
.vmeta { font-family: var(--mono); font-size: 11px; color: color-mix(in oklab, var(--paper) 80%, var(--ink)); margin-left: auto; }
.m-caption {
  font-family: var(--mono); font-size: 10px; color: var(--ink-mute);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-top: 5px;
}
.m-pills { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pill {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--clay-soft); color: var(--clay-deep);
  border: 1px solid color-mix(in oklab, var(--clay) 18%, transparent);
}
.pill.sage { background: var(--sage-soft); color: var(--sage); border-color: color-mix(in oklab, var(--sage) 18%, transparent); }

.draft-card {
  background: var(--surface-deep); border: 1px solid var(--hairline);
  border-left: 2px solid var(--clay); border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 10px 14px;
}
.draft-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--clay-deep);
  margin-bottom: 4px;
}
.draft-text { font-size: 13px; color: var(--ink); line-height: 1.5; }

/* ── Composer: показываем, что можно и писать, и говорить ── */
.chat-composer {
  display: flex; align-items: center; gap: 10px;
  margin-top: var(--s6);
  padding: 10px 10px 10px 16px;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
}
.composer-placeholder {
  flex: 1; min-width: 0;
  font-size: 13px; color: var(--ink-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.composer-mic {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
}
.composer-text { color: var(--ink-mute); }
.composer-caret {
  display: inline-block;
  width: 2px; height: 1.05em;
  background: var(--clay);
  margin-left: 1px;
  transform: translateY(2px);
  animation: composerCaret 1.1s ease-in-out infinite;
}
@keyframes composerCaret {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

/* ════════════════════════════════════════════════════════════
   PROBLEM
   ════════════════════════════════════════════════════════════ */
.problem { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.problem-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.problem-text { max-width: 56ch; }
.problem-body { font-size: 19px; color: var(--ink-soft); line-height: 1.7; margin-top: var(--s8); }
.problem-body p + p { margin-top: var(--s4); }
.problem-final {
  display: block; margin-top: var(--s8);
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--ink); letter-spacing: -0.01em;
}
.problem-note {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: var(--s8);
  align-self: center; position: relative;
  box-shadow: var(--e-soft);
}
.problem-note::before {
  content: "❝"; position: absolute;
  top: -20px; left: 18px;
  font-family: var(--serif); font-size: 60px;
  color: var(--clay); line-height: 1;
}
.note-text {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2.5vw, 28px);
  color: var(--ink); line-height: 1.3;
  margin-bottom: var(--s4); text-wrap: pretty;
}
.note-sub {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════════════════════ */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: var(--s16);
  background: var(--hairline);
  border: 1px solid var(--hairline); border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  background: var(--surface); padding: var(--s8) var(--s6);
  position: relative;
  transition: background var(--dur-base);
}
.step:hover { background: var(--paper); }
.step-num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--clay-deep); margin-bottom: var(--s8); display: block;
}
.step-icon {
  width: 44px; height: 44px; margin-bottom: var(--s4);
  color: var(--ink);
}
.step h3 { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; line-height: 1.2; }
.step p { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

/* ════════════════════════════════════════════════════════════
   FOUNDER
   ════════════════════════════════════════════════════════════ */
.founder { background: var(--surface); border-top: 1px solid var(--hairline); }
.founder-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.founder-photo {
  width: 200px; height: 200px; border-radius: 50%;
  overflow: hidden; position: relative;
  border: 1px solid var(--hairline);
  box-shadow: var(--e-soft);
}
.founder-photo img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
  filter: grayscale(0.1) sepia(0.05) contrast(1.02);
  transition: transform 6s var(--ease);
}
.founder-photo:hover img { transform: scale(1.04); }
.founder-photo::after {
  /* Маленькая печать-эмблема снизу-справа */
  content: ""; position: absolute;
  bottom: 4px; right: 4px;
  width: 38px; height: 38px;
  background: var(--paper);
  border-radius: 50%;
  border: 1px solid var(--hairline);
}
.founder-photo .seal-stamp {
  position: absolute; bottom: 6px; right: 6px;
  width: 34px; height: 34px; z-index: 1;
}
.founder-content h2 { margin-top: var(--s2); margin-bottom: var(--s6); }
.founder-body { font-size: 18px; color: var(--ink-soft); line-height: 1.7; }
.founder-body p + p { margin-top: var(--s4); }
.has-dropcap { position: relative; }
.dropcap {
  float: left;
  font-family: var(--serif);
  font-style: italic;
  font-size: 4.6em;
  line-height: 0.82;
  margin: 0.08em 0.12em 0 -0.04em;
  color: var(--clay-deep);
  letter-spacing: -0.04em;
}
.dropcap-pad { font-variant: small-caps; letter-spacing: 0.04em; color: var(--ink); }
.founder-chain {
  display: inline-block; margin: var(--s2) 0 var(--s4);
  font-family: var(--serif); font-style: italic;
  font-size: 18px; color: var(--ink);
  background: var(--paper);
  border-left: 2px solid var(--clay);
  padding: 14px 20px; border-radius: 0 var(--r-md) var(--r-md) 0;
  line-height: 1.5;
}
.founder-sig {
  margin-top: var(--s8); padding-top: var(--s6);
  border-top: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s4);
}
.founder-sig-name {
  font-family: var(--serif); font-style: italic; font-size: 22px;
  color: var(--ink); display: block;
}
.founder-sig-role {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.06em; text-transform: uppercase;
  display: block; margin-top: 4px;
}
.founder-link {
  font-size: 14px; color: var(--clay-deep); font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--clay-soft);
  padding-bottom: 2px;
  transition: all var(--dur-fast);
}
.founder-link:hover { color: var(--ink); border-color: var(--ink); }

/* ════════════════════════════════════════════════════════════
   MEMORY (на чернилах)
   ════════════════════════════════════════════════════════════ */
.memory {
  background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden;
}
.memory::before {
  content: ""; position: absolute;
  right: -150px; top: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle at center, color-mix(in oklab, var(--clay) 20%, transparent) 0%, transparent 60%);
  opacity: 0.4; pointer-events: none;
}
.memory h2 {
  color: var(--paper); max-width: 22ch; margin-bottom: var(--s6);
}
.memory h2 em { color: color-mix(in oklab, var(--clay) 70%, var(--paper)); }
.memory-text {
  color: color-mix(in oklab, var(--paper) 80%, transparent);
  font-size: 18px; max-width: 58ch; line-height: 1.65;
  margin-bottom: var(--s4);
}
.memory-note {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 55%, transparent);
  margin-bottom: var(--s16);
}
/* ── Memory board: list + card ── */
.memory-board {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(var(--s6), 3vw, var(--s12));
  align-items: stretch;
  position: relative; z-index: 1;
  margin-top: var(--s8);
}

.mem-list {
  display: flex; flex-direction: column;
  gap: 2px;
  padding: 0;
}

.mem-cat {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: color-mix(in oklab, var(--paper) 62%, transparent);
  cursor: pointer;
  text-align: left;
  font: inherit;
  width: 100%;
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
}
.mem-cat:hover {
  background: color-mix(in oklab, var(--paper) 5%, transparent);
  color: var(--paper);
}
.mem-cat.active {
  background: color-mix(in oklab, var(--paper) 8%, transparent);
  border-color: color-mix(in oklab, var(--clay) 35%, transparent);
  color: var(--paper);
}
.mem-cat:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}
.mem-cat-icon {
  width: 22px; height: 22px;
  color: color-mix(in oklab, var(--paper) 35%, transparent);
  transition: color var(--dur-base) var(--ease), transform var(--dur-base) var(--ease);
}
.mem-cat:hover .mem-cat-icon,
.mem-cat.active .mem-cat-icon {
  color: var(--clay);
}
.mem-cat.active .mem-cat-icon {
  transform: rotate(-4deg) scale(1.06);
}
.mem-cat-body {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
}
.mem-cat-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  letter-spacing: -0.005em;
  line-height: 1.1;
  color: currentColor;
}
.mem-cat-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--paper) 45%, transparent);
}

/* ── Card ── */
.mem-card {
  position: relative;
  background: color-mix(in oklab, var(--paper) 5%, transparent);
  border: 1px solid color-mix(in oklab, var(--paper) 14%, transparent);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3.4vw, 48px);
  overflow: hidden;
  min-height: 480px;
}
.mem-card::before {
  /* Тёплое глиняное свечение в углу */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 95% 0%, color-mix(in oklab, var(--clay) 28%, transparent) 0%, transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}
.mem-card-seal {
  position: absolute;
  top: 26px; right: 28px;
  width: 36px; height: 36px;
  opacity: 0.55;
  z-index: 1;
  transform: rotate(6deg);
  transition: transform 0.8s var(--ease), opacity 0.4s var(--ease);
}
.mem-card:hover .mem-card-seal { opacity: 0.85; transform: rotate(-2deg) scale(1.05); }
.mem-card-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  height: 100%;
}
.mem-card-inner.swap {
  animation: memCardSwap 0.45s var(--ease);
}
@keyframes memCardSwap {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.mem-card-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--clay) 55%, var(--paper));
  margin-bottom: var(--s4);
}
.mem-card-eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: color-mix(in oklab, var(--clay) 55%, var(--paper));
}
.mem-card-title {
  font-family: var(--serif); font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.12; letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: var(--s8);
  max-width: 18ch;
  text-wrap: balance;
  padding-right: 56px; /* место под печать */
}
.mem-card-body {
  font-size: 17px;
  line-height: 1.6;
  color: color-mix(in oklab, var(--paper) 80%, transparent);
  max-width: 46ch;
  margin-bottom: var(--s8);
  text-wrap: pretty;
}
.mem-examples {
  margin-top: auto;
  padding-top: var(--s6);
  border-top: 1px dashed color-mix(in oklab, var(--paper) 18%, transparent);
}
.mem-examples-label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in oklab, var(--clay) 55%, var(--paper));
  margin-bottom: var(--s4);
  display: inline-flex; align-items: center; gap: 12px;
}
.mem-examples-label::before {
  content: ""; width: 22px; height: 1px;
  background: color-mix(in oklab, var(--clay) 55%, var(--paper));
}
.mem-examples-list {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 10px;
  padding: 0;
}
.mem-examples-list li {
  font-family: var(--serif); font-style: italic;
  font-size: 19px; line-height: 1.35;
  color: var(--paper);
  display: flex; align-items: baseline; gap: 14px;
  padding-left: 0;
}
.mem-examples-list li::before {
  content: ""; flex-shrink: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in oklab, var(--clay) 55%, var(--paper));
  transform: translateY(-3px);
}

/* ── Memory: мобильный аккордеон (вместо списка + карточки) ── */
.mem-accordion { display: none; flex-direction: column; gap: 8px; }
.mem-acc-item {
  border: 1px solid color-mix(in oklab, var(--paper) 14%, transparent);
  border-radius: var(--r-md);
  overflow: hidden;
}
.mem-acc-item.open {
  border-color: color-mix(in oklab, var(--clay) 35%, transparent);
}
.mem-acc-head {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 16px;
  background: color-mix(in oklab, var(--paper) 5%, transparent);
  color: var(--paper);
  text-align: left;
}
.mem-acc-name {
  font-family: var(--serif); font-style: italic;
  font-size: 20px; line-height: 1.15; letter-spacing: -0.005em;
}
.mem-acc-icon {
  flex-shrink: 0; width: 20px; height: 20px;
  display: grid; place-items: center;
  color: color-mix(in oklab, var(--clay) 60%, var(--paper));
  transition: transform var(--dur-base) var(--ease);
}
.mem-acc-item.open .mem-acc-icon { transform: rotate(45deg); }
.mem-acc-body { display: none; padding: 4px 16px 18px; }
.mem-acc-item.open .mem-acc-body { display: block; }
.mem-acc-body h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 24px; line-height: 1.15; color: var(--paper);
  margin-bottom: 10px; text-wrap: balance;
}
.mem-acc-body p {
  font-size: 16px; line-height: 1.6;
  color: color-mix(in oklab, var(--paper) 80%, transparent);
  margin-bottom: var(--s6);
}
.mem-acc-body .mem-examples { padding-top: var(--s4); }

/* ── Маржиналия в разделе основателя ── */
.marginalia {
  display: block;
  float: right; clear: right;
  max-width: 280px;
  margin: var(--s4) -40px var(--s6) var(--s8);
  padding: var(--s4) 0 var(--s4) var(--s4);
  border-left: 2px solid var(--clay);
  font-family: var(--serif); font-style: italic;
  font-size: 19px; line-height: 1.35;
  color: var(--ink); letter-spacing: -0.005em;
  text-wrap: pretty;
}
.marginalia-eyebrow {
  display: block;
  font-family: var(--mono); font-style: normal;
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin-bottom: var(--s3);
}
@media (max-width: 900px) {
  .marginalia {
    float: none; max-width: none;
    margin: var(--s4) 0;
  }
}

/* ════════════════════════════════════════════════════════════
   FOR WHO
   ════════════════════════════════════════════════════════════ */
.tabs-wrap {
  display: flex; gap: 4px;
  background: var(--surface-deep);
  border-radius: var(--r-pill);
  padding: 4px; margin-top: var(--s12);
  width: fit-content;
  border: 1px solid var(--hairline);
}
.tab-btn {
  padding: 10px 22px; border-radius: var(--r-pill);
  border: none; background: transparent;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--ink-soft);
  transition: all var(--dur-fast);
}
.tab-btn.active {
  background: var(--paper); color: var(--ink);
  box-shadow: var(--e-soft);
}
.tab-btn:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

.tab-content { display: none; margin-top: var(--s8); }
.tab-content.active { display: block; animation: tabFade 0.5s var(--ease); }
.tab-acc-head { display: none; } /* заголовок-аккордеон только на мобиле */
.tab-acc-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
@keyframes tabFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.tab-content h3 {
  font-family: var(--serif); font-size: 32px;
  font-weight: 400; line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: var(--s4);
  text-wrap: balance;
}
.tab-content > div:first-child > p {
  font-size: 17px; color: var(--ink-soft);
  line-height: 1.6; margin-bottom: var(--s6);
}
.tab-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tab-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; color: var(--ink-soft); line-height: 1.5;
}
.tab-list li::before {
  content: ""; flex-shrink: 0; margin-top: 9px;
  width: 8px; height: 1px; background: var(--clay);
}
.tab-illustration {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); padding: var(--s4);
  display: flex; align-items: center; justify-content: center;
  min-height: 320px;
  overflow: hidden;
}
.tab-illustration svg {
  width: 100%; height: auto; max-width: 100%;
  display: block;
}

/* ════════════════════════════════════════════════════════════
   FORM
   ════════════════════════════════════════════════════════════ */
.form-section { background: var(--surface); border-top: 1px solid var(--hairline); }
.form-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px); align-items: start;
}
.form-left h2 { margin-bottom: var(--s4); }
.form-left p { font-size: 17px; color: var(--ink-soft); line-height: 1.65; max-width: 50ch; }

.form-card {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-xl); padding: var(--s12);
  box-shadow: var(--e-soft);
}
.field { margin-bottom: var(--s4); }
.field label, .field legend {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500; margin-bottom: 6px;
}
.field-opt {
  font-weight: 400; color: var(--ink-mute);
  font-family: var(--sans); font-size: 11px; margin-left: 6px;
  text-transform: none; letter-spacing: 0;
}
input[type="text"], select, textarea {
  width: 100%; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  outline: none;
  transition: all var(--dur-fast);
  -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 4px var(--clay-soft);
}
input.error, select.error, textarea.error { border-color: #B0493A; }
.error-msg {
  font-size: 12px; color: #B0493A;
  margin-top: 4px; display: none;
  font-family: var(--mono); letter-spacing: 0.04em;
}
.error-msg.show { display: block; }
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%235E544A' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }

.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--sans); font-size: 14px; color: var(--ink-soft);
  font-weight: 400; text-transform: none; letter-spacing: 0;
  cursor: pointer; margin-bottom: 0;
}
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--clay);
  flex-shrink: 0; margin-top: 2px;
}
.consent-label { font-size: 13px; }
.form-submit {
  width: 100%; padding: 14px; font-size: 15px;
  margin-top: var(--s4); border-radius: var(--r-pill);
}
.success-state { display: none; text-align: center; padding: var(--s12); }
.success-state.show { display: block; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage-soft); color: var(--sage);
  display: grid; place-items: center;
  margin: 0 auto var(--s4);
}
.success-state h3 { font-size: 24px; margin-bottom: 10px; }
.success-state p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

/* ════════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════════ */
.faq-list { margin-top: var(--s16); border-top: 1px solid var(--hairline); }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: var(--s6) 0; background: none; border: none;
  font-family: var(--serif); font-size: 22px; font-weight: 400;
  color: var(--ink); text-align: left; gap: var(--s4);
  letter-spacing: -0.01em;
  transition: color var(--dur-fast);
}
.faq-trigger:hover { color: var(--clay-deep); }
.faq-trigger:focus-visible { outline: 2px solid var(--clay); outline-offset: 2px; border-radius: 4px; }
.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  display: grid; place-items: center;
  transition: transform var(--dur-base) var(--ease);
  color: var(--clay-deep);
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-body {
  max-height: 0; overflow: hidden;
  transition: max-height var(--dur-base) var(--ease);
}
.faq-body-inner {
  padding: 0 0 var(--s6); font-size: 17px;
  color: var(--ink-soft); line-height: 1.65;
  max-width: 64ch;
}

/* ════════════════════════════════════════════════════════════
   FINAL CTA
   ════════════════════════════════════════════════════════════ */
.cta-final {
  background: var(--ink); color: var(--paper);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center bottom, color-mix(in oklab, var(--clay) 35%, transparent) 0%, transparent 60%);
  opacity: 0.45;
}
.cta-final-inner {
  max-width: 720px; margin: 0 auto;
  position: relative; z-index: 1;
}
.cta-final-seal {
  width: 80px; height: 80px; margin: 0 auto var(--s8);
  animation: sealPress 1.2s var(--ease) 0.2s both;
  transform-origin: center;
}
@keyframes sealPress {
  0% { opacity: 0; transform: translateY(-30px) rotate(-12deg) scale(1.4); }
  60% { opacity: 1; transform: translateY(4px) rotate(-1deg) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) rotate(-3deg) scale(1); }
}
.cta-final h2 {
  color: var(--paper); margin-bottom: var(--s4);
  font-size: clamp(38px, 5vw, 64px);
}
.cta-final h2 em { color: color-mix(in oklab, var(--clay) 75%, var(--paper)); }
.cta-final p {
  color: color-mix(in oklab, var(--paper) 75%, transparent);
  font-size: 18px; margin-bottom: var(--s12);
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer {
  background: var(--paper); border-top: 1px solid var(--hairline);
  padding: var(--s12) clamp(20px, 4vw, 48px);
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--s8); padding-bottom: var(--s8);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: var(--s6);
}
.footer-logo-sub {
  font-size: 14px; color: var(--ink-soft); margin-top: 8px;
  max-width: 36ch;
}
.footer-links { display: flex; gap: var(--s8); flex-wrap: wrap; }
.footer-links a {
  font-size: 14px; color: var(--ink-soft);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute);
}

/* ════════════════════════════════════════════════════════════
   REVEAL ANIMATIONS
   ════════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.in { opacity: 1; transform: none; }

/* floatSlow keyframe отключён — заменён параллаксом на курсор */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .word, .hero-sub, .hero-cta, .hero-note, .chat-panel, .m { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .memory-board { grid-template-columns: 1fr; }
  .mem-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .mem-card { min-height: auto; }
}

@media (max-width: 760px) {
  section { padding: var(--s16) 20px; }
  nav.primary { display: none; }
  .header-inner .btn { display: none; }
  .burger { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s12); }
  .hero-constellation { display: none; } /* на мобиле фон держим чистым */
  /* грид-колонки не должны раздуваться под неразрывный контент — иначе текст уезжает за правый край */
  .hero-inner > * { min-width: 0; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 60px); text-wrap: normal; }
  .hero-sub { font-size: 17px; }
  .problem-inner { grid-template-columns: 1fr; gap: var(--s8); }
  .steps-grid { grid-template-columns: 1fr; }
  .founder-inner { grid-template-columns: 1fr; gap: var(--s8); }
  .founder-photo { width: 120px; height: 120px; }

  /* Память: на мобиле — аккордеон вместо списка кнопок + большой карточки */
  .mem-list, .mem-card { display: none; }
  .mem-accordion { display: flex; }
  .form-inner { grid-template-columns: 1fr; gap: var(--s8); }
  .form-card { padding: var(--s8); }
  .footer-top { flex-direction: column; gap: var(--s4); }

  /* «Три слоя»: на мобиле — аккордеон вместо вкладок */
  .tabs-wrap { display: none; }
  .tab-content { display: block; margin-top: 0; }
  .tab-content + .tab-content { margin-top: 10px; }
  .tab-content {
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    background: var(--surface);
    overflow: hidden;
  }
  .tab-content.open { border-color: color-mix(in oklab, var(--clay) 32%, transparent); }
  .tab-acc-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 16px;
    background: none; text-align: left;
    font-family: var(--serif); font-size: 22px; color: var(--ink);
    letter-spacing: -0.01em;
  }
  .tab-acc-icon {
    flex-shrink: 0; width: 20px; height: 20px;
    display: grid; place-items: center; color: var(--clay-deep);
    transition: transform var(--dur-base) var(--ease);
  }
  .tab-content.open .tab-acc-icon { transform: rotate(45deg); }
  .tab-acc-body { display: none; grid-template-columns: 1fr; padding: 0 16px 18px; }
  .tab-content.open .tab-acc-body { display: block; }
  .tab-content h3 { font-size: 26px; }
  .tab-illustration { display: none; } /* тяжёлую иллюстрацию на мобиле прячем */
}

/* ════════════════════════════════════════════════════════════
   ENTRY LADDER (модель входа в «Как работает»)
   ════════════════════════════════════════════════════════════ */
.entry-ladder {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: var(--s4);
  margin-top: var(--s12);
  padding: var(--s8);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
}
.entry-rung { display: flex; flex-direction: column; gap: 6px; }
.entry-rung-time {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--clay-deep);
}
.entry-rung-title { font-family: var(--serif); font-size: 24px; line-height: 1.12; letter-spacing: -0.01em; }
.entry-rung-desc { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.entry-arrow {
  align-self: center;
  font-family: var(--mono); color: var(--ink-mute); font-size: 20px;
}

/* ════════════════════════════════════════════════════════════
   LAYERS (связь слоёв)
   ════════════════════════════════════════════════════════════ */
.layers {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.layers-stack {
  margin-top: var(--s12);
  display: flex; flex-direction: column;
  max-width: 840px;
}
.layer-row {
  display: grid; grid-template-columns: 56px 1fr;
  gap: var(--s6); align-items: start;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s6) var(--s8);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.layer-row:hover { transform: translateX(4px); box-shadow: var(--e-soft); }
.layer-base {
  background: var(--clay-soft);
  border-color: color-mix(in oklab, var(--clay) 32%, transparent);
}
.layer-num {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em;
  color: var(--clay-deep); padding-top: 6px;
}
.layer-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--clay-deep);
  margin-bottom: var(--s2);
}
.layer-body h3 { font-family: var(--serif); font-size: 27px; margin-bottom: 8px; line-height: 1.12; letter-spacing: -0.015em; }
.layer-body p { font-size: 16px; color: var(--ink-soft); line-height: 1.55; max-width: 54ch; }
.layer-connector {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 0 8px 26px;
}
.layer-connector-line {
  width: 1px; height: 26px;
  background: linear-gradient(var(--clay), color-mix(in oklab, var(--clay) 10%, transparent));
}
.layer-connector-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--clay-deep);
}
.layers-note {
  margin-top: var(--s8);
  max-width: 840px;
  display: grid; grid-template-columns: auto 1fr; gap: var(--s6);
  align-items: start;
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-lg);
  padding: var(--s8);
}
.layers-note-eyebrow {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in oklab, var(--clay) 70%, var(--paper));
  white-space: nowrap; padding-top: 5px;
}
.layers-note p {
  color: color-mix(in oklab, var(--paper) 82%, transparent);
  font-size: 17px; line-height: 1.6; max-width: 60ch;
}
.layers-note em { font-style: italic; color: color-mix(in oklab, var(--clay) 72%, var(--paper)); }

@media (max-width: 760px) {
  .entry-ladder { grid-template-columns: 1fr; gap: var(--s6); padding: var(--s6); }
  .entry-arrow { display: none; }
  .layer-row { grid-template-columns: 40px 1fr; gap: var(--s4); padding: var(--s6); }
  .layers-note { grid-template-columns: 1fr; gap: var(--s3); }
}
