/* ==========================================================================
   Base388 — Landing styles
   Design system ported from shadcn/ui "Zinc" theme (ref: 21st.dev component).
   Neutral grayscale palette, light by default, dark via [data-theme="dark"].
   Tokens are HSL triplets, consumed as hsl(var(--token)).
   ========================================================================== */

:root {
  /* shadcn Zinc — light (default) */
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;
  --destructive: 0 84.2% 60.2%;
  --border: 240 5.9% 90%;
  --input: 240 4.9% 83.9%;
  --ring: 240 5% 64.9%;

  /* Elevation surfaces — light relies on borders, not fills */
  --surface: 0 0% 100%;
  --surface-2: 240 4.8% 95.9%;

  /* Brand accent (Base388 teal — used sparingly for highlights) */
  --brand: 170 84% 32%;

  /* Semantic status (kept for the monitoring mockup / dots) */
  --success: 142 71% 35%;
  --warning: 35 92% 42%;
  --danger: 0 74% 50%;

  /* Radii (shadcn base 0.5rem) */
  --radius: 0.5rem;
  --radius-sm: 0.375rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Type */
  --sans: 'Geologica', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  color-scheme: light;
}

[data-theme="dark"] {
  --background: 240 10% 3.9%;
  --foreground: 240 4.8% 95.9%;
  --card: 240 10% 3.9%;
  --card-foreground: 0 0% 98%;
  --primary: 0 0% 98%;
  --primary-foreground: 240 5.9% 10%;
  --secondary: 240 3.7% 15.9%;
  --secondary-foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --accent: 240 3.7% 15.9%;
  --accent-foreground: 0 0% 98%;
  --destructive: 0 72% 51%;
  --border: 240 3.7% 15.9%;
  --input: 240 3.7% 15.9%;
  --ring: 240 4.9% 83.9%;

  /* In dark, cards match the page bg and are separated by lighter borders */
  --surface: 240 10% 3.9%;
  --surface-2: 240 3.7% 15.9%;

  --brand: 168 80% 46%;
  --success: 142 69% 48%;
  --warning: 38 95% 55%;
  --danger: 0 84% 65%;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* NAV ---------------------------------------------------------------------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  border-bottom: 1px solid hsl(var(--border));
  backdrop-filter: blur(20px);
  background: hsl(var(--background) / 0.8);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  color: hsl(var(--foreground));
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  list-style: none;
}

.nav-links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover { color: hsl(var(--foreground)); }

.nav-cta {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground)) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 14px;
  transition: opacity 0.2s !important;
}

.nav-cta:hover { opacity: 0.9; }

/* Secondary "Войти" button in the header, next to the primary CTA. */
.nav-login {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground)) !important;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-login:hover { background: hsl(var(--muted)); border-color: hsl(var(--ring)); }

/* Trial / first-payment-deferral note under a paid plan price. */
.plan-trial {
  display: inline-block;
  margin: -2px 0 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.12);
  color: hsl(var(--primary));
  font-size: 12px;
  font-weight: 600;
}

/* Theme toggle ------------------------------------------------------------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
  color: hsl(var(--foreground));
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover { background: hsl(var(--surface-2)); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* HERO --------------------------------------------------------------------- */
.hero {
  padding: 110px 0 100px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 760px;
}

.hero h1 .accent {
  color: hsl(var(--brand));
}

.hero-sub {
  font-size: 18px;
  color: hsl(var(--muted-foreground));
  max-width: 540px;
  margin-bottom: 44px;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-ghost {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s;
  display: inline-block;
  background: hsl(var(--surface));
}

.btn-ghost:hover { background: hsl(var(--surface-2)); }

.hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: hsl(var(--muted-foreground));
}

/* DASHBOARD MOCKUP --------------------------------------------------------- */
.dashboard-wrap {
  margin-top: 72px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: hsl(var(--surface));
  position: relative;
  box-shadow: 0 1px 3px hsl(var(--foreground) / 0.04), 0 8px 24px hsl(var(--foreground) / 0.04);
}

.db-bar {
  background: hsl(var(--surface-2));
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid hsl(var(--border));
}

.db-dots { display: flex; gap: 6px; }
.db-dot { width: 10px; height: 10px; border-radius: 50%; }
.db-dot.r { background: hsl(var(--danger)); }
.db-dot.y { background: hsl(var(--warning)); }
.db-dot.g { background: hsl(var(--success)); }

.db-url {
  flex: 1;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.db-body {
  padding: 20px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  min-height: 320px;
}

.db-sidebar {
  border-right: 1px solid hsl(var(--border));
  padding-right: 16px;
}

.db-sidebar-title {
  font-family: var(--mono);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.db-monitor-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  cursor: pointer;
  transition: background 0.15s;
}

.db-monitor-item:first-of-type { background: hsl(var(--secondary)); }
.db-monitor-item:hover { background: hsl(var(--surface-2)); }

/* .status-dot удалён вместе с .up/.down/.warn: кружки-индикаторы состояния
   в дизайн-системе запрещены, состояние показывается подсветкой строки/бейджа.
   Правило было нарушено при оживлении мокапа — не возвращать. */

.db-monitor-name {
  font-size: 12px;
  color: hsl(var(--foreground));
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.db-monitor-ms {
  font-family: var(--mono);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
}

.db-main { padding-left: 4px; }

.db-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.db-stat {
  background: hsl(var(--surface-2));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 10px 12px;
}

.db-stat-label {
  font-family: var(--mono);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 4px;
}

.db-stat-val {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
}

.db-stat-val.green { color: hsl(var(--success)); }
.db-stat-val.blue { color: hsl(var(--foreground)); }
.db-stat-val.yellow { color: hsl(var(--warning)); }

.db-chart-label {
  font-family: var(--mono);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 8px;
}

.db-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
}

.db-bar-col {
  flex: 1;
  border-radius: 2px 2px 0 0;
  transition: opacity 0.2s;
}

.db-bar-col:hover { opacity: 0.7; }

/* STATS ROW ---------------------------------------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 80px 0;
}

.stat-cell {
  background: hsl(var(--surface));
  padding: 32px 24px;
  text-align: center;
  /* Без min-width:0 грид-элемент не сжимается ниже min-content своего текста,
     и на узких экранах длинные подписи выталкивали ячейки за границу строки
     (обрезалось только глобальным overflow-x:hidden на body). */
  min-width: 0;
}

.stat-num {
  font-family: var(--mono);
  font-size: 36px;
  font-weight: 700;
  color: hsl(var(--foreground));
  display: block;
}

.stat-label {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  margin-top: 4px;
}

/* SECTION HEADINGS --------------------------------------------------------- */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

h2.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: hsl(var(--muted-foreground));
  max-width: 520px;
  line-height: 1.7;
  font-weight: 300;
}

/* FEATURES GRID ------------------------------------------------------------ */
.features { padding: 40px 0 100px; }
.features-head { margin-bottom: 56px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feat {
  background: hsl(var(--surface));
  padding: 32px 28px;
  transition: background 0.2s;
  position: relative;
}

.feat:hover { background: hsl(var(--surface-2)); }

.feat-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
}

.feat-icon svg { width: 20px; height: 20px; }

.feat h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feat p {
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  line-height: 1.65;
  font-weight: 300;
}

/* HOW IT WORKS ------------------------------------------------------------- */
.how {
  padding: 80px 0 100px;
  border-top: 1px solid hsl(var(--border));
}

.how-head { margin-bottom: 56px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 20px; left: 32px; right: 32px;
  height: 1px;
  background: hsl(var(--border));
}

.step { padding: 0 20px 0 0; }

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.step h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.6; font-weight: 300; }

/* PRICING ------------------------------------------------------------------ */
.pricing {
  padding: 80px 0 100px;
  border-top: 1px solid hsl(var(--border));
}

.pricing-head { margin-bottom: 56px; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.plan {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: hsl(var(--surface));
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

.plan.featured {
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 1px hsl(var(--primary));
}

.plan-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 11px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 100px;
  font-family: var(--mono);
  white-space: nowrap;
}

.plan-name {
  font-family: var(--mono);
  font-size: 12px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.plan-price {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.plan-price span { font-size: 16px; font-weight: 400; color: hsl(var(--muted-foreground)); }

.plan-desc {
  font-size: 13px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 24px;
  font-weight: 300;
}

.plan-divider {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin-bottom: 24px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.plan-features li {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: hsl(var(--foreground));
  font-weight: 300;
}

.plan-features li .check {
  color: hsl(var(--success));
  flex-shrink: 0;
  display: inline-flex;
}
.plan-features li .check svg { width: 15px; height: 15px; }

.plan-features li .dash {
  color: hsl(var(--muted-foreground));
  opacity: 0.5;
  flex-shrink: 0;
  display: inline-flex;
}
.plan-features li .dash svg { width: 15px; height: 15px; }
.plan-features li.muted,
.plan-features li:has(.dash) { color: hsl(var(--muted-foreground)); }

.plan-btn {
  display: block;
  text-align: center;
  padding: 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.plan-btn.outline {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background: hsl(var(--surface));
}

.plan-btn.outline:hover { background: hsl(var(--surface-2)); }

.plan-btn.solid {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.plan-btn.solid:hover { opacity: 0.9; }

/* USE CASES ---------------------------------------------------------------- */
.usecases {
  padding: 80px 0 100px;
  border-top: 1px solid hsl(var(--border));
}

.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.uc-card {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s;
}

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

.uc-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
  font-weight: 500;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.uc-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.uc-card p { font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.65; font-weight: 300; }

/* CTA SECTION -------------------------------------------------------------- */
.cta-section { padding: 80px 0 120px; text-align: center; }

.cta-box {
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  padding: 72px 40px;
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-box p {
  font-size: 17px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 36px;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* FOOTER ------------------------------------------------------------------- */
footer {
  border-top: 1px solid hsl(var(--border));
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 24px; list-style: none; }

.footer-links a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links a:hover { color: hsl(var(--foreground)); }

.footer-copy { font-family: var(--mono); font-size: 12px; color: hsl(var(--muted-foreground)); }

/* LIVE TICKER -------------------------------------------------------------- */
.ticker-bar {
  background: hsl(var(--surface));
  border-bottom: 1px solid hsl(var(--border));
  padding: 8px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  margin-top: 60px;
}

.ticker-inner {
  display: inline-flex;
  gap: 48px;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: hsl(var(--muted-foreground));
}

.ticker-item .t-dot { width: 6px; height: 6px; border-radius: 50%; }

/* UPTIME VISUAL ------------------------------------------------------------ */
.uptime-bars { display: flex; gap: 2px; margin-top: 12px; }

.ub {
  height: 28px;
  flex: 1;
  border-radius: 2px;
  background: hsl(var(--success));
  opacity: 0.85;
}

.ub.d { background: hsl(var(--danger)); opacity: 0.9; }
.ub.w { background: hsl(var(--warning)); opacity: 0.9; }

/* INCIDENT TABLE ----------------------------------------------------------- */
.incident-table { width: 100%; border-collapse: collapse; margin-top: 12px; }

.incident-table th {
  font-family: var(--mono);
  font-size: 10px;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 8px 0;
  border-bottom: 1px solid hsl(var(--border));
  font-weight: 400;
}

.incident-table td {
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
}

.incident-table td:first-child { color: hsl(var(--foreground)); }

/* FAQ ---------------------------------------------------------------------- */
.faq {
  padding: 80px 0 100px;
  border-top: 1px solid hsl(var(--border));
}

.faq-head { margin-bottom: 40px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item { background: hsl(var(--surface)); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: background 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: hsl(var(--surface-2)); }

.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 22px;
  line-height: 1;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 24px 22px;
  font-size: 14px;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  font-weight: 300;
  max-width: 780px;
}

/* ==========================================================================
   MULTI-PAGE LANDING
   Everything below serves the pages added alongside the home page: /pricing
   (tariff catalogue + "Подбор тарифа" quiz), /monitoring/{type} and /cases/{slug}.
   Shared primitives (.container, .section-title, .feat, .uc-card, .plan, .faq-*)
   are reused as-is; these rules only add what those pages need on top.
   ========================================================================== */

/* Grid children default to min-width:auto, which refuses to shrink below the
   min-content width of their text — on narrow screens that pushes cells past the
   track and the overflow is only masked by body{overflow-x:hidden}. Every grid
   introduced below opts out explicitly. */
.cap, .value-card, .case-card, .pain-card, .quiz-opt,
.prose-head, .prose-body, .footer-brand, .footer-col,
.outcome-head, .outcome-list { min-width: 0; }

/* Nav: active page marker ---------------------------------------------------- */
.nav-links a.is-active { color: hsl(var(--foreground)); }

/* Inline text link inside a paragraph (section-desc etc.) */
.inline-link {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: hsl(var(--input));
}
.inline-link:hover { text-decoration-color: hsl(var(--foreground)); }

/* HERO ADDITIONS ------------------------------------------------------------ */
.hero-note {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 18px;
}

.hero-note-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
}
.hero-note-badge svg { width: 13px; height: 13px; color: hsl(var(--success)); flex-shrink: 0; }

/* Снятие главного технического возражения — прямо под кнопками. */
.hero-objection {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 620px;
  margin: 22px auto 0;
  padding: 14px 18px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
  text-align: left;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: hsl(var(--muted-foreground));
}
.hero-objection svg { width: 14px; height: 14px; margin-top: 4px; flex-shrink: 0; color: hsl(var(--brand)); }

/* ANIMATED DASHBOARD MOCKUP ------------------------------------------------- */
/* Мокап проигрывает сценарий аварии (см. скрипт на главной). Всё, что скрипт
   меняет — цвет статуса, высоты столбцов, цифры — должно переходить плавно,
   иначе смена фаз выглядит как дёрганье. */
.dashboard-wrap { position: relative; }

.db-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}
.db-live svg { width: 12px; height: 12px; opacity: 0.75; }

.db-monitor-item .db-monitor-ms { transition: color 0.35s ease; }

/* Пострадавшая строка подсвечивается на время аварии. */
#mkTarget { transition: background 0.35s ease; }
[data-state="warn"] #mkTarget { background: hsl(var(--warning) / 0.1); }
[data-state="down"] #mkTarget { background: hsl(var(--danger) / 0.12); }
[data-state="warn"] #mkTarget .db-monitor-ms { color: hsl(var(--warning)); }
[data-state="down"] #mkTarget .db-monitor-ms { color: hsl(var(--danger)); }

.db-bar-col { transition: height 0.7s cubic-bezier(0.4, 0, 0.2, 1), background 0.45s ease; }
.db-stat-val { transition: color 0.35s ease; }
.ub { transition: background 0.45s ease; }

.db-empty {
  padding: 14px 0 4px;
  font-size: 12px;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
}

.incident-table td.is-down { color: hsl(var(--danger)); }
.incident-table td.is-ok { color: hsl(var(--success)); }

/* Всплывающее уведомление — то, что клиент получает в мессенджер. */
.db-toast {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 10px;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  box-shadow: 0 12px 32px -8px hsl(240 10% 3.9% / 0.28);
  text-align: left;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.db-toast.is-on { opacity: 1; transform: translateY(0) scale(1); }

.db-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
}
.db-toast[data-tone="down"] .db-toast-icon { background: hsl(var(--danger) / 0.14); color: hsl(var(--danger)); }
.db-toast[data-tone="up"] .db-toast-icon { background: hsl(var(--success) / 0.14); color: hsl(var(--success)); }

.db-toast-head {
  font-size: 12px;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 3px;
}
.db-toast-head span {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  color: hsl(var(--muted-foreground));
  margin-left: 6px;
}
.db-toast-text { font-size: 12px; font-weight: 300; line-height: 1.55; color: hsl(var(--muted-foreground)); }

@media (prefers-reduced-motion: reduce) {
  .db-bar-col, .db-toast, .db-stat-val, .ub, #mkTarget { transition: none; }
}

/* SECONDARY PAGE HERO ------------------------------------------------------- */
.page-hero {
  padding: 132px 0 56px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.page-lead {
  font-size: 17px;
  line-height: 1.75;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  max-width: 720px;
  margin: 0 auto 28px;
}

.page-hero .section-label,
.page-hero .uc-tag { display: inline-block; margin-bottom: 14px; }

.page-hero .hero-actions { margin-top: 4px; }

.page-hero-icon {
  width: 48px; height: 48px;
  margin: 0 auto 20px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.page-audience {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 28px;
  padding: 7px 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  background: hsl(var(--surface));
  font-size: 13px;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  text-align: left;
}
.page-audience svg { flex-shrink: 0; opacity: 0.7; }

/* Breadcrumbs */
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  color: hsl(var(--muted-foreground));
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}
.crumbs a { text-decoration: none; color: hsl(var(--muted-foreground)); }
.crumbs a:hover { color: hsl(var(--foreground)); }
.crumbs span { opacity: 0.45; margin: 0 6px; }
.crumbs b { font-weight: 500; color: hsl(var(--foreground)); }

/* MONITOR-TYPE SWITCHER ----------------------------------------------------- */
.type-switch {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 48px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface));
  overflow-x: auto;
}

.type-switch-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.type-switch-item:hover { background: hsl(var(--surface-2)); color: hsl(var(--foreground)); }
.type-switch-item.is-on {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}
.type-switch-item svg { width: 16px; height: 16px; flex-shrink: 0; }

/* CLICKABLE FEATURE CARD ---------------------------------------------------- */
.feat-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.feat-link h3 { color: hsl(var(--foreground)); }

.feat-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.feat-more svg { width: 14px; height: 14px; transition: transform 0.2s; }
.feat-link:hover .feat-more svg { transform: translateX(3px); }

/* PROSE SECTION (определение + буллеты) ------------------------------------- */
.prose-section { padding: 80px 0 40px; }

.prose-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.prose-lead {
  font-size: 17px;
  line-height: 1.8;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  margin-bottom: 28px;
}

.prose-list { list-style: none; display: grid; gap: 14px; }

.prose-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.7;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
}
.prose-list li svg { width: 15px; height: 15px; margin-top: 5px; flex-shrink: 0; color: hsl(var(--brand)); }

/* CAPABILITY CARDS (что умеет + польза) ------------------------------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: hsl(var(--border));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cap {
  background: hsl(var(--surface));
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: background 0.2s;
}
.cap:hover { background: hsl(var(--surface-2)); }

.cap h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; line-height: 1.4; }
.cap > p { font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.7; font-weight: 300; }

.cap-biz {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px dashed hsl(var(--border));
}
.cap-biz p { font-size: 13px; line-height: 1.65; font-weight: 300; color: hsl(var(--foreground)); }

.cap-biz-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--brand));
  margin-bottom: 8px;
}

/* CODE SNIPPET -------------------------------------------------------------- */
.snippet-section { padding: 40px 0 80px; }

.snippet {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface));
  overflow: hidden;
}

.snippet-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
}

.snippet pre {
  margin: 0;
  padding: 24px 20px;
  overflow-x: auto;
}

.snippet code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  color: hsl(var(--foreground));
  white-space: pre;
}

/* BUSINESS VALUE CARDS ------------------------------------------------------ */
.value-section {
  padding: 80px 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.4);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.value-card {
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  padding: 28px;
}
.value-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.value-card p { font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.7; font-weight: 300; }

/* ROADMAP CALLOUT ----------------------------------------------------------- */
.roadmap-section { padding: 80px 0 40px; }

.roadmap {
  border: 1px dashed hsl(var(--input));
  border-radius: var(--radius-lg);
  padding: 32px;
  background: hsl(var(--surface));
}
.roadmap h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 12px; }
.roadmap p { font-size: 15px; color: hsl(var(--muted-foreground)); line-height: 1.75; font-weight: 300; max-width: 760px; }

.roadmap-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: hsl(var(--brand) / 0.12);
  color: hsl(var(--brand));
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* COMPARISON TABLE ---------------------------------------------------------- */
.compare-section { padding: 80px 0; }

.cmp-scroll {
  overflow-x: auto;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface));
}

.cmp {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}
.cmp-two { min-width: 560px; }

.cmp th, .cmp td {
  padding: 14px 18px;
  text-align: center;
  border-bottom: 1px solid hsl(var(--border));
  vertical-align: middle;
}
.cmp tbody tr:last-child td { border-bottom: none; }

.cmp thead th {
  background: hsl(var(--secondary));
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
}
.cmp thead th.is-featured { background: hsl(var(--surface-2)); }

.cmp-plan-name { display: block; font-size: 14px; font-weight: 600; }
.cmp-plan-price { display: block; font-family: var(--mono); font-size: 11px; font-weight: 400; color: hsl(var(--muted-foreground)); margin-top: 3px; }

.cmp td.cmp-feature,
.cmp th.cmp-feature {
  text-align: left;
  font-weight: 500;
  min-width: 240px;
  color: hsl(var(--foreground));
}
.cmp td.cmp-feature small {
  display: block;
  font-size: 12px;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  margin-top: 3px;
  line-height: 1.5;
}

.cmp tbody tr:hover td { background: hsl(var(--surface-2) / 0.5); }

.cmp-yes { color: hsl(var(--success)); display: inline-flex; }
.cmp-no { color: hsl(var(--muted-foreground)); opacity: 0.45; display: inline-flex; }
.cmp-yes svg, .cmp-no svg { width: 15px; height: 15px; }

.cmp-cta-row td { padding-top: 20px; padding-bottom: 20px; }
.cmp-cta-row .plan-btn { margin-top: 0; display: inline-block; padding: 9px 18px; font-size: 13px; }

.cmp-note {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  max-width: 760px;
}

/* PRICING QUIZ -------------------------------------------------------------- */
.quiz-section {
  padding: 72px 0;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.4);
}

.quiz-head { margin-bottom: 40px; }

.quiz {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  background: hsl(var(--surface));
  overflow: hidden;
}

.quiz-progress { height: 3px; background: hsl(var(--border)); }
.quiz-progress-bar {
  height: 100%;
  width: 0;
  background: hsl(var(--brand));
  transition: width 0.3s ease;
}

.quiz-q { padding: 32px 32px 28px; border-bottom: 1px solid hsl(var(--border)); }

.quiz-q-num {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 10px;
}

.quiz-q h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 20px; line-height: 1.4; }

.quiz-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.quiz-opt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  text-align: left;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--sans);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.quiz-opt:hover { border-color: hsl(var(--input)); background: hsl(var(--surface-2)); }
.quiz-opt b { font-size: 14px; font-weight: 600; }
.quiz-opt span { font-size: 12px; font-weight: 300; color: hsl(var(--muted-foreground)); line-height: 1.5; }

.quiz-opt.is-on {
  border-color: hsl(var(--brand));
  background: hsl(var(--brand) / 0.08);
  box-shadow: inset 0 0 0 1px hsl(var(--brand) / 0.4);
}

.quiz-result { padding: 36px 32px; text-align: center; background: hsl(var(--secondary)); }

.quiz-result-label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 10px;
}

.quiz-result-name { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.quiz-result-price { font-family: var(--mono); font-size: 15px; color: hsl(var(--brand)); margin-top: 6px; }

.quiz-result-why {
  list-style: none;
  display: inline-grid;
  gap: 8px;
  margin: 22px auto 26px;
  text-align: left;
}
.quiz-result-why li {
  position: relative;
  padding-left: 20px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}
.quiz-result-why li::before {
  content: '';
  position: absolute;
  left: 4px; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: hsl(var(--brand));
}

/* Требование, которое рекомендованный тариф НЕ закрывает. */
.quiz-result-why li.is-miss { color: hsl(var(--warning)); }
.quiz-result-why li.is-miss::before { background: hsl(var(--warning)); }

/* Пояснение, почему не подошёл более дешёвый тариф. */
.quiz-result-why li.is-note { opacity: 0.75; font-style: italic; }
.quiz-result-why li.is-note::before { background: hsl(var(--muted-foreground)); }

.quiz-result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.quiz-result-actions .btn-ghost { cursor: pointer; font-family: var(--sans); }

.quiz-result-note {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
}

/* Плашка «Подходит вам» на карточке тарифа, которую выбрал квиз. */
.plan-pick {
  display: none;
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  padding: 6px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: hsl(var(--brand));
  color: hsl(0 0% 100%);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}
.plan { position: relative; }
.plan.is-picked { border-color: hsl(var(--brand)); padding-top: 44px; }
.plan.is-picked .plan-pick { display: block; }
.plan.is-picked .plan-badge { display: none; }

.pricing-foot {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* PAIN CARDS (кейсы) -------------------------------------------------------- */
.pain-section { padding: 80px 0 40px; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.pain-card {
  border: 1px solid hsl(var(--border));
  border-left: 2px solid hsl(var(--danger) / 0.5);
  border-radius: var(--radius);
  background: hsl(var(--surface));
  padding: 24px;
}
.pain-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.45; }
.pain-card p { font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.7; font-weight: 300; }

.pain-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: hsl(var(--danger) / 0.12);
  color: hsl(var(--danger));
}
.pain-mark svg { width: 14px; height: 14px; }

/* OUTCOME LIST -------------------------------------------------------------- */
.outcome-section {
  padding: 80px 0;
  border-top: 1px solid hsl(var(--border));
  background: hsl(var(--secondary) / 0.4);
}

.outcome {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 48px;
  align-items: start;
}

.outcome-list { list-style: none; display: grid; gap: 14px; }

.outcome-list li {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  background: hsl(var(--surface));
  font-size: 14px;
  line-height: 1.65;
  font-weight: 300;
}
.outcome-list li svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; color: hsl(var(--success)); }

/* PLAN HINT (в кейсе) ------------------------------------------------------- */
.planhint-section { padding: 72px 0; }

.planhint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 36px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-xl);
  background: hsl(var(--surface));
}
.planhint h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.planhint p { font-size: 14px; color: hsl(var(--muted-foreground)); line-height: 1.7; font-weight: 300; max-width: 620px; }
.planhint-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* USE CASE / CASE CARDS ----------------------------------------------------- */
.usecases-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.usecases-head .btn-ghost { flex-shrink: 0; }
.usecases-head .btn-ghost svg { width: 14px; height: 14px; margin-left: 6px; }

.uc-card { display: block; text-decoration: none; color: inherit; }

.uc-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: hsl(var(--foreground));
}
.uc-more svg { width: 14px; height: 14px; transition: transform 0.2s; }
.uc-card:hover .uc-more svg { transform: translateX(3px); }

.cases-index { padding: 24px 0 80px; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  background: hsl(var(--surface));
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.case-card:hover { border-color: hsl(var(--input)); background: hsl(var(--surface-2)); }
.case-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; line-height: 1.35; }
.case-card > p { font-size: 13px; color: hsl(var(--muted-foreground)); line-height: 1.7; font-weight: 300; }

.case-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.case-card-top .feat-icon { margin-bottom: 0; }

.case-card-meta {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed hsl(var(--border));
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}
.case-card .uc-more { margin-top: 16px; }

/* Extra tag tones for the seven audiences */
.uc-tag.green { background: hsl(var(--success) / 0.12); color: hsl(var(--success)); }
.uc-tag.violet { background: hsl(265 70% 55% / 0.14); color: hsl(265 60% 52%); }
.uc-tag.orange { background: hsl(var(--warning) / 0.14); color: hsl(var(--warning)); }
.uc-tag.rose { background: hsl(340 75% 55% / 0.14); color: hsl(340 65% 52%); }
[data-theme="dark"] .uc-tag.violet { color: hsl(265 80% 72%); }
[data-theme="dark"] .uc-tag.rose { color: hsl(340 85% 72%); }

/* FOOTER (multi-column) ----------------------------------------------------- */
.footer-cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 36px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  max-width: 300px;
}

.footer-col-title {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--foreground));
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: grid; gap: 9px; }

.footer-col a {
  font-size: 13px;
  font-weight: 300;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: hsl(var(--foreground)); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid hsl(var(--border));
}

/* RESPONSIVE --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .prose-grid, .outcome { grid-template-columns: 1fr; gap: 28px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero {padding-top: 96px}
  .features-grid, .plans, .uc-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .db-body { grid-template-columns: 1fr; }
  .db-sidebar { border-right: none; border-bottom: 1px solid hsl(var(--border)); padding-right: 0; padding-bottom: 16px; }
  .db-stats { grid-template-columns: repeat(3, 1fr); }
  .nav-inner { padding: 0 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-links { flex-wrap: wrap; gap: 12px 20px; }
  .container { padding: 0 16px; }

  /* Nav links scroll horizontally instead of disappearing — with a dozen pages
     the mobile visitor needs a way to reach them. */
  .nav-links { gap: 16px; }
  .nav-links li:not(.nav-cta-item):not(.nav-toggle-item) a { font-size: 13px; }
  .nav-links li.nav-cta-item:first-of-type { display: none; }

  .page-hero { padding: 108px 0 40px; }
  .cap-grid, .case-grid, .value-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .quiz-q { padding: 24px 20px; }
  .quiz-opts { grid-template-columns: 1fr; }
  .quiz-result { padding: 28px 20px; }
  .quiz-result-name { font-size: 26px; }
  .planhint { padding: 24px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .type-switch-item span { font-size: 12px; }
  .snippet code { font-size: 12px; }

  /* На узком экране всплывашка прижимается к обоим краям мокапа, иначе
     фиксированные 320px не оставляют полей. */
  .db-toast { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .hero-objection { margin-top: 18px; padding: 12px 14px; }
  .db-live { display: none; }
}

@media (max-width: 520px) {
  .nav-links li:not(.nav-cta-item):not(.nav-toggle-item) { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* No purple visited links: author colour:inherit beats the UA :visited style; component classes still set their own colour. */
a{color:inherit}
