/* ============================================================
   сводно. — main stylesheet
   Палитра: Ночь + Мята + Янтарь
   Шрифты: Manrope (UI), JetBrains Mono (числа)
   ============================================================ */

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Surfaces — light */
  --bg:           #F6F7F9;
  --bg-elev:      #FFFFFF;
  --bg-sunken:    #ECEEF2;

  /* Ink */
  --ink:          #0B1220;
  --ink-2:        #1F2937;
  --ink-3:        #4B5563;
  --ink-4:        #94A3B8;

  /* Brand — мята */
  --primary:      #4F8A6C;
  --primary-soft: #B5D4C2;
  --primary-deep: #2A4F3C;

  /* Brand — янтарь (только логотип + 1 CTA) */
  --accent:       #B8762E;
  --accent-soft:  #E8C58A;
  --accent-deep:  #6E4416;
  --amber-2:      #E0A65A;

  /* Semantic */
  --pos:          #3D8A5F;
  --neg:          #E03B2E;
  --warn:         #E5B22A;

  /* Lines */
  --line:         #E2E6EC;
  --line-strong:  #C5CCD6;

  /* Night (для тёмных секций) */
  --night:        #0A1018;
  --night-elev:   #111927;
  --night-line:   #1F2937;
  --night-ink:    #ECF1F8;
  --night-ink-2:  #B6C0CE;
  --night-ink-3:  #6B7785;

  /* Type */
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --max:    1240px;
  --gutter: clamp(20px, 4vw, 40px);

  /* Radii */
  --r-pill: 999px;
  --r-lg:   16px;
  --r-md:   14px;
  --r-sm:   12px;

  /* Shadow */
  --shadow-card:  0 8px 32px rgba(11,18,32,0.06);
  --shadow-elev:  0 12px 40px rgba(11,18,32,0.10);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
}
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

/* tabular numbers globally for .num and mono */
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section   { padding: 110px 0; }
.section.tight { padding: 72px 0; }
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section.tight { padding: 56px 0; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 18px;
  display: inline-block;
}
.eyebrow.on-dark { color: var(--night-ink-3); }

h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.02em; }

.h-display {
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.h-2 {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.h-3 {
  font-size: clamp(22px, 1.8vw, 26px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.lead {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 640px;
}
.lead.on-dark { color: var(--night-ink-2); }

.muted { color: var(--ink-3); }

/* ============================================================
   LOGO
   ============================================================ */
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
}
.logo .dot {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 0.06em;
  vertical-align: baseline;
  transform: translateY(0.02em);
}
.logo.on-dark { color: var(--night-ink); }
.logo.on-dark .dot { background: var(--amber-2); }
.logo.lg { font-size: 32px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246,247,249,0);
  backdrop-filter: blur(0);
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(246,247,249,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-menu a {
  padding: 8px 12px;
  border-radius: var(--r-pill);
  transition: background .15s linear, color .15s linear;
}
.nav-menu a:hover { background: var(--bg-sunken); color: var(--ink); }
.nav-menu a.active { color: var(--primary-deep); }
.nav-cta {
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  transition: background .15s linear;
}
.nav-cta:hover { background: var(--primary-deep); color: var(--bg); }
.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 8px 12px;
}
.nav-login:hover { color: var(--ink); }

@media (max-width: 940px) {
  .nav-menu .hide-md { display: none; }
}
@media (max-width: 600px) {
  .nav-menu { gap: 0; }
  .nav-menu .hide-sm { display: none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background .15s linear, color .15s linear, transform .15s linear, border-color .15s linear;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-deep); }
.btn-amber {
  background: var(--accent);
  color: #fff;
  position: relative;
}
.btn-amber:hover { background: var(--accent-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-sunken); }
.btn-ghost-dark {
  background: transparent;
  color: var(--night-ink);
  border: 1px solid rgba(236,241,248,0.18);
}
.btn-ghost-dark:hover { background: rgba(236,241,248,0.06); }
.btn-arrow svg { transition: transform .15s linear; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ============================================================
   IDENTITY ELEMENTS
   ============================================================ */

/* мигающий курсор-точка (id-01) */
.id-cursor {
  display: inline-block;
  width: 0.46em;
  height: 0.46em;
  border-radius: 50%;
  background: var(--amber-2);
  vertical-align: -0.02em;
  margin-left: 4px;
  animation: id-blink 1.4s ease-in-out infinite;
}
@keyframes id-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.25; }
}

/* знак сведения (id-02) */
.id-conv {
  display: inline-flex;
  align-items: center;
  gap: 0;
  --conv-h: 1px;
  --conv-w: 28px;
}
.id-conv__line {
  width: var(--conv-w);
  height: var(--conv-h);
  background: currentColor;
  display: block;
}
.id-conv__line.up   { transform: translateY(4px) rotate(-8deg); }
.id-conv__line.down { transform: translateY(-4px) rotate(8deg); }
.id-conv__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber-2);
  margin: 0 4px;
}

/* угловые скобы (id-03) */
.id-bracket {
  position: relative;
  display: inline-block;
  padding: 14px 18px;
}
.id-bracket::before, .id-bracket::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: currentColor;
  border-style: solid;
  border-width: 0;
  opacity: 0.55;
}
.id-bracket::before { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.id-bracket::after  { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* бегущая строка (id-09) */
.id-ticker {
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink-2);
  font-family: var(--mono);
  font-size: 13px;
  padding: 12px 0;
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  white-space: nowrap;
  position: relative;
}
.id-ticker__inner {
  display: inline-block;
  animation: id-marquee 60s linear infinite;
  padding-left: 100%;
}
.id-ticker .v { color: var(--night-ink); }
.id-ticker .sep { color: var(--amber-2); margin: 0 18px; }
@keyframes id-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* грид-фон (id-05) */
.id-graph {
  background-image:
    linear-gradient(to right, rgba(11,18,32,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,18,32,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}
.id-graph.on-dark {
  background-image:
    linear-gradient(to right, rgba(236,241,248,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236,241,248,0.04) 1px, transparent 1px);
}

/* serial label (id-07) */
.id-serial {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.id-serial::before, .id-serial::after {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber-2);
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .id-cursor, .id-ticker__inner { animation: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--night);
  color: var(--night-ink);
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero .id-graph {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(236,241,248,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236,241,248,0.035) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 30% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 30% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero-sticker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 11px;
  border: 1px solid rgba(236,241,248,0.15);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(236,241,248,0.78);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.hero-sticker .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(79,138,108,0.18);
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--night-ink);
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber-2);
  position: relative;
  white-space: nowrap;
}
.hero-lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--night-ink-2);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-lead strong { color: var(--night-ink); font-weight: 600; }
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 28px;
}
.hero-trust {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--night-ink-3);
  letter-spacing: 0.04em;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust span::before {
  content: '·';
  color: var(--amber-2);
  margin-right: 8px;
}

/* hero summary card */
.hero-summary {
  background: linear-gradient(180deg, rgba(236,241,248,0.04), rgba(236,241,248,0.01));
  border: 1px solid rgba(236,241,248,0.12);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  backdrop-filter: blur(2px);
}
.hero-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(236,241,248,0.10);
  margin-bottom: 18px;
}
.hero-summary-title {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--night-ink-3);
}
.hero-summary-time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--night-ink);
  display: inline-flex;
  align-items: center;
}
.summary-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(236,241,248,0.08);
}
.summary-row:last-child { border-bottom: 0; }
.summary-row .label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber-2);
  letter-spacing: 0.04em;
}
.summary-row .desc {
  font-size: 14px;
  color: var(--night-ink-2);
  line-height: 1.45;
}
.summary-row .desc em { color: var(--night-ink); font-style: normal; font-weight: 600; }
.summary-row .num {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--night-ink);
  font-weight: 500;
  white-space: nowrap;
}
.summary-row .num.pos { color: #6FCB94; }
.summary-row .num.neg { color: #F58A82; }

/* ============================================================
   USP — главный блок 5 преимуществ
   ============================================================ */
.usp-section {
  background: var(--bg);
}
.usp-head {
  max-width: 760px;
  margin-bottom: 64px;
}
.usp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) { .usp-grid { grid-template-columns: 1fr; } }

.usp {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.usp:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.usp.feature {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--primary-deep), var(--night));
  color: var(--night-ink);
  border-color: var(--primary-deep);
}
@media (max-width: 880px) { .usp.feature { grid-column: auto; } }

.usp-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.usp.feature .usp-num { color: var(--amber-2); }
.usp-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.usp.feature .usp-title { font-size: 32px; }
.usp-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.usp.feature .usp-desc { color: var(--night-ink-2); max-width: 640px; }
.usp-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  border-radius: var(--r-pill);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}
.usp.feature .usp-proof {
  background: rgba(224,166,90,0.15);
  color: var(--amber-2);
}
.usp-stat {
  font-family: var(--mono);
  font-size: 32px;
  color: var(--amber-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 24px;
}

/* ============================================================
   MOCKUP / DASHBOARD PREVIEW
   ============================================================ */
.mockup-section { background: var(--bg); }
.mockup-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.mockup-head .lead { margin-left: auto; margin-right: auto; }

.dashboard-frame {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-elev);
  max-width: 1180px;
  margin: 0 auto;
}
.dashboard-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--line);
}
.dashboard-toolbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.window-dots { display: inline-flex; gap: 6px; }
.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}
.dashboard-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}
.dashboard-tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
}
.dashboard-tabs span {
  padding: 6px 14px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--ink-3);
  border-radius: var(--r-pill);
  cursor: pointer;
}
.dashboard-tabs span.active {
  background: var(--ink);
  color: var(--bg);
}
.dashboard-body { padding: 32px; }
.dashboard-h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}
.dashboard-h2 small {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 12px;
  font-family: var(--mono);
}
.dashboard-section-head { margin-bottom: 24px; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .kpi-grid { grid-template-columns: 1fr; } }

.kpi {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
}
.kpi-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}
.kpi-icon.green { background: var(--primary-soft); color: var(--primary-deep); }
.kpi-icon.amber { background: var(--accent-soft); color: var(--accent-deep); }
.kpi-icon.red   { background: #FBE0DE; color: #8C2018; }
.kpi-badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.kpi-badge.norma     { background: var(--primary-soft); color: var(--primary-deep); }
.kpi-badge.attention { background: #FFE9C2; color: var(--accent-deep); }
.kpi-badge.action    { background: #FBE0DE; color: #8C2018; }
.kpi-label {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.kpi-value {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.kpi-value.warn { color: var(--accent-deep); }
.kpi-value.bad  { color: var(--neg); }
.kpi-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}
.kpi-sub.up   { color: var(--pos); }
.kpi-sub.down { color: var(--neg); }

/* ============================================================
   PAINS
   ============================================================ */
.pains-section { background: var(--bg-sunken); }
.pains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 720px) { .pains-grid { grid-template-columns: 1fr; } }
.pain {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px;
}
.pain-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.pain-quote {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* ============================================================
   HOW
   ============================================================ */
.how-section { background: var(--bg); }
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 880px) { .how-grid { grid-template-columns: 1fr; } }
.how-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
}
.how-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.how-step {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.how-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.how-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ============================================================
   FEATURES (9 инструментов)
   ============================================================ */
.features-section { background: var(--bg-sunken); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 880px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
}
.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--primary);
  margin-bottom: 16px;
}
.feature-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
}

/* ============================================================
   AI SECTION (тёмный)
   ============================================================ */
.ai-section {
  background: var(--night);
  color: var(--night-ink);
  position: relative;
  overflow: hidden;
}
.ai-section .id-graph {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(236,241,248,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236,241,248,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 70% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}
.ai-head { max-width: 760px; margin-bottom: 56px; position: relative; }
.ai-head h2 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.ai-head h2 em { font-style: normal; color: var(--amber-2); }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 64px;
  position: relative;
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: rgba(236,241,248,0.04);
  border: 1px solid rgba(236,241,248,0.10);
  border-radius: var(--r-md);
  padding: 26px;
}
.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(224,166,90,0.12);
  color: var(--amber-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.pillar-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  color: var(--night-ink);
}
.pillar-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--night-ink-2);
}

/* honest-AI note */
.ai-foot {
  margin-top: 32px;
  padding: 20px 24px;
  background: rgba(236,241,248,0.04);
  border: 1px solid rgba(236,241,248,0.10);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--night-ink-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
}
.ai-foot .v { color: var(--night-ink-2); }

/* AI report mock */
.ai-report {
  background: var(--night-elev);
  border: 1px solid var(--night-line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.ai-report-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--night-line);
}
.ai-report-title { font-size: 18px; font-weight: 600; color: var(--night-ink); }
.ai-report-meta { font-family: var(--mono); font-size: 11px; color: var(--night-ink-3); letter-spacing: 0.04em; }

.ai-block { margin-bottom: 22px; }
.ai-block:last-child { margin-bottom: 0; }
.ai-block-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--amber-2);
  margin-bottom: 10px;
}
.ai-block ul { list-style: none; }
.ai-block li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(236,241,248,0.10);
  font-size: 14px;
  line-height: 1.55;
  color: var(--night-ink-2);
}
.ai-block li:last-child { border-bottom: 0; }
.ai-block li b { color: var(--night-ink); font-weight: 600; }
.ai-block li mark {
  background: rgba(224,166,90,0.18);
  color: var(--amber-2);
  padding: 0 4px;
  border-radius: 3px;
}

/* ============================================================
   INTEGRATIONS
   ============================================================ */
.integrations-section { background: var(--bg); }
.integrations-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.integrations-head .lead { margin-left: auto; margin-right: auto; }

.int-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 880px) { .int-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .int-grid { grid-template-columns: 1fr; } }

.int-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.int-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-sunken);
  color: var(--primary-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.int-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.int-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

/* ============================================================
   CASES
   ============================================================ */
.cases-section { background: var(--bg-sunken); }
.cases-head { max-width: 720px; margin-bottom: 56px; }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  grid-auto-flow: row;
}
.cases-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .cases-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) { .cases-grid, .cases-grid--3 { grid-template-columns: 1fr; } }

/* Featured case — занимает всю ширину независимо от грид-колонок */
.case--featured { grid-column: 1 / -1; }
.case--featured .case-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 880px) {
  .case--featured .case-inner { grid-template-columns: 1fr; gap: 20px; }
}
.case--featured .case-name { font-size: 32px; }
.case--featured .case-result {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 0;
}

.case {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
}
.case-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.case-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}
.case-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.case-result {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.case-stat {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.case-stat-sub {
  font-size: 13px;
  color: var(--ink-3);
  flex: 1;
}
.case-quote {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.case-quote::before { content: '«'; color: var(--ink-3); margin-right: 4px; }
.case-quote::after  { content: '»'; color: var(--ink-3); margin-left: 4px; }

/* ============================================================
   AUDIENCE
   ============================================================ */
.audience-section { background: var(--bg); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}
@media (max-width: 880px) { .audience-grid { grid-template-columns: 1fr; } }
.audience-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px;
}
.audience-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 5px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.audience-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.audience-quote {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  font-style: italic;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-section { background: var(--bg-sunken); }
.pricing-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.pricing-head .lead { margin-left: auto; margin-right: auto; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 980px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.popular {
  border: 1.5px solid var(--primary);
  box-shadow: 0 16px 48px rgba(79,138,108,0.15);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 6px 14px;
  border-radius: var(--r-pill);
}
.plan-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.plan-tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}
.plan-price {
  font-family: var(--mono);
  font-size: 38px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.plan-price small {
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 4px;
}
.plan-trial {
  font-size: 13px;
  color: var(--primary-deep);
  background: var(--primary-soft);
  padding: 8px 12px;
  border-radius: var(--r-md);
  margin-bottom: 24px;
  display: inline-block;
}
.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.plan-features li:last-child { border-bottom: 0; }
.plan-features li.dim { color: var(--ink-4); }
.plan-features li svg { flex-shrink: 0; margin-top: 5px; }
.plan-cta {
  display: inline-flex;
  justify-content: center;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  transition: background .15s linear;
}
.plan-cta:hover { background: var(--primary-deep); }
.plan.popular .plan-cta { background: var(--primary); }
.plan.popular .plan-cta:hover { background: var(--primary-deep); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { background: var(--bg); }
.faq-head { text-align: center; margin-bottom: 56px; }
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-size: 17px;
  font-weight: 500;
  text-align: left;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq-q .toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-sunken);
  color: var(--ink-3);
  transition: transform .2s ease, background .15s linear;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-q .toggle { transform: rotate(45deg); background: var(--primary-soft); color: var(--primary-deep); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding-bottom: 22px;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  background: var(--night);
  color: var(--night-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section .id-graph {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(236,241,248,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(236,241,248,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  position: relative;
}
.cta-section h2 em { font-style: normal; color: var(--amber-2); }
.cta-lead {
  font-size: 18px;
  color: var(--night-ink-2);
  margin-bottom: 36px;
  position: relative;
}
.cta-form {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.cta-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  background: rgba(236,241,248,0.06);
  border: 1px solid rgba(236,241,248,0.15);
  color: var(--night-ink);
  font-size: 15px;
}
.cta-form input::placeholder { color: var(--night-ink-3); }
.cta-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(236,241,248,0.10);
}
.cta-form button {
  padding: 14px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  transition: background .15s linear;
}
.cta-form button:hover { background: var(--primary-deep); }
.cta-form button:disabled { background: var(--primary-deep); opacity: 0.7; }
.cta-fineprint {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--night-ink-3);
  letter-spacing: 0.04em;
  margin-top: 22px;
  position: relative;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--night);
  color: var(--night-ink-2);
  padding: 80px 0 32px;
  border-top: 1px solid var(--night-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--night-ink-3);
  max-width: 320px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--night-ink-3);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 6px 0; }
.footer-col a {
  font-size: 14px;
  color: var(--night-ink-2);
  transition: color .15s linear;
}
.footer-col a:hover { color: var(--amber-2); }

.footer-foot {
  max-width: var(--max);
  margin: 56px auto 0;
  padding: 28px var(--gutter) 0;
  border-top: 1px solid var(--night-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--night-ink-3);
  letter-spacing: 0.04em;
}

/* ============================================================
   PAGE HEADERS (для inner pages)
   ============================================================ */
.page-header {
  background: var(--bg);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}
.page-header.dark {
  background: var(--night);
  color: var(--night-ink);
  border-bottom-color: var(--night-line);
  position: relative;
  overflow: hidden;
}
.page-header h1 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.page-header h1 em { font-style: normal; color: var(--amber-2); }
.page-header p {
  font-size: 19px;
  color: var(--ink-3);
  max-width: 720px;
  line-height: 1.5;
}
.page-header.dark p { color: var(--night-ink-2); }

/* ============================================================
   /audit page — bridge demo
   ============================================================ */
.bridge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 48px;
}
@media (max-width: 880px) { .bridge-grid { grid-template-columns: 1fr; } }
.bridge-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.bridge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.bridge-pill.ok   { background: var(--primary-soft); color: var(--primary-deep); }
.bridge-pill.warn { background: #FFE9C2; color: var(--accent-deep); }
.bridge-formula {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
  background: var(--bg-sunken);
  padding: 12px 14px;
  border-radius: var(--r-md);
  margin: 14px 0;
}
.bridge-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 0;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--line);
}
.bridge-row:last-child { border-bottom: 0; }
.bridge-row .v { color: var(--ink); font-weight: 500; }
.bridge-diff.ok { color: var(--pos); font-weight: 600; }
.bridge-diff.warn { color: var(--accent); font-weight: 600; }

/* ============================================================
   ANIMATIONS / SCROLL REVEAL
   ============================================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.22,.7,.2,1), transform .7s cubic-bezier(.22,.7,.2,1);
}
.scroll-reveal.visible { opacity: 1; transform: none; }
.scroll-reveal.delay-1 { transition-delay: .08s; }
.scroll-reveal.delay-2 { transition-delay: .16s; }
.scroll-reveal.delay-3 { transition-delay: .24s; }
.scroll-reveal.delay-4 { transition-delay: .32s; }
.scroll-reveal.delay-5 { transition-delay: .40s; }

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
}
