:root {
  --bg: #f4f7fb;
  --paper: #ffffff;
  --ink: #163d8c;
  --blue: #177cc3;
  --text: #243044;
  --muted: #5c6b7a;
  --line: #d4e0ec;
  --soft: #e7eef6;
  --shadow: 0 28px 70px rgba(22, 61, 140, 0.12);
  --font: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --gutter: clamp(1.2rem, 5vw, 3.5rem);
  --pad: max(var(--gutter), calc((100% - var(--wrap)) / 2));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(23, 124, 195, 0.16), transparent 60%),
    radial-gradient(700px 380px at 90% 8%, rgba(22, 61, 140, 0.12), transparent 55%);
  pointer-events: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem var(--pad);
  background: rgba(244, 247, 251, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 224, 236, 0.7);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 220px;
}
.brand img { width: 36px; height: 40px; }
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 0.5rem; }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: #fff; }
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn.lg { padding: 0.85rem 1.4rem; font-size: 1rem; }

.hero-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
  gap: 3.2rem;
  align-items: center;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding: 4.5rem 0 3.4rem;
  text-align: left;
}
.hero-copy .lede {
  margin: 1.15rem 0 0;
  max-width: 36rem;
}
.hero-split .hero-actions { justify-content: flex-start; }
.hero-split h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.1rem);
}

.agent-demo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.demo-chrome span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4e0ec;
}
.demo-chrome span:nth-child(1) { background: #f0b4ae; }
.demo-chrome span:nth-child(2) { background: #f3d59a; }
.demo-chrome span:nth-child(3) { background: #b7e0c4; }
.demo-chrome b {
  margin-left: 0.45rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.demo-thread {
  padding: 1.1rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}
.demo-msg {
  align-self: flex-end;
  max-width: 88%;
  background: var(--ink);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 500;
  min-height: 2.6rem;
  opacity: 0;
  transform: translateY(8px);
}
.demo-msg.show {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.demo-msg .blink { color: rgba(255,255,255,0.7); }

.demo-think {
  align-self: stretch;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #f7fbfe, #fff);
  border-radius: 16px;
  padding: 0 0.9rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, max-height 0.4s ease, padding 0.35s ease, border-color 0.35s ease;
}
.demo-think.show {
  opacity: 1;
  max-height: 180px;
  padding: 0.75rem 0.9rem;
  border-color: var(--line);
  transform: none;
}
.think-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.think-dots { display: inline-flex; gap: 4px; }
.think-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: bounce 0.9s ease-in-out infinite;
}
.think-dots i:nth-child(2) { animation-delay: 0.12s; }
.think-dots i:nth-child(3) { animation-delay: 0.24s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.demo-think ul {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.demo-think li {
  font-size: 0.86rem;
  color: var(--muted);
  padding-left: 1.35rem;
  position: relative;
  opacity: 0;
  transform: translateX(-6px);
}
.demo-think li.on {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  color: var(--text);
}
.demo-think li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
}
.demo-think li.on::before {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 124, 195, 0.12);
}

.demo-answer {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  pointer-events: none;
}
.demo-answer.show {
  opacity: 1;
  max-height: 480px;
  overflow: visible;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease;
}
.demo-answer p {
  margin: 0 0 0.8rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}
.demo-answer p strong { color: var(--ink); }
.demo-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.demo-kpis div {
  background: var(--bg);
  border-radius: 12px;
  padding: 0.5rem 0.55rem;
}
.demo-kpis small { display: block; color: var(--muted); font-size: 0.68rem; }
.demo-kpis strong { color: var(--ink); font-size: 0.95rem; }
.demo-legend {
  display: flex;
  gap: 0.9rem;
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.demo-legend span::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
  margin-right: 0.3rem;
}
.demo-legend .alt::before { background: var(--ink); opacity: 0.55; }
.demo-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
  height: 92px;
  align-items: end;
}
.demo-bars > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  height: 100%;
  align-items: end;
  position: relative;
}
.demo-bars i {
  display: block;
  height: 0;
  border-radius: 4px 4px 2px 2px;
  background: var(--blue);
  align-self: end;
}
.demo-answer.show .demo-bars i {
  height: var(--h);
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.demo-bars i.cash { background: var(--ink); opacity: 0.45; }
.demo-bars em {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1.15rem;
  text-align: center;
  font-size: 0.68rem;
  font-style: normal;
  color: var(--muted);
}
.demo-chart { margin-bottom: 1.4rem; }
.demo-table {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.demo-table li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  opacity: 0;
  transform: translateY(6px);
}
.demo-answer.show .demo-table li {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.demo-answer.show .demo-table li:nth-child(1) { transition-delay: 0.15s; }
.demo-answer.show .demo-table li:nth-child(2) { transition-delay: 0.28s; }
.demo-answer.show .demo-table li:nth-child(3) { transition-delay: 0.4s; }
.demo-table b { color: var(--ink); }
.demo-table em { font-style: normal; color: var(--muted); font-size: 0.75rem; }
.eyebrow {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  color: var(--ink);
  font-weight: 700;
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), var(--ink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1.12;
}
.lede, .section-lead {
  max-width: 40rem;
  margin: 1.15rem auto 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: #fff;
  padding: 1.05rem 0;
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: slide 32s linear infinite;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: 1.02rem;
}
.marquee-track span::after {
  content: "·";
  margin-left: 3.5rem;
  color: var(--blue);
}
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

section { padding: 5.5rem 0; }
.why, .knows, .trust, .board-preview, .pricing, .contacts {
  width: min(var(--wrap), calc(100% - 2 * var(--gutter)));
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  text-align: left;
}
.contacts h2 { max-width: 14ch; }
.hero-copy .lede { margin-left: 0; margin-right: 0; }
.section-lead { margin-left: 0; margin-right: auto; }

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.4rem 1.2rem 1.5rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pipe-ask {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pipe-ask > small,
.pipe-stage > small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.ask-bubble {
  background: var(--ink);
  color: #fff;
  border-radius: 16px 16px 16px 4px;
  padding: 0.85rem 1.05rem;
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.4;
  min-height: 3.2rem;
  box-shadow: 0 10px 28px rgba(22, 61, 140, 0.18);
  opacity: 0.35;
  transform: translateY(6px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.pipe-ask.on .ask-bubble {
  opacity: 1;
  transform: none;
}
.pipe-ask.sent .ask-bubble {
  box-shadow: 0 0 0 4px rgba(23, 124, 195, 0.16), 0 10px 28px rgba(22, 61, 140, 0.18);
}
.ask-bubble .blink { color: rgba(255, 255, 255, 0.7); }

.pipe-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.pipe-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.source-stack, .process-node, .agent-node, .answer-node {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.pipe-stage.on .source-stack,
.pipe-stage.on .process-node,
.pipe-stage.on .agent-node,
.pipe-stage.on .answer-node {
  border-color: rgba(23, 124, 195, 0.45);
  box-shadow: 0 0 0 4px rgba(23, 124, 195, 0.08);
}

.source-stack { display: grid; gap: 0.4rem; padding: 0.5rem; }
.src {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 0.55rem;
  padding: 0.42rem 0.55rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid transparent;
  opacity: 0.55;
  transform: translateX(0);
  transition: opacity 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}
.src-icon {
  width: 48px;
  height: 32px;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  background: #fff;
}
.src[data-src="1c"] .src-icon,
.src[data-src="excel"] .src-icon {
  box-shadow: 0 1px 2px rgba(22, 61, 140, 0.12);
}
.src b { display: block; color: var(--ink); font-size: 0.86rem; line-height: 1.15; }
.src span { display: block; color: var(--muted); font-size: 0.68rem; }
.src.on {
  opacity: 1;
  border-color: var(--blue);
  transform: translateX(2px);
}

.process-node {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.1rem 0.85rem;
  background: #0f2748;
  color: #eaf4fc;
  overflow: hidden;
}
.process-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px dashed rgba(139, 189, 224, 0.45);
  margin-bottom: 0.7rem;
  opacity: 0.5;
}
.pipe-stage.on .process-ring {
  opacity: 1;
  animation: spin 2.4s linear infinite;
  border-color: #8bbde0;
}
.process-node strong {
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  z-index: 1;
}
.process-steps {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
}
.process-steps li {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8bbde0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 0.22rem 0.5rem;
  opacity: 0.4;
}
.process-steps li.on { opacity: 1; color: #fff; background: rgba(23, 124, 195, 0.45); }

.agent-node { padding: 0.85rem 0.85rem 0.75rem; background: #fff; }
.agent-now {
  margin: 0 0 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  min-height: 2.7rem;
}
.agent-roles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.28rem;
}
.agent-roles .role {
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.28rem 0.45rem;
  border-radius: 8px;
  opacity: 0.55;
  transition: opacity 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.agent-roles .role.active {
  opacity: 1;
  color: var(--ink);
  background: var(--soft);
  font-weight: 600;
}
.agent-roles .role.picked {
  opacity: 1;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
}
.agent-roles .role.picked::after {
  content: " выбран";
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}
.agent-roles .role.more { font-style: italic; }

.answer-node {
  padding: 0.95rem 0.9rem;
  background: #fff;
  opacity: 0.38;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.pipe-stage.on .answer-node {
  opacity: 1;
  transform: none;
}
.answer-node p {
  margin: 0 0 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
}
.answer-node p strong { color: var(--ink); }
.answer-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.answer-kpis div {
  background: var(--bg);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
}
.answer-kpis small { display: block; color: var(--muted); font-size: 0.66rem; }
.answer-kpis b { color: var(--ink); font-size: 1.05rem; }

.pipe-link {
  width: 42px;
  flex: 0 0 42px;
  position: relative;
  align-self: center;
  height: 2px;
  background: var(--line);
  margin: 1.6rem 0.15rem 0;
}
.pipe-link i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
}
.pipeline.running .pipe-link i {
  animation: packet 1.5s ease-in-out infinite;
}
.pipeline.running .pipe-link i:nth-child(2) { animation-delay: 0.5s; }
.pipeline.running .pipe-link i:nth-child(3) { animation-delay: 1s; }
@keyframes packet {
  0% { left: 0; opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .pipeline.running .pipe-link i,
  .pipe-stage.on .process-ring { animation: none; }
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.trust-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem 1.2rem;
}
.trust-grid h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-size: 1.08rem;
}
.trust-grid p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 0.95rem; }

.board-preview {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2.4rem;
  align-items: center;
}
.board-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.05rem;
}
.board-mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shadow);
  min-height: 560px;
}
.board-ask {
  background: var(--ink);
  color: #fff;
  border-radius: 14px 14px 14px 4px;
  padding: 0.7rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.4;
  min-height: 3.8rem;
  margin-bottom: 0.85rem;
  opacity: 0;
  transform: translateY(6px);
}
.board-ask.show {
  opacity: 1;
  transform: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.board-ask .blink { color: rgba(255, 255, 255, 0.7); }
.board-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0;
}
.board-bar.show {
  opacity: 1;
  transition: opacity 0.3s ease;
}
.board-bar em {
  font-style: normal;
  background: var(--soft);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.72rem;
  transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.board-bar em.pulse {
  background: var(--ink);
  color: #fff;
  transform: scale(1.04);
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}
.tile {
  position: relative;
  background: var(--bg);
  border-radius: 14px;
  padding: 0.7rem 0.75rem;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  z-index: 0;
}
.tile.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.tile.lift {
  z-index: 2;
  box-shadow: 0 10px 24px rgba(22, 61, 140, 0.16);
}
.tile.marked {
  outline: 1.5px solid #e24b4a;
  outline-offset: -1px;
}
.tile.drop {
  opacity: 0;
  transform: scale(0.88);
}
.tile-x {
  position: absolute;
  top: 0.35rem;
  right: 0.4rem;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: #e24b4a;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
}
.tile.marked .tile-x { opacity: 1; }
.tile small { color: var(--muted); font-size: 0.68rem; }
.kpi-tile strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  margin-top: 0.2rem;
}
.kpi-tile.wide { grid-column: span 2; }
.kpi-tile strong.flash,
.table-tile b.flash {
  animation: numflash 0.55s ease;
}
@keyframes numflash {
  0% { color: var(--blue); transform: translateY(2px); }
  100% { color: var(--ink); transform: none; }
}
.chart-tile { grid-column: 1 / -1; }
.board-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.32rem;
  height: 68px;
  align-items: end;
  margin-top: 0.45rem;
}
.board-bars i {
  display: block;
  height: 0;
  border-radius: 4px 4px 2px 2px;
  background: var(--blue);
}
.tile.in .board-bars i {
  height: var(--h);
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.board-mock.fresh .board-bars i {
  height: var(--h2);
  background: var(--ink);
}
.board-bars i:nth-child(even) { background: #8bbde0; }
.board-mock.fresh .board-bars i:nth-child(even) { background: var(--blue); opacity: 0.7; }
.table-tile { grid-column: span 2; }
.table-tile ul { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.table-tile li {
  display: flex;
  justify-content: space-between;
  padding: 0.28rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.table-tile b { color: var(--ink); }

.board-grid.arranged [data-id="rev"] { grid-column: 1; grid-row: 1; }
.board-grid.arranged [data-id="in"] { grid-column: 2; grid-row: 1; }
.board-grid.arranged [data-id="cash"] { grid-column: 3; grid-row: 1; }
.board-grid.arranged [data-id="ar"] { grid-column: 4; grid-row: 1; }
.board-grid.arranged [data-id="gap"] { grid-column: 1 / 3; grid-row: 2; }
.board-grid.arranged [data-id="chart"] { grid-column: 3 / 5; grid-row: 2; }
.board-grid.arranged [data-id="buyers"] { grid-column: 1 / 3; grid-row: 3; }
.board-grid.arranged [data-id="aging"] { grid-column: 3 / 5; grid-row: 3; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 1.6rem;
}
.why-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.3rem 1.2rem;
}
.why-grid h3 {
  margin: 0 0 0.5rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-size: 1.08rem;
}
.why-grid p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 0.95rem; }

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.6rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.price-card.featured {
  background: #c5d4e4;
  border-color: #a8bdd2;
  box-shadow: var(--shadow);
}
.price-badge {
  position: absolute;
  top: 1.05rem;
  right: 1.1rem;
  margin: 0;
  background: #ffd200;
  color: #111;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
}
.price-term {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-sum {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.price-sum small {
  margin-left: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.price-note {
  margin: 0.7rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.price-note strong { color: var(--ink); font-weight: 700; }
.price-feats {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  flex: 1;
}
.price-feats li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.4;
}
.price-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.price-card .btn { width: 100%; }

.contacts {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(320px, 1.1fr);
  gap: 2.4rem;
  align-items: start;
}
.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem 1.35rem 1.35rem;
  box-shadow: var(--shadow);
}
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}
.contact-form label.full { grid-column: 1 / -1; }
.contact-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(23, 124, 195, 0.35);
  border-color: var(--blue);
}
.contact-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.35rem;
}
.contact-status {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}
.contact-status.ok { color: #1f7a4d; }
.contact-status.err { color: #b42318; }

.footer {
  display: grid;
  gap: 1.15rem;
  padding: 1.6rem var(--pad) 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.footer strong {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-links { display: flex; gap: 1rem; align-items: center; }
.footer-legal {
  display: grid;
  gap: 0.22rem;
  max-width: 42rem;
  font-size: 0.84rem;
  line-height: 1.45;
}
.footer-legal p { margin: 0; }
.footer-legal a { color: var(--blue); }
.footer-copy {
  margin: 0;
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem var(--pad) 1.2rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: block; margin-left: auto; }
  .hero-split, .stage-card, .board-preview, .why-grid, .trust-grid, .price-grid, .contacts, .contact-form {
    grid-template-columns: 1fr;
  }
  .pipe-flow {
    flex-direction: column;
    gap: 0.2rem;
  }
  .pipe-link {
    width: 2px;
    height: 28px;
    flex: 0 0 28px;
    margin: 0.15rem auto;
    align-self: center;
  }
  .pipeline.running .pipe-link i {
    left: -3px;
    top: 0;
  }
  @keyframes packet {
    0% { top: 0; opacity: 0; }
    18% { opacity: 1; }
    82% { opacity: 1; }
    100% { top: calc(100% - 8px); opacity: 0; }
  }
  .hero-split { text-align: left; padding-top: 2.6rem; }
  .hero-split h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); }
  .hero-copy .lede { margin-left: 0; }
  .board-grid { grid-template-columns: 1fr 1fr; }
  .kpi-tile.wide, .chart-tile, .table-tile { grid-column: 1 / -1; }
  .board-grid.arranged [data-id="rev"],
  .board-grid.arranged [data-id="in"],
  .board-grid.arranged [data-id="cash"],
  .board-grid.arranged [data-id="ar"] { grid-column: auto; grid-row: auto; }
  .board-grid.arranged [data-id="gap"],
  .board-grid.arranged [data-id="chart"],
  .board-grid.arranged [data-id="buyers"],
  .board-grid.arranged [data-id="aging"] { grid-column: 1 / -1; grid-row: auto; }
  .board-mock { min-height: 0; }
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
