/* ===========================================================
   EliteDevHub · final · design system
   Palette 0 · warm paper + dark ink + cream + amber
   =========================================================== */

:root {
  /* paper / ink */
  --paper:    #F4F1EA;
  --paper-2:  #ECE7D9;
  --paper-3:  #E8E1CF;
  --cream:    #FBF8F1;
  --ink:      #1A1815;
  --ink-2:    #2A2724;
  --ink-3:    #45403A;
  --muted:    #6A6660;
  --hair:     #D9D3C4;
  --hair-2:   #C8C1AE;

  /* accents */
  --amber:        #C8923C;
  --amber-deep:   #A77623;
  --amber-soft:   #E9CE94;
  --good:         #2D8B4D;
  --warn:         #B85A30;

  /* type */
  --f-display: "Instrument Serif", Georgia, serif;
  --f-sans:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --shell-max: 1440px;
  --pad-x: 56px;
  --rail: 320px;
  --radius: 14px;
  --radius-sm: 8px;

  /* timing */
  --ease: cubic-bezier(.2,.7,.3,1);
}
@media (max-width: 860px) {
  :root { --pad-x: 24px; --rail: 0; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  opacity: .45; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--amber); color: var(--cream); }

/* ============================ shell ============================ */

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}

/* ============================ nav ============================== */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--paper) 90%, transparent);
  backdrop-filter: saturate(120%) blur(10px);
  -webkit-backdrop-filter: saturate(120%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.nav.scrolled { border-color: var(--hair); }
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 18px 0;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--ink);
  color: var(--cream);
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--f-display); font-style: italic; font-size: 22px;
  line-height: 1;
}
.brand-name {
  display: flex; flex-direction: column;
  font-family: var(--f-display); font-style: italic;
  font-size: 22px; line-height: 1; letter-spacing: -0.01em;
}
.brand-name small {
  font-family: var(--f-mono); font-style: normal;
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}
.nav-links {
  display: flex; gap: 8px; justify-content: center;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 999px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a[aria-current="page"] {
  background: var(--ink); color: var(--cream);
}
@media (max-width: 860px) {
  .nav-inner { grid-template-columns: auto 1fr auto; gap: 12px; }
  .nav-links { display: none; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px 11px 20px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--cream);
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-primary .arr { color: var(--amber); }
.btn-ghost {
  background: transparent; border-color: var(--hair-2); color: var(--ink);
}
.btn-ghost:hover { background: var(--paper-2); }
.btn-amber {
  background: var(--amber); color: var(--ink);
}
.btn-amber:hover { background: var(--amber-deep); color: var(--cream); transform: translateY(-1px); }
.btn .arr {
  width: 14px; height: 14px; flex: 0 0 14px;
  position: relative;
}
.btn .arr::after {
  content: ""; position: absolute; inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3 8h10M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
}

/* ====================== section helpers ======================== */

.section { padding: 96px 0; position: relative; }
.section + .section { border-top: 1px solid var(--hair); }
@media (max-width: 860px) { .section { padding: 64px 0; } }

.sect-id {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.sect-id::before { content: ""; width: 28px; height: 1px; background: var(--amber); }

.h-display {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(44px, 5.5vw, 84px); line-height: .96;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.h-display em { font-style: italic; color: var(--amber-deep); }
.h-display b { font-weight: 400; font-style: italic; color: var(--ink); }

.h-section {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(34px, 4vw, 56px); line-height: 1;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
.h-section em { font-style: italic; color: var(--amber-deep); }

.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 20px 0 0;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber-deep);
}

/* ============================ hero ============================= */

.hero {
  padding: 64px 0 88px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 64px; }
}
.hero-copy h1 { margin-top: 14px; }
.hero-copy .lede { margin-top: 26px; }
.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 36px;
  display: flex; gap: 28px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--hair);
}
.hero-trust .ti {
  display: flex; flex-direction: column; gap: 4px;
}
.hero-trust .ti b {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 32px; line-height: 1; letter-spacing: -0.02em;
  color: var(--ink);
}
.hero-trust .ti small {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

/* ===================== timeline animation ====================== */

.tl-stage {
  position: relative;
  aspect-ratio: 1/1;
  background: var(--paper-2);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--hair);
}
.tl-stage::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 60% 30%, color-mix(in oklch, var(--amber-soft) 60%, transparent), transparent 55%);
  pointer-events: none;
}
.tl-frame {
  position: absolute; inset: 0;
  padding: 36px;
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .55s var(--ease);
  pointer-events: none;
}
.tl-frame.on { opacity: 1; }

/* frame contents share these */
.tl-card {
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 12px;
  box-shadow: 0 22px 50px -32px rgba(20,18,12,.35);
  width: 100%;
  position: relative;
}

/* — Frame 1: sketch — */
.tl-1 .tl-card {
  padding: 28px 26px;
  font-family: var(--f-display); font-style: italic;
  background: var(--cream);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 27px, color-mix(in oklch, var(--ink) 8%, transparent) 27px 28px);
}
.tl-1 .tl-tag {
  font-family: var(--f-mono); font-style: normal;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-deep);
}
.tl-1 h4 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 28px; line-height: 1.05; margin: 8px 0 10px;
  letter-spacing: -0.015em;
}
.tl-1 .tl-bullets {
  list-style: none; padding: 0; margin: 0;
  font-family: var(--f-sans); font-style: normal;
  font-size: 13px; color: var(--ink-2);
  display: flex; flex-direction: column; gap: 5px;
}
.tl-1 .tl-bullets li::before {
  content: "→ "; color: var(--amber);
}
.tl-1 .scribble {
  position: absolute; right: -14px; top: -14px; width: 80px; height: 80px;
  border: 2px solid var(--amber); border-radius: 50%;
  transform: rotate(-12deg);
  opacity: .8;
}
.tl-1 .scribble::after {
  content: "идея"; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--f-display); font-style: italic; font-size: 14px;
  color: var(--amber-deep);
}

/* — Frame 2: architecture / wireframes — */
.tl-2 { padding: 28px; }
.tl-2 .tl-grid {
  width: 100%; display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 10px;
}
.tl-2 .tl-grid > div {
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--f-mono);
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.tl-2 .tl-grid > div b {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 16px; letter-spacing: -0.01em; color: var(--ink);
  text-transform: none;
}
.tl-2 .tl-grid .ios { grid-column: 1; grid-row: 1; }
.tl-2 .tl-grid .api { grid-column: 2; grid-row: 1; }
.tl-2 .tl-grid .db  { grid-column: 1; grid-row: 2; background: var(--ink); color: var(--cream); }
.tl-2 .tl-grid .db b { color: var(--cream); }
.tl-2 .tl-grid .adm { grid-column: 2; grid-row: 2; }
.tl-2 .tl-grid .ai  { grid-column: 1 / -1; grid-row: 3; background: var(--amber); color: var(--ink); border-color: var(--amber-deep); }
.tl-2 .tl-grid .ai b { color: var(--ink); }
.tl-2 .tl-lines {
  position: absolute; inset: 28px;
  pointer-events: none;
  z-index: 1;
}

/* — Frame 3: build / assembly — */
.tl-3 { padding: 28px; }
.tl-3 .tl-grid {
  width: 100%; display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 10px;
}
.tl-3 .tl-grid > div {
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  font-family: var(--f-mono);
  font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted);
}
.tl-3 .tl-grid > div b {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 16px; letter-spacing: -0.01em; color: var(--ink);
  text-transform: none;
}
.tl-3 .tl-grid .now {
  grid-column: 1 / -1; grid-row: 1;
  background: var(--ink); color: var(--amber-soft);
  padding: 12px 14px;
  position: relative;
}
.tl-3 .tl-grid .now b { color: var(--cream); font-size: 18px; }
.tl-3 .tl-grid .now::after {
  content: ""; position: absolute; right: 14px; top: 16px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--good);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--good) 25%, transparent);
}
.tl-3 .tl-grid .done { grid-row: 2; }
.tl-3 .tl-grid .done span { color: var(--amber-deep); }
.tl-3 .tl-grid .demo {
  grid-column: 1 / -1; grid-row: 3;
  background: var(--amber); color: var(--ink);
  border-color: var(--amber-deep);
}
.tl-3 .tl-grid .demo b { color: var(--ink); }

/* — Frame 4: release / live — */
.tl-4 { padding: 26px; }
.tl-4 .tl-rel {
  width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  align-items: stretch;
}
.tl-4 .release-card {
  background: var(--ink); color: var(--cream);
  border-radius: 14px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.tl-4 .release-card::before {
  content: ""; position: absolute; inset: -20% -20% auto auto;
  width: 110%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--amber) 60%, transparent), transparent 55%);
}
.tl-4 .release-card .lbl {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-soft); position: relative;
}
.tl-4 .release-card b {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.05; letter-spacing: -0.015em; position: relative;
}
.tl-4 .release-card .stars {
  margin-top: auto;
  display: flex; gap: 4px; position: relative;
  font-family: var(--f-mono); font-size: 11px; color: var(--amber-soft);
}
.tl-4 .release-card .stars b {
  font-family: var(--f-sans); font-style: normal; font-size: 12px;
  color: var(--cream); margin-left: auto;
}
.tl-4 .stats {
  display: flex; flex-direction: column; gap: 8px;
}
.tl-4 .stats .st {
  background: var(--cream); border: 1px solid var(--hair);
  border-radius: 10px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
}
.tl-4 .stats .st b {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1; letter-spacing: -0.02em; color: var(--ink);
}
.tl-4 .stats .st small {
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

/* timeline track (under stage) */
.tl-track {
  margin-top: 18px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.tl-step {
  background: transparent; border: 0;
  text-align: left;
  cursor: pointer;
  padding: 14px 14px 14px 16px;
  border-radius: 10px;
  border-top: 2px solid var(--hair);
  display: flex; flex-direction: column; gap: 4px;
  transition: background .25s var(--ease), border-color .25s var(--ease);
  position: relative;
}
.tl-step:hover { background: var(--paper-2); }
.tl-step .n {
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.tl-step .t {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 18px; line-height: 1; letter-spacing: -0.01em; color: var(--ink);
}
.tl-step.on { border-top-color: var(--amber); }
.tl-step.on .n { color: var(--amber-deep); }
.tl-step .progress {
  position: absolute; left: 0; right: 0; top: -2px; height: 2px;
  background: var(--amber);
  transform-origin: left;
  transform: scaleX(0);
  border-radius: 2px;
}
.tl-step.on .progress { animation: stepfill 5.4s linear forwards; }
@keyframes stepfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ======================== bento grid =========================== */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
  gap: 14px;
}
@media (max-width: 860px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr; }
}

.tile {
  background: var(--paper-2);
  border-radius: 18px;
  padding: 22px 24px 24px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hair);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -28px rgba(20,18,12,.25);
  border-color: var(--hair-2);
}
.tile h3 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.05; letter-spacing: -0.015em; margin: 12px 0 8px;
  text-wrap: balance;
}
.tile h3 em { color: var(--amber-deep); }
.tile p {
  font-size: 14px; color: var(--ink-2); margin: 0;
  line-height: 1.55;
}
.tile .t-eye {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.tile.dark { background: var(--ink); color: var(--cream); border-color: var(--ink-2); }
.tile.dark p { color: color-mix(in oklch, var(--cream) 80%, transparent); }
.tile.dark .t-eye { color: var(--amber-soft); }
.tile.amber { background: var(--amber); border-color: var(--amber-deep); color: var(--ink); }
.tile.amber .t-eye { color: var(--amber-deep); }
.tile.cream { background: var(--cream); }

.tile .num {
  margin-top: auto;
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 48px; line-height: 1; letter-spacing: -0.03em;
  color: var(--ink);
}
.tile.dark .num { color: var(--cream); }
.tile.amber .num { color: var(--ink); }
.tile .num small {
  font-family: var(--f-mono); font-style: normal; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: block; margin-top: 6px;
}

/* placeholder block for screenshots/imagery */
.ph {
  background:
    repeating-linear-gradient(135deg, color-mix(in oklch, var(--ink) 6%, transparent) 0 1px, transparent 1px 12px),
    var(--paper-3);
  border: 1px dashed var(--hair-2);
  border-radius: 12px;
  display: grid; place-items: center;
  color: var(--muted);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  min-height: 140px;
}
.tile.dark .ph {
  background:
    repeating-linear-gradient(135deg, color-mix(in oklch, var(--cream) 8%, transparent) 0 1px, transparent 1px 12px),
    color-mix(in oklch, var(--cream) 8%, var(--ink));
  border-color: color-mix(in oklch, var(--cream) 20%, transparent);
  color: color-mix(in oklch, var(--cream) 60%, transparent);
}

/* ===================== split (sticky rail) ===================== */

.split {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: 56px;
  align-items: start;
  padding: 64px 0 96px;
}
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 64px; }
}
.rail {
  position: sticky; top: 88px;
  display: flex; flex-direction: column; gap: 18px;
  padding: 24px 22px;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 18px;
}
@media (max-width: 980px) { .rail { position: static; } }
.rail .r-eye {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-deep);
}
.rail h2 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 30px; line-height: 1.05; letter-spacing: -0.015em; margin: 0;
  text-wrap: balance;
}
.rail .r-meta {
  display: flex; flex-direction: column; gap: 12px;
  margin: 6px 0 4px;
  padding: 14px 0;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.rail .r-meta .rm {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline;
  font-size: 13px;
}
.rail .r-meta .rm b {
  font-family: var(--f-mono); font-style: normal; font-weight: 500;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.rail .r-toc {
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .04em;
}
.rail .r-toc a {
  padding: 7px 10px; border-radius: 8px;
  color: var(--muted);
  transition: background .2s var(--ease), color .2s var(--ease);
  display: flex; gap: 10px; align-items: baseline;
}
.rail .r-toc a span {
  color: var(--amber-deep);
}
.rail .r-toc a:hover, .rail .r-toc a.on { background: var(--cream); color: var(--ink); }

.content > * + * { margin-top: 28px; }
.content h2 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -0.02em;
  margin: 56px 0 16px;
  text-wrap: balance;
}
.content h2:first-child { margin-top: 0; }
.content h2 em { color: var(--amber-deep); }
.content h3 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 24px; line-height: 1.1; letter-spacing: -0.015em;
  margin: 32px 0 8px;
}
.content p {
  font-size: 16.5px; line-height: 1.65; color: var(--ink-2);
  max-width: 64ch; margin: 0;
  text-wrap: pretty;
}
.content p b { color: var(--ink); }
.content ul, .content ol {
  font-size: 16.5px; line-height: 1.7; color: var(--ink-2);
  max-width: 64ch;
  padding-left: 0; list-style: none;
}
.content ul li, .content ol li {
  position: relative; padding-left: 26px; margin-bottom: 6px;
}
.content ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 14px; height: 1px; background: var(--amber);
}
.content ol { counter-reset: c; }
.content ol li { counter-increment: c; }
.content ol li::before {
  content: counter(c, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--f-mono); font-size: 12px; color: var(--amber-deep);
  letter-spacing: .04em;
}
.pullquote {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink);
  padding: 28px 0;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  margin: 36px 0;
  text-wrap: balance;
  max-width: none;
}
.pullquote::before { content: "“"; color: var(--amber); font-size: 1.4em; line-height: 0; vertical-align: -0.1em; margin-right: .12em; }
.pullquote::after { content: "”"; color: var(--amber); font-size: 1.4em; line-height: 0; vertical-align: -0.4em; margin-left: .04em; }

/* ===================== index / catalog ========================= */

.idx-table {
  font-family: var(--f-sans);
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
}
.idx-head {
  display: grid;
  grid-template-columns: 56px 1.4fr 1fr 1fr 0.9fr 56px;
  gap: 18px;
  padding: 14px 22px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--hair);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.idx-row {
  display: grid;
  grid-template-columns: 56px 1.4fr 1fr 1fr 0.9fr 56px;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--hair);
  transition: background .2s var(--ease), padding-left .2s var(--ease);
  color: var(--ink);
}
.idx-row:last-child { border-bottom: 0; }
.idx-row:hover { background: var(--paper-2); padding-left: 28px; }
.idx-row .idx-n {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--muted);
}
.idx-row .idx-t {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.05; letter-spacing: -0.015em;
}
.idx-row .idx-t small {
  display: block;
  font-family: var(--f-sans); font-style: normal;
  font-size: 12.5px; color: var(--muted); margin-top: 4px; letter-spacing: 0;
}
.idx-row .idx-meta {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--ink-2);
}
.idx-row .idx-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em;
  color: var(--ink-2);
}
.idx-row .idx-tag.amber { background: var(--amber-soft); border-color: var(--amber); color: var(--amber-deep); }
.idx-row .idx-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--hair-2);
  display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.idx-row .idx-arrow::after {
  content: ""; width: 8px; height: 8px;
  border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
}
.idx-row:hover .idx-arrow { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* Некликабельные строки-заглушки (проекты под NDA) */
.idx-row-locked { cursor: default; opacity: 0.6; }
.idx-row-locked:hover { background: transparent; padding-left: 22px; }
.idx-row-locked .idx-t { font-style: normal; }
.idx-row .idx-lock {
  justify-self: end;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  padding: 4px 9px;
  white-space: nowrap;
}

.idx-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.idx-filters button {
  background: transparent;
  border: 1px solid var(--hair-2);
  color: var(--ink-2);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.idx-filters button:hover { background: var(--paper-2); }
.idx-filters button.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

@media (max-width: 860px) {
  .idx-head { display: none; }
  .idx-row { grid-template-columns: 1fr auto; gap: 12px; padding: 16px 18px; }
  .idx-row:hover { padding-left: 22px; }
  .idx-row .idx-n { grid-column: 1; grid-row: 1; font-size: 10px; }
  .idx-row .idx-t { grid-column: 1 / -1; grid-row: 2; font-size: 19px; }
  .idx-row .idx-meta, .idx-row .idx-tag { grid-column: span 1; grid-row: 3; font-size: 11px; }
  .idx-row .idx-arrow { grid-column: 2; grid-row: 1; }
}

/* =========================== forms ============================= */

.form {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 36px 38px 32px;
  display: grid; gap: 18px;
}
@media (max-width: 540px) { .form { padding: 24px 22px; border-radius: 18px; } }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea, .field select {
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px; color: var(--ink);
  font-family: var(--f-sans);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink); background: var(--paper);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chips input[type="radio"], .chips input[type="checkbox"] { display: none; }
.chips label {
  cursor: pointer;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: var(--cream);
  font-family: var(--f-sans);
  font-size: 13.5px; color: var(--ink-2);
  letter-spacing: 0; text-transform: none;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chips label:hover { background: var(--paper); }
.chips input:checked + label {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}

.form-submit {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--hair);
}
.form-submit p {
  margin: 0; font-size: 12.5px; color: var(--muted);
  max-width: 42ch;
}
.consent-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.consent-field input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}
.consent-field a {
  color: var(--ink);
  border-bottom: 1px solid var(--hair-2);
}
.form-status {
  width: 100%;
  max-width: none !important;
  color: var(--muted);
}
.form-status[data-type="error"] {
  color: var(--warn);
}

/* ============================ misc ============================= */

.callout {
  background: var(--ink); color: var(--cream);
  border-radius: 22px;
  padding: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
@media (max-width: 860px) { .callout { grid-template-columns: 1fr; gap: 24px; } }
.callout::before {
  content: ""; position: absolute; inset: -30% -10% auto auto;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--amber) 60%, transparent), transparent 55%);
  filter: blur(20px);
}
.callout h3 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.callout h3 em { color: var(--amber-soft); }
.callout p { color: color-mix(in oklch, var(--cream) 80%, transparent); margin: 16px 0 0; max-width: 52ch; line-height: 1.6; }
.callout .callout-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; position: relative; }
@media (max-width: 860px) { .callout .callout-actions { justify-content: flex-start; } }
.callout .btn-primary { background: var(--cream); color: var(--ink); }
.callout .btn-primary:hover { background: var(--amber-soft); }
.callout .btn-primary .arr { color: var(--amber-deep); }
.callout .btn-ghost { border-color: color-mix(in oklch, var(--cream) 30%, transparent); color: var(--cream); }
.callout .btn-ghost:hover { background: color-mix(in oklch, var(--cream) 8%, transparent); }

/* faq accordion */
.faq-list { display: flex; flex-direction: column; }
.faq {
  border-top: 1px solid var(--hair);
  padding: 22px 0;
}
.faq:last-child { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.1; letter-spacing: -0.015em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--f-sans); font-style: normal; font-size: 22px;
  color: var(--amber-deep);
  transition: transform .3s var(--ease);
  flex: 0 0 auto;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq .faq-body {
  margin-top: 14px;
  font-size: 16px; line-height: 1.65; color: var(--ink-2);
  max-width: 72ch;
  text-wrap: pretty;
}

/* page hero (interior) */
.phero {
  padding: 64px 0 36px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end;
  border-bottom: 1px solid var(--hair);
}
@media (max-width: 760px) { .phero { grid-template-columns: 1fr; align-items: start; } }
.phero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(42px, 5vw, 76px); line-height: .96; letter-spacing: -0.025em;
  margin: 8px 0 0;
  text-wrap: balance;
}
.phero h1 em { font-style: italic; color: var(--amber-deep); }
.phero p { margin: 14px 0 0; font-size: 17px; color: var(--ink-2); line-height: 1.55; max-width: 56ch; }
.phero .meta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  text-align: right;
  display: flex; flex-direction: column; gap: 8px;
}
@media (max-width: 760px) { .phero .meta { text-align: left; } }

/* footer */
.foot {
  margin-top: 80px;
  padding: 56px 0 36px;
  border-top: 1px solid var(--hair);
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1fr; gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--hair);
}
@media (max-width: 1100px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand-name { font-size: 26px; }
.foot-brand p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 14px 0 0; max-width: 32ch; }
.foot-col h4 {
  font-family: var(--f-mono); font-weight: 500; font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.foot-col a {
  display: block;
  padding: 5px 0;
  color: var(--ink-2);
  font-size: 14px;
  transition: color .2s var(--ease);
}
.foot-col a:hover { color: var(--amber-deep); }

.foot-bot {
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}

/* status dot */
.dot-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.dot-live::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--good) 22%, transparent);
}

/* ====================== reviews / отзывы ======================= */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(80px, auto);
  gap: 18px;
}
@media (max-width: 980px) {
  .reviews-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 540px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

.rev {
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.rev:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -28px rgba(20,18,12,.22);
}
.rev-shot {
  position: relative;
  flex: 1;
  background: var(--paper-2);
  border-radius: 10px;
  overflow: hidden;
  display: grid; place-items: center;
  min-height: 240px;
  /* visual placeholder pattern when no image */
  background-image:
    repeating-linear-gradient(135deg, color-mix(in oklch, var(--ink) 5%, transparent) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, var(--paper-2), var(--paper-3));
}
.rev-shot img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}
.rev-shot.tall { aspect-ratio: 3/4; }
.rev-shot.wide { aspect-ratio: 4/3; }
.rev-shot.square { aspect-ratio: 1/1; }
.rev-shot .rev-empty {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  padding: 16px;
}
.rev-shot .rev-empty b {
  display: block;
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 22px; letter-spacing: -0.015em; color: var(--ink);
  text-transform: none;
  margin-bottom: 4px;
}
.rev-meta {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px;
}
.rev-meta .rv-n {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.rev-meta .rv-stars {
  font-family: var(--f-mono); font-size: 12px; color: var(--amber-deep);
  letter-spacing: .04em;
}
.rev-cap {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 18px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0;
}
.rev-cap small {
  display: block;
  font-family: var(--f-sans); font-style: normal;
  font-size: 12.5px; color: var(--muted); margin-top: 4px;
  letter-spacing: 0;
}

/* quote-pull review (no screenshot, just text) */
.rev.quote {
  background: var(--ink); color: var(--cream);
  border-color: var(--ink-2);
  justify-content: space-between;
  padding: 26px 28px;
}
.rev.quote .rev-q {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
.rev.quote .rev-q em { color: var(--amber-soft); }
.rev.quote .rev-q::before {
  content: "“"; color: var(--amber); font-size: 1.6em; line-height: 0;
  vertical-align: -0.1em; margin-right: .1em;
}
.rev.quote .rev-meta .rv-n { color: var(--amber-soft); }
.rev.quote .rev-meta .rv-stars { color: var(--amber-soft); }
.rev.quote .rev-cap { color: var(--cream); }
.rev.quote .rev-cap small { color: color-mix(in oklch, var(--cream) 60%, transparent); }

.rev.amber {
  background: var(--amber);
  border-color: var(--amber-deep);
  color: var(--ink);
}
.rev.amber .rev-q { color: var(--ink); }
.rev.amber .rev-q::before { color: var(--ink); }
.rev.amber .rev-meta .rv-n { color: var(--amber-deep); }
.rev.amber .rev-meta .rv-stars { color: var(--ink); }

/* reveal on scroll (light) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   ADDITIONS · v2 — mobile menu, accessibility, new pages
   ============================================================ */

/* ===================== focus states ====================== */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible { outline-offset: 4px; }
.nav-links a:focus-visible { outline-offset: 2px; }
.foot-col a:focus-visible { outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.callout :focus-visible { outline-color: var(--amber-soft); }

/* skip link for a11y */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--cream);
  padding: 12px 18px;
  z-index: 200;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* sr-only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ===================== nav · burger + drawer ===================== */

.nav-right {
  display: flex; align-items: center; gap: 10px;
}
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--hair-2);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.nav-burger:hover { background: var(--paper-2); }
.nav-burger span {
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-burger span:nth-child(1) { transform: translate(-50%, -7px); }
.nav-burger span:nth-child(3) { transform: translate(-50%, 5px); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translate(-50%, 0) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translate(-50%, 0) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 64px 0 0 0;
  background: var(--paper);
  padding: 24px var(--pad-x) 36px;
  display: flex; flex-direction: column; gap: 4px;
  z-index: 40;
  border-top: 1px solid var(--hair);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
  overflow-y: auto;
}
.nav-mobile[aria-hidden="false"] {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.nav-mobile a {
  padding: 14px 0;
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1; letter-spacing: -0.015em;
  color: var(--ink);
  border-bottom: 1px solid var(--hair);
  display: flex; align-items: baseline; justify-content: space-between;
}
.nav-mobile a small {
  font-family: var(--f-mono); font-style: normal;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.nav-mobile .nav-mobile-cta {
  margin-top: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0;
  background: var(--ink); color: var(--cream);
  padding: 16px 22px;
  border-radius: 999px;
  font-family: var(--f-sans); font-style: normal;
  font-size: 15px; font-weight: 500;
}

@media (max-width: 860px) {
  .nav-burger { display: block; }
  .nav-cta { display: none; }
}

body.nav-open { overflow: hidden; }

/* ===================== timeline (mobile fix) ===================== */
@media (max-width: 1080px) {
  .hero {
    grid-template-areas: "copy" "visual";
  }
  .hero-copy { grid-area: copy; }
  .hero-visual { grid-area: visual; }
}
@media (max-width: 640px) {
  .tl-stage { aspect-ratio: 4/3; }
  .tl-track { grid-template-columns: repeat(2, 1fr); }
  .tl-1 h4 { font-size: 22px; }
  .tl-3 { padding: 18px; }
  .tl-3 .tl-grid > div b { font-size: 13px; }
  .tl-3 .tl-grid .now b { font-size: 15px; }
  .tl-4 .tl-rel { grid-template-columns: 1fr; }
}

/* ===================== contrast fix · amber on cream ===================== */
.h-display em,
.h-section em,
.phero h1 em,
.tile h3 em,
.rail h2 em {
  color: var(--amber-deep); /* always use deep amber on light backgrounds */
}
/* small amber text — bump to deep */
.eyebrow,
.sect-id,
.r-eye,
.t-eye {
  /* mono labels in amber should use amber-deep for AA */
}
.t-eye { color: var(--amber-deep) !important; }
.r-eye { color: var(--amber-deep) !important; }
.eyebrow { color: var(--amber-deep) !important; }
/* keep amber-soft on dark backgrounds (already AAA) */
.tile.dark .t-eye,
.rev.quote .rev-meta .rv-n,
.callout .eyebrow,
.foot .eyebrow,
[style*="amber-soft"] { color: var(--amber-soft) !important; }

/* ===================== calc / calculator ===================== */

.calc {
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 36px 38px;
  display: grid; gap: 28px;
}
@media (max-width: 540px) { .calc { padding: 24px 22px; border-radius: 18px; } }
.calc-progress {
  display: flex; gap: 6px;
  margin: 0;
}
.calc-progress span {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--hair);
  transition: background .25s var(--ease);
}
.calc-progress span.done { background: var(--amber); }
.calc-progress span.active { background: var(--amber-deep); }

.calc-step {
  display: none;
  flex-direction: column; gap: 18px;
}
.calc-step.on { display: flex; }
.calc-step .qmeta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.calc-step .qmeta b {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--amber-deep);
}
.calc-step .qmeta small {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.calc-step h3 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.calc-step p.hint {
  margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.55;
}

.calc-options {
  display: grid; gap: 10px;
}
.calc-options.two { grid-template-columns: 1fr 1fr; }
.calc-options.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 540px) {
  .calc-options.two, .calc-options.three { grid-template-columns: 1fr; }
}
.calc-options label {
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  padding: 18px 18px 16px;
  border: 1px solid var(--hair);
  background: var(--paper);
  border-radius: 14px;
  font-family: var(--f-sans);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.calc-options label:hover { border-color: var(--ink-3); background: var(--cream); }
.calc-options input[type="radio"], .calc-options input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; border: 1.5px solid var(--hair-2);
  border-radius: 50%;
  margin: 0; padding: 0;
  cursor: pointer;
  position: relative;
}
.calc-options input[type="checkbox"] { border-radius: 4px; }
.calc-options input:checked {
  border-color: var(--amber-deep); background: var(--amber-deep);
}
.calc-options input:checked::after {
  content: ""; position: absolute; inset: 3px;
  background: var(--cream);
  border-radius: 50%;
}
.calc-options input[type="checkbox"]:checked::after {
  inset: 2px;
  background: transparent;
  border-radius: 0;
  border-right: 2px solid var(--cream);
  border-bottom: 2px solid var(--cream);
  width: 4px; height: 8px;
  margin: 0 auto;
  transform: rotate(45deg) translateY(-1px);
  left: 3px;
}
.calc-options label:has(input:checked) {
  border-color: var(--ink); background: var(--cream);
}
.calc-options .opt-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 19px; line-height: 1.1; letter-spacing: -0.015em;
  color: var(--ink);
}
.calc-options .opt-desc {
  font-size: 13px; color: var(--ink-2); line-height: 1.5;
  padding-left: 26px;
}

.calc-nav {
  display: flex; justify-content: space-between; gap: 16px;
  padding-top: 16px; border-top: 1px solid var(--hair);
}
.calc-nav .btn-prev { visibility: hidden; }
.calc-step.on .btn-prev[data-show] { visibility: visible; }

.calc-result {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 640px) { .calc-result { grid-template-columns: 1fr; } }
.calc-result .rcard {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 6px;
}
.calc-result .rcard.amber { background: var(--amber); border-color: var(--amber-deep); }
.calc-result .rcard.dark { background: var(--ink); color: var(--cream); border-color: var(--ink-2); }
.calc-result .rcard .lbl {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.calc-result .rcard.dark .lbl { color: var(--amber-soft); }
.calc-result .rcard b {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 34px; line-height: 1; letter-spacing: -0.02em;
}
.calc-result .rcard small {
  font-size: 12.5px; color: var(--muted); margin-top: 4px;
}
.calc-result .rcard.dark small { color: color-mix(in oklch, var(--cream) 65%, transparent); }

.calc-summary {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px;
  background: var(--paper-2);
  border-radius: 14px;
  font-size: 14px;
}
.calc-summary .ln {
  display: grid; grid-template-columns: 130px 1fr; gap: 12px;
  font-family: var(--f-sans);
}
.calc-summary .ln b {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}

/* ===================== compare table ===================== */

.cmp {
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: var(--cream);
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}
.cmp-table thead th {
  text-align: left;
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--hair);
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 22px; letter-spacing: -0.015em;
  color: var(--ink);
  vertical-align: bottom;
}
.cmp-table thead th:first-child {
  font-family: var(--f-mono); font-style: normal;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
  width: 22%;
}
.cmp-table thead th small {
  display: block;
  font-family: var(--f-sans); font-style: normal;
  font-size: 12px; color: var(--muted); margin-top: 4px;
  letter-spacing: 0; font-weight: 400;
}
.cmp-table thead th.us {
  background: var(--ink); color: var(--cream);
  border-radius: 14px 14px 0 0;
}
.cmp-table thead th.us small { color: var(--amber-soft); }
.cmp-table tbody td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--hair);
  font-size: 14.5px; line-height: 1.5;
  vertical-align: top;
  color: var(--ink-2);
}
.cmp-table tbody td:first-child {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 19px; line-height: 1.2; letter-spacing: -0.015em;
  color: var(--ink);
}
.cmp-table tbody td.us {
  background: color-mix(in oklch, var(--ink) 4%, var(--cream));
  font-weight: 500; color: var(--ink);
  border-left: 1px solid color-mix(in oklch, var(--ink) 12%, var(--cream));
  border-right: 1px solid color-mix(in oklch, var(--ink) 12%, var(--cream));
}
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr:last-child td.us { border-radius: 0 0 14px 14px; }
.cmp-icon {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase;
}
.cmp-icon.pos { color: var(--good); }
.cmp-icon.neg { color: var(--warn); }
.cmp-icon.mid { color: var(--muted); }
.cmp-icon::before {
  content: ""; width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 14px;
}
.cmp-icon.pos::before { background: var(--good); }
.cmp-icon.neg::before { background: var(--warn); }
.cmp-icon.mid::before { background: var(--hair-2); }

/* ===================== blog / article ===================== */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .blog-grid { grid-template-columns: 1fr; } }

.bcard {
  display: flex; flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.bcard:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -28px rgba(20,18,12,.25); }
.bcard.featured {
  grid-column: span 2;
  flex-direction: row;
  background: var(--ink); color: var(--cream); border-color: var(--ink-2);
}
.bcard.featured .bcard-visual { width: 44%; }
.bcard.featured .bcard-body { flex: 1; padding: 32px 36px; }
.bcard.featured h3 { font-size: 32px; color: var(--cream); }
.bcard.featured p { color: color-mix(in oklch, var(--cream) 75%, transparent); }
.bcard.featured .bcard-meta { color: var(--amber-soft); }
@media (max-width: 760px) {
  .bcard.featured { grid-column: span 1; flex-direction: column; }
  .bcard.featured .bcard-visual { width: 100%; }
}
.bcard-visual {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(135deg, color-mix(in oklch, var(--ink) 6%, transparent) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, var(--paper-3), var(--paper-2));
  display: grid; place-items: center;
  color: var(--muted);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
}
.bcard.featured .bcard-visual {
  background:
    repeating-linear-gradient(135deg, color-mix(in oklch, var(--cream) 10%, transparent) 0 1px, transparent 1px 12px),
    radial-gradient(circle at 30% 70%, color-mix(in oklch, var(--amber) 50%, transparent), transparent 60%),
    var(--ink-2);
  color: var(--amber-soft);
}
.bcard-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bcard-meta {
  display: flex; gap: 12px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.bcard h3 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 24px; line-height: 1.15; letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  color: var(--ink);
}
.bcard p {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.55;
  margin: 0;
}
.bcard .bcard-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--ink);
}
.bcard.featured .bcard-foot { border-top-color: color-mix(in oklch, var(--cream) 18%, transparent); color: var(--cream); }

/* article body */
.article {
  display: grid;
  grid-template-columns: var(--rail) 1fr;
  gap: 56px;
  align-items: start;
  padding: 36px 0 96px;
}
@media (max-width: 980px) { .article { grid-template-columns: 1fr; gap: 32px; } }
.article-body {
  max-width: 64ch;
}
.article-body h2 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: clamp(30px, 3.4vw, 42px); line-height: 1; letter-spacing: -0.02em;
  margin: 56px 0 16px;
  text-wrap: balance;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h2 em { color: var(--amber-deep); }
.article-body h3 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 24px; line-height: 1.1; letter-spacing: -0.015em;
  margin: 32px 0 10px;
}
.article-body p {
  font-size: 17px; line-height: 1.7; color: var(--ink-2);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.article-body p b { color: var(--ink); }
.article-body p:first-of-type::first-letter {
  font-family: var(--f-display); font-style: italic;
  font-size: 4.2em; line-height: .9;
  float: left; padding: 6px 12px 0 0;
  color: var(--amber-deep);
}
.article-body ul, .article-body ol {
  font-size: 16.5px; line-height: 1.7; color: var(--ink-2);
  padding-left: 0; list-style: none;
  margin: 0 0 20px;
}
.article-body ul li, .article-body ol li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
}
.article-body ul li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 14px; height: 1px; background: var(--amber);
}
.article-body ol { counter-reset: a; }
.article-body ol li { counter-increment: a; }
.article-body ol li::before {
  content: counter(a, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--f-mono); font-size: 12px; color: var(--amber-deep);
}
.article-body blockquote {
  margin: 36px 0;
  padding: 24px 26px;
  border-left: 3px solid var(--amber);
  background: var(--paper-2);
  border-radius: 0 12px 12px 0;
  font-family: var(--f-display); font-style: italic;
  font-size: 22px; line-height: 1.3; letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.article-body code {
  font-family: var(--f-mono); font-size: 14.5px;
  padding: 2px 6px; background: var(--paper-2); border-radius: 4px;
  color: var(--ink);
}
.article-body pre {
  background: var(--ink); color: var(--cream);
  padding: 18px 20px; border-radius: 12px;
  overflow-x: auto;
  font-family: var(--f-mono); font-size: 13.5px; line-height: 1.6;
  margin: 24px 0;
}
.article-body pre code {
  background: transparent; color: inherit; padding: 0;
}
.article-body .callout-box {
  margin: 28px 0;
  padding: 22px 24px;
  background: var(--amber-soft);
  border: 1px solid var(--amber);
  border-radius: 14px;
  color: var(--ink);
}
.article-body .callout-box b {
  display: block; margin-bottom: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-deep);
  font-weight: 500;
}

.article-meta {
  display: flex; gap: 18px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  padding-bottom: 20px; border-bottom: 1px solid var(--hair);
  margin-bottom: 28px;
}

.article-rail {
  position: sticky; top: 88px;
  padding: 24px 22px;
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 18px;
  display: flex; flex-direction: column; gap: 16px;
}
@media (max-width: 980px) { .article-rail { position: static; } }
.article-rail .ar-eye {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-deep);
}
.article-rail h2 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 24px; line-height: 1.1; letter-spacing: -0.015em; margin: 0;
}
.article-rail .toc {
  display: flex; flex-direction: column; gap: 2px;
}
.article-rail .toc a {
  padding: 8px 10px; border-radius: 8px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--muted);
  display: flex; gap: 10px; align-items: baseline;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.article-rail .toc a span { color: var(--amber-deep); }
.article-rail .toc a:hover, .article-rail .toc a.on { background: var(--cream); color: var(--ink); }

/* ===================== resources / templates ===================== */

.res-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 640px) { .res-grid { grid-template-columns: 1fr; } }
.res-card {
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 28px 30px;
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.res-card:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -28px rgba(20,18,12,.22); }
.res-card .res-eye {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-deep);
}
.res-card .res-eye span.fmt {
  background: var(--paper-2); color: var(--muted);
  padding: 3px 9px; border-radius: 999px;
}
.res-card h3 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.015em; margin: 0;
  color: var(--ink);
}
.res-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.res-card .res-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--hair);
}
.res-card .res-foot small {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

/* ===================== manifesto big text ===================== */

.manifesto {
  padding: 80px 0;
}
.manifesto-line {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(40px, 6vw, 96px); line-height: 1; letter-spacing: -0.03em;
  margin: 0; padding: 36px 0;
  border-bottom: 1px solid var(--hair);
  text-wrap: balance;
}
.manifesto-line:first-child { border-top: 1px solid var(--hair); }
.manifesto-line em { font-style: italic; color: var(--amber-deep); }
.manifesto-line b { font-style: italic; font-weight: 400; color: var(--ink); }
.manifesto-line small {
  display: block; margin-top: 14px;
  font-family: var(--f-sans); font-style: normal;
  font-size: 16px; line-height: 1.55; letter-spacing: 0;
  color: var(--ink-2); font-weight: 400;
  max-width: 60ch;
}

/* ===================== press kit ===================== */

.press-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 760px) { .press-grid { grid-template-columns: 1fr; } }
.press-card {
  background: var(--paper-2);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.press-card .pc-eye {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-deep);
}
.press-card h3 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.15; letter-spacing: -0.015em; margin: 0;
  color: var(--ink);
}
.press-card p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin: 0; }
.press-card a.dl {
  margin-top: auto;
  padding-top: 16px; border-top: 1px solid var(--hair);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
}
.press-card a.dl::after { content: "↓"; color: var(--amber-deep); font-family: var(--f-sans); }

/* ===================== legal page ===================== */
.legal {
  padding: 36px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}
.legal h2 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 30px; line-height: 1; letter-spacing: -0.02em;
  margin: 36px 0 14px;
}
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li {
  font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px;
}
.legal ul, .legal ol { padding-left: 26px; }
.legal ul li::marker { color: var(--amber-deep); }
.legal-meta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  display: flex; gap: 18px; flex-wrap: wrap;
  margin: 18px 0 36px;
  padding-bottom: 18px; border-bottom: 1px solid var(--hair);
}
.req-table {
  display: grid;
  margin-top: 22px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
}
.req-table div {
  display: grid;
  grid-template-columns: minmax(160px, .42fr) 1fr;
  gap: 18px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--hair);
}
.req-table div:last-child { border-bottom: 0; }
.req-table span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.req-table b {
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .req-table div { grid-template-columns: 1fr; gap: 4px; }
}

/* ===================== career page ===================== */
.roles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
@media (max-width: 720px) { .roles { grid-template-columns: 1fr; } }
.role {
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.role .r-eye {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-deep);
}
.role h3 {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 26px; line-height: 1.1; letter-spacing: -0.015em;
  margin: 0;
}
.role p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.role ul {
  margin: 6px 0 0; padding: 0; list-style: none;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.role ul li {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--paper-2); border: 1px solid var(--hair);
  color: var(--ink-2);
}

/* === Reviews lightbox (added with real Kwork/Avito reviews) === */
.edh-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 14, 12, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: edhLightboxIn 180ms var(--ease, ease) both;
}
.edh-lightbox.on { display: grid; }
.edh-lightbox img {
  max-width: min(1400px, 96vw);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
  background: #fff;
  display: block;
}
.edh-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease, ease), transform 0.2s var(--ease, ease);
}
.edh-lightbox-close:hover { background: rgba(255, 255, 255, 0.32); transform: scale(1.05); }
.edh-lightbox-close:focus-visible { outline: 2px solid var(--amber-deep, #c89554); outline-offset: 2px; }
@keyframes edhLightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
