/* ===== ИЦЦ design tokens ===== */
:root {
  /* Brand */
  --brand: #2ea3f2;
  --brand-600: #1f8fd9;
  --brand-700: #1576b8;
  --brand-50: #e8f4fd;
  --brand-100: #d2e9fa;

  /* Dark hero (navy industrial) */
  --ink-950: #06111c;
  --ink-900: #0B1B2E;
  --ink-800: #122a44;
  --ink-700: #1b3a5c;
  --ink-600: #24496f;

  /* Light base (warm-neutral whites) */
  --bg: #FAFBFC;
  --bg-alt: #F3F5F8;
  --surface: #FFFFFF;
  --border: #E5E9EF;
  --border-strong: #D0D6DE;

  /* Text */
  --text: #0B1B2E;
  --text-secondary: #4A5668;
  --text-muted: #7B8597;
  --text-on-dark: #E8EEF6;
  --text-on-dark-muted: #8EA0B8;

  /* Semantic */
  --success: #1F9D55;
  --warn: #D97706;
  --danger: #DC2626;

  /* Direction chip colors (subtle, paired with brand) */
  --dir-mes: #2ea3f2;
  --dir-lims: #7C4DFF;
  --dir-hse: #E54B4B;
  --dir-cv: #14B8A6;
  --dir-data: #F59E0B;
  --dir-ai: #0B1B2E;
  --dir-apc: #0EA5A1;

  /* Radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;

  /* Shadows (vittepro-lite) */
  --shadow-xs: 0 1px 2px rgba(11, 27, 46, 0.04);
  --shadow-sm: 0 2px 6px rgba(11, 27, 46, 0.05), 0 1px 2px rgba(11, 27, 46, 0.04);
  --shadow-md: 0 6px 18px rgba(11, 27, 46, 0.06), 0 2px 4px rgba(11, 27, 46, 0.04);
  --shadow-lg: 0 18px 40px rgba(11, 27, 46, 0.10), 0 4px 10px rgba(11, 27, 46, 0.05);

  /* Type */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1240px;
  --pad: 24px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Typography scale */
.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(40px, 6vw, 84px);
}
.h-1 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.08;
}
.h-2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}
.h-3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}
.mono { font-family: var(--font-mono); font-size: 13px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--r-lg);
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--text); background: rgba(11,27,46,.03); }
.btn-ghost-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.2);
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* Chips / badges */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  background: var(--brand-50);
  color: var(--brand-700);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Badge MES/LIMS/HSE/... */
.badge-dir {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 8px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--border);
  background: var(--surface); color: var(--text-secondary);
}
.badge-dir .dot { width: 6px; height: 6px; border-radius: 2px; }

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* Section */
section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* Divider */
.rule { height: 1px; background: var(--border); border: 0; }

/* Utility */
.nowrap { white-space: nowrap; }
.stack-sm > * + * { margin-top: 8px; }
.stack-md > * + * { margin-top: 16px; }
.stack-lg > * + * { margin-top: 24px; }
.muted { color: var(--text-muted); }
.secondary { color: var(--text-secondary); }
