/* ============================================================
   Эд Баумгертнер — сайт-визитка, «Механика роста»
   Токены цвета/шрифта — из /root/projects/mr-presentations/shared/deck.css
   Движок вёрстки унаследован от /root/projects/ai-coo-site/style.css
   ============================================================ */

@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/golos-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/golos-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/plexmono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/plexmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/plexmono-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/plexmono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

:root {
  --bg-base: #161b23;
  --bg-alt: #1b212b;
  --card: #212834;
  --card-accent: #1c2634;
  --border: #303948;
  --border-accent: #33526b;
  --blue: #7fb4de;
  --blue-focus: #5a92bd;
  --blue-fill: #6aa5d4;
  --blue-dark: #33526b;
  --amber: #d9a95e;
  --green: #7fbf8a;
  --violet: #9d8cf5;
  --violet-dim: rgba(157, 140, 245, 0.14);
  --magenta: #e08bc9;
  --magenta-dim: rgba(224, 139, 201, 0.14);
  --teal: #6fd6c4;
  --teal-dim: rgba(111, 214, 196, 0.14);
  --amber-dim: rgba(217, 169, 94, 0.14);
  --green-dim: rgba(127, 191, 138, 0.14);
  --blue-dim: rgba(127, 180, 222, 0.14);
  --text: #ecedef;
  --text-dim: #7d8794;
  --text-mid: #aeb5bf;
  --avatar-fill: #2b4257;
  --avatar-text: #9ec6e6;
  --btn-text: #0d1319;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg-base);
  color: var(--text);
  font-family: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: #a5cbe9; text-decoration: underline; }
::selection { background: #2d4a63; }

img, picture, svg { max-width: 100%; display: block; }

.mono { font-family: 'IBM Plex Mono', monospace; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(26px, 4.4vw, 38px); }
h3 { font-size: clamp(18px, 2.6vw, 22px); }

.lead {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
  max-width: 46em;
  text-wrap: pretty;
}

.body-text {
  color: var(--text-mid);
  line-height: 1.55;
  margin: 0;
}

.text-dim { color: var(--text-dim); }
.text-mid { color: var(--text-mid); }
.accent { color: var(--blue); }
.attn { color: var(--amber); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(22, 27, 35, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  max-width: 1140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  color: var(--text);
  white-space: nowrap;
}
.brand-mark .brand-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: none;
}
@media (min-width: 720px) {
  .brand-mark .brand-sub { display: inline; }
}

.header-nav {
  display: none;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}
.header-nav a { color: var(--text-mid); }
.header-nav a:hover { color: var(--text); text-decoration: none; }
@media (min-width: 980px) {
  .header-nav { display: flex; }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .btn-secondary,
.header-actions .btn-primary {
  padding: 9px 14px;
  font-size: 13.5px;
}

@media (max-width: 560px) {
  .site-header .wrap {
    flex-wrap: wrap;
    row-gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .brand-mark { flex: 1 1 100%; }
  .header-actions { flex: 1 1 100%; justify-content: flex-end; }
  .header-actions .btn-primary { font-size: 12.5px; padding: 9px 12px; }
}

/* ---------- buttons ---------- */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--blue-fill);
  color: var(--btn-text);
  font-weight: 700;
  font-size: 15.5px;
  padding: 15px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: 'Golos Text', sans-serif;
  text-decoration: none;
  line-height: 1.2;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: #85b7de; text-decoration: none; color: var(--btn-text); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid #39434f;
  cursor: pointer;
  font-family: 'Golos Text', sans-serif;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover { border-color: var(--blue-focus); color: #fff; text-decoration: none; }

.btn-block { width: 100%; }

/* ---------- status badges ---------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  min-width: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-badge.live {
  color: var(--green);
  background: rgba(127, 191, 138, 0.12);
  border: 1px solid rgba(127, 191, 138, 0.4);
}
.status-badge.live::before { background: var(--green); }
.status-badge.wip {
  color: var(--blue);
  background: rgba(127, 180, 222, 0.12);
  border: 1px solid rgba(127, 180, 222, 0.4);
}
.status-badge.wip::before { background: var(--blue); }
.status-badge.pilot {
  color: var(--amber);
  background: rgba(217, 169, 94, 0.12);
  border: 1px solid rgba(217, 169, 94, 0.4);
}
.status-badge.pilot::before { background: var(--amber); }
.status-badge.dev {
  color: var(--text-dim);
  background: rgba(125, 135, 148, 0.12);
  border: 1px solid rgba(125, 135, 148, 0.35);
}
.status-badge.dev::before { background: var(--text-dim); }
.status-badge.lg { font-size: 13px; padding: 8px 15px; }

/* ---------- sections / layout ---------- */

section { position: relative; }
.section-pad {
  padding: 64px 0;
  border-top: 1px solid #29313d;
}
.bg-alt { background-color: var(--bg-alt); }

/* ---------- layered glows — тёмная база, но живая.
   background-image поверх background-color секции (bg-alt или базовый) —
   классы компонуются независимо от порядка в атрибуте class. ---------- */

.bg-glow {
  background-image:
    radial-gradient(900px 520px at 18% -10%, rgba(157, 140, 245, 0.16) 0%, rgba(157, 140, 245, 0) 60%),
    radial-gradient(760px 480px at 82% 0%, rgba(224, 139, 201, 0.12) 0%, rgba(224, 139, 201, 0) 62%),
    radial-gradient(1100px 600px at 60% -120px, #223042 0%, rgba(34,48,66,0) 65%);
}
.bg-glow-violet {
  background-image:
    radial-gradient(820px 460px at 12% 0%, rgba(157, 140, 245, 0.14) 0%, rgba(157, 140, 245, 0) 62%),
    radial-gradient(680px 420px at 90% 100%, rgba(224, 139, 201, 0.11) 0%, rgba(224, 139, 201, 0) 60%);
}
.bg-glow-teal {
  background-image:
    radial-gradient(760px 440px at 88% -6%, rgba(111, 214, 196, 0.13) 0%, rgba(111, 214, 196, 0) 60%),
    radial-gradient(640px 420px at 8% 100%, rgba(127, 180, 222, 0.11) 0%, rgba(127, 180, 222, 0) 60%);
}
.bg-glow-mix {
  background-image:
    radial-gradient(720px 440px at 14% 100%, rgba(127, 180, 222, 0.13) 0%, rgba(127, 180, 222, 0) 60%),
    radial-gradient(700px 420px at 86% 0%, rgba(157, 140, 245, 0.13) 0%, rgba(157, 140, 245, 0) 60%);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 34px;
}
.section-head .lead { margin-top: 4px; }

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card-accent {
  background: var(--card-accent);
  border: 1px solid var(--border-accent);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover,
.card-accent:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.65);
  border-color: var(--border-accent);
}
@media (prefers-reduced-motion: reduce) {
  .card, .card-accent { transition: none; }
  .card:hover, .card-accent:hover { transform: none; }
}

.grid {
  display: grid;
  gap: 16px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- hero ---------- */

.hero {
  padding: 40px 0 60px;
}
.hero .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}
.hero-copy {
  flex: 1 1 460px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero-visual {
  flex: 1 1 340px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 5.2vw, 48px);
  margin-top: 2px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}
.cta-note {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- portraits (hero §2, путь §4) ---------- */

.portrait {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border-accent);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}
.hero-visual .ph-caption,
.path-portrait .ph-caption {
  margin-top: 10px;
}

/* ---------- caption под портретами ---------- */

.ph-caption {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- заголовки внутри карточек/пунктов ---------- */

.card-title {
  font-size: 17px;
  color: var(--text);
}

/* ---------- «мой путь» (§4) — портрет + вертикальный таймлайн ---------- */

.path-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
}
.path-portrait {
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  position: sticky;
  top: 90px;
}
.path-content {
  flex: 1 1 420px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  padding-left: 26px;
  border-left: 2px solid var(--border);
}
.timeline-item {
  position: relative;
}
.timeline-mark {
  display: block;
  font-size: 12px;
  color: var(--blue);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -31px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--blue);
}
.timeline-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.path-bridge {
  margin: 26px 0 0;
}
.path-quote {
  margin: 0;
  padding: 20px 22px;
  background: var(--card-accent);
  border: 1px solid var(--border-accent);
  border-left: 3px solid var(--blue);
  border-radius: 12px;
}
.path-quote p {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.6;
  font-size: 15.5px;
}
@media (max-width: 760px) {
  .path-portrait { position: static; flex: 1 1 auto; max-width: 240px; margin: 0 auto; }
}

/* ---------- принципы (§7) — сетка 2×2 без карточной рамки ---------- */

.principles-grid {
  display: grid;
  gap: 28px 32px;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 620px) {
  .principles-grid { grid-template-columns: 1fr; }
}
.principle-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 2px solid var(--border-accent);
}

/* ---------- бесплатный разбор процессов (§8) — единственный оффер-блок ---------- */

.offer-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto;
}
.offer-formula {
  font-size: 14px;
  color: var(--blue);
  background: rgba(127, 180, 222, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: 10px;
  padding: 14px 18px;
  line-height: 1.6;
}
.offer-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
}

/* ---------- канал (§9) — компактный горизонтальный блок ---------- */

.channel-block {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.channel-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 420px;
}
.channel-text h2 { font-size: clamp(22px, 3.4vw, 28px); }
.channel-cta { flex-shrink: 0; }

/* ---------- 3 шага / зоны ---------- */

.steps {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 0.05em;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Golos Text', sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 18px 30px 18px 0;
  cursor: pointer;
  position: relative;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 16px;
  font-size: 20px;
  color: var(--blue);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 0 20px;
  color: var(--text-mid);
  line-height: 1.55;
  max-width: 54em;
}
.faq-item.open .faq-a { display: block; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid #29313d;
  padding: 26px 0;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- reveal-on-scroll — только когда JS есть и без reduced-motion;
   иначе контент всегда виден (см. .reveal без модификаторов = opacity:1) ---------- */

.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js-reveal .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
  }
  .js-reveal .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---------- utils ---------- */

.stack { display: flex; flex-direction: column; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mt-lg { margin-top: 24px; }
.mt-md { margin-top: 16px; }
.center { text-align: center; }
.small { font-size: 13.5px; }
.disclaimer {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
