:root {
  --bg-main: #090d16;
  --bg-surface: #111726;
  --bg-card: #171f32;
  --bg-card-hover: #1e2942;
  --bg-input: #1d263b;
  --border: #243049;
  --border-hover: #3b82f6;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.32);
  --accent-cyan: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --green: #10b981;
  --green-bg: rgba(16, 185, 129, 0.12);
  --yellow: #f59e0b;
  --yellow-bg: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --grid-max-width: 1240px;
}

body.light-theme,
html.light-theme body {
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #f1f5f9;
  --bg-card-hover: #e2e8f0;
  --bg-input: #e2e8f0;
  --border: #e2e8f0;
  --border-hover: #0284c7;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.22);
  --accent-cyan: #0284c7;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --green: #16a34a;
  --green-bg: rgba(22, 163, 74, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* ========================================= */
/* ВЕРХНЯЯ НАВИГАЦИЯ (STICKY NAVBAR)         */
/* ========================================= */
.top-navbar {
  background: rgba(17, 23, 38, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

body.light-theme .top-navbar {
  background: rgba(255, 255, 255, 0.9);
}

.nav-container {
  width: 100%;
  max-width: var(--grid-max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.nav-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.brand-badge {
  background: linear-gradient(135deg, var(--primary), #38bdf8);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

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

.nav-link.active {
  color: var(--accent-cyan);
  font-weight: 700;
}

.theme-toggle-btn {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-crm-nav {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan) !important;
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-crm-nav:hover {
  background: rgba(56, 189, 248, 0.22);
  transform: translateY(-1px);
}

/* Выпадающее меню документов (Поддержка Hover + Click на мобильных) */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-trigger {
  cursor: pointer;
  padding: 6px 0;
  user-select: none;
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-arrow,
.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 265px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  padding: 8px 0;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 18px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: background-color 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--bg-card);
  color: var(--text-main);
}

.dropdown-menu .dropdown-item.active {
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-cyan);
  font-weight: 700;
}

.btn-header {
  padding: 8px 16px !important;
  font-size: 0.86rem !important;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========================================= */
/* БАЗОВЫЕ КОНТЕЙНЕРЫ И КНОПКИ               */
/* ========================================= */
.container,
.landing-container {
  width: 100%;
  max-width: var(--grid-max-width);
  margin: 28px auto 0;
  padding: 0 24px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 11px;
  text-decoration: none;
  box-shadow: 0 8px 24px var(--primary-glow);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main) !important;
  border: 1px solid var(--border);
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 11px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

/* ========================================= */
/* HERO SECTION & ИНТЕРАКТИВНЫЙ СИМУЛЯТОР    */
/* ========================================= */
.hero-split {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 44px;
  align-items: center;
  padding: 36px 0 54px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-bg);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
}

.landing-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -1.2px;
  color: var(--text-main);
}

.landing-title span {
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .landing-title span {
  background: linear-gradient(90deg, #0284c7, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 28px;
  line-height: 1.6;
}

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.metric-num {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 2px;
}

.metric-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

/* Интерактивный Чат-Симулятор */
.chat-preview-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
  position: relative;
}

.sim-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sim-tabs-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sim-pill {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.sim-pill.active {
  background: rgba(37, 99, 235, 0.18);
  color: var(--accent-cyan);
  border-color: var(--primary);
}

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

.chat-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-letter {
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--accent-cyan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.chat-meta h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.chat-meta p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

.badge-status {
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(37, 99, 235, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
}

.dialog-context-tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-weight: 600;
}

.chat-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  transition: all 0.2s ease;
}

.bubble-agent {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  margin-left: auto;
  border-bottom-right-radius: 3px;
}

.bubble-agent.highlight {
  background: var(--primary);
  border-color: var(--primary-hover);
  color: #ffffff;
}

.bubble-seller {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  margin-right: auto;
  border-bottom-left-radius: 3px;
}

.bubble-stamp {
  font-size: 0.66rem;
  opacity: 0.8;
  text-align: right;
  margin-top: 4px;
}

.tg-result-box {
  margin-top: 4px;
  background: var(--green-bg);
  border: 1px dashed rgba(16, 185, 129, 0.45);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

/* ========================================= */
/* СЕКЦИИ ЛЕНДИНГА И КАРТОЧКИ                */
/* ========================================= */
.landing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 38px;
  margin-bottom: 26px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 12px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.landing-card h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 760px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.workflow-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px 20px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  position: relative;
}

.workflow-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.workflow-num {
  background: var(--primary);
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 14px;
  font-size: 0.92rem;
}

.workflow-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.workflow-card p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

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

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

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

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.feature-box h4 {
  font-size: 1.06rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.feature-box p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

/* ========================================= */
/* КАЛЬКУЛЯТОР ОКУПАЕМОСТИ И ВЫГОДЫ (ROI)    */
/* ========================================= */
.roi-calc-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
}

.roi-controls-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.roi-slider-group {
  margin-bottom: 20px;
}

.roi-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.roi-slider-val {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 1.1rem;
}

.roi-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--bg-input);
  outline: none;
}

.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
}

.roi-results-box {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.14), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.roi-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0;
}

.roi-kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.roi-kpi-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.roi-kpi-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ========================================= */
/* СРАВНЕНИЕ: РУЧНАЯ РАБОТА VS АВТОПИЛОТ     */
/* ========================================= */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.compare-col.positive {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, var(--bg-card) 100%);
}

.compare-col h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.compare-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

/* ========================================= */
/* FAQ АККОРДЕОН                             */
/* ========================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 18px 22px;
  font-size: 0.98rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 22px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.cta-card {
  text-align: center;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 48px 30px;
}

.cta-card h2 {
  max-width: 680px;
  margin: 0 auto 12px;
}

.cta-card p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.cta-card .hero-actions {
  justify-content: center;
}

/* ========================================= */
/* СТИЛИ ДОКУМЕНТАЦИИ И РУКОВОДСТВ           */
/* ========================================= */
header.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 38px 30px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.role-badge, .badge {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

header.hero-card h1 {
  font-size: 2.1rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.25;
}

header.hero-card p {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 740px;
  margin: 0 auto 12px;
}

.last-updated {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}

section, .step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 20px;
}

section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 14px;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

ul, ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

li {
  margin-bottom: 8px;
}

.info-box, .notice-box {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  padding: 15px 18px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  color: var(--text-main);
  font-size: 0.92rem;
}

.warning-box {
  background: var(--bg-card);
  border-left: 4px solid var(--yellow);
  padding: 15px 18px;
  border-radius: 0 10px 10px 0;
  margin: 16px 0;
  color: var(--text-main);
  font-size: 0.92rem;
}

.screenshot-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 20px 0;
  overflow: hidden;
}

.screenshot-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.screenshot-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.screenshot-body {
  background: var(--bg-main);
  padding: 16px;
}

.screenshot-body img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  border: 1px solid var(--border);
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.screenshot-caption {
  padding: 10px 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.image-zoom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 24px;
}

.image-zoom-overlay.active {
  opacity: 1;
  visibility: visible;
}

.image-zoom-overlay img {
  max-width: 95vw;
  max-height: 90vh;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: zoom-out;
}

code {
  background: var(--bg-card);
  color: var(--accent-cyan);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.88em;
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 10px;
  overflow-x: auto;
  margin: 14px 0;
  color: var(--text-main);
}

footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* ========================================= */
/* АДАПТИВНОСТЬ (ПЛАНШЕТЫ И СМАРТФОНЫ)       */
/* ========================================= */
@media (max-width: 1040px) {
  .hero-split,
  .roi-calc-grid,
  .compare-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .workflow-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-container {
    padding: 10px 14px;
    gap: 8px;
  }
  .nav-links {
    gap: 10px;
  }
  .nav-link {
    font-size: 0.83rem;
  }
  .theme-toggle-btn {
    padding: 6px 9px;
    border-radius: 50%;
  }
  .theme-toggle-btn span {
    display: none;
  }
  .btn-header {
    display: none;
  }
  .btn-crm-nav span.crm-txt-hide {
    display: none;
  }
  .landing-title {
    font-size: 2rem;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-grid,
  .features-grid {
    grid-template-columns: 1fr;
  }
  .landing-card,
  section,
  .step-card {
    padding: 22px 18px;
  }
}

@media (max-width: 480px) {
  .landing-title {
    font-size: 1.7rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }
  .roi-kpi-grid {
    grid-template-columns: 1fr;
  }
}
