/* ==========================================================================
   SEO-ZAKAZ.RU — Production Stylesheet
   Minimalist Editorial Design System (2026)
   ========================================================================== */

/* --- 1. DESIGN TOKENS --- */
:root {
  --bg: #f8f8f9;
  --surface: #ffffff;
  --surface-subtle: #f3f3f5;
  --surface-hover: #eaebee;
  --text: #0d0d0d;
  --text-secondary: #525256;
  --text-muted: #8e8e93;
  --dark: #0d0d0d;
  --dark-surface: #141416;
  --dark-subtle: #1c1c1f;
  --dark-secondary: #242428;
  --dark-border: rgba(255, 255, 255, 0.08);
  --dark-text: #f7f7f7;
  --dark-muted: #888888;
  --divider: rgba(0, 0, 0, 0.07);
  --divider-dark: rgba(255, 255, 255, 0.08);

  /* Restrained semantic signals */
  --signal-critical: #dc2626;
  --signal-critical-bg: rgba(220, 38, 38, 0.08);
  --signal-warning: #b45309;
  --signal-warning-bg: rgba(180, 83, 9, 0.08);
  --signal-good: #059669;
  --signal-good-bg: rgba(5, 150, 105, 0.08);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-card: 12px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.18s var(--ease-out);
  --transition-normal: 0.32s var(--ease-out);

  --page-padding: clamp(16px, 3.5vw, 48px);
  --container: 1400px;
  --header-height: 64px;
}

/* --- 2. RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--bg);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

.mono {
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* --- 3. TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 500;
  color: var(--text);
  text-wrap: balance;
}

.h1 {
  font-size: clamp(28px, 2.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 500;
}

.h2 {
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.h2 span {
  color: var(--text-muted);
  font-weight: 400;
}

.h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 500;
}

.h4 {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

.lead {
  font-size: clamp(11px, 1vw, 13px);
  line-height: 1.55;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.body-sm {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-wrap: pretty;
}

.label-cap {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- 4. LAYOUT & CONTAINERS --- */
.container {
  width: min(calc(100% - var(--page-padding) * 2), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 7vw, 110px);
  position: relative;
}

.section-tight {
  padding-block: clamp(44px, 5vw, 80px);
}

.section-dark {
  background-color: var(--dark);
  color: var(--dark-text);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--dark-text);
}

.section-dark .h2 span {
  color: var(--dark-muted);
}

.section-dark .lead,
.section-dark .body-sm {
  color: #a6a6a6;
}

.section-dark .label-cap {
  color: #777;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.grid-12 > *,
.audit-grid > *,
.content-workflow-grid > *,
.factors-workspace > *,
.process-workspace > *,
.team-grid > * { min-width: 0; }

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

.section-header {
  margin-bottom: clamp(32px, 3.5vw, 54px);
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: clamp(32px, 3.5vw, 54px);
}

/* --- 5. UI ATOMS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn i, .btn svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  transition: transform var(--transition-fast);
}

.btn:hover i, .btn:hover svg {
  transform: translate(2px, -2px);
}

.btn-primary {
  background-color: var(--dark);
  color: #fff;
}

.btn-primary:hover {
  background-color: #242424;
}

.btn-secondary {
  background-color: var(--surface-subtle);
  color: var(--text);
}

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

.btn-light {
  background-color: #ffffff;
  color: var(--dark);
}

.btn-light:hover {
  background-color: #ebebeb;
}

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

.btn-dark-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.icon-tile {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--surface-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.icon-tile svg, .icon-tile i {
  width: 16px;
  height: 16px;
}

.icon-tile-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.icon-tile-black {
  background: var(--dark);
  color: #fff;
}

/* Minimalist Monochrome Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-sm);
  padding: 3px 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  background: var(--surface-subtle);
  color: var(--text-secondary);
  line-height: 1.3;
}

.tag svg {
  width: 11px;
  height: 11px;
}

.tag-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #e0e0e0;
}

.tag-critical { background: var(--signal-critical-bg); color: var(--signal-critical); }
.tag-warning { background: var(--signal-warning-bg); color: var(--signal-warning); }
.tag-good { background: var(--signal-good-bg); color: var(--signal-good); }
.tag-lead { background: #000; color: #fff; font-weight: 500; }

.card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2vw, 28px);
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.card-subtle { background: var(--surface-subtle); box-shadow: none; }
.card-dark { background: var(--dark-surface); color: var(--dark-text); box-shadow: none; }

/* --- 6. HEADER & DYNAMIC ISLAND --- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
}

.header-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--divider);
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}

.logo-symbol {
  width: 26px;
  height: 26px;
  background: var(--dark);
  color: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Dynamic Island */
.dynamic-island {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  background: var(--dark);
  color: #fff;
  height: 46px;
  padding: 4px 12px 4px 14px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.dynamic-island.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.island-logo { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.island-logo .logo-symbol { width: 22px; height: 22px; font-size: 12px; background: #242424; }

.island-nav { display: flex; align-items: center; gap: 14px; }
.island-link { font-size: 13px; font-weight: 500; color: #a3a3a3; }
.island-link:hover { color: #fff; }

.island-btn {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 5px;
  background: #262626;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 13, 13, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
  z-index: 999;
}

.mobile-bottom-nav-inner { display: flex; justify-content: space-around; align-items: center; }
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #999;
  font-size: 10px;
  font-weight: 500;
  min-width: 48px;
  min-height: 44px;
  justify-content: center;
}
.mobile-nav-item svg { width: 19px; height: 19px; }
.mobile-nav-item.active, .mobile-nav-item:hover { color: #fff; }

/* ==========================================================================
   7. HERO SECTION (1-Screen Compact Desktop)
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 16px);
  padding-bottom: 24px;
  min-height: calc(100vh - 20px);
  display: flex;
  align-items: center;
}

.hero-3col-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 1fr;
  gap: 20px;
  align-items: stretch;
  width: 100%;
}

.hero-main-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-title {
  margin-bottom: 12px;
}

.hero-subtitle {
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-tag-query {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-tag-query:hover { background: #e2e2e5; }

.hero-cta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-cta-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.hero-portrait-card {
  background: #fff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.hero-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #eee;
}

.hero-portrait-info {
  padding: 12px 14px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--divider);
}

.hero-portrait-name { font-size: 14px; font-weight: 600; }
.hero-portrait-role { font-size: 11px; color: var(--text-secondary); font-family: "JetBrains Mono", monospace; }

.browser-chrome {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.browser-header {
  background: #f1f2f4;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.browser-dots { display: flex; gap: 4px; }
.browser-dot { width: 8px; height: 8px; border-radius: 50%; background: #d0d1d4; }

.browser-search-bar {
  flex: 1;
  background: #fff;
  border-radius: 5px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-search-bar svg { width: 12px; height: 12px; color: var(--text-muted); flex-shrink: 0; }

.browser-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.serp-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.serp-item {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.serp-item:hover { background: #ebecee; }
.serp-item.is-target { background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); }

.serp-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.serp-url-group { font-size: 10px; color: var(--text-secondary); font-family: "JetBrains Mono", monospace; }
.serp-rank-badge {
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  background: #e2e3e6;
}
.serp-rank-badge.top-rank { background: var(--dark); color: #fff; }

.serp-title { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.25; margin-bottom: 2px; }
.serp-snippet { font-size: 11px; color: var(--text-secondary); line-height: 1.35; }

.serp-metrics-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1px solid var(--divider);
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
}

.serp-metric-item { display: flex; align-items: center; gap: 4px; }
.serp-metric-val { font-weight: 600; }

/* --- 8. AUDIT SECTION --- */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  align-items: start;
}

.audit-intro { grid-column: span 5; }
.audit-pillars { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }

.audit-pillar-item {
  padding: 12px 14px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.audit-pillar-header { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.audit-pillar-title { font-size: 14px; font-weight: 600; }
.audit-pillar-desc { font-size: 13px; color: var(--text-secondary); padding-left: 42px; line-height: 1.45; }

.audit-visual { grid-column: span 7; }

.audit-report-card {
  background: #141416;
  color: #f7f7f7;
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
}

.audit-report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}

.audit-score-widget {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.audit-stat-box { background: #1e1e22; padding: 12px 10px; border-radius: var(--radius-md); }
.audit-stat-label { font-size: 10px; font-family: "JetBrains Mono", monospace; color: #8e8e93; text-transform: uppercase; margin-bottom: 3px; }
.audit-stat-value { font-size: 18px; font-weight: 600; font-family: "JetBrains Mono", monospace; color: #ffffff; line-height: 1.1; }

.audit-progress-bar { width: 100%; height: 4px; background: #2d2d32; border-radius: 2px; overflow: hidden; margin-top: 6px; }
.audit-progress-fill { height: 100%; background: #ffffff; width: 0%; transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1); }

.audit-checklist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: "JetBrains Mono", monospace; font-size: 11px; }
.audit-check-item { display: flex; align-items: center; gap: 6px; padding: 7px 8px; background: #1a1a1d; border-radius: 5px; color: #ddd; }
.audit-check-icon { width: 15px; height: 15px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: bold; flex-shrink: 0; background: rgba(255,255,255,0.1); color: #fff; }

.process-steps-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.process-step-item { background: #1e1e22; border-radius: var(--radius-md); padding: 14px 12px; color: #ffffff; }
.process-step-num { font-family: "JetBrains Mono", monospace; font-size: 10px; color: #8e8e93; margin-bottom: 2px; }
.process-step-title { font-size: 13px; font-weight: 600; margin-bottom: 2px; color: #ffffff; }
.process-step-item .body-sm { color: #a0a0a5; font-size: 11px; }

/* --- 9. CHARTS --- */
.chart-widget-card {
  background: #141416;
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.chart-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.chart-title-group .chart-metric-title { font-size: 11px; font-family: "JetBrains Mono", monospace; color: #8e8e93; text-transform: uppercase; }
.chart-title-group .chart-metric-value { font-size: 24px; font-weight: 600; font-family: "JetBrains Mono", monospace; color: #ffffff; line-height: 1.1; margin-top: 3px; }
.chart-delta-badge { display: inline-flex; align-items: center; gap: 4px; font-family: "JetBrains Mono", monospace; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 4px; background: rgba(255,255,255,0.1); color: #fff; }

.chart-canvas-container { position: relative; width: 100%; margin-block: 8px; }
.chart-svg { width: 100%; overflow: visible; }
.chart-grid-line { stroke: rgba(255, 255, 255, 0.08); stroke-dasharray: 4 4; stroke-width: 1; }
.chart-data-point { cursor: pointer; transition: r 0.18s var(--ease-out); }
.chart-data-point:hover { r: 5.5; }

.chart-axis-labels { display: flex; justify-content: space-between; padding-top: 6px; font-family: "JetBrains Mono", monospace; font-size: 11px; color: #777; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.chart-footer-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 11px; font-family: "JetBrains Mono", monospace; }
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-line { width: 14px; height: 3px; border-radius: 2px; }

.chart-tooltip {
  position: absolute;
  background: #242428;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -100%) translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 10;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}
.chart-tooltip.is-active { opacity: 1; }

.editorial-photo-banner { border-radius: var(--radius-card); overflow: hidden; position: relative; margin-block: 36px; }
.editorial-photo-banner img { width: 100%; max-height: 380px; object-fit: cover; }
.photo-caption { position: absolute; bottom: 12px; right: 12px; background: rgba(13, 13, 13, 0.85); color: #fff; padding: 4px 8px; border-radius: 4px; font-size: 10px; font-family: "JetBrains Mono", monospace; }

/* ==========================================================================
   10. SEO FACTORS WORKSPACE (Process-Style Tabs)
   ========================================================================== */
.factors-workspace {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
}

.factors-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Factor Item Button styled like Process Tabs */
.factor-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.factor-item-btn:hover {
  background: #f1f2f5;
}

.factor-item-btn.active {
  background: var(--dark) !important;
  color: #fff !important;
}

.factor-item-btn.active .factor-btn-sub {
  color: #aaa;
}

.factor-item-btn.active .icon-tile {
  background: #242426;
  color: #fff;
}

.factor-btn-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.factor-btn-title {
  font-size: 14px;
  font-weight: 600;
}

.factor-btn-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.factor-preview-panel {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.025);
}

.factor-pane {
  display: none;
  animation: fadeInPane 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.factor-pane.active {
  display: block;
}

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

/* ==========================================================================
   11. CONTENT PRODUCTION WORKSPACE (Process-Style Tabs & High-Contrast Top Bar)
   ========================================================================== */
.content-workflow-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: start;
}

.keywords-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Keyword item styled like Process Tabs */
.keyword-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  text-align: left;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.keyword-item-row:hover {
  background: #f1f2f5;
}

.keyword-item-row.active {
  background: var(--dark) !important;
  color: #fff !important;
}

.keyword-item-row.active .keyword-item-url {
  color: #aaa;
}

.keyword-item-row.active .icon-tile {
  background: #242426;
  color: #fff;
}

.keyword-item-title {
  font-size: 14px;
  font-weight: 600;
}

.keyword-item-url {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  margin-top: 1px;
}

.brief-editor-panel {
  background: #ffffff;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.03);
}

/* High-Contrast Inspector Top Bar for Content Editor */
.brief-top-bar {
  background: #141416;
  color: #f7f7f7;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brief-top-bar strong {
  color: #ffffff;
}

.editor-body {
  padding: 24px;
}

.editor-doc {
  background: #ffffff;
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 16px;
}

.editor-doc h3 {
  margin-bottom: 8px;
  color: #0d0d0d;
}

.editor-doc p {
  font-size: 14px;
  color: #2b2b2e;
  line-height: 1.6;
}

.seo-check-card {
  background: #f8f8fa;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.server-status-header,
.server-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.server-status-row { margin-bottom: 8px; }
.server-status-row:last-child { margin-bottom: 0; }
.server-status-meta { display: contents; }
.server-status-path { min-width: 0; overflow-wrap: anywhere; }
.server-status-time { color: #aaa; white-space: nowrap; }

/* --- 12. BACKLINK WORKSPACE --- */
.backlink-table-card {
  background: #141416;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.table-header-row {
  background: #1c1c1f;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.6fr 1.6fr 1.6fr;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
}

.table-body-row {
  padding: 13px 18px;
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.6fr 1.6fr 1.6fr;
  align-items: center;
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  color: #e0e0e0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.table-body-row:last-child {
  border-bottom: none;
}

.table-body-row:hover,
.table-body-row.active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.table-domain {
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.placement-preview-box {
  margin-top: 16px;
  background: #1a1a1d;
  border-radius: var(--radius-card);
  padding: 18px;
  color: #fff;
}

/* --- 13. PROCESS WORKSPACE --- */
.process-workspace {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
}

.process-tabs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.process-tab-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.process-tab-btn:hover {
  background: #f1f2f5;
}

.process-tab-btn.active {
  background: var(--dark);
  color: #fff;
}

.process-tab-btn.active .process-tab-num,
.process-tab-btn.active .process-tab-sub {
  color: #aaa;
}

.process-tab-btn.active .icon-tile {
  background: #242426;
  color: #fff;
}

.process-tab-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.process-tab-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
}

.process-tab-title {
  font-size: 14px;
  font-weight: 600;
}

.process-tab-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.process-panel-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.025);
}

.stage-content-pane {
  display: none;
  animation: fadeInPane 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.stage-content-pane.active {
  display: block;
}

/* ==========================================================================
   14. CASES & AUTHENTIC NDA GRID (Dark Blur + White Lock Badge Overlay)
   ========================================================================== */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 54px);
}

.case-editorial-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.case-visual-col {
  position: relative;
  background: #eee;
  overflow: hidden;
}

.case-visual-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-content-col {
  padding: clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-meta-header {
  margin-bottom: 14px;
}

.case-domain-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.case-headline {
  font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 10px;
}

.case-insight-box {
  background: var(--surface-subtle);
  border-left: 3px solid var(--dark);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.case-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
}

.case-metric-box .metric-num {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  font-family: "JetBrains Mono", monospace;
  color: var(--text);
  line-height: 1.1;
}

.case-metric-box .metric-lbl {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* NDA Grid with Dark Blur Panel + White Lock Badge */
.nda-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.nda-card {
  background: #141416;
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  height: 220px;
}

.nda-fake-content {
  position: absolute;
  inset: 0;
  padding: 16px;
  filter: blur(8px) grayscale(30%);
  opacity: 0.65;
  user-select: none;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-size: cover;
  background-position: center;
}

/* Dark Blur Overlay with White Badge & Text */
.nda-overlay-badge {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: rgba(13, 13, 15, 0.76);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.nda-lock-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.nda-lock-icon svg {
  width: 17px;
  height: 17px;
  stroke: #0d0d0d;
  stroke-width: 2.5;
}

.nda-niche-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.nda-sub-text {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  color: #a0a0a5;
}

.nda-pill-badge {
  margin-top: 8px;
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- 15. REPORTING MOCKUP --- */
.report-mockup-wrapper {
  max-width: 880px;
  margin-inline: auto;
  background: #141416;
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.2);
}

.report-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.report-kpi-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.report-kpi-card {
  background: #1e1e22;
  padding: 14px;
  border-radius: var(--radius-md);
}

.report-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.report-list-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 8px;
}

/* --- 16. TEAM & PACKAGES --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: start;
}

.lead-profile-card {
  grid-column: span 5;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.lead-profile-card img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}

.lead-info-body {
  padding: 18px;
}

.team-roles-panel {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-role-group {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
}

.team-role-group-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.role-row-item {
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.role-row-title { font-weight: 600; font-size: 14px; }

.team-role-group-dark {
  background: var(--dark);
  color: #fff;
}

.team-role-group-dark .team-role-group-title { color: #888; }
.team-role-group-dark .body-sm { color: #bbb; }

.contractor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.contractor-item {
  background: #202024;
  border-radius: var(--radius-md);
  padding: 12px;
  min-width: 0;
}

.contractor-item strong { display: block; font-size: 13px; color: #fff; margin-bottom: 3px; }
.contractor-item span { display: block; color: #aaa; font-size: 12px; line-height: 1.4; text-wrap: pretty; }

.lead-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.lead-comp-panel {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
}

.lead-comp-panel.highlight {
  background: var(--dark);
  color: var(--dark-text);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.package-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.025);
  transition: all var(--transition-fast);
}

.package-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.package-card.is-featured {
  box-shadow: 0 0 0 2px var(--dark), 0 6px 20px rgba(0, 0, 0, 0.06);
}

.package-header {
  margin-bottom: 12px;
}

.package-tier-name {
  font-size: 18px;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  margin-bottom: 3px;
}

.package-for {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  min-height: 44px;
}

.package-features-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-block: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  flex: 1;
}

.pkg-feat-item {
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.35;
}

.pkg-feat-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   17. QUIZ (Integrated with Ivan's Portrait & Bubble)
   ========================================================================== */
.quiz-integrated-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: stretch;
  background: var(--surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.035);
}

.quiz-expert-col {
  background: #f8f8fa;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--divider);
}

.quiz-expert-portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quiz-speech-bubble {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  position: relative;
  margin-bottom: 16px;
}

.quiz-interactive-col {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.quiz-progress-track {
  width: 100%;
  height: 4px;
  background: #e7e8eb;
  border-radius: 2px;
  margin-bottom: 20px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--dark);
  width: 33.3%;
  transition: width 0.35s var(--ease-out);
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quiz-option-btn {
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.quiz-option-btn:hover {
  background: #e4e5e9;
}

.quiz-result-view {
  display: none;
  animation: fadeInPane 0.35s var(--ease-out) forwards;
}

/* --- 18. FAQ --- */
.faq-search-box {
  max-width: 420px;
  position: relative;
  margin-bottom: 20px;
}

.faq-search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--divider);
  background: var(--surface);
  font-size: 13px;
}

.faq-search-input:focus {
  border-color: var(--dark);
}

.faq-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 15px;
  height: 15px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}

.faq-question-btn {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
}

.faq-toggle-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-normal);
}

.faq-item.is-open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
  padding-inline: 20px;
}

.faq-answer-inner {
  padding-bottom: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* --- 19. FINAL CTA --- */
.final-cta-card {
  background: var(--dark);
  color: var(--dark-text);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 54px);
  position: relative;
  overflow: hidden;
}

.workflow-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block: 30px;
  position: relative;
}

.workflow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 2;
  position: relative;
}

.workflow-node-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #202024;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
}

.workflow-node-label {
  font-size: 11px;
  font-family: "JetBrains Mono", monospace;
  color: #aaa;
}

.workflow-connector-line {
  position: absolute;
  top: 17px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 1;
}

/* --- 20. FOOTER --- */
.site-footer {
  background: #ededf0;
  border-top: 1px solid var(--divider);
  padding-top: clamp(40px, 5vw, 60px);
  padding-bottom: clamp(30px, 4vw, 44px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--divider);
  font-size: 12px;
  color: var(--text-muted);
}

/* --- 21. UTILITIES & REVEAL --- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.2s; }

/* --- 22. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1140px) {
  .hero-3col-grid { grid-template-columns: 1.2fr 0.9fr 1fr; }
  .quiz-integrated-layout { grid-template-columns: 1fr; }
  .quiz-expert-col { border-right: none; border-bottom: 1px solid var(--divider); }
}

@media (max-width: 1024px) {
  .hero-section { min-height: auto; padding-top: calc(var(--header-height) + 24px); }
  .hero-3col-grid { grid-template-columns: 1fr 1fr; }
  .hero-main-col { grid-column: span 2; margin-bottom: 20px; }

  .audit-intro { grid-column: span 12; }
  .audit-visual { grid-column: span 12; }

  .factors-workspace { grid-template-columns: 1fr; }
  .content-workflow-grid { grid-template-columns: 1fr; }
  .process-workspace { grid-template-columns: 1fr; }

  .case-editorial-card { grid-template-columns: 1fr; }
  .case-visual-col { min-height: 220px; }

  .packages-grid { grid-template-columns: repeat(2, 1fr); }
  .nda-grid { grid-template-columns: repeat(2, 1fr); }

  .lead-profile-card { grid-column: span 12; }
  .team-roles-panel { grid-column: span 12; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 56px; }
  html, body { overflow-x: clip; }
  .site-header .header-nav, .site-header .header-cta-group { display: none; }
  .dynamic-island { display: none !important; }
  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 64px; }

  .hero-3col-grid { grid-template-columns: 1fr; gap: 16px; }
  .hero-main-col { grid-column: span 1; }
  .hero-portrait-img { height: 200px; }

  .grid-12 { grid-template-columns: 1fr; }
  .grid-12 > [class*="col-"] { grid-column: 1 / -1; }
  .audit-grid { grid-template-columns: minmax(0, 1fr); }
  .audit-intro, .audit-visual { grid-column: 1 / -1; }
  .section-header-row { flex-direction: column; align-items: flex-start; gap: 16px; }

  .audit-report-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .process-steps-line { gap: 8px; }
  .process-step-item { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; padding: 10px; }
  .process-step-num { grid-row: span 2; margin-top: 2px; }
  .process-step-title { margin-bottom: 0; }

  .chart-header { flex-direction: column; gap: 12px; }
  .chart-title-group .chart-metric-title { line-height: 1.35; }
  .chart-title-group .chart-metric-value { font-size: 21px; }
  .chart-footer-legend { flex-direction: column; gap: 8px; }

  .brief-top-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .brief-top-bar > div { flex-wrap: wrap; gap: 6px 12px !important; }
  .editor-body { padding: 14px; }
  .editor-doc { padding: 16px; }
  .seo-check-card { align-items: flex-start; gap: 10px; padding: 12px; }
  .seo-check-card > span { flex-shrink: 0; }

  .server-status-header { display: none; }
  .server-status-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--dark-border);
  }
  .server-status-row:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
  .server-status-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
  .server-status-card { font-size: 11px !important; padding: 14px !important; }
  .server-status-card .tag { font-size: 9px; white-space: normal; text-align: right; }

  .backlink-table-card { overflow: visible; background: transparent; box-shadow: none; }
  .table-header-row { display: none; }
  .table-body-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px 12px;
    padding: 14px;
    margin-bottom: 8px;
    border: 0;
    border-radius: var(--radius-card);
    background: #1a1a1d;
    font-size: 11px;
  }
  .table-body-row > :first-child { grid-column: 1 / -1; }
  .table-body-row > span { min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
  .table-body-row > span::before { color: #888; font-size: 9px; letter-spacing: 0.04em; }
  .table-body-row > span:nth-child(2)::before { content: "РАЗМЕЩЕНИЕ"; }
  .table-body-row > span:nth-child(3)::before { content: "ТЕМАТИКА"; }
  .table-body-row > span:nth-child(4)::before { content: "ССЫЛКА"; }
  .table-body-row > span:nth-child(5)::before { content: "СТАТУС"; }
  .table-body-row .tag { align-self: flex-start; font-size: 9px; white-space: normal; }
  .table-domain { overflow-wrap: anywhere; }

  .factor-pane .card > div[style*="display: flex"],
  .stage-content-pane .card > div[style*="display: flex"] { flex-wrap: wrap; gap: 7px; }
  .factor-pane .card > div[style*="display: flex"] > span:first-child,
  .stage-content-pane .card > div[style*="display: flex"] > span:first-child { min-width: 0; overflow-wrap: anywhere; }
  .factor-pane .card .tag,
  .stage-content-pane .card .tag { white-space: normal; }

  .factors-list,
  .factor-preview-panel,
  .process-tabs-list,
  .process-panel-card { display: contents; }
  .factor-preview-panel,
  .process-panel-card { min-height: 0; }
  .factor-pane.active,
  .stage-content-pane.active {
    background: var(--surface);
    border-radius: var(--radius-card);
    padding: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.025);
  }

  .audit-score-widget { grid-template-columns: repeat(2, 1fr); }
  .audit-checklist { grid-template-columns: 1fr; }
  .process-steps-line { grid-template-columns: 1fr; }
  .packages-grid { grid-template-columns: 1fr; }
  .nda-grid { grid-template-columns: 1fr; }
  .report-kpi-bar { grid-template-columns: 1fr; }
  .report-columns { grid-template-columns: 1fr; }
  .case-metrics-grid { grid-template-columns: 1fr; }
  .lead-comparison-grid { grid-template-columns: 1fr; }
  .contractor-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .workflow-track { flex-direction: column; gap: 14px; align-items: flex-start; }
  .workflow-connector-line { display: none; }
  .workflow-node { flex-direction: row; }
}

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