/* ————————————————————————————————————————————————
   Парк AI — landing styles (v2, cleaner)
———————————————————————————————————————————————— */

:root {
  --bg: #FAFAF8;
  --bg-2: #F2F2EF;
  --surface: #FFFFFF;
  --surface-2: #F6F6F4;
  --line: #E8E8E4;
  --line-2: #D4D4CE;
  --ink: #18181B;
  --ink-2: #52525B;
  --ink-3: #8B8B8F;
  --accent: #18181B;
  --accent-2: #E5B800;
  --accent-ink: #FFFFFF;
  --accent-soft: rgba(229, 184, 0, 0.10);

  --chat-bg: #17212B;
  --chat-header: #212D3B;
  --chat-bubble-in: #182533;
  --chat-bubble-in-text: #E8EDF2;
  --chat-bubble-out: #2B5278;
  --chat-bubble-out-text: #FFFFFF;

  --radius: 14px;
  --radius-sm: 8px;

  --f-display: 'Inter', system-ui, sans-serif;
  --f-text: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* layout */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent-2);
  display: grid; place-items: center;
  color: var(--accent-ink); font-weight: 800; font-size: 13px;
  font-family: var(--f-display);
}
.logo-mark { color: #141414; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 18px;
  border-radius: 10px;
  font-family: var(--f-display);
  font-weight: 600; font-size: 15px;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 86%, white 14%); }
.btn-primary:hover { background: #2a2a2a; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* typography */
.eyebrow-plain {
  display: none;
}

/* sections — tighter rhythm */
section { padding: 40px 0; position: relative; }
@media (max-width: 720px) { section { padding: 32px 0; } }

/* logos strip sits right under hero — no section gap, just a small buffer */
.logos-section { padding: 16px 0 48px; }
.logos-title {
  text-align: center;
  font-family: var(--f-text);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 28px;
}

.section-head { max-width: 1040px; margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.section-head .sub {
  margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 620px;
}

/* card */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

/* hero */
.hero {
  padding-top: 48px;
  padding-bottom: 56px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.hero h1 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent-2);
  font-weight: 700;
}
.hero h1 em {
  background: linear-gradient(180deg, transparent 62%, var(--accent-2) 62%, var(--accent-2) 92%, transparent 92%);
  color: inherit;
  padding: 0 2px;
}
.hero-lede {
  margin-top: 24px;
  color: var(--ink-2);
  font-size: 17px;
  max-width: 480px;
  line-height: 1.55;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 48px;
  display: flex; gap: 40px; flex-wrap: wrap;
}
.hero-meta-item {
  font-size: 13px; color: var(--ink-3);
}
.hero-meta-item strong {
  display: block; font-family: var(--f-display); color: var(--ink);
  font-size: 24px; font-weight: 700; margin-bottom: 2px;
  letter-spacing: -0.02em;
}

/* telegram phone (reusable) */
.phone {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 19;
  background: #050505;
  border-radius: 40px;
  padding: 10px;
  border: 1px solid #1a1a1a;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.4);
  margin: 0 auto;
}
.phone-notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 100px; height: 26px; background: #050505; border-radius: 14px;
  z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--chat-bg);
  border-radius: 30px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.tg-header {
  background: var(--chat-header);
  padding: 44px 14px 12px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tg-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-2);
  display: grid; place-items: center; color: #111; font-weight: 800;
  font-family: var(--f-display); font-size: 14px;
  flex-shrink: 0;
}
.tg-name { font-weight: 600; font-size: 14px; color: #fff; font-family: var(--f-display); }
.tg-status { font-size: 11px; color: #7D8B99; margin-top: 2px; }
.tg-messages {
  flex: 1; overflow-y: auto;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.msg {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.4;
  font-family: var(--f-text);
  word-wrap: break-word;
  animation: msgIn .28s ease-out both;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-driver {
  align-self: flex-end;
  background: var(--chat-bubble-out);
  color: var(--chat-bubble-out-text);
  border-bottom-right-radius: 4px;
}
.msg-bot-reply {
  align-self: flex-start;
  background: var(--chat-bubble-in);
  color: var(--chat-bubble-in-text);
  border-bottom-left-radius: 4px;
}
.tg-input {
  background: var(--chat-header);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: #7D8B99; font-size: 13px;
}
.tg-input-field {
  flex: 1; background: var(--chat-bg); border-radius: 18px; padding: 8px 14px;
}
.typing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 12px 14px; border-radius: 16px;
  background: var(--chat-bubble-in);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #7D8B99;
  animation: typing 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Hero variant: person */
.hero-person {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-person-img {
  position: absolute; inset: 0;
  background: var(--bg-2);
}
.hero-person-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* zoom on the face and lift the crop up so the head sits in the
     upper area, clear of the quote plate at the bottom */
  transform: scale(1.35) translateY(-14%);
  transform-origin: center top;
}
.hero-person-placeholder {
  font-family: var(--f-mono); font-size: 12px; color: var(--ink-3);
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.hero-person-quote {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 36px 32px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.92) 45%);
  color: #fff;
}
.hero-person {
  max-width: 100%;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  border-radius: 24px;
}
.hero-person-quote {
  background: linear-gradient(180deg, transparent, rgba(20,20,20,0.95) 45%);
}
.hero-person-quote-text {
  font-family: var(--f-display);
  font-size: 22px; line-height: 1.25; font-weight: 500;
  text-wrap: balance;
  letter-spacing: -0.01em;
}
.hero-person-quote-meta {
  margin-top: 14px; font-size: 13px; color: rgba(255,255,255,0.65);
}

/* Hero variant: dashboard */
.hero-dash {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
}
.hero-dash-top {
  display: flex; justify-content: space-between; align-items: baseline;
}
.hero-dash-title { font-family: var(--f-display); font-size: 15px; font-weight: 600; }
.hero-dash-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-3);
}
.hero-dash-live::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: #4FB949;
  box-shadow: 0 0 0 0 rgba(79, 185, 73, 0.4);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 185, 73, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(79, 185, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 185, 73, 0); }
}
.hero-dash-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.hero-dash-stat {
  background: var(--surface-2);
  padding: 20px;
}
.hero-dash-stat-num {
  font-family: var(--f-display);
  font-size: 36px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.03em;
  line-height: 1;
}
.hero-dash-stat-label {
  font-size: 13px; color: var(--ink-3); margin-top: 8px;
}
.hero-dash-chart {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.hero-dash-chart-title {
  font-size: 13px; color: var(--ink-3);
}
.hero-dash-topics { display: flex; flex-direction: column; gap: 10px; }
.hero-dash-topic {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
  color: var(--ink);
}
.hero-dash-topic-bar {
  flex: 1; height: 6px; background: var(--line); border-radius: 3px;
  overflow: hidden;
}
.hero-dash-topic-fill {
  height: 100%; background: var(--accent-2);
}
.hero-dash-topic-num {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2); font-size: 12px;
  min-width: 36px; text-align: right;
}

/* pains */
.pains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 720px) { .pains-grid { grid-template-columns: 1fr; } }
.pain {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.pain::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 3px; height: 56px;
  background: #D94C3A;
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity .2s ease, height .25s ease;
}
.pain:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pain:hover::before { opacity: 1; height: 100%; }
.pain:nth-child(1) { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.pain:nth-child(4) { background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%); }
.pain-tag { display: none; }
.pain-content { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; }
.pain h3 {
  font-family: var(--f-display);
  font-size: 26px; font-weight: 600; line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: pretty;
  position: relative; z-index: 1;
}
.pain p { color: var(--ink-2); font-size: 17px; margin: 0; line-height: 1.55; position: relative; z-index: 1; }
.pain h3 em {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-2);
}
.pain p em {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
}

.pain h3 em {
  color: #7A4F00;
}
.pain-art {
  position: absolute;
  right: -36px; bottom: -40px;
  width: 240px; height: auto;
  color: rgba(217, 76, 58, 0.28);
  pointer-events: none;
  z-index: 0;
}
.pain-art { color: rgba(190, 58, 40, 0.22); }

/* capabilities */
.cap-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
}
.cap-hero {
  position: relative;
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent-2) 18%, var(--surface)) 0%, var(--surface) 55%) !important;
  border-color: color-mix(in oklab, var(--accent-2) 30%, var(--line)) !important;
}
.cap-art {
  position: absolute;
  right: -28px; bottom: -28px;
  width: 140px; height: 140px;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
  color: var(--accent-2);
}
.cap-hero .cap-art { width: 280px; height: 280px; right: -40px; bottom: -50px; opacity: 0.35; }
.cap-art { opacity: 0.55; }
.cap-hero::after {
  content: none;
  position: absolute; top: 0; right: 0; width: 140px; height: 140px;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  opacity: 0.15; pointer-events: none;
}
@media (max-width: 980px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cap-grid { grid-template-columns: 1fr; } }
.cap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  min-height: 240px;
  display: flex; flex-direction: column; gap: 14px;
  transition: border-color .2s ease, transform .2s ease;
  position: relative;
  overflow: hidden;
}
.cap::before {
  content: '';
  position: absolute; top: 0; left: 0; width: 3px; height: 56px;
  background: var(--accent-2);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity .2s ease, height .25s ease;
}
.cap:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cap:hover::before { opacity: 1; height: 100%; }

.cap h3 {
  font-family: var(--f-display); font-size: 22px; font-weight: 600;
  line-height: 1.22; letter-spacing: -0.015em; margin: 0;
  text-wrap: balance;
  position: relative; z-index: 1;
}
.cap p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin: 0; position: relative; z-index: 1; }
.cap-hero {
  grid-row: span 2;
  min-height: 496px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: 40px;
}
.cap-hero h3 { font-size: 28px; }
.cap-hero p { font-size: 16px; }

/* demo dialog section — telegram desktop style */
.tg-desk {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  background: #1E1E20;
  border: 1px solid #2A2A2D;
  border-radius: 18px;
  overflow: hidden;
  min-height: 620px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
}
@media (max-width: 900px) {
  .tg-desk { grid-template-columns: 1fr; min-height: 0; }
}

.tg-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 28px 0;
  display: flex; flex-direction: column;
}
.tg-sidebar-title {
  padding: 0 28px 22px;
  font-family: var(--f-display);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tg-sidebar-list { display: flex; flex-direction: column; padding: 0 12px; gap: 2px; }
.tg-sidebar-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  font-family: var(--f-display);
  font-size: 16px; font-weight: 500;
  letter-spacing: -0.005em;
  text-align: left;
  transition: background .15s ease, color .15s ease;
  position: relative;
}
.tg-sidebar-emoji { font-size: 18px; width: 20px; display: inline-flex; justify-content: center; }
.tg-sidebar-item:hover { background: var(--surface-2); color: var(--ink); }
.tg-sidebar-item.active {
  background: color-mix(in oklab, var(--accent-2) 22%, transparent);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0 10px 10px 0;
  margin-left: 0;
}
.tg-sidebar-item.active::before {
  content: '';
  position: absolute;
  left: -12px; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent-2);
  border-radius: 0 2px 2px 0;
}

.tg-pane {
  background: #1E1E20;
  display: flex; flex-direction: column;
  min-height: 620px;
}
.tg-pane-header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 28px;
  border-bottom: 1px solid #2A2A2D;
}
.tg-pane-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}
.tg-pane-avatar svg { width: 40px; height: 40px; }
.tg-pane-ident { flex: 1; }
.tg-pane-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  color: #F4F1EA;
  letter-spacing: -0.01em;
}
.tg-pane-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--accent-2);
  margin-top: 2px;
}
.tg-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2);
}
.tg-pane-replay {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #2A2A2D;
  color: #7C7A74;
  background: transparent;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.tg-pane-replay:hover { color: var(--accent-2); border-color: var(--accent-2); }

.tg-pane-messages {
  flex: 1;
  padding: 24px 28px 8px;
  display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto;
  min-height: 400px;
  max-height: 520px;
}
.tg-msg {
  max-width: 78%;
  padding: 14px 18px 10px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
  animation: tgMsgIn .3s ease-out both;
  position: relative;
}
@keyframes tgMsgIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.tg-msg-out {
  align-self: flex-end;
  background: #2C5A8C;
  color: #fff;
  border-bottom-right-radius: 6px;
}
.tg-msg-in {
  align-self: flex-start;
  background: #2A2A2D;
  color: #E8E6E0;
  border-bottom-left-radius: 6px;
}
.tg-msg-body { white-space: pre-line; }
.tg-msg-time {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
  text-align: right;
}
.tg-msg-in .tg-msg-time { color: rgba(232,230,224,0.4); }
.tg-msg-typing { padding: 16px 18px; }
.tg-typing { display: inline-flex; align-items: center; gap: 4px; }
.tg-typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #7C7A74;
  animation: tgTyping 1.2s infinite ease-in-out;
}
.tg-typing span:nth-child(2) { animation-delay: .15s; }
.tg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes tgTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.tg-pane-input {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 28px 20px;
  border-top: 1px solid #2A2A2D;
}
.tg-pane-input-field {
  flex: 1;
  background: #141416;
  border-radius: 22px;
  padding: 12px 18px;
  color: #6E6E74;
  font-size: 14px;
}
.tg-pane-input-send {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #141414;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}

/* light palette override — keep chat dark regardless */

/* calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-inputs {
  padding: 40px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 28px;
}
@media (max-width: 900px) { .calc-inputs { border-right: none; border-bottom: 1px solid var(--line); } }
.calc-field { display: flex; flex-direction: column; gap: 12px; }
.calc-field-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-field-label {
  font-size: 14px; color: var(--ink-2);
}
.calc-field-value {
  font-family: var(--f-display);
  font-variant-numeric: tabular-nums;
  font-size: 22px; font-weight: 700; color: var(--accent-2);
  letter-spacing: -0.01em;
}
.calc-field-value { color: #7A4F00; }
.calc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 3px;
  background: var(--line);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px;
  background: var(--accent-2);
  border-radius: 50%;
  cursor: grab;
  border: none;
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent-2) 18%, transparent);
  transition: box-shadow .15s ease;
}
.calc-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 10px color-mix(in oklab, var(--accent-2) 22%, transparent); }
.calc-slider::-moz-range-thumb {
  width: 22px; height: 22px; background: var(--accent-2); border-radius: 50%;
  cursor: grab; border: none;
  box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent-2) 18%, transparent);
}

/* calc toggle card — pill-style row with real switch */
.calc-toggle-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in oklab, var(--accent-2) 3%, var(--bg-2));
  margin-bottom: 8px;
}
.calc-toggle-card-label { font-size: 15px; color: var(--ink); font-weight: 500; }
.calc-switch { position: relative; width: 52px; height: 30px; flex: 0 0 auto; }
.calc-switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; inset: 0; z-index: 2; }
.calc-switch-track {
  position: absolute; inset: 0; background: var(--line-2); border-radius: 999px;
  transition: background .18s ease;
}
.calc-switch-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #0F0F10;
  transition: transform .18s ease;
}
.calc-switch input:checked ~ .calc-switch-track { background: var(--accent-2); }
.calc-switch input:checked ~ .calc-switch-thumb { transform: translateX(22px); }
.calc-output {
  padding: 40px;
  background: var(--bg-2);
  display: flex; flex-direction: column; gap: 24px;
}
.calc-output { background: var(--surface-2); }
.calc-headline {
  font-size: 15px; color: var(--ink-2);
  margin-bottom: -4px;
}
.calc-big-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px;
  line-height: 1;
}
.calc-big {
  font-family: var(--f-display);
  font-size: clamp(48px, 6.4vw, 80px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.calc-big-unit {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.calc-result-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.calc-result-row-label { color: var(--ink-2); }
.calc-result-row-value {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.calc-result-row-value strong {
  color: var(--ink); font-weight: 600;
}

/* logo marquee */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 50s linear infinite;
  width: max-content;
  align-items: center;
}
.marquee-logo {
  font-family: var(--f-display); font-weight: 700;
  color: var(--ink-2);
  font-size: 28px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity .2s ease;
}
.marquee-logo:hover { opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* roadmap — visual road through the onboarding */
.roadmap {
  position: relative;
  padding: 40px 0 20px;
  margin-top: 24px;
}
.roadmap-stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}
.roadmap-road {
  position: absolute;
  /* Align to pin centers: pins are 64px tall, start at top=40px -> center=72 */
  top: 72px;
  /* Span from center of first pin to center of last pin */
  left: calc(12.5% + 8px);
  right: calc(12.5% + 8px);
  height: 0;
  border-top: 3px dashed color-mix(in oklab, var(--accent-2) 55%, transparent);
  z-index: 0;
}
@media (max-width: 760px) {
  .roadmap-road { display: none; }
  .roadmap-stops { grid-template-columns: 1fr; gap: 36px; }
}
.rm-stop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rm-pin {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #141414;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 0 0 10px var(--bg);
  position: relative;
  z-index: 2;
}
.rm-pin { color: #1A1A1A; box-shadow: 0 0 0 10px var(--bg-2); }
.bg-alt .rm-pin { box-shadow: 0 0 0 10px var(--bg-2); }
.rm-pin::after { content: none; }
.rm-day {
  margin-top: 22px;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rm-day { color: var(--ink-3); }
.rm-title {
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.rm-desc {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 14px; line-height: 1.55;
  max-width: 240px;
}

/* cta */
.cta-block {
  background: var(--accent-2);
  color: #141414;
  border-radius: var(--radius);
  padding: 72px 56px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) { .cta-block { grid-template-columns: 1fr; padding: 48px 32px; } }
.cta-block h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(32px, 4vw, 48px); line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.cta-sub {
  margin-top: 20px; font-size: 16px; line-height: 1.5; max-width: 440px;
  color: rgba(20,20,20,0.72);
}
.cta-form { display: flex; flex-direction: column; gap: 10px; }
.cta-input {
  width: 100%;
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: var(--f-text); font-size: 15px;
  color: #141414;
  outline: none;
  transition: border-color .15s ease, background .15s ease;
}
.cta-input::placeholder { color: rgba(20,20,20,0.45); }
.cta-input:focus { border-color: #141414; background: rgba(0,0,0,0.03); }
.cta-input.error { border-color: #B2281E; }
.cta-submit {
  background: #141414; color: #fff;
  padding: 14px 18px; border-radius: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 6px;
}
.cta-submit:hover { background: #000; }
.cta-tg {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  font-family: var(--f-display); font-weight: 500; font-size: 14px;
  color: rgba(20,20,20,0.72);
  text-align: center;
}
.cta-tg:hover { color: #141414; }
.cta-success {
  background: rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px; padding: 24px;
  font-family: var(--f-display); font-weight: 500; font-size: 16px;
}

/* footer */
.footer {
  padding: 40px 0 64px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 96px;
}
.footer-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer a:hover { color: var(--ink); }

/* tweaks panel */
.tweaks-panel {
  position: fixed; right: 20px; bottom: 20px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 20px;
  width: 280px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.25);
  font-size: 13px;
}
.tweaks-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
  font-family: var(--f-display); font-weight: 600; font-size: 14px;
}
.tweaks-head .mono { color: var(--ink-3); font-size: 11px; font-weight: 400; }
.tweak-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tweak-label { font-size: 11px; color: var(--ink-3); }
.tweak-options { display: flex; gap: 4px; flex-wrap: wrap; }
.tweak-opt {
  flex: 1; min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink-2);
  background: var(--bg-2);
  white-space: nowrap;
  text-align: center;
  transition: all .15s ease;
}
.tweak-opt:hover { border-color: var(--line-2); color: var(--ink); }
.tweak-opt.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* utils */
.bg-alt { background: var(--bg-2); }
.bg-alt { background: var(--bg-2); }

/* accent cap-hero text color for the yellow tint */
.cap-hero h3 { color: var(--ink); }
/* removed cap-hero-badge — replaced with illustration */

/* accent word — solid yellow highlight on the key phrase */
.section-head h2 em, .pain-card h3 em, .cap h3 em {
  font-style: normal;
  color: var(--accent-2);
  font-weight: inherit;
}
.section-head h2 em, .pain-card h3 em, .cap h3 em {
  background: linear-gradient(180deg, transparent 62%, var(--accent-2) 62%, var(--accent-2) 92%, transparent 92%);
  color: inherit;
  padding: 0 3px;
}

/* ========== Colorful palette — pain (red) / cap (green) accents ==========
   Only active when data-palette="colorful". Pure additions, never touch
   the other palettes. Tones are same saturation family as accent yellow,
   so they read as one system. */


















/* channels */
.channels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 800px) { .channels-grid { grid-template-columns: 1fr; } }
.ch-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 8px;
}
.ch-card-title {
  font-family: var(--f-display); font-weight: 600; font-size: 22px;
  letter-spacing: -0.015em; color: var(--ink);
}
.ch-card-sub { color: var(--ink-2); font-size: 15px; margin-bottom: 12px; }
.ch-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-pill {
  display: inline-flex; align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  background: var(--surface-2);
  color: var(--ink);
}
.ch-pill-muted { color: var(--ink-3); background: transparent; border-style: dashed; }
.ch-pill-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
}
.ch-pill-icon svg {
  flex-shrink: 0;
  display: block;
}
.channels-cta { margin-top: 28px; display: flex; justify-content: center; }

/* proof */
.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
@media (max-width: 900px) { .proof-stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .proof-stats { grid-template-columns: 1fr; } }
.proof-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.proof-stat-n {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--accent-2);
  letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.proof-stat-l { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.proof-reviews {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
@media (max-width: 800px) { .proof-reviews { grid-template-columns: 1fr; } }
.proof-review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.proof-review-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.proof-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-2); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.02em;
}
.proof-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.proof-role { color: var(--ink-3); font-size: 13px; }
.proof-text { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; text-wrap: pretty; }





/* ============================================================
   LIGHT PALETTE — MINIMAL SYSTEM
   Strategy: monochrome ink + neutral grays. Yellow saffron used
   ONLY on the hero primary button. Decorative illustrations
   become near-invisible texture. Highlights → none. Marker bars
   → none. Cap-hero → light card, not dark. Final CTA → light.
   ============================================================ */

/* 1. Kill ALL highlight/marker emphasis everywhere. Use ink + weight. */
em, .hero h1 em, .section-head h2 em, .pain-card h3 em, .pain h3 em, .pain p em, .cap h3 em, .cap-hero h3 em {
  background: none;
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
  padding: 0;
}

/* 2. Primary button — saffron yellow that COMMANDS attention.
   Bigger, bolder, with depth. */
.btn-primary {
  background: var(--accent-2);
  color: var(--ink);
  border-color: transparent;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 22px;
  box-shadow:
    0 1px 0 0 rgba(184,134,11,0.25) inset,
    0 0 0 1px rgba(184,134,11,0.18),
    0 8px 20px -8px rgba(255,196,0,0.55),
    0 2px 6px rgba(24,24,27,0.08);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover {
  background: #FFD24A;
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 0 rgba(184,134,11,0.3) inset,
    0 0 0 1px rgba(184,134,11,0.22),
    0 14px 26px -8px rgba(255,196,0,0.65),
    0 4px 10px rgba(24,24,27,0.1);
}
.btn-primary:active {
  transform: translateY(0);
}

/* 3. Numeric outputs use ink, not saffron. Avoids low-contrast olive. */
.calc-big, .calc-field-value, .proof-stat-n, .hero-meta-item strong {
  color: var(--ink);
}

/* 4. Final CTA block — light surface card, not dark slab. */
.cta-block {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.cta-block h2 { color: var(--ink); }
.cta-sub { color: var(--ink-2); }
.cta-input {
  background: #fff;
  border-color: rgba(0,0,0,0.1);
  color: var(--ink);
}
.cta-input::placeholder { color: var(--ink-3); }
.cta-input:focus {
  border-color: var(--ink);
  background: #fff;
}
.cta-submit {
  background: var(--accent-2);
  color: var(--ink);
  font-weight: 700;
  border-color: transparent;
  box-shadow:
    0 1px 0 0 rgba(184,134,11,0.25) inset,
    0 0 0 1px rgba(184,134,11,0.18),
    0 10px 22px -8px rgba(255,196,0,0.55);
}
.cta-submit:hover {
  background: #FFD24A;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 0 rgba(184,134,11,0.3) inset,
    0 0 0 1px rgba(184,134,11,0.22),
    0 16px 28px -8px rgba(255,196,0,0.65);
}
.cta-tg { color: var(--ink-2); }
.cta-tg:hover { color: var(--ink); }
.cta-success {
  background: var(--bg);
  border-color: var(--line);
  color: var(--ink);
}

/* 5. Logo mark — neutral ink tile. */
.logo-mark {
  background: var(--ink);
  color: #FFFFFF;
}

/* 6. Decorative illustrations — quiet texture, not events. */
.pain-art, .cap-art {
  color: var(--ink-3);
  opacity: 0.10;
}
.cap-hero .cap-art { opacity: 0.14; }

/* 7. Capability hero — light ink-tinted card, NOT dark. */
.cap-hero {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
  color: var(--ink);
}
.cap-hero h3 { color: var(--ink); }
.cap-hero p { color: var(--ink-2); }
.cap-hero h3 em {
  color: var(--ink);
  font-weight: 800;
  background: none;
}

/* 8. Roadmap road — hairline neutral. Pins keep ink with subtle ring. */
.roadmap-road {
  border-top-color: var(--line-2);
  border-top-style: solid;
}
.rm-pin {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 0 0 8px var(--bg);
}
.bg-alt .rm-pin { box-shadow: 0 0 0 8px var(--bg-2); }

/* 9. Sliders — neutral thumb. */
.calc-slider::-webkit-slider-thumb {
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.08);
}
.calc-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 7px rgba(24, 24, 27, 0.10);
}
.calc-slider::-moz-range-thumb {
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.08);
}

/* 10. Pain card hover bar — ink, not red. */
.pain::before { background: var(--ink); }
.pain {
  background: var(--surface);
}
.pain:nth-child(1), .pain:nth-child(4) {
  background: var(--surface);
}

/* 11. Cap card hover bar — ink. */
.cap::before { background: var(--ink); }

/* 12. Calc toggle card — clean white. */
.calc-toggle-card {
  background: var(--surface);
  border-color: var(--line);
}
.calc-switch input:checked ~ .calc-switch-track {
  background: var(--ink);
}

/* 13. Proof avatar — neutral, not saffron. */
.proof-avatar {
  background: var(--ink);
  color: #FFFFFF;
}

/* 14. Marquee dot/logos — ink-3 quiet. */
.marquee-logo {
  color: var(--ink-3);
}

/* 15. Sticky nav — clean opaque white. */
.nav {
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  border-bottom-color: var(--line);
}

/* 16. Channels CTA "Подключить Парк AI" — was raw saffron pill, now
       neutral ink button. */
.channels-cta .btn-primary {
  background: var(--ink);
  color: #FFFFFF;
}
.channels-cta .btn-primary:hover {
  background: #000;
}

/* 17. Channel pills — neutral, no warm tint. */
.ch-pill {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.ch-pill-muted {
  color: var(--ink-3);
  background: transparent;
  border-color: var(--line-2);
}

/* 18. Calc output — clean off-white, no warm cream. */
.calc-output {
  background: var(--bg);
}

/* 19. Cards lift — softer shadow on white surface. */
.card, .pain, .cap, .ch-card, .proof-stat, .proof-review {
  box-shadow: 0 1px 0 rgba(24,24,27,0.02);
}

/* ============================================================
   LIGHT PALETTE — SECTION UNIFICATION
   One card grammar across pains / capabilities / channels /
   proof / calculator / timeline. Same padding, radius, border,
   no hover marker bars, no special-snowflake variants. The
   alternation between sections is just background tone (white
   page bg vs subtle gray bg-alt) — nothing more.
   ============================================================ */

/* Unified card token */
.pain, .cap, .ch-card, .proof-stat, .proof-review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px;
  min-height: 0;
  box-shadow: none;
  transition: border-color .18s ease;
}
.pain:hover, .cap:hover, .ch-card:hover, .proof-stat:hover, .proof-review:hover {
  border-color: var(--line-2);
  transform: none;
}
/* Kill all the hover marker bars — they're noise. */
.pain::before, .cap::before {
  display: none;
}
/* Kill section-specific gradient backgrounds on cards. */
.pain:nth-child(1), .pain:nth-child(4) {
  background: var(--surface);
}

/* Cap-hero — was a giant special card. Demote to a regular card.
   Span is fine, but no different surface, no different padding. */
.cap-hero {
  grid-row: span 2;
  background: var(--surface) !important;
  border-color: var(--line) !important;
  padding: 32px;
  min-height: 0;
}
.cap-hero h3 {
  font-size: 22px;
}
.cap-hero p {
  font-size: 14.5px;
}

/* Decorative illustrations — remove. They were fighting the text
   and adding inconsistency between cards (some had art, some had
   pills, some had numbers). Cleaner without. */
.pain-art, .cap-art {
  display: none;
}

/* Pain content max-width was clipping for art — now unconstrained. */
.pain-content {
  max-width: 100%;
}

/* Section heading — uniform size + spacing. */
.section-head {
  margin-bottom: 32px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section-head .sub {
  font-size: 16px;
  color: var(--ink-2);
  margin-top: 12px;
}

/* Card heading — uniform across pain / cap / channel / review. */
.pain h3, .cap h3, .ch-card-title {
  font-family: var(--f-display);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
}
/* Card body — uniform. */
.pain p, .cap p, .ch-card-sub, .proof-stat-l, .proof-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Proof stat number — uniform display size, ink color. */
.proof-stat-n {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.proof-stat-l {
  margin-top: 8px;
}

/* Hero meta — match card body rhythm. */
.hero-meta-item strong {
  font-size: 22px;
  font-weight: 700;
}

/* Channels: kill the gradient-y pill differentiation. */
.ch-pill {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg);
  border-color: var(--line);
  font-weight: 500;
}
.ch-pill-muted {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-2);
  color: var(--ink-3);
}

/* Calculator — match card grammar. */
.calc-grid {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.calc-inputs {
  padding: 32px;
  border-right-color: var(--line);
}
.calc-output {
  padding: 32px;
  background: var(--bg-2);
}
.calc-toggle-card {
  border-radius: 12px;
  padding: 14px 18px;
}

/* Final CTA — same card grammar, just larger. */
.cta-block {
  border-radius: 16px;
  padding: 56px 48px;
}

/* Roadmap pins — match card neutrality, smaller, ink. */
.rm-pin {
  width: 44px;
  height: 44px;
  font-size: 17px;
  font-weight: 700;
}
.roadmap-road {
  top: 62px;
  border-top-color: var(--line);
  border-top-style: dashed;
}
.rm-day {
  margin-top: 18px;
  font-family: var(--f-text);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-3);
}
.rm-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.rm-desc {
  font-size: 14px;
  line-height: 1.5;
}

/* Section padding — tight uniform rhythm. 32+32 = 64px between sections. */
section {
  padding: 32px 0 !important;
}
@media (max-width: 720px) {
  section { padding: 24px 0 !important; }
}

/* Hero — align top, no big top gap below sticky nav */
.hero {
  padding-top: 16px !important;
  padding-bottom: 32px !important;
}
.hero-grid {
  align-items: start;
  gap: 48px;
}
.hero-meta {
  margin-top: 28px;
}
.hero-cta {
  margin-top: 24px;
}
#cta {
  padding: 32px 0 48px !important;
}

/* Section heading — tighter bottom gap */
.section-head {
  margin-bottom: 20px;
}
.section-head::before {
  margin-bottom: 12px;
}

/* Logos sit tight under hero */
.logos-section {
  padding: 0 0 16px !important;
}
.logos-title {
  margin-bottom: 16px;
}

/* Brand pills row — replaces the scrolling marquee. Centered cluster. */
.brand-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--f-text);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
  transition: border-color .2s ease, transform .2s ease;
}
.brand-pill:hover {
  border-color: var(--ink-3);
  transform: translateY(-1px);
}
.brand-pill svg {
  flex-shrink: 0;
  display: block;
}

/* CTA channel tabs (Телефон / Почта / Telegram) inside final yellow CTA */
.cta-channel-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255,255,255,0.45);
  border: 1px solid rgba(24,24,27,0.12);
  border-radius: 10px;
  margin-top: 2px;
}
.cta-channel-tab {
  flex: 1;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-family: var(--f-text);
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(24,24,27,0.6);
  cursor: pointer;
  transition: all .15s ease;
}
.cta-channel-tab:hover { color: var(--ink); }
.cta-channel-tab.active {
  background: var(--ink);
  color: #fff;
}
.cta-fineprint {
  font-size: 12.5px;
  color: rgba(24,24,27,0.6);
  text-align: center;
  margin-top: 2px;
}

/* Alt section bg — same as page bg now (cards carry the color) */
.bg-alt {
  background: var(--bg);
}

/* Channels CTA — CENTERED (was right-aligned) */
.channels-cta {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.channels-cta .btn-primary {
  background: var(--accent-2);
  color: var(--ink);
  border-color: transparent;
  font-weight: 700;
  box-shadow:
    0 1px 0 0 rgba(184,134,11,0.25) inset,
    0 0 0 1px rgba(184,134,11,0.18),
    0 8px 18px -8px rgba(255,196,0,0.5);
}
.channels-cta .btn-primary:hover {
  background: #FFD24A;
  transform: translateY(-1px);
}

/* Calc field label / values — uniform with card body type. */
.calc-field-label {
  font-size: 14px;
  color: var(--ink-2);
}
.calc-field-value {
  font-size: 18px;
  font-weight: 600;
}
.calc-headline {
  font-size: 14px;
  color: var(--ink-2);
}
.calc-big {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.calc-big-unit {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
}
.calc-result-row {
  font-size: 14px;
}

/* Proof avatar — neutral, smaller. */
.proof-avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

/* Logos title — quieter. */
.logos-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--ink-3);
}
.marquee-logo {
  font-size: 22px;
  font-weight: 600;
  opacity: 0.55;
  color: var(--ink-2);
}

/* Hero — keep it punchy but trim heading scale to match new system. */
.hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.hero-lede {
  font-size: 17px;
  color: var(--ink-2);
}

/* Buttons — uniform height/padding. */
.btn {
  padding: 12px 18px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: 10px;
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

/* Nav — slightly tighter so it doesn't loom. */
.nav-inner {
  height: 60px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}

/* Footer — neutral. */
.footer {
  border-top-color: var(--line);
  margin-top: 0;
  padding: 32px 0 48px;
}

/* ============================================================
   LIGHT PALETTE — RE-INTRODUCE YELLOW AS SYSTEM SIGNAL
   Yellow is the brand. Used in 5 controlled places only:
   1) Hero CTA button (already done)
   2) Section eyebrow lines — small yellow rule above each h2
   3) ONE accent stat per row (proof) — yellow underline
   4) ONE feature card per section — soft yellow tint
   5) Calculator primary result card — yellow filled
   6) Marquee logos hover state
   This gives rhythm + brand recall without monotone dullness.
   ============================================================ */

/* Section eyebrow rule — small horizontal yellow line above heading */
.section-head {
  position: relative;
}
.section-head::before {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--accent-2);
  border-radius: 2px;
  margin-bottom: 20px;
}

/* ============================================================
   PER-SECTION PASTEL TINTS — uniform cards within a section,
   different pastel hue per section. Same family, same chroma,
   same lightness. Yellow lives only in hero highlight + final CTA.
   Section tints inspired by editorial pastel palette:
   - pains: warm peach/cream
   - capabilities: soft mint
   - channels: cool periwinkle
   - proof: warm sand
   ============================================================ */

/* ============================================================
   PAIN CARDS — uniform peach. Big illustration on right side.
   Card has a "Подробнее →" link for hierarchy & polish.
   ============================================================ */
.pains-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.pain {
  background: #FCE7E0 !important;
  border: 1px solid #F5C9BD !important;
  border-radius: 20px !important;
  padding: 32px !important;
  min-height: 240px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
  cursor: pointer;
}
.pain:hover {
  background: #F5D0C2 !important;
  border-color: #D9A18E !important;
  transform: translateY(-2px);
}
.pain:hover .pain-art {
  color: rgba(180, 60, 40, 0.45);
}
.pain-content {
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
  flex: 1;
}
.pain h3 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.pain p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
/* Big SVG illustration on the right — fills bottom-right corner. */
.pain-art {
  display: block !important;
  position: absolute !important;
  right: -10px;
  bottom: -10px;
  width: 200px;
  height: 200px;
  color: rgba(180, 60, 40, 0.30);
  z-index: 0;
  pointer-events: none;
}

/* CAPABILITIES — same pattern, mint tint, big art. */
.cap-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cap, .cap-hero {
  background: #E9F2EE !important;
  border: 1px solid #D1E3DA !important;
  border-radius: 20px !important;
  padding: 28px !important;
  min-height: 220px !important;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color .22s ease, border-color .22s ease, transform .22s ease;
  cursor: pointer;
}
.cap:hover, .cap-hero:hover {
  background: #D6E8DF !important;
  border-color: #A8C9B8 !important;
  transform: translateY(-2px);
}
.cap:hover .cap-art, .cap-hero:hover .cap-art {
  color: rgba(46, 125, 95, 0.5);
}
.cap-hero {
  grid-row: span 2;
  min-height: 460px !important;
  padding: 36px !important;
}
.cap > h3, .cap-hero > h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.015em;
  position: relative;
  z-index: 2;
  max-width: 75%;
}
.cap-hero > h3 {
  max-width: 85%;
}
.cap > p, .cap-hero > p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
  position: relative;
  z-index: 2;
  max-width: 80%;
}
.cap-hero > p {
  font-size: 15.5px;
  max-width: 90%;
}
.cap-art {
  display: block !important;
  position: absolute !important;
  right: -16px;
  bottom: -16px;
  width: 180px;
  height: 180px;
  color: rgba(46, 125, 95, 0.34);
  z-index: 0;
  pointer-events: none;
}
.cap-hero .cap-art {
  width: 280px;
  height: 280px;
  right: -36px;
  bottom: -50px;
  opacity: 1;
  color: rgba(46, 125, 95, 0.28);
}
@media (max-width: 980px) {
  .cap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .cap-grid { grid-template-columns: 1fr; }
  .pains-grid { grid-template-columns: 1fr; }
  /* Hide placeholder text on mobile so it doesn't collide with the quote */
  .hero-person-placeholder { display: none; }
  /* Mobile hero image — better proportions */
  .hero-person { aspect-ratio: 4 / 3.6; }
  .pain { min-height: 220px; padding: 24px !important; }
  .pain-content { max-width: 100%; }
  .pain-art { opacity: 0.5; }
}

/* Black headings — no gold em, no underline. Plain ink. */
.pain h3 em, .cap h3 em, .cap-hero h3 em {
  background: none !important;
  color: var(--ink) !important;
  font-style: normal;
  font-weight: 700;
  padding: 0;
}
/* No bold/em styling inside body copy. Plain text. */
.pain p em, .pain p strong, .cap p em, .cap p strong, .cap-hero p em, .cap-hero p strong {
  background: none !important;
  color: inherit !important;
  font-style: normal;
  font-weight: inherit;
  padding: 0;
}

/* Section heading em — yellow underline via text-decoration (clean, no trailing dot) */
.section-head h2 em {
  background: none !important;
  color: var(--ink) !important;
  font-weight: 700;
  font-style: normal;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 6px;
  text-underline-offset: -1px;
  text-decoration-skip-ink: none;
}

/* Hero h1 em — same approach */
.hero h1 em {
  background: none;
  color: var(--ink);
  font-weight: 700;
  font-style: normal;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 8px;
  text-underline-offset: -2px;
  text-decoration-skip-ink: none;
}

/* Channels — uniform periwinkle cards */
.ch-card {
  background: #ECEDF6;
  border-color: #D8DBED;
}
.ch-card:hover { border-color: #BFC3DD; }

/* Proof — uniform sand cards (stats and reviews same family) */
.proof-stat, .proof-review {
  background: #F4EFE5;
  border-color: #E5DCC9;
}
.proof-stat:hover, .proof-review:hover {
  border-color: #D4C7AC;
}

/* Channel pills — match section tint */
.ch-pill {
  background: #FFFFFF;
  border-color: #D8DBED;
  color: var(--ink);
}
.ch-pill-muted {
  background: transparent;
  border-style: dashed;
  border-color: #BFC3DD;
  color: var(--ink-3);
}

/* Hero h1 em — yellow underline (only place yellow appears in hero text) */
.hero h1 em {
  background: linear-gradient(180deg, transparent 70%, var(--accent-2) 70%, var(--accent-2) 94%, transparent 94%);
  color: var(--ink);
  font-weight: 700;
  padding: 0 2px;
}

/* Proof stat number — uniform ink, no per-card variation */
.proof-stat .proof-stat-n {
  color: var(--ink);
  white-space: nowrap;
}

/* ============================================================
   CALCULATOR — fully styled output cards
   ============================================================ */
.calc-output {
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
}
.calc-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calc-rcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.calc-rcard-eyebrow {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  font-weight: 500;
}
.calc-rcard-num {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.calc-rcard-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.calc-rcard-sub {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 2px;
}

/* Primary result — yellow filled card. THE moment in calculator. */
.calc-rcard-primary {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: var(--ink);
  padding: 22px 24px;
}
.calc-rcard-primary .calc-rcard-eyebrow {
  color: rgba(24, 24, 27, 0.65);
}
.calc-rcard-primary .calc-rcard-num {
  font-size: 32px;
  color: var(--ink);
  flex-wrap: nowrap;
}
.calc-rcard-primary .calc-rcard-unit {
  white-space: nowrap;
}
.calc-rcard-primary .calc-rcard-unit {
  color: rgba(24, 24, 27, 0.7);
}
.calc-rcard-primary .calc-rcard-sub {
  color: rgba(24, 24, 27, 0.7);
}

/* Calc CTA button at bottom of output */
.calc-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  padding: 16px 28px;
  background: var(--accent-2);
  color: var(--ink);
  border: 1px solid color-mix(in oklab, var(--accent-2) 80%, var(--ink) 20%);
  border-radius: 12px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow:
    0 1px 0 0 rgba(0,0,0,0.04),
    0 8px 18px -8px rgba(255,196,0,0.5);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.calc-cta-btn::after {
  content: '→';
  font-weight: 600;
}
.calc-cta-btn:hover {
  background: #FFD24A;
  transform: translateY(-1px);
  box-shadow:
    0 2px 0 0 rgba(0,0,0,0.06),
    0 12px 24px -8px rgba(255,196,0,0.6);
}

/* Calc switch thumb — keep ink, but track gets yellow when active */
.calc-switch input:checked ~ .calc-switch-track {
  background: var(--accent-2);
}
.calc-switch-thumb {
  background: var(--ink);
}
.calc-switch input:checked ~ .calc-switch-thumb {
  background: var(--ink);
}

/* Slider track gets a yellow fill via gradient on input */
.calc-slider {
  height: 4px;
  background: var(--line);
}
.calc-slider::-webkit-slider-thumb {
  background: var(--ink);
  width: 18px; height: 18px;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--ink);
}

/* ============================================================
   DEMO CHAT — wrap dark chat in a soft warm container so it
   doesn't read as a black hole on cream. Add subtle yellow chrome.
   ============================================================ */
#demo, section:has(.tg-desk) {
  background: var(--bg-2);
}

.tg-desk {
  background: #FFFFFF;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -30px rgba(24,24,27,0.18);
  border-radius: 18px;
}
.tg-sidebar {
  background: var(--bg);
  border-right-color: var(--line);
}
.tg-sidebar-title {
  color: var(--ink-3);
}
.tg-sidebar-item {
  color: var(--ink-2);
  font-weight: 500;
}
.tg-sidebar-item:hover {
  background: var(--surface-2);
  color: var(--ink);
}
.tg-sidebar-item.active {
  background: color-mix(in oklab, var(--accent-2) 22%, transparent);
  color: var(--ink);
  font-weight: 700;
}
.tg-sidebar-item.active::before {
  background: var(--accent-2);
}
.tg-pane {
  background: #FFFFFF;
}
.tg-pane-header {
  border-bottom-color: var(--line);
}
.tg-pane-name {
  color: var(--ink);
}
.tg-pane-status {
  color: color-mix(in oklab, var(--accent-2) 70%, var(--ink));
}
.tg-dot {
  background: var(--accent-2);
}
.tg-pane-replay {
  border-color: var(--line);
  color: var(--ink-3);
}
.tg-pane-replay:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.tg-pane-messages {
  background: var(--bg);
}
.tg-msg-out {
  background: var(--accent-2);
  color: var(--ink);
}
.tg-msg-in {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}
.tg-msg-out .tg-msg-time {
  color: rgba(24,24,27,0.55);
}
.tg-msg-in .tg-msg-time {
  color: var(--ink-3);
}
.tg-typing span {
  background: var(--ink-3);
}
.tg-pane-input {
  border-top-color: var(--line);
  background: #FFFFFF;
}
.tg-pane-input-field {
  background: var(--bg);
  color: var(--ink-2);
}
.tg-pane-input-send {
  background: var(--accent-2);
  color: var(--ink);
}

/* ============================================================
   FINAL CTA — re-introduce yellow as full bg here.
   Cream landing earns the yellow finale. Confident close.
   ============================================================ */
.cta-block {
  background: linear-gradient(135deg, var(--accent-2) 0%, color-mix(in oklab, var(--accent-2) 88%, white) 100%);
  border: 1px solid color-mix(in oklab, var(--accent-2) 60%, var(--ink));
  color: var(--ink);
}
.cta-block h2 {
  color: var(--ink);
}
.cta-sub {
  color: rgba(24,24,27,0.72);
}
.cta-input {
  background: #fff;
  border-color: rgba(24,24,27,0.18);
  color: var(--ink);
}
.cta-input::placeholder {
  color: rgba(24,24,27,0.4);
}
.cta-input:focus {
  border-color: var(--ink);
  background: #fff;
}
.cta-submit {
  background: var(--ink);
  color: #FFFFFF;
}
.cta-submit:hover {
  background: #000;
}
.cta-tg {
  color: rgba(24,24,27,0.72);
}
.cta-tg:hover {
  color: var(--ink);
}
.cta-success {
  background: rgba(255,255,255,0.5);
  border-color: rgba(24,24,27,0.15);
  color: var(--ink);
}

/* Roadmap — ALL pins get yellow accent (was last-child only) */
.rm-stop .rm-pin {
  background: var(--accent-2);
  color: var(--ink);
}

/* Logos marquee — hover restores full color/contrast */
.marquee-logo:hover {
  color: var(--ink);
  opacity: 1;
}


/* ————————————————————————————————————————————————
   Production overrides (refactor 2026-05-02)
———————————————————————————————————————————————— */

/* Telegram button — white with blue icon */
.btn-tg { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-tg:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-tg svg { color: #2AABEE; }

/* Pains — text only, no padded space for art */
.pain {
  padding: 32px;
  min-height: auto;
  display: flex; flex-direction: column;
  gap: 14px;
  justify-content: flex-start;
}
.pain-content { max-width: 100%; }
.pain h3 { font-size: 26px; line-height: 1.2; text-wrap: pretty; }
.pain p { font-size: 17px; line-height: 1.55; }
.pain-art { display: none; }

/* Capabilities — text only, no padded space for art */
.cap {
  padding: 28px;
  min-height: auto;
  gap: 14px;
}
.cap h3 { font-size: 24px; line-height: 1.22; }
.cap p { font-size: 16px; line-height: 1.6; }
.cap-hero { padding: 36px; }
.cap-hero h3 { font-size: 30px; }
.cap-hero p { font-size: 17px; }
.cap-art { display: none; }
.cap-hero::after { display: none; }

/* CTA form — landing-bg inputs, channel-tab pill */
.cta-input { background: var(--bg); border-color: rgba(0,0,0,0.1); }
.cta-input:focus { border-color: #141414; background: var(--bg); }
.cta-channel-tabs {
  display: flex;
  background: var(--bg);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}
.cta-channel-tab {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-family: var(--f-display); font-weight: 600; font-size: 14px;
  color: rgba(20,20,20,0.55);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cta-channel-tab:hover { color: #141414; }
.cta-channel-tab.active { background: #141414; color: #fff; }

/* Demo sidebar — compact chip grid on tablet/narrow desktop */
@media (max-width: 1200px) {
  .tg-desk { grid-template-columns: 1fr; min-height: 0; }
  .tg-sidebar {
    background: var(--bg) !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 18px 16px;
  }
  .tg-sidebar-title { padding: 0 4px 12px; color: var(--ink-3) !important; }
  .tg-sidebar-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0;
  }
  .tg-sidebar-item {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 8px;
    border-left: 0;
    gap: 8px;
    color: var(--ink-2) !important;
  }
  .tg-sidebar-item:hover {
    background: var(--surface-2) !important;
    color: var(--ink) !important;
  }
  .tg-sidebar-item.active::before { display: none; }
  .tg-sidebar-item.active {
    border-radius: 8px;
    background: color-mix(in oklab, var(--accent-2) 22%, transparent) !important;
    color: var(--ink) !important;
  }
  .tg-sidebar-emoji { font-size: 14px; width: 16px; }
}
@media (max-width: 700px) {
  .tg-sidebar-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .tg-sidebar-list { grid-template-columns: 1fr; }
}

/* Hero — photo height matches left column (no empty space under metrics) */
.hero-grid { align-items: stretch; }
.hero-grid > div:last-child { display: flex; }
.hero-person {
  aspect-ratio: auto;
  height: 100%;
  width: 100%;
  max-width: 100%;
  min-height: 480px;
}
@media (max-width: 980px) {
  .hero-person { aspect-ratio: 4 / 4.4; min-height: 0; }
}

/* ————————————————————————————————————————————————
   Pains — 1-3 grid, em highlight in headings only
———————————————————————————————————————————————— */

/* Override pastel-tints (line ~1907) — neutral cards */
.pains-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}
/* 1 - 3 layout: first card spans all 3 columns, rest sit in row 2 */
.pain:nth-child(1) {
  grid-column: 1 / -1 !important;
}

.pain,
.pain:nth-child(1),
.pain:nth-child(4) {
  background: #fff !important;
  border: 1px solid #EAE6DC !important;
  border-radius: var(--radius) !important;
  padding: 32px 36px !important;
  display: block !important;
  position: relative;
  overflow: hidden;
  min-height: 200px;
  cursor: default;
}
.pain::before { display: none !important; }
.pain:hover {
  background: #fff !important;
  border-color: #D9D2BF !important;
  transform: translateY(-2px);
}

.pain-content {
  position: relative;
  z-index: 2;
  max-width: 100%;
}

/* Headings & paragraph */
.pain h3 {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.22 !important;
  letter-spacing: -0.015em;
  margin: 0 0 14px 0;
  color: var(--ink) !important;
}
.pain:nth-child(1) h3 {
  font-size: 28px !important;
}
.pain p {
  color: var(--ink-2) !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
  margin: 0;
}

/* Em highlight — yellow underline, headings ONLY */
.pain h3 em {
  background: none !important;
  color: var(--ink) !important;
  font-style: normal;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 4px;
  text-underline-offset: -1px;
  text-decoration-skip-ink: none;
}
.pain p em {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
  text-decoration: none;
}

/* Hide leftover svg illustration */
.pain-art { display: none !important; }

@media (max-width: 980px) {
  .pains-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .pain:nth-child(1) { grid-column: 1 / -1 !important; }
}
@media (max-width: 640px) {
  .pains-grid { grid-template-columns: 1fr !important; }
  .pain:nth-child(1) { grid-column: auto !important; }
  .pain { padding: 24px !important; min-height: 160px; }
  .pain h3,
  .pain:nth-child(1) h3 { font-size: 20px !important; }
}

/* Remove yellow eyebrow line above all section headings */
.section-head::before { display: none !important; }

/* Section headings — full width across the page */
.section-head h2 {
  max-width: 100%;
  text-wrap: balance;
}

/* Proof cards — neutral, no sand fill */
.proof-stat, .proof-review {
  background: #fff !important;
  border: 1px solid #EAE6DC !important;
}
.proof-stat:hover, .proof-review:hover {
  border-color: #D9D2BF !important;
}

/* Channel pills — 3 in a row, symmetrical layout for both sides */
.ch-pills {
  display: grid !important;
  grid-template-columns: repeat(3, max-content) !important;
  gap: 8px !important;
  align-items: center;
}
@media (max-width: 720px) {
  .ch-pills { grid-template-columns: repeat(2, max-content) !important; }
}

/* Hero — slightly bigger */
.hero {
  padding-top: 60px !important;
  padding-bottom: 68px !important;
}
.hero h1 {
  font-size: clamp(44px, 5.4vw, 70px) !important;
}
.hero-lede {
  font-size: 18px !important;
  margin-top: 26px !important;
  max-width: 510px !important;
}
.hero-cta { margin-top: 36px !important; }
.hero-meta { margin-top: 52px !important; gap: 44px !important; }
.hero-meta-item strong { font-size: 26px !important; }
.hero-person { min-height: 760px !important; }
@media (max-width: 980px) {
  .hero { padding-top: 48px !important; padding-bottom: 60px !important; }
  .hero h1 { font-size: clamp(38px, 7.5vw, 52px) !important; }
  /* photo card no longer locked to desktop height — track content on tablet/phone */
  .hero-person { min-height: 0 !important; }
}
@media (max-width: 600px) {
  .hero { padding-top: 32px !important; padding-bottom: 44px !important; }
  /* smaller floor so long words ("ИИ-поддержка") don't overflow narrow screens */
  .hero h1 {
    font-size: clamp(28px, 8.5vw, 40px) !important;
    line-height: 1.08 !important;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .hero-lede {
    font-size: 16px !important;
    max-width: 100% !important;
    margin-top: 18px !important;
  }
  /* full-width stacked CTAs instead of an awkward wrap */
  .hero-cta { gap: 10px !important; margin-top: 22px !important; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  /* keep all 3 metrics on one row — 3 equal columns, no wrap */
  .hero-meta {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    margin-top: 32px !important;
  }
  .hero-meta-item { font-size: 12px !important; }
  .hero-meta-item strong { font-size: 20px !important; }
  /* shorter, less letterbox-y photo on phones */
  .hero-person { aspect-ratio: 4 / 4 !important; }
  .hero-person-quote { padding: 24px 20px !important; }
  .hero-person-quote-text { font-size: 18px !important; }
}

/* CTA buttons across the page (not header) — bigger size */
.hero .btn,
.channels-cta .btn,
.cta-submit {
  padding: 18px 28px !important;
  font-size: 17px !important;
  border-radius: 12px !important;
}
.hero .btn svg,
.channels-cta .btn svg,
.cta-submit svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 600px) {
  .hero .btn,
  .channels-cta .btn,
  .cta-submit {
    padding: 16px 22px !important;
    font-size: 16px !important;
  }
}

/* ————————————————————————————————————————————————
   Capabilities — big number inline in heading
———————————————————————————————————————————————— */
.cap h3, .cap-hero h3 {
  line-height: 1.15 !important;
}
.cap-num {
  font-size: 2.2em;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  white-space: nowrap;
  vertical-align: -0.08em;
  margin: 0 0.04em;
  display: inline-block;
}
@media (max-width: 600px) {
  .cap-num { font-size: 1.8em; }
}

/* Em highlight inside cap headings — yellow underline, headings only */
.cap h3 em,
.cap-hero h3 em {
  background: none !important;
  color: var(--ink) !important;
  font-style: normal;
  font-weight: 700;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: var(--accent-2);
  text-decoration-thickness: 4px;
  text-underline-offset: -1px;
  text-decoration-skip-ink: none;
}
.cap p em,
.cap-hero p em {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
  text-decoration: none;
}

@media (max-width: 600px) {
  .cap-stat { font-size: 36px; margin-bottom: 12px; }
}
