/* HermesOS Design System v3 — локальная сборка (без CDN)
   Источник: docs/DESIGN_SYSTEM_V3.css
   Шрифты: локальный InterVariable.woff2 + system-ui fallback
   Сгенерировано: tools/gen_seo_pages.py
   НЕ РЕДАКТИРОВАТЬ ВРУЧНУЮ — правьте docs/DESIGN_SYSTEM_V3.css */

/* ============================================
   HermesOS Design System v3 — «Матовый обсидиан»
   ============================================ */

/* ---------- Fonts ---------- */

@font-face {
  font-family: 'Inter Display';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}



/* ---------- Design Tokens ---------- */

:root {
  /* Colors - Dark Theme (default) */
  --color-bg: #0a0a0d;
  --color-surface: #121218;
  --color-surface-elevated: #1a1a22;
  --color-border: #2a2a35;
  --color-border-subtle: #1f1f28;
  --color-text-primary: #e8e8ed;
  --color-text-secondary: #9898a8;
  --color-text-tertiary: #686878;
  --color-text-disabled: #484858;
  --color-accent: #8052ff;
  --color-accent-hover: #9b6dff;
  --color-accent-subtle: #8052ff1a;
  --color-money: #cc9166;
  --color-money-subtle: #cc91661a;
  --color-data: #8052ff;
  --color-success: #34d399;
  --color-success-subtle: #34d3991a;
  --color-danger: #f87171;
  --color-danger-subtle: #f871711a;
  --color-warning: #fbbf24;
  --color-warning-subtle: #fbbf241a;
  --color-info: #60a5fa;
  --color-info-subtle: #60a5fa1a;

  /* Typography */
  --font-display: 'Inter Display', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 20px;
  --text-3xl: 24px;
  --text-4xl: 32px;
  --text-5xl: 40px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-elevated:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 16px 48px rgba(0, 0, 0, 0.04);

  /* Motion */
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 300ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset & Base ---------- */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-bg);
  min-height: 100vh;
}

/* ---------- Noise Texture ---------- */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 { font-size: var(--text-5xl); letter-spacing: -0.03em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.025em; }
h3 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h4 { font-size: var(--text-2xl); letter-spacing: -0.015em; }
h5 { font-size: var(--text-xl); letter-spacing: -0.01em; }
h6 { font-size: var(--text-lg); letter-spacing: -0.01em; }

p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--color-accent-hover);
}

.num, .mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Glass Card ---------- */

.glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05),
              0 12px 32px -12px rgba(0,0,0,0.7),
              0 2px 4px rgba(0,0,0,0.3);
  transition: all var(--dur-base) var(--ease-out);
}

.glass:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

/* ---------- Card ---------- */

.card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05),
              0 12px 32px -12px rgba(0,0,0,0.7),
              0 2px 4px rgba(0,0,0,0.3);
  padding: var(--space-6);
  transition: all var(--dur-base) var(--ease-out);
}

.card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
}

.btn-ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-border);
}

.btn-pill {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: var(--text-sm);
}

.btn-pill:hover {
  background: var(--color-accent);
  color: var(--color-bg);
}

.btn-icon {
  background: transparent;
  color: var(--color-text-secondary);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-md);
}

.btn-icon:hover {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

/* ---------- KPI ---------- */

.kpi-card {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05),
              0 12px 32px -12px rgba(0,0,0,0.7),
              0 2px 4px rgba(0,0,0,0.3);
  padding: var(--space-6);
  transition: all var(--dur-base) var(--ease-out);
}

.kpi-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

.kpi-label {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 600;
  color: var(--color-text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.kpi-trend {
  font-size: var(--text-xs);
  font-weight: 500;
  margin-top: var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.kpi-trend.up { color: var(--color-success); }
.kpi-trend.down { color: var(--color-danger); }
.kpi-trend.flat { color: var(--color-text-tertiary); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  background: rgba(10, 10, 13, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  z-index: 100;
  transition: height var(--dur-base) var(--ease-out);
  display: flex;
  align-items: center;
  padding: 0 var(--space-6);
}

.nav.scrolled {
  height: 56px;
}

.nav-link {
  position: relative;
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: all var(--dur-fast) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-text-primary);
  background: var(--color-surface);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 240px;
  height: 100vh;
  background: var(--color-surface);
  border-right: 1px solid var(--color-border-subtle);
  padding: var(--space-4);
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  margin-bottom: var(--space-1);
}

.sidebar-item:hover {
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
}

.sidebar-item.active {
  background: var(--color-accent-subtle);
  color: var(--color-accent);
}

/* ---------- Table ---------- */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th {
  text-align: left;
  padding: 12px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-tertiary);
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-surface);
  position: sticky;
  top: 0;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border-subtle);
  color: var(--color-text-primary);
}

.table tr:hover td {
  background: var(--color-surface-elevated);
}

.table .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------- Input ---------- */

.input {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  transition: all var(--dur-fast) var(--ease-out);
  width: 100%;
}

.input::placeholder {
  color: var(--color-text-tertiary);
}

.input:hover {
  border-color: var(--color-border);
}

.input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

/* ---------- Select ---------- */

.select {
  appearance: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 40px 12px 16px;
  font-size: var(--text-base);
  color: var(--color-text-primary);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%239898a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all var(--dur-fast) var(--ease-out);
  width: 100%;
}

.select:hover {
  border-color: var(--color-border);
}

.select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-subtle);
}

/* ---------- Badge ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.badge-success {
  background: var(--color-success-subtle);
  color: var(--color-success);
}

.badge-danger {
  background: var(--color-danger-subtle);
  color: var(--color-danger);
}

.badge-warning {
  background: var(--color-warning-subtle);
  color: var(--color-warning);
}

.badge-info {
  background: var(--color-info-subtle);
  color: var(--color-info);
}

/* ---------- Tag ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag-wb {
  background: #7b2fbe1a;
  color: #a855f7;
}

.tag-ozon {
  background: #005bff1a;
  color: #3b82f6;
}

.tag-yam {
  background: #fc3f1d1a;
  color: #f97316;
}

/* ---------- Motion ---------- */

@keyframes market-breathing {
  0%, 100% { border-color: var(--color-border-subtle); }
  50% { border-color: var(--color-accent); }
}

.kpi-card.pulse {
  animation: market-breathing 2s ease-in-out infinite;
}

@keyframes chart-settle {
  0% { transform: scaleY(0.8); opacity: 0; }
  60% { transform: scaleY(1.02); opacity: 1; }
  100% { transform: scaleY(1); opacity: 1; }
}

.chart-bar {
  transform-origin: bottom;
  animation: chart-settle 0.6s var(--ease-spring) forwards;
}

@keyframes ink-spread {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.card-done {
  animation: ink-spread 0.4s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes weight-whisper {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.tooltip {
  animation: weight-whisper 0.2s var(--ease-out) forwards;
}

@keyframes floating-cta {
  0%, 100% { box-shadow: 0 0 0 0 var(--color-accent-subtle); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

.cta-floating {
  animation: floating-cta 2s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

.skeleton {
  background: var(--color-surface-elevated);
  border-radius: var(--radius-md);
  animation: loader-pulse 1.5s ease-in-out infinite;
}

@keyframes hero-morph {
  0% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
  50% { border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%; }
  75% { border-radius: 60% 40% 60% 30% / 60% 40% 30% 60%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
}

.hero-shape {
  animation: hero-morph 12s ease-in-out infinite;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.stagger-item {
  animation: reveal 0.4s var(--ease-out) forwards;
  opacity: 0;
}

.stagger-item:nth-child(1) { animation-delay: 0ms; }
.stagger-item:nth-child(2) { animation-delay: 60ms; }
.stagger-item:nth-child(3) { animation-delay: 120ms; }
.stagger-item:nth-child(4) { animation-delay: 180ms; }
.stagger-item:nth-child(5) { animation-delay: 240ms; }
.stagger-item:nth-child(6) { animation-delay: 300ms; }

/* ---------- Cursor Glow ---------- */

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-subtle) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  transition: opacity 0.3s;
}

/* ---------- Utility Classes ---------- */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

.m-1 { margin: var(--space-1); }
.m-2 { margin: var(--space-2); }
.m-3 { margin: var(--space-3); }
.m-4 { margin: var(--space-4); }
.m-6 { margin: var(--space-6); }
.m-8 { margin: var(--space-8); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-info { color: var(--color-info); }

.bg-bg { background: var(--color-bg); }
.bg-surface { background: var(--color-surface); }
.bg-surface-elevated { background: var(--color-surface-elevated); }
.bg-accent { background: var(--color-accent); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow-card { box-shadow: var(--shadow-card); }
.shadow-elevated { box-shadow: var(--shadow-elevated); }

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  :root {
    --text-5xl: 32px;
    --text-4xl: 28px;
    --text-3xl: 22px;
  }

  .sidebar {
    width: 200px;
  }

  .nav {
    padding: 0 var(--space-4);
  }
}

@media (max-width: 480px) {
  :root {
    --text-5xl: 28px;
    --text-4xl: 24px;
    --text-3xl: 20px;
  }

  .sidebar {
    display: none;
  }
}

/* ---------- Mobile Responsive Fixes ---------- */

@media (max-width: 768px) {
  a, button, [role="button"], input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
  }
  p a, li a, span a, .text-caption a, .text-body a, td a {
    min-height: auto;
    min-width: auto;
  }
  input, textarea, select {
    font-size: 16px !important;
  }
  .nav-links { display: none; }
  .nav-inner { padding: 0 16px; }
  .hero-form { flex-direction: column; padding: 12px; }
  .hero-form input { font-size: 16px; padding: 14px 16px; }
  .hero-form button { width: 100%; padding: 14px 24px; font-size: 16px; }
  section { padding: 48px 16px; }
  .kpi-grid, .steps { grid-template-columns: 1fr; }
  .demo-tabs { flex-wrap: wrap; }
  .demo-tab { flex: 1 1 45%; text-align: center; }
}

/* ---------- Copper Accents (Money) ---------- */

.eyebrow {
  color: var(--color-money);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.price {
  color: var(--color-money);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.badge-soon {
  color: var(--color-money);
  border-color: var(--color-money-subtle);
  background: var(--color-money-subtle);
}

.impact {
  color: var(--color-money);
}

/* ---------- Hero v3.1 ---------- */

.hero-eyebrow {
  font-family: 'Inter Display', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #cc9166;
  text-transform: none;
  font-weight: 400;
  margin-bottom: 16px;
}
.hero-h1 {
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: #edeef1;
  margin: 0 0 24px;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: #a8abb3;
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero-form {
  display: flex;
  gap: 8px;
  max-width: 580px;
  margin: 0 auto 16px;
  padding: 8px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
}
.hero-form input {
  flex: 1;
  padding: 14px 18px;
  background: transparent;
  border: none;
  color: #edeef1;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  outline: none;
}
.hero-form input::placeholder { color: #6e7178; }
.hero-form button {
  padding: 14px 24px;
  background: linear-gradient(135deg, #8052ff, #6b3fd9);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.2s;
}
.hero-form button:hover { box-shadow: 0 0 24px rgba(128,82,255,0.4); }
.hero-note {
  font-size: 14px;
  color: #6e7178;
  margin-bottom: 24px;
}
.hero-proof {
  font-size: 14px;
  color: #a8abb3;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%,
      rgba(128,82,255,0.18) 0%, transparent 55%),
    radial-gradient(circle at 70% 60%,
      rgba(204,145,102,0.12) 0%, transparent 55%);
}
.hero-canvas::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-form { flex-direction: column; padding: 12px; }
  .hero-form button { width: 100%; }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   Landing v4 — общий слой страниц (Dala-style)
   Добавлено S8: единый стиль index/contacts/pricing/terms/privacy
   ============================================ */

/* ---------- Noise + Cursor Glow ---------- */

body.has-noise::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.015;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 9999;
}

.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 82, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  will-change: left, top;
}

/* ---------- Reveal Stagger ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Shared Page Shell ---------- */

.page {
  max-width: 900px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.page-wide {
  max-width: 1200px;
}

.page-eyebrow {
  font-family: 'Inter Display', serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--color-money);
  margin-bottom: 12px;
}

.page h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--color-text-primary);
  margin-bottom: 16px;
}

.page h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
  margin-bottom: 20px;
}

.page .section-sub {
  font-size: 16px;
  color: var(--color-text-secondary);
  margin-bottom: 48px;
  max-width: 640px;
}

/* ---------- Matte Glass Block ---------- */

.glass {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 32px -12px rgba(0, 0, 0, 0.7);
}

/* ---------- Landing Nav (shared) ---------- */

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color var(--dur-base) var(--ease-out);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-links a:hover { color: var(--color-text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--color-accent);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--dur-base) var(--ease-out);
}

.nav-cta:hover { background: var(--color-accent-hover); }
.nav-cta::after { display: none; }

/* ---------- Landing Footer (shared) ---------- */

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.footer-col h4 {
  font-size: 12px;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--dur-base) var(--ease-out);
}

.footer-col a:hover { color: var(--color-text-primary); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-requisites,
.footer-copy,
.footer-payments {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .page { padding: 96px 20px 64px; }
}

/* Mobile fixes — Session 6, 16.10.2026 */
@media (max-width: 768px) {
  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .glass {
    max-width: calc(100vw - 32px);
    padding: 16px;
    overflow: hidden;
  }

  .footer-col,
  .footer-grid,
  #footer .footer-col {
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 8px;
  }

  .comparison-table,
  table.products-table,
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    width: 100%;
  }

  .comparison-table th,
  .comparison-table td,
  table.products-table th,
  table.products-table td {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
  }

  .grid, .features-grid, .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  img, video, iframe {
    max-width: 100%;
    height: auto;
  }
}
