/* ⚠️ KATALIZATOR MOBILE OPTIMIZATION RULES - APPLIES ONLY TO KATALIZATOR PROJECT ⚠️ */
/* These rules ensure all pages are optimized for mobile devices */

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

/* КРИТИЧНО: Скрываем niche-image-label на мобильной версии, чтобы он не накладывался на Hero */
@media (max-width: 768px) {
  .niche-image-label,
  #niche-preview-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -999 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
  
  .niche-image-preview {
    overflow: hidden !important;
    position: relative !important;
    z-index: 0 !important;
  }
  
  .niche-table-container {
    overflow: hidden !important;
    position: relative !important;
    z-index: 0 !important;
  }
  
  .hero {
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
  }
}

    :root {
      --primary-orange: #FF6B35;
      --primary-orange-dark: #E85A24;
      --primary-teal: #1A6F7F;
      --accent-red: #E63946;
      --success-green: #22C55E;
      --bg-white: #FFFFFF;
      --bg-light: #FFFFFF;
      --text-primary: #1F2937;
      --text-secondary: #6B7280;
      --border-color: #E5E7EB;
    }

    html { 
      scroll-behavior: smooth; 
    }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: var(--bg-white);
      color: var(--text-primary);
      line-height: 1.6;
      font-size: 14px; /* Mobile: 14px → 16px+ (tablet) */
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      margin: 0;
      padding: 0;
    }

    /* Containers: width 100%; max-width Xpx (NOT fixed width) - KATALIZATOR MOBILE OPTIMIZATION */
    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 24px;
    }

    /* Highlight for keyphrase */
    .highlight-orange {
      color: var(--primary-orange);
    }

    header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: var(--bg-white);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border-color);
      transition: box-shadow 0.3s ease;
      overflow-x: hidden; /* ✅ ИСПРАВЛЕНО: предотвращает горизонтальный скролл */
    }
    header.scrolled {
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 24px; /* немного компактнее */
      gap: 8px; /* ✅ ИСПРАВЛЕНО: уменьшено с 16px до 8px для компактности */
      flex-wrap: wrap; /* ✅ ИСПРАВЛЕНО: позволяет переноситься */
      overflow-x: hidden; /* ✅ ИСПРАВЛЕНО: предотвращает горизонтальный скролл */
      overflow-y: visible; /* ✅ ИСПРАВЛЕНО ПРОБЛЕМА #1: разрешаем вертикальный overflow для hover эффекта */
      min-height: 120px; /* ✅ ИСПРАВЛЕНО ПРОБЛЕМА #1: увеличиваем высоту на 12% для запаса при hover */
    }
    .logo {
      display: flex;
      align-items: center;
      text-decoration: none;
      height: auto; /* ✅ ИСПРАВЛЕНО: автоматическая высота */
      max-height: 110px; /* ✅ ИСПРАВЛЕНО: максимальная высота */
      padding: 10px 0 10px 12px;
      margin-right: 0;
      background: transparent !important;
      flex-shrink: 0; /* ✅ ИСПРАВЛЕНО: не сжимается */
      transition: all 0.2s ease;
      flex-shrink: 0;
    }
    .logo:hover {
      transform: scale(1.05);
      opacity: 0.9;
    }
    .logo img {
      height: 100px;
      width: auto;
      max-width: 320px; /* ✅ ИСПРАВЛЕНО: ограничение ширины */
      object-fit: contain;
      display: block;
      image-rendering: -webkit-optimize-contrast;
      image-rendering: auto;
      -ms-interpolation-mode: bicubic;
    }
    nav, .main-nav { 
      display: flex; 
      gap: 20px; /* ✅ ИСПРАВЛЕНО: уменьшено с 32px до 20px для компактности */
      font-size: 18px; 
      font-weight: 500;
      color: var(--text-secondary);
      margin: 0 auto;
      padding: 0 16px; /* ✅ ИСПРАВЛЕНО: уменьшено с 0 32px до 0 16px для компактности */
      white-space: nowrap;
      flex-shrink: 1; /* ✅ ИСПРАВЛЕНО: позволяет меню сжиматься при нехватке места */
    }
    nav a, .main-nav a { 
      text-decoration: none; 
      color: inherit; 
      transition: color .2s;
      padding: 8px 0;
    }
    nav a:hover, .main-nav a:hover { color: var(--primary-orange); }

/* =========================================
   Menu hover safety (top desktop links only)
   Fix: "Цены/Блог/Контакты" not turning orange on hover
   Scope: only direct links in the top nav, not dropdown triggers/panels
   ========================================= */
:is(.page-home, .page-marketing) .main-nav > a.nav-link:hover,
:is(.page-home, .page-marketing) .main-nav > a.nav-link:focus-visible {
  color: var(--primary-orange) !important;
}

/* =========================================================
   Marketing header dropdown navigation
   Applies to: main page + static marketing pages + generated SEO pages
   ========================================================= */
:is(.page-home, .page-marketing) {
  /* Переносим защиту от горизонтального скролла сюда,
     чтобы header мог "выпускать" dropdown наружу. */
  overflow-x: hidden;
}

/* =========================
   Pricing interactive cards
   ========================= */
.pricing-controls {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-control-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-pages-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-pages-value {
  min-width: 96px;
  text-align: right;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-primary);
}

.pricing-pages-slider {
  width: 100%;
  accent-color: var(--primary-orange);
}

/* Modern track */
.pricing-pages-slider::-webkit-slider-runnable-track {
  height: 8px;
  background: linear-gradient(90deg, rgba(255,107,53,0.95), rgba(255,107,53,0.35));
  border-radius: 999px;
}
.pricing-pages-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -6px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--primary-orange);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.pricing-pages-slider::-moz-range-track {
  height: 8px;
  background: linear-gradient(90deg, rgba(255,107,53,0.95), rgba(255,107,53,0.35));
  border-radius: 999px;
}
.pricing-pages-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--primary-orange);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.pricing-prices-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pricing-price-box {
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 12px;
  background: #fff;
}

.pricing-price-box-first {
  grid-column: 1 / -1;
}

.pricing-price-box-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.pricing-price-box-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.pricing-price-box-monthly {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
}

.pricing-price-box-value-monthly {
  color: #0f6a2f;
}

.price-flash {
  transform: translateY(-1px);
}

.pricing-support-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: #fff;
}

.pricing-support-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.pricing-support-label {
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
}

.pricing-support-price {
  font-weight: 900;
  color: #0f6a2f;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-support-field {
  padding: 12px;
  border: 1px dashed rgba(34, 197, 94, 0.45);
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.06);
}

.pricing-support-field-label {
  display: block;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-support-field input[type="number"] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  font-size: 16px;
}

.pricing-help-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.pricing-validation-error {
  margin-top: 8px;
  font-size: 12px;
  color: #b42318;
  background: rgba(230, 57, 70, 0.08);
  border: 1px solid rgba(230, 57, 70, 0.25);
  padding: 8px 10px;
  border-radius: 12px;
}

/* Compact enhancement block inside existing pricing cards */
.pricing-mini-calc {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.pricing-mini-prices {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-mini-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.pricing-mini-price-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.pricing-mini-price-value {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-primary);
}

.pricing-mini-monthly .pricing-mini-price-value {
  color: #0f6a2f;
}

.pricing-mini-support-wrap {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.pricing-mini-support {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.pricing-mini-support-price {
  font-weight: 900;
  color: #0f6a2f;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
  width: fit-content;
}

/* Progressive disclosure: hide heavy blocks, toggle on demand */
.pricing-details-hidden {
  display: none;
}
.pricing-card.pricing-details-expanded .pricing-details-hidden {
  display: block;
}

.pricing-details-toggle {
  margin-top: 10px;
  border: none;
  background: transparent;
  color: var(--primary-teal);
  font-weight: 800;
  cursor: pointer;
  padding: 6px 0;
  text-align: left;
}
.pricing-details-toggle:hover {
  text-decoration: underline;
}

/* Separate support section (below tariff cards) */
.pricing-support-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border-color);
}
.pricing-support-grid {
  display: grid;
  gap: 12px;
  margin-top: 10px;
  grid-template-columns: 1fr;
}
.pricing-support-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.pricing-support-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.pricing-support-tariff {
  font-weight: 900;
  font-size: 18px;
}
.pricing-support-monthly-price {
  font-weight: 900;
  font-size: 20px;
  color: #FF6B35;
}
.pricing-support-card-sub {
  color: var(--text-secondary);
  font-size: 20px;
  line-height: 1.7;
}
.pricing-support-card-math {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}
.pricing-support-card-math strong {
  color: var(--text-primary);
}
.pricing-support-math-monthly strong {
  color: #0f6a2f;
}
.pricing-support-controls {
  margin-top: 2px;
}
.pricing-support-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.pricing-support-opt input[type="checkbox"] {
  width: 18px;
  height: 18px;
}
.pricing-support-opt-label {
  flex: 1;
}
.pricing-support-opt-pill {
  font-weight: 900;
  color: #0f6a2f;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-support-details {
  margin-top: 10px;
}
.pricing-support-block-title {
  font-size: 16px;
  font-weight: 900;
  color: var(--text-primary);
}
.pricing-support-results-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: grid;
  gap: 10px;
}
.pricing-support-results-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

/* Terms page (marketing) */
.terms-card {
  padding: 24px;
}
.terms-text {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.pricing-support-details-toggle {
  margin-top: 8px;
}
.pricing-support-cta {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: var(--primary-orange);
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  margin-top: auto; /* align buttons to the bottom across cards */
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pricing-support-cta:hover {
  background: #E55A2B;
}

/* Desktop: show 3 support cards in one row (like tariff cards) */
@media (min-width: 1024px) {
  section#pricing .pricing-support-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Make the two key explanatory texts in support block visually stronger */
section#pricing .pricing-support-section .pricing-help-text {
  font-size: 20px;
  line-height: 1.7;
}

/* ================= Back-to-top button (all marketing pages) ================= */
.back-to-top {
  position: fixed;
  bottom: 18px;
  /* Put into the left gutter when the container is centered (so it doesn't cover text) */
  left: max(12px, calc((100vw - 1200px) / 2 - 56px));
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 53, 0.25);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
  -webkit-tap-highlight-color: transparent;
}
.back-to-top svg {
  width: 22px;
  height: 22px;
  stroke: var(--primary-orange);
}
.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s;
}
.back-to-top:hover {
  background: #fff;
  border-color: rgba(255, 107, 53, 0.45);
}
.back-to-top:focus-visible {
  outline: 3px solid rgba(255, 107, 53, 0.35);
  outline-offset: 2px;
}
@media (max-width: 520px) {
  /* On very small screens keep left, but slightly lower and smaller */
  .back-to-top {
    width: 40px;
    height: 40px;
    bottom: 14px;
    left: 10px;
  }
}

/* ================= Internal content links (no underline, branded orange) ================= */
a.internal-content-link,
a.internal-content-link:visited,
a.internal-content-link:hover,
a.internal-content-link:active {
  color: var(--primary-orange);
  text-decoration: none;
}

/* If a global rule adds underline on hover, neutralize it */
a.internal-content-link:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Ensure nested highlighted span doesn't introduce underline via inherited styles */
a.internal-content-link .h2-keyword,
a.internal-content-link .highlight-orange {
  text-decoration: none;
}

/* Remove unnecessary internal scroll on desktop (modal fits content) */
@media (min-width: 1024px) and (min-height: 850px) {
  .modal-body {
    overflow-y: visible;
  }
  .modal-content-split {
    height: auto;
    max-height: 90vh;
  }
}

/* Footnote under results in tariff cards (homepage) */
section#pricing .pricing-results-footnote {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Homepage test (all tariffs): bigger orange price, no "разово" word near price, slider under price */
section#pricing[data-pricing-home-test] .pricing-card[data-tariff] .pricing-price-initial,
section#pricing[data-pricing-home-test] .pricing-card[data-tariff] [id^="price_initial_"] {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 900;
  color: #FF6B35;
  letter-spacing: -0.5px;
}

section#pricing[data-pricing-home-test] .pricing-card[data-tariff] .pricing-price {
  font-size: 44px;
  line-height: 1.05;
  font-weight: 900;
  color: #FF6B35;
  letter-spacing: -0.5px;
}

/* Hide only the period label near the price (NOT the numeric price span injected by JS) */
section#pricing[data-pricing-home-test] .pricing-card[data-tariff] .pricing-price .pricing-price-period,
section#pricing[data-pricing-home-test] .pricing-card[data-tariff] .pricing-price > span:not([id^="price_initial_"]) {
  display: none;
}

section#pricing[data-pricing-home-test] .pricing-card[data-tariff] .pricing-card-header .pricing-mini-calc {
  margin-top: 10px;
}

section#pricing[data-pricing-home-test] .pricing-card[data-tariff] .pricing-card-header .pricing-mini-calc .pricing-control-label {
  display: none;
}

/* Homepage test: results list with firm checkmarks */
section#pricing[data-pricing-home-test] .pricing-card[data-tariff] .pricing-results-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
  display: grid;
  gap: 10px;
}
section#pricing[data-pricing-home-test] .pricing-card[data-tariff] .pricing-results-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 400;
}

/* Homepage test: slider track from pale orange to bright orange (no teal) */
section#pricing[data-pricing-home-test] .pricing-card[data-tariff] .pricing-pages-slider::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, rgba(255,107,53,0.18), rgba(255,107,53,1));
}
section#pricing[data-pricing-home-test] .pricing-card[data-tariff] .pricing-pages-slider::-moz-range-track {
  background: linear-gradient(90deg, rgba(255,107,53,0.18), rgba(255,107,53,1));
}

@media (max-width: 768px) {
  .pricing-prices-grid {
    grid-template-columns: 1fr;
  }
  .pricing-pages-value {
    min-width: 84px;
    font-size: 16px;
  }
  .pricing-price-box-value {
    font-size: 20px;
  }
}

:is(.page-home, .page-marketing) header {
  /* ВАЖНО: если у header overflow-x != visible, то overflow-y не может быть visible (станет auto),
     из-за чего dropdown режется и появляется скролл внутри шапки. */
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

:is(.page-home, .page-marketing) .header-inner {
  position: relative; /* anchor full-width dropdown to header container */
  /* То же правило: нельзя держать overflow-x hidden, иначе dropdown будет обрезаться */
  overflow: visible !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
}

:is(.page-home, .page-marketing) .main-nav {
  align-items: center;
  overflow: visible;
}

:is(.page-home, .page-marketing) .main-nav .nav-item {
  position: static; /* dropdown-panel якорится к .main-nav, чтобы не было "мертвой зоны" */
  display: inline-flex;
  align-items: center;
}

/* =========================================================
   Desktop header alignment + robust dropdown hover behavior
   (fixes: crooked header alignment + "gap" that closes dropdown)
   ========================================================= */
@media (min-width: 1024px) {
  :is(.page-home, .page-marketing) .header-inner {
    /* стабильно выравниваем: логотип | меню | контакты/CTA */
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 22px;
    padding: 12px 24px;
    min-height: 0;
  }

  :is(.page-home, .page-marketing) .logo {
    padding: 6px 0 6px 8px;
  }

  :is(.page-home, .page-marketing) .logo img {
    height: 92px;
    max-width: 320px;
  }

  :is(.page-home, .page-marketing) .main-nav {
    /* dropdown panels должны якориться к строке меню, а не к низу всей шапки */
    position: relative;
    justify-content: center;
    margin: 0;
    padding: 0 10px;
    gap: 22px; /* чуть больше расстояние между пунктами */
  }

  :is(.page-home, .page-marketing) .header-right {
    /* держим компактно (вертикально), чтобы не съедать ширину у меню */
    flex-direction: column;
    align-items: center; /* кнопка ровно под телефоном */
    gap: 6px;
    margin-left: 0;
    justify-self: end;
  }

  :is(.page-home, .page-marketing) .header-actions {
    margin-top: 0;
    justify-content: center;
  }

  :is(.page-home, .page-marketing) .header-contacts {
    width: auto;
    align-items: center;
  }

  :is(.page-home, .page-marketing) .header-contacts-links {
    justify-content: center;
  }
}

:is(.page-home, .page-marketing) .main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 0;
  cursor: pointer;
}

:is(.page-home, .page-marketing) .main-nav .nav-link--dropdown {
  user-select: none;
}

:is(.page-home, .page-marketing) .main-nav .nav-caret {
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.8;
  transition: transform 180ms ease, opacity 180ms ease;
}

:is(.page-home, .page-marketing) .main-nav .dropdown-panel {
  position: absolute;
  /* По умолчанию: панель раскрывается прямо под строкой меню (якорь = .main-nav) */
  left: 0;
  right: 0;
  top: calc(100% - 2px);
  width: auto;
  max-width: none;
  background: #fff;
  border: 1px solid rgba(255, 107, 53, 0.65);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.18);
  padding: 22px 22px;
  opacity: 0;
  /* Двигаем по X/Y через переменные (X по умолчанию 0) */
  --dd-x: 0px;
  --dd-y: 8px;
  transform: translate3d(var(--dd-x), var(--dd-y), 0);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 320ms cubic-bezier(.2,.8,.2,1), transform 320ms cubic-bezier(.2,.8,.2,1), visibility 0ms linear 320ms;
  z-index: 60;
  will-change: transform, opacity;
}

:is(.page-home, .page-marketing) .main-nav .dropdown-panel::before {
  /* hover-мостик, чтобы курсор мог перейти с пункта на панель без закрытия */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

/* full container width dropdown: left/right already set on .dropdown-panel */

:is(.page-home, .page-marketing) .main-nav .dropdown-grid {
  display: grid;
  gap: 18px 40px;
}

:is(.page-home, .page-marketing) .main-nav .dropdown-3col .dropdown-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

:is(.page-home, .page-marketing) .main-nav .dropdown-2col .dropdown-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:is(.page-home, .page-marketing) .main-nav .dropdown-1col .dropdown-grid {
  grid-template-columns: 1fr;
}

:is(.page-home, .page-marketing) .main-nav .dropdown-compact {
  max-width: 520px;
  left: 0;
  right: auto;
}

:is(.page-home, .page-marketing) .main-nav .dropdown-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 4px 4px;
}

:is(.page-home, .page-marketing) .main-nav .dropdown-panel a {
  color: #0F172A;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
  padding: 10px 12px;
  border-radius: 10px;
  transition: color 180ms ease, background 180ms ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* "Возможности": делаем панель шире и комфортнее по отступам/сетке */
:is(.page-home, .page-marketing) .main-nav .dropdown-3col {
  /* Только этот dropdown делаем шире и центрируем по контейнеру (.main-nav) */
  left: 50%;
  right: auto;
  width: min(1160px, calc(100vw - 64px));
  max-width: none;
  --dd-x: -50%;
  padding: 26px 30px;
}

:is(.page-home, .page-marketing) .main-nav .dropdown-3col .dropdown-grid {
  gap: 18px 56px;
}

:is(.page-home, .page-marketing) .main-nav .dropdown-panel a .dd-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  opacity: 0.95;
}

:is(.page-home, .page-marketing) .main-nav .dropdown-panel a .dd-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

:is(.page-home, .page-marketing) .main-nav .dropdown-panel a:hover {
  color: var(--primary-orange);
  background: rgba(255, 107, 53, 0.08);
}

:is(.page-home, .page-marketing) .main-nav .nav-item.dropdown:hover > .nav-link {
  color: var(--primary-orange);
}

:is(.page-home, .page-marketing) .main-nav .nav-item.dropdown:hover .nav-caret {
  transform: rotate(225deg) translateY(1px);
  opacity: 1;
}

:is(.page-home, .page-marketing) .main-nav .nav-item.dropdown:hover > .dropdown-panel,
:is(.page-home, .page-marketing) .main-nav .nav-item.dropdown:focus-within > .dropdown-panel {
  opacity: 1;
  --dd-y: 0px;
  pointer-events: auto;
  visibility: visible;
  transition: opacity 320ms cubic-bezier(.2,.8,.2,1), transform 320ms cubic-bezier(.2,.8,.2,1), visibility 0ms;
}

/* "Мостик" делаем через ::before у панели (см. выше), чтобы не раздувать высоту строки меню. */

/* Компактный dropdown ("Сайты") — якорим под самим пунктом меню */
:is(.page-home, .page-marketing) .main-nav .nav-item.dropdown--compact {
  position: relative;
}
:is(.page-home, .page-marketing) .main-nav .nav-item.dropdown--compact > .dropdown-panel {
  left: 50%;
  right: auto;
  max-width: 520px;
  /* Ровно под "Сайты" (центрируем по пункту) */
  --dd-x: -50%;
}

/* mobile: keep current full-screen nav behavior; hide dropdown panels for now */
@media (max-width: 1024px) {
  :is(.page-home, .page-marketing) .main-nav .dropdown-panel {
    display: none !important;
  }
  :is(.page-home, .page-marketing) .main-nav .nav-caret {
    display: none;
  }
}
    
    /* Мобильное меню (бургер) */
    .mobile-menu-toggle {
      display: none;
      flex-direction: column;
      justify-content: space-around;
      width: 30px;
      height: 30px;
      background: transparent;
      border: none;
      cursor: pointer;
      padding: 0;
      z-index: 100;
      position: relative;
    }
    .mobile-menu-toggle span {
      width: 100%;
      height: 3px;
      background: var(--text-primary);
      border-radius: 3px;
      transition: all 0.3s ease;
      transform-origin: center;
    }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
      transform: rotate(45deg) translate(8px, 8px);
    }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
    }
    .mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
      transform: rotate(-45deg) translate(8px, -8px);
    }
    .header-actions { 
      display: flex; 
      gap: 10px; 
      margin-top: 8px;
      flex-shrink: 0;
      flex-wrap: wrap; /* ✅ ИСПРАВЛЕНО: позволяет переноситься */
      justify-content: center;
    }
    .header-actions .btn { 
      text-align: center; 
      justify-content: center;
      padding: 12px 18px; /* компактнее */
      font-size: 16px;
      font-weight: 700;
      border-radius: 12px;
      min-width: auto;
    }
    .header-right {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      margin-left: auto;
      flex-shrink: 0; /* ✅ ИСПРАВЛЕНО: кнопка и телефон не сжимаются */
    }
    .header-contacts {
      display: flex;
      flex-direction: column;
      align-items: center;
      font-size: 13px;
      color: var(--text-secondary);
      line-height: 1.5;
      width: 100%;
    }
    .header-contacts-label {
      font-weight: 500;
      margin-bottom: 2px;
    }
    .header-contacts-links {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      flex-wrap: wrap;
      width: 100%;
    }
    .header-contacts a:not(.header-phone) {
      color: var(--text-secondary);
      text-decoration: none;
      font-size: 13px;
    }
    .header-contacts a:not(.header-phone):hover {
      color: var(--primary-orange);
    }
    .header-contacts .header-phone,
    .header-phone {
      font-size: clamp(20px, 2.5vw, 28px) !important;
      font-weight: 700;
      color: var(--primary-orange);
      text-decoration: none;
      transition: color 0.2s ease;
      text-align: center;
      white-space: nowrap;
    }
    .header-phone:hover {
      color: var(--primary-orange-dark);
    }
    .header-contacts-separator {
      color: #D1D5DB;
    }

    /* Buttons: 44x44px minimum, padding 14px 20px, font-size 16px - KATALIZATOR MOBILE OPTIMIZATION */
    .btn {
      padding: 14px 20px; /* KATALIZATOR MOBILE: 14px 20px */
      border-radius: 10px; /* более прямоугольная форма */
      font-size: 16px; /* KATALIZATOR MOBILE: 16px */
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: all 200ms ease;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      min-height: 44px; /* KATALIZATOR MOBILE: 44x44px minimum */
      min-width: 44px;
      white-space: nowrap; /* не переносить текст */
    }
    .btn-primary {
      background: var(--primary-orange);
      color: #fff;
      box-shadow: 0 8px 24px rgba(255, 107, 53, 0.15);
    }
    .btn-primary:hover {
      background: var(--primary-orange-dark);
      box-shadow: 0 12px 32px rgba(255, 107, 53, 0.25);
      transform: translateY(-1px);
    }
    .btn-secondary {
      background: transparent;
      color: var(--text-primary);
      border: 1px solid var(--border-color);
    }
    .btn-secondary:hover {
      background: var(--bg-light);
      border-color: var(--primary-orange);
    }
    .btn-secondary-orange {
      background: transparent;
      color: var(--primary-orange);
      border: 2px solid var(--primary-orange);
    }
    .btn-secondary-orange:hover {
      background: var(--primary-orange);
      color: #fff;
      transform: translateY(-1px);
    }
    .btn-large {
      padding: 18px 36px;
      font-size: 18px;
      font-weight: 700;
      border-radius: 10px;
      min-width: 200px;
      white-space: nowrap;
    }

    .hero {
      position: relative;
      padding: 64px 20px 80px;
      min-height: 85vh; /* делаем hero заметным экраном */
      display: flex;
      justify-content: center;
      align-items: center;
      background: #FFFFFF !important;
      border-bottom: 1px solid var(--border-color);
      overflow-x: hidden;
      width: 100%;
    }
    .hero-content {
      width: 100%;
      max-width: 1200px; /* Уменьшено для заметного центрирования */
      text-align: center;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 12px; /* ✅ ИСПРАВЛЕНО: уменьшено с 24px до 12px для уменьшения дыры */
      margin: 0 auto; /* Центрирование */
    }
    .hero-badge {
      display: inline-block;
      padding: 6px 10px;
      background: rgba(255, 107, 53, 0.08);
      border: 1px solid rgba(255, 107, 53, 0.2);
      border-radius: 12px;
      font-size: 11px;
      font-weight: 500;
      color: var(--primary-orange);
      margin-bottom: 18px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    /* УДАЛЕНО: блок с max-height который обрезал H1 */
    .hero h1 {
      font-size: clamp(32px, 6vw, 56px); /* чуть меньше, чтобы не ломать строку */
      font-weight: 800;
      line-height: 1.25;
      margin: 0;
      padding: 0;
      letter-spacing: -0.02em;
      color: var(--text-primary);
      width: 100%;
      word-break: break-word;
      overflow-wrap: break-word;
      text-align: center;
      max-width: 100%;
      box-sizing: border-box;
    }

    /* Глобальные H2 */
    h2 {
      font-size: clamp(28px, 4vw, 40px);
      font-weight: 800;
      line-height: 1.25;
      max-width: 100%;
      display: block;
    }
    .h1-static {
      display: inline;
    }
    .h1-space {
      display: inline-block;
      width: 0.35em;
    }
    .h1-dynamic {
      display: inline-block;
      color: var(--primary-orange);
      font-weight: 800;
      /* CLS: резервируем высоту строки для динамической части */
      min-height: 1.2em;
    }
    /* Typewriter: прячем полный текст до старта, чтобы не было "вспышки" */
    .h1-dynamic[data-typing="true"] {
      /* ✅ FIX: не прячем текст полностью (иначе при сбое JS видно "белое место") */
      visibility: visible;
    }
    .h1-dynamic[data-typing="true"].typing-ready {
      visibility: visible;
    }
    .hero-text {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 0px; /* ✅ ИСПРАВЛЕНО: убран gap между H1 и подзаголовком для устранения дыры */
    }
    .hero-h1-wrapper {
      width: 100%;
      min-height: auto; /* ✅ ИСПРАВЛЕНО: убран фиксированный min-height для устранения дыры */
      height: auto; /* Гибкая высота для контента */
      padding: 0.1em 0; /* ✅ ИСПРАВЛЕНО: минимальный padding для устранения дыры */
      margin-bottom: 0; /* ✅ ИСПРАВЛЕНО: убран margin-bottom */
      display: flex;
      align-items: flex-start; /* ✅ ИСПРАВЛЕНО: выравнивание по верху */
      justify-content: center;
      overflow: visible; /* ВАЖНО: не обрезать H1 даже при 4-5 строках */
      box-sizing: border-box; /* Учитываем padding в высоте */
      max-width: 100%;
    }
    .hero-title {
      width: 100%;
      margin: 0;
      padding: 0;
      font-size: clamp(42px, 7vw, 52px);
      line-height: 1.2;
      font-weight: 800;
      letter-spacing: -0.03em;
      color: var(--text-primary);
      word-break: break-word;
      overflow-wrap: break-word;
      text-align: center;
      /* CLS FIX: резервируем место на 2 строки, чтобы печатающийся текст не двигал блоки ниже */
      display: block;
      overflow: hidden;
      min-height: 2.4em; /* 2 строки при line-height 1.2 */
      contain: layout; /* локализуем влияние на layout */
    }
    .h1-static {
      display: inline;
    }
    .h1-space {
      display: inline-block;
      width: 0.35em;
    }
    .h1-dynamic {
      display: inline-block;
      color: var(--primary-orange);
      font-weight: 800;
      min-width: 2ch;
      /* CLS: резервируем высоту строки для динамической части */
      min-height: 1.2em;
    }
    /* Typewriter: прячем полный текст до старта, чтобы не было "вспышки" */
    .h1-dynamic[data-typing="true"] {
      /* ✅ FIX: не прячем текст полностью (иначе при сбое JS видно "белое место") */
      visibility: visible;
    }
    .h1-dynamic[data-typing="true"].typing-ready {
      visibility: visible;
    }

    /* CLS: резервируем высоту под 2 строки H1 (чтобы очистка текста не двигала блоки) */
    .hero-h1-wrapper {
      min-height: 2.4em;
    }
    .h1-dynamic[data-typing="true"]::after {
      content: '|';
      color: var(--primary-orange);
      animation: blink 0.7s step-end infinite;
      margin-left: 2px;
    }
    @keyframes blink {
      0%, 50% { opacity: 1; }
      51%, 100% { opacity: 0; }
    }
    .hero-subtitle {
      width: 100%;
      max-width: 100%;
      margin: 0;
      padding: 0;
      margin-top: 0.35em; /* ✅ ИСПРАВЛЕНО: комфортное расстояние между H1 и подзаголовком */
    }
    .hero-subtitle p {
      width: 100%;
      max-width: 100%;
      margin: 0;
      padding: 0;
      font-size: 28px; /* Одинаковый размер с section-subtitle */
      line-height: 1.6; /* Одинаковый line-height */
      color: var(--text-secondary);
      font-weight: 400;
      text-align: center;
      max-width: 100%;
      word-wrap: break-word;
      overflow-wrap: break-word;
      hyphens: auto;
    }
    .hero p:not(.hero-subtitle):not(.hero-subtitle p) {
      font-size: 15px;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 24px;
      max-width: 520px;
      margin-left: auto;
      margin-right: auto;
    }
    .hero-cta { 
      display: flex; 
      gap: 16px; 
      flex-wrap: wrap; 
      justify-content: center; 
      margin: 0;
      width: 100%;
      max-width: 100%;
      padding: 0 8px;
    }
    .hero-cta .btn { 
      flex: 0 1 auto; 
      justify-content: center; 
      text-align: center;
      min-width: 180px;
    }
    .hero-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--text-secondary); }

    .showcase-container {
      flex: 0 0 auto;
      width: 420px;
      max-width: 100%;
      height: 520px;
      position: relative;
      background: linear-gradient(135deg, rgba(255, 107, 53, 0.03) 0%, rgba(255, 107, 53, 0.01) 100%);
      border-radius: 12px;
      border: 2px solid rgba(255, 107, 53, 0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      box-shadow: 0 20px 60px rgba(255, 107, 53, 0.05);
    }
    .showcase-video {
      position: absolute;
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0;
      transform: scale(0.96) translateY(8px);
      transition: opacity 600ms ease, transform 600ms ease;
      border-radius: 12px;
    }
    .showcase-video.active {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
    .showcase-video.playing {
      z-index: 2;
    }

    section { padding: 64px 24px; }
    .section-header {
      text-align: center;
      margin-bottom: 40px;
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
    }
    .section-header-fullwidth {
      max-width: 100% !important;
      width: 100%;
      text-align: center;
    }
    .section-header h2 {
      font-size: clamp(28px, 4vw, 40px);
      font-weight: 800;
      margin-bottom: 10px;
    }
    .h2-problem,
    .h2-solution {
      max-width: 100% !important;
      width: 100%;
      line-height: 1.2;
      max-height: 2.4em; /* Максимум 2 строки */
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }
    .h2-keyword {
      color: var(--primary-orange);
      font-weight: 800;
    }
    .section-header p {
      font-size: 15px;
      color: var(--text-secondary);
    }
    
    .section-subtitle {
      font-size: 28px !important;
      font-weight: 400;
      line-height: 1.6;
      color: var(--text-secondary);
      max-width: 100%;
      width: 100%;
      margin: 16px auto 0;
      text-align: center;
      display: block;
    }

    .values { background: var(--bg-light); }
    .values-grid {
      display: grid;
      gap: 32px;
      grid-template-columns: repeat(3, 1fr); /* По умолчанию 3 колонки */
    }
    
    /* Специальные сетки для разного количества карточек */
    .values-grid.grid-15 {
      grid-template-columns: repeat(3, 1fr);
      gap: 24px; /* Уменьшено для компактности */
      max-width: 100%;
      width: 100%;
      margin: 0 auto;
      padding: 0 24px;
    }
    
    /* Grid layouts для разного количества карточек */
    /* КРИТИЧЕСКИ ВАЖНО: Эти правила определяют сетку! */
    .values .values-grid.grid-2,
    .values-grid.grid-2 {
      grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .values .values-grid.grid-3,
    .values-grid.grid-3 {
      grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .values .values-grid.grid-4,
    .values-grid.grid-4 {
      grid-template-columns: repeat(2, 1fr) !important;
      /* 4 карточки = 2x2 сетка (2 в ряд, 2 ряда) */
    }
    
    .values .values-grid.grid-5,
    .values-grid.grid-5 {
      grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .values-grid.grid-5 .value-card:last-child {
      grid-column: 1 / -1;
      max-width: 600px;
      margin: 0 auto;
    }
    
    .values .values-grid.grid-6,
    .values-grid.grid-6 {
      grid-template-columns: repeat(3, 1fr) !important;
      /* 6 карточек = 3x2 сетка (3 в ряд, 2 ряда) */
    }
    
    @media (max-width: 768px) {
      .values-grid {
        grid-template-columns: 1fr !important;
      }
      .values-grid.grid-5 .value-card:last-child {
        grid-column: 1;
        max-width: 100%;
      }
    }
    .value-card {
      background: var(--bg-white);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 24px;
      padding-bottom: 20px; /* ✅ ИСПРАВЛЕНО ПРОБЛЕМА #10: уменьшаем padding-bottom для компактности */
      position: relative;
      transition: all 200ms;
      display: flex;
      flex-direction: column;
      justify-content: flex-start; /* ✅ ИСПРАВЛЕНО ПРОБЛЕМА #10: убираем justify-content: space-between чтобы не было дыры */
    }
    .value-card:hover {
      border-color: var(--primary-orange);
      box-shadow: 0 12px 32px rgba(255, 107, 53, 0.1);
      transform: translateY(-2px);
    }
    .value-number {
      font-size: 32px;
      font-weight: 800;
      line-height: 1;
      color: transparent;
      -webkit-text-stroke: 2px var(--primary-orange);
      margin-bottom: 10px;
    }
.value-card h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 6px 0 10px;
  line-height: 1.25;
}
.value-card p {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 10px;
}
.value-card .feature-list {
  margin: 0;
  padding-left: 18px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.value-card .feature-footnote {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 10px 0 0;
}
    
    /* Аккордеоны проблем в фирменном стиле (как value-card) */
    .problem-card.problem-card-accordion,
    .problem-card.accordion-item,
    #problems .problem-card {
      background: var(--bg-white);
      border: 1px solid var(--border-color);
      border-radius: 24px !important; /* Увеличено закругление */
      padding: 0 !important; /* ВАЖНО: без padding, только button и content имеют padding */
      position: relative;
      transition: all 200ms;
      color: inherit;
      min-height: 0 !important; /* Убираем минимальную высоту */
      height: auto !important; /* Автоматическая высота */
      overflow: hidden;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); /* Легкая тень как у value-card */
    }
    /* Обычные карточки (НЕ для проблем) */
    .problem-card:not(.problem-card-accordion):not(.accordion-item) {
      padding: 48px;
    }
    .problem-card-accordion:hover:not(.open):not(.active),
    .accordion-item:hover:not(.open):not(.active) {
      border-color: var(--primary-orange);
      box-shadow: 0 12px 32px rgba(255, 107, 53, 0.1); /* Как у value-card */
      transform: translateY(-2px); /* Легкий подъем как у value-card */
    }
    .problem-card-header,
    .accordion-trigger {
      background: var(--bg-white) !important; /* Белый фон всегда, только обводка оранжевая */
      border: none;
      padding: 12px 16px !important; /* Компактный padding */
      margin: 0;
      width: 100%;
      text-align: left; /* Выравнивание по левому краю */
      cursor: pointer;
      display: flex;
      flex-direction: row; /* ГОРИЗОНТАЛЬНАЯ компоновка: иконка слева, текст справа */
      align-items: center;
      justify-content: flex-start;
      gap: 12px !important; /* Отступ между иконкой и заголовком */
      min-height: 0 !important; /* Убираем минимальную высоту */
      height: auto !important; /* Автоматическая высота */
      color: inherit;
      font-family: inherit;
      transition: all 0.3s ease;
      position: relative;
      border-radius: 12px 12px 0 0; /* Скругление только сверху */
    }
    .problem-card-accordion.open .problem-card-header,
    .problem-card-accordion.active .problem-card-header,
    .accordion-item.open .accordion-trigger {
      background: var(--bg-white) !important; /* Белый фон всегда, только обводка оранжевая */
      color: inherit;
    }
    .problem-card-header:hover,
    .accordion-trigger:hover {
      background: var(--bg-white) !important; /* Белый фон всегда, только обводка оранжевая */
    }
    .problem-card-accordion.open .problem-card-header:hover,
    .accordion-item.open .accordion-trigger:hover {
      background: var(--bg-white) !important; /* Белый фон всегда, только обводка оранжевая */
    }
    .problem-card-header:hover h3,
    .accordion-trigger:hover h3 {
      color: var(--text-primary); /* Цвет текста не меняется при hover */
    }
    .problem-card-header:hover .problem-icon,
    .accordion-trigger:hover .problem-icon,
    .problem-card-header:hover .icon,
    .accordion-trigger:hover .icon {
      color: var(--primary-orange); /* Иконка становится оранжевой при hover */
    }
    .problem-card-header:focus {
      outline: 2px solid var(--primary-orange);
      outline-offset: 4px;
      border-radius: 8px;
    }
    /* Стили для аккордеонов проблем (совместимость с классами из примера) */
    .problem-card-accordion.accordion-item,
    .accordion-item.problem-card-accordion,
    #problems .accordion-item {
      background: white;
      border: 1px solid var(--border-color);
      border-radius: 24px !important; /* Увеличено закругление */
      overflow: hidden;
      transition: all 0.3s ease;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    .problem-card-accordion.accordion-item:hover:not(.open):not(.active),
    .accordion-item.problem-card-accordion:hover:not(.open):not(.active) {
      border-color: var(--primary-orange);
      box-shadow: 0 12px 32px rgba(255, 107, 53, 0.1); /* Как у value-card */
      transform: translateY(-2px); /* Легкий подъем */
    }
    .problem-card-accordion.accordion-item.open,
    .accordion-item.problem-card-accordion.open,
    .problem-card-accordion.accordion-item.active,
    .accordion-item.problem-card-accordion.active,
    .problem-card-accordion.accordion-item:not(.open):not(.active),
    .accordion-item.problem-card-accordion:not(.open):not(.active) {
      border-color: var(--border-color) !important; /* Обычная граница, не оранжевая */
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important; /* Легкая тень */
    }
    
    /* Chevron (стрелка) справа для аккордеонов */
    .accordion-chevron {
      font-size: 24px;
      color: var(--text-secondary);
      transition: transform 0.3s ease, color 0.3s ease;
      flex-shrink: 0;
      margin-left: auto; /* Прижимается к правому краю */
      line-height: 1;
    }
    .problem-card-accordion.open .accordion-chevron,
    .problem-card-accordion.active .accordion-chevron,
    .accordion-item.open .accordion-chevron {
      transform: rotate(90deg); /* Поворот стрелки при открытии */
      color: var(--primary-orange); /* Стрелка оранжевая при открытии */
    }
    
    /* ⚠️ КРИТИЧНО: КОНТЕНТ АККОРДЕОНОВ - СКРЫТ ПО УМОЛЧАНИЮ! ⚠️ */
    /* Простые и жесткие правила - они применяются ВСЕГДА, пока нет .active или .open */
    .problem-card-accordion .problem-card-content,
    .problem-card-accordion .accordion-content,
    .accordion-item .problem-card-content,
    .accordion-item .accordion-content {
      max-height: 0 !important;
      overflow: hidden !important;
      opacity: 0 !important;
      visibility: hidden !important;
      display: block !important;
      transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
      padding: 0 !important;
      margin: 0 !important;
      border-top: none !important; /* Убрана полоска снизу */
    }
    /* ⚠️ ОТКРЫТОЕ СОСТОЯНИЕ АККОРДЕОНОВ ⚠️ */
    /* Эти правила перекрывают скрытие ТОЛЬКО когда есть .active или .open */
    .problem-card-accordion.active .problem-card-content,
    .problem-card-accordion.open .problem-card-content,
    .problem-card-accordion.active .accordion-content,
    .problem-card-accordion.open .accordion-content,
    .accordion-item.active .problem-card-content,
    .accordion-item.open .problem-card-content,
    .accordion-item.active .accordion-content,
    .accordion-item.open .accordion-content {
      max-height: 500px !important;
      padding: 0 24px 24px 24px !important; /* padding сверху убран, так как button уже имеет padding */
      opacity: 1 !important;
      visibility: visible !important;
      border-top: none !important; /* Убрана оранжевая полоска */
    }
    .problem-card-accordion.active,
    .problem-card-accordion.open,
    .accordion-item.active,
    .accordion-item.open {
      min-height: auto;
    }
    /* Улучшаем визуальное отображение при наведении на закрытый аккордеон */
    .problem-card-accordion:not(.active):not(.open):hover {
      transform: translateY(-2px);
    }
    /* Иконки для аккордеонов проблем - СЛЕВА ОТ ТЕКСТА, ОРАНЖЕВЫЕ */
    /* КАК В TEMPLATEENGINE - используем currentColor и 42px */
    .problem-card-accordion .problem-icon,
    .problem-card-accordion .icon,
    .accordion-item .problem-icon,
    .accordion-item .icon,
    .problem-card-header .problem-icon,
    .problem-card-header .icon,
    .accordion-trigger .problem-icon,
    .accordion-trigger .icon {
      width: 42px !important;
      height: 42px !important;
      display: block !important;
      background: none !important;
      border-radius: 0;
      margin: 0 !important;
      color: var(--primary-orange) !important; /* ОРАНЖЕВЫЙ через currentColor */
      flex-shrink: 0 !important;
      padding: 0 !important;
      transition: color 0.3s ease; /* transform убран - поворот отключен */
      visibility: visible !important;
      opacity: 1 !important;
      line-height: 1 !important;
    }
    /* SVG внутри иконок - КРИТИЧНО для отображения */
    .problem-card-accordion svg.problem-icon,
    .problem-card-accordion svg.icon,
    .accordion-item svg.problem-icon,
    .accordion-item svg.icon,
    .problem-card-header svg.problem-icon,
    .problem-card-header svg.icon,
    .accordion-trigger svg.problem-icon,
    .accordion-trigger svg.icon {
      width: 42px !important;
      height: 42px !important;
      min-width: 42px !important;
      min-height: 42px !important;
      stroke: currentColor !important; /* Используем currentColor как в TemplateEngine */
      fill: none !important;
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      margin: 0 !important;
      padding: 0 !important;
      pointer-events: none !important;
    }
    .problem-card-accordion.open .problem-icon,
    .problem-card-accordion.active .problem-icon,
    .accordion-item.open .icon {
      color: var(--primary-orange) !important; /* Иконка остается оранжевой при открытии */
    }
    /* Анимация поворота иконки при открытии - ОТКЛЮЧЕНА */
    /* .problem-card-accordion.open svg.problem-icon,
    .problem-card-accordion.active svg.problem-icon,
    .accordion-item.open svg.icon {
      transform: rotate(180deg);
    } */
    .problem-card-header h3,
    .accordion-trigger h3 {
      font-size: 20px !important; /* УВЕЛИЧЕН размер шрифта */
      font-weight: 700;
      margin: 0 !important;
      padding: 0 !important;
      color: var(--text-primary);
      transition: color 0.3s ease;
      line-height: 1.3 !important;
      text-align: left !important; /* Выравнивание по левому краю */
      flex: 1; /* Занимает оставшееся пространство */
    }
    .problem-card-accordion.open .problem-card-header h3,
    .problem-card-accordion.active .problem-card-header h3,
    .accordion-item.open .accordion-trigger h3 {
      color: var(--text-primary); /* Оставляем обычный цвет текста */
    }
    /* Стили для открытого контента аккордеонов */
    .problem-card-accordion.active .problem-card-content,
    .problem-card-accordion.open .problem-card-content,
    .accordion-item.active .accordion-content,
    .accordion-item.open .accordion-content {
      font-size: 21px;
      line-height: 1.6;
      color: var(--text-secondary);
    }
    .problem-card-accordion.active .problem-card-content,
    .problem-card-accordion.open .problem-card-content,
    .accordion-item.active .accordion-content,
    .accordion-item.open .accordion-content {
      max-height: 500px !important;
      opacity: 1 !important;
      visibility: visible !important;
      padding: 24px !important;
      transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease, visibility 0.3s ease !important; /* ПЛАВНАЯ АНИМАЦИЯ */
    }
    .problem-card-accordion.active .problem-card-content p,
    .problem-card-accordion.open .problem-card-content p,
    .accordion-item.active .accordion-content p,
    .accordion-item.open .accordion-content p {
      font-size: 21px;
      line-height: 1.6;
      color: var(--text-secondary);
      margin: 0;
    }
    .value-card h3 {
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 8px;
      color: var(--text-primary);
    }
    
    .value-card p {
      font-size: 14px;
      color: var(--text-secondary);
    }

    .steps { background: var(--bg-white); }
    .steps-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
      gap: 24px;
    }
    .step-card {
      border-radius: 12px;
      padding: 24px;
      border: 1px solid var(--border-color);
      background: #FFFFFF;
    }
    .step-number {
      font-size: 32px;
      font-weight: 800;
      margin-bottom: 8px;
      line-height: 1;
      color: transparent;
      -webkit-text-stroke: 2px var(--primary-orange);
    }

    /* ============ ПРИМЕРЫ РАБОТ (БЕГУЩАЯ СТРОКА) ============ */
    .examples {
      background: var(--bg-light);
      padding: 40px 24px;
    }
    .examples-header {
      text-align: center;
      margin-bottom: 60px;
    }
    .examples-header h2 {
      font-size: clamp(28px, 4vw, 40px);
      font-weight: 800;
      margin-bottom: 18px;
      color: var(--text-primary);
    }
    .examples-header p {
      font-size: 28px;
      color: var(--text-secondary);
      max-width: 100%;
      margin: 0 auto;
      line-height: 1.6;
    }
    /* ============ TRACK CONTAINER ============ */
    .examples-track {
      position: relative;
      overflow: hidden;
      margin: 0 auto;
      max-width: 1400px;
      padding: 0 40px;
    }
    /* ============ БЕГУЩАЯ СТРОКА (MARQUEE) ============ */
    .examples-grid {
      display: flex;
      gap: 32px;
      overflow: visible;
      padding: 20px 0;
      will-change: transform;
      transition: none;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }
    .examples-grid::-webkit-scrollbar {
      display: none;
    }
    /* ============ КАРТОЧКИ ============ */
    .example-card {
      background: #FFFFFF;
      border-radius: 16px;
      border: 1px solid rgba(26, 111, 127, 0.15);
      overflow: hidden;
      box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
      cursor: pointer;
      transition: all 0.35s ease;
      flex: 0 0 400px;
      min-width: 400px;
      scroll-snap-align: start;
      display: flex; /* ✅ ИСПРАВЛЕНО РЕШЕНИЕ #5: Flex для правильного распределения пространства */
      flex-direction: column; /* ✅ ИСПРАВЛЕНО РЕШЕНИЕ #5: Вертикальное расположение */
      /* ✅ Чуть увеличиваем допустимую высоту, чтобы CTA не упирались в нижнюю границу */
      max-height: 720px;
    }
    .example-card:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
      border-color: var(--primary-orange);
    }
    .example-card img {
      width: 100%;
      height: 240px;
      object-fit: cover;
      object-position: center; /* ✅ ИСПРАВЛЕНО: Центрирование при обрезке */
      display: block;
      transition: transform 0.4s ease;
    }
    .example-card:hover img {
      transform: scale(1.05);
    }
    
    /* ✅ ИСПРАВЛЕНО РЕШЕНИЕ #4: Обертка для изображений с фиксированной высотой */
    .example-image-wrapper {
      width: 100%;
      height: 240px;
      overflow: hidden;
      position: relative;
      background: #f0f0f0; /* Fallback цвет на случай, если изображение не загрузится */
    }
    
    .example-image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
      transition: transform 0.4s ease;
    }
    
    .example-card:hover .example-image-wrapper img {
      transform: scale(1.05);
    }
    .example-body {
      /* ✅ Добавляем больше воздуха снизу под CTA */
      padding: 24px 24px 34px;
      min-height: auto; /* ✅ ИСПРАВЛЕНО РЕШЕНИЕ #2: Убрана фиксированная минимальная высота */
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .example-meta {
      font-size: 20px;
      color: var(--text-secondary);
      margin-bottom: 6px;
      font-weight: 600;
      line-height: 1.75;
    }
    .example-title {
      font-weight: 700;
      font-size: 20px;
      color: var(--text-primary);
      margin-bottom: 6px;
    }
    .example-desc {
      font-size: 20px;
      color: var(--text-secondary);
      line-height: 1.75;
      white-space: pre-line; /* ✅ если текст содержит переносы строк (fallback из ✓-пунктов) */
    }

    /* ✅ Кейсы (бегущая строка): описание всегда чек‑лист с фирменной оранжевой галочкой */
    .example-bullets {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .example-bullets li {
      position: relative;
      padding-left: 28px;
      font-size: 20px;
      color: var(--text-secondary);
      line-height: 1.6;
    }
    .example-bullets li::before {
      content: '✓';
      position: absolute;
      left: 0;
      top: 0;
      color: var(--primary-orange);
      font-weight: 900;
      line-height: 1.2;
    }
    .example-actions {
      display: flex;
      gap: 8px;
      margin-top: auto;
      justify-content: center;
    }
    .example-actions .btn {
      padding: 9px 16px;
      font-size: 12px;
      flex: 1;
      text-align: center;
      max-width: 140px;
    }
    /* ============ СТРЕЛКИ НАВИГАЦИИ ============ */
    .examples-controls {
      position: absolute;
      top: 50%;
      left: -60px;
      right: -60px;
      transform: translateY(-50%);
      display: flex;
      justify-content: space-between;
      pointer-events: none;
      z-index: 5;
    }
    .examples-arrow {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: none;
      background: rgba(255, 255, 255, 0.95);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: var(--primary-orange);
      font-size: 20px;
      font-weight: bold;
      pointer-events: auto;
      transition: all 0.3s ease;
      flex-shrink: 0;
    }
    .examples-arrow:hover {
      background: #FFFFFF;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
      transform: scale(1.08);
    }
    .examples-arrow:active {
      transform: scale(0.96);
    }
    /* ============ МОДАЛЬНОЕ ОКНО ============ */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.8);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 20px;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    .modal-backdrop.active {
      display: flex;
      opacity: 1;
    }
    .modal-content {
      max-width: 900px;
      width: 100%;
      max-height: 85vh;
      background: #000;
      border-radius: 12px;
      position: relative;
      overflow: hidden;
      animation: modalSlideIn 0.4s ease;
    }
    @keyframes modalSlideIn {
      from {
        transform: scale(0.95) translateY(20px);
        opacity: 0;
      }
      to {
        transform: scale(1) translateY(0);
        opacity: 1;
      }
    }
    .modal-content img {
      width: 100%;
      height: auto;
      display: block;
      max-height: 85vh;
      object-fit: contain;
    }
    .modal-close {
      position: absolute;
      top: 12px;
      right: 12px;
      background: rgba(255, 255, 255, 0.2);
      color: #fff;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      font-size: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      z-index: 10;
    }
    .modal-close:hover {
      background: rgba(255, 255, 255, 0.4);
    }
    .modal-nav {
      position: absolute;
      top: 50%;
      left: 0;
      right: 0;
      transform: translateY(-50%);
      display: flex;
      justify-content: space-between;
      padding: 0 20px;
      pointer-events: none;
    }
    .modal-nav button {
      pointer-events: auto;
      background: rgba(255, 255, 255, 0.2);
      color: #fff;
      border: none;
      border-radius: 50%;
      width: 44px;
      height: 44px;
      font-size: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
    }
    .modal-nav button:hover {
      background: rgba(255, 255, 255, 0.35);
    }

    .faq { background: var(--bg-white); }
    .accordion { max-width: 800px; margin: 0 auto; }
    .faq .accordion,
    .faq-accordion { max-width: 100%; margin: 0; }
    /* ✅ ИСПРАВЛЕНО: Уникальные классы для FAQ аккордеонов (избегаем конфликта с Problem аккордеонами) */
    .faq-accordion-item { 
      border-bottom: 1px solid var(--border-color);
      border-radius: 0;
    }
    .faq-accordion-button {
      width: 100%;
      padding: 18px 0;
      background: none;
      border: none;
      display: flex;
      justify-content: space-between;
      align-items: center;
      text-align: left;
      cursor: pointer;
      font-size: inherit;
      font-family: inherit;
      font-size: 15px;
      cursor: pointer;
      color: var(--text-primary);
    }
    /* Старые стили для FAQ - НЕ применяются к проблемным аккордеонам */
    /* ✅ ИСПРАВЛЕНО: Уникальные стили для FAQ аккордеонов */
    .faq-accordion-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, padding 0.3s ease;
      color: var(--text-secondary);
      font-size: 20px;
      line-height: 1.75;
      padding: 0;
      margin: 0;
    }
    .faq-accordion-item.active .faq-accordion-content { 
      max-height: 800px; 
      padding: 16px 0;
      padding-right: 16px;
    }
    /* FAQ-specific typography */
    .faq-accordion-button span {
      font-size: 22px;
      font-weight: 500;
      color: var(--text-primary);
      text-decoration: none;
    }
    .faq-accordion-content p {
      font-size: 20px;
      line-height: 1.75;
      color: var(--text-secondary);
      text-decoration: none;
      margin: 0;
    }
    .faq-accordion-button strong {
      font-size: 24px;
      color: var(--primary-orange);
      font-weight: 700;
      transition: transform 0.3s ease;
    }
    .faq-accordion-item.active .faq-accordion-button strong {
      transform: rotate(45deg);
    }

/* ==========================
   FAQ = как аккордеоны Problems (визуально)
   ========================== */
/* На главной FAQ исторически был на .accordion-item/.accordion-button.
   На генерации — на .faq-accordion-*. Дублируем стили безопасно. */

.faq .accordion-item,
.faq .faq-accordion-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
}

.faq .accordion-item:hover:not(.open):not(.active),
.faq .faq-accordion-item:hover:not(.open):not(.active) {
  border-color: var(--primary-orange);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.1);
  transform: translateY(-2px);
}

.faq .accordion-button,
.faq .faq-accordion-button {
  width: 100%;
  border: none;
  background: var(--bg-white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
}

.faq .accordion-button span,
.faq .faq-accordion-button span {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.faq .accordion-content,
.faq .faq-accordion-content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  padding: 0 24px;
}

.faq .accordion-item.active .accordion-content,
.faq .accordion-item.open .accordion-content,
.faq .faq-accordion-item.active .faq-accordion-content,
.faq .faq-accordion-item.open .faq-accordion-content {
  max-height: 800px;
  opacity: 1;
  visibility: visible;
  padding: 0 24px 24px 24px;
}

.faq .accordion-content p,
.faq .faq-accordion-content p {
  font-size: 20px;
  line-height: 1.75;
  color: var(--text-secondary);
      margin: 0;
    }

    .pricing { background: var(--bg-white); }
    .pricing-wrapper {
      display: flex;
      flex-direction: column;
      gap: 32px;
      margin-top: 32px;
    }
    .pricing-cards {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    /* ✅ Layout parity with homepage:
       On wide screens we want a stable 3-column pricing grid (no 2+3 “weird wrap”).
       This applies to the main pricing section (not the two-paths comparison block). */
    @media (min-width: 1100px) {
      .pricing .pricing-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
    .pricing-card {
      border: 1px solid #EEEEEE;
      border-radius: 12px;
      padding: 32px;
      background: #FFFFFF;
      display: flex;
      flex-direction: column;
      box-shadow: 0 2px 8px rgba(0,0,0,0.06);
      transition: all 200ms ease;
      position: relative;
    }
    .pricing-card:hover {
      box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    .pricing-card-featured {
      border: 2px solid var(--primary-orange);
      background: #FFF5F0;
      transform: translateY(-20px);
      box-shadow: 0 12px 48px rgba(0,0,0,0.12);
    }
    .pricing-card-featured:hover {
      transform: translateY(-20px) scale(1.02);
    }
    .pricing-popular-badge {
      position: absolute;
      top: -12px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--primary-orange);
      color: #FFFFFF;
      padding: 8px 20px;
      border-radius: 20px;
      font-size: 16px;
      font-weight: 700;
      white-space: nowrap;
    }
    .pricing-card-header {
      margin-bottom: 24px;
    }
    .pricing-name {
      font-weight: 800;
      font-size: 24px;
      color: #1a1a1a;
      margin-bottom: 12px;
    }
    .pricing-price {
      font-size: 36px;
      font-weight: 700;
      color: var(--primary-orange);
      line-height: 1.2;
      margin-bottom: 8px;
    }
    .pricing-price span {
      font-size: 18px;
      color: #666666;
      font-weight: 400;
    }
    .pricing-badge {
      font-size: 18px;
      font-weight: 500;
      color: var(--primary-orange);
      margin-top: 8px;
    }
    .pricing-leads {
      margin-bottom: 24px;
      padding-bottom: 24px;
      border-bottom: 1px solid #EEEEEE;
    }
    .pricing-leads-label {
      font-size: 20px;
      color: var(--text-secondary);
      margin-bottom: 8px;
    }
    .pricing-leads-value {
      font-size: 20px;
      font-weight: 600;
      color: #1a1a1a;
      margin-bottom: 4px;
    }
    .pricing-lead-cost {
      font-size: 20px;
      color: var(--text-secondary);
    }
    .pricing-features {
      flex-grow: 1;
      margin-bottom: 24px;
    }
    .pricing-features-title {
      font-size: 20px;
      font-weight: 600;
      color: #1a1a1a;
      margin-bottom: 12px;
    }
    /* ✅ Результат: такой же список, как "Что входит" (без браузерных маркеров) */
    .pricing-results-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .pricing-results-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 20px;
      font-weight: 400;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 12px;
    }
    .pricing-results-list li:last-child {
      margin-bottom: 0;
    }
    .pricing-results-footnote {
      margin-top: 10px;
      font-size: 16px;
      color: var(--text-secondary);
      line-height: 1.5;
      opacity: 0.95;
    }
    .pricing-features-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .pricing-features-list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 20px;
      color: var(--text-secondary);
      line-height: 1.7;
      margin-bottom: 12px;
    }
    .pricing-features-list li:last-child {
      margin-bottom: 0;
    }
    .pricing-icon {
      flex-shrink: 0;
      margin-top: 2px;
    }
    .pricing-cta-btn {
      display: block;
      width: 100%;
      padding: 14px 24px;
      background: var(--primary-orange);
      color: #FFFFFF;
      text-align: center;
      text-decoration: none;
      border-radius: 6px;
      font-size: 18px;
      font-weight: 700;
      border: none;
      cursor: pointer;
      transition: all 200ms ease;
      margin-top: auto;
    }
    .pricing-cta-btn:hover {
      background: #E55A2B;
    }
    .pricing-comparison {
      margin-top: 32px;
    }
    .pricing-comparison-title {
      font-size: 24px;
      font-weight: 800;
      color: #1a1a1a;
      margin-bottom: 16px;
    }
    .pricing-comparison-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 20px;
      background: #FFFFFF;
      border: 1px solid #EEEEEE;
      border-radius: 8px;
      overflow: hidden;
    }
    .pricing-comparison-table thead {
      background: #F8F8F8;
    }
    .pricing-comparison-table th {
      padding: 12px 16px;
      text-align: left;
      font-weight: 800;
      font-size: 20px;
      color: #1a1a1a;
      border-bottom: 1px solid #EEEEEE;
    }
    .pricing-comparison-table td {
      padding: 12px 16px;
      font-size: 20px;
      line-height: 1.7;
      color: var(--text-secondary);
      border-bottom: 1px solid #EEEEEE;
    }
    .pricing-comparison-table tbody tr:last-child td {
      border-bottom: none;
    }
    @media (max-width: 1199px) {
      .pricing-cards {
        grid-template-columns: 1fr;
      }
      .pricing-card-featured {
        transform: none;
      }
      .pricing-card-featured:hover {
        transform: scale(1.02);
      }
    }
    @media (max-width: 767px) {
      .pricing-card {
        padding: 24px;
      }
      .pricing-comparison-table {
        font-size: 16px;
      }
      .pricing-comparison-table th {
        font-size: 16px;
      }
      .pricing-comparison-table th,
      .pricing-comparison-table td {
        padding: 8px 12px;
      }
    }
    .pricing .section-header { max-width: 100%; }
    .pricing .section-header h2,
    .pricing-title {
      font-size: 40px;
      font-weight: 800;
      line-height: 1.25;
      max-width: 100%;
    }
    .pricing .section-header p,
    .pricing-subtitle {
      font-size: 28px !important;
      line-height: 1.6;
      color: var(--text-secondary);
      max-width: 100%;
      width: 100%;
      display: block;
    }
/* Последний шанс - спецпрограмма */
.final-cta {
  background: linear-gradient(135deg, #FFF5F0 0%, #FFFFFF 50%, #F8F9FA 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.final-cta-header {
  text-align: center;
  margin-bottom: 24px; /* ✅ ИСПРАВЛЕНО: уменьшено с 48px до 24px для уменьшения дыры между заголовком и карточкой */
}

.final-cta-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.final-cta h2 {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.final-cta-subtitle {
  font-size: 28px !important;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 100%;
  width: 100%;
  margin: 16px auto 0;
  text-align: center;
  display: block;
}

.special-program-card {
  background: #FFFFFF;
  border: 2px solid var(--primary-orange);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 20px 60px rgba(255, 107, 53, 0.15);
  position: relative;
  overflow: hidden;
}

.special-program-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #FF6B35 0%, #E55A2B 50%, #FF6B35 100%);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.special-program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.special-program-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.special-icon {
  flex-shrink: 0;
}

.special-program-title h3 {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.special-program-discount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.discount-badge {
  background: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
  color: #FFFFFF;
  font-size: 48px;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.3);
  line-height: 1;
}

.discount-text {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 600;
}

.special-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.special-benefit {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #FFF7F2;
  border: 1px solid #FFE0D0;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.special-benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.15);
  border-color: var(--primary-orange);
}

.benefit-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: #FFFFFF;
  border: 2px solid #FFE0D0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-content h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.benefit-content p {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.special-program-footer {
  border-top: 2px solid #FFE0D0;
  padding-top: 32px;
  margin-top: 32px;
}

.special-program-pricing {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.pricing-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pricing-label {
  font-size: 18px;
  color: var(--text-secondary);
  font-weight: 600;
}

.pricing-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-orange);
  line-height: 1;
}

.pricing-old {
  font-size: 20px;
  color: #999;
  text-decoration: line-through;
}

.special-program-cta {
  text-align: center;
}

.cta-note {
  font-size: 18px;
  color: var(--text-secondary);
  margin-top: 16px;
}

.cta-note strong {
  color: var(--primary-orange);
  font-weight: 700;
}
    .faq .section-header { max-width: 100%; }
    .faq .section-header p,
    .faq-subtitle {
      font-size: 28px;
      line-height: 1.6;
      color: var(--text-secondary);
      max-width: 100%;
    }

    .pricing-calculator {
      margin: 56px auto 48px;
      padding: 36px 32px;
      border-radius: 22px;
      background: #FFF8F3;
      border: 1px solid rgba(255, 107, 53, 0.2);
    }
    .pricing-calculator h3 {
      margin-bottom: 14px;
      font-size: 32px;
      font-weight: 800;
      line-height: 1.25;
    }
    .pricing-calculator p {
      margin-bottom: 26px;
      color: var(--text-secondary);
      font-size: 22px;
      line-height: 1.75;
    }
    .calc-grid {
      display: grid;
      grid-template-columns: 1.3fr 1.7fr;
      gap: 24px;
      align-items: flex-start;
    }
    .calc-input-group {
      margin-bottom: 16px;
    }
    .calc-input-group label {
      display: flex;
      justify-content: space-between;
      font-size: 20px;
      margin-bottom: 8px;
      color: var(--text-secondary);
    }
    .calc-input-group input[type="range"] {
      width: 100%;
    }
    .calc-input-group input[type="number"],
    .calc-input-group input[type="text"] {
      width: 100%;
      padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid var(--border-color);
      font-size: 20px;
      box-sizing: border-box;
      background: #fff;
      color: var(--text-primary);
    }
    .calc-results {
      background: #fff;
      border-radius: 18px;
      border: 1px solid rgba(15, 23, 42, 0.06);
      padding: 24px 22px 16px;
      font-size: 22px;
      color: var(--text-secondary);
    }
    .calc-results h4 {
      margin: 0 0 12px;
      font-size: 24px;
      color: var(--text-primary);
      font-weight: 800;
    }
    .calc-results-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 4px;
      font-size: 18px;
      line-height: 1.5;
    }
    .calc-results-row strong {
      color: var(--text-primary);
      font-size: 20px;
      font-weight: 800;
    }
    .calc-tariff-rows {
      margin-top: 10px;
      border-top: 1px solid rgba(148, 163, 184, 0.4);
      padding-top: 8px;
    }
    .calc-tariff-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 4px;
      font-size: 17px;
      line-height: 1.4;
    }
    .calc-tariff-name {
      font-weight: 700;
      font-size: 18px;
    }
    .calc-tariff-profit {
      font-weight: 700;
      color: #16a34a;
      font-size: 18px;
    }
    .calc-recommendation {
      margin-top: 12px;
      font-size: 18px;
      color: var(--text-secondary);
    }

    @media (max-width: 768px) {
      .calc-grid {
        grid-template-columns: 1fr;
      }
    }

    /* SEO BOOST Section - новый интерактивный раздел */
    .seo-boost-section {
      background: var(--bg-white);
      color: var(--text-primary);
      border-top: 1px solid var(--border-color);
      padding: 80px 12px;
    }
    .seo-boost-header {
      text-align: center;
      margin-bottom: 60px;
    }
    .seo-boost-header h2 {
      font-size: 40px;
      font-weight: 800;
      color: var(--text-primary);
      margin: 0 0 20px;
      line-height: 1.25;
      max-width: 100%;
    }
    .seo-boost-header-link {
      display: inline-block;
      color: var(--primary-orange);
      text-decoration: none;
      font-weight: 700;
      font-size: 28px;
      line-height: 1.6;
      margin-bottom: 0;
    }
    .seo-boost-header-link:hover {
      text-decoration: none;
    }
    .seo-boost-header p {
      font-size: 28px;
      color: var(--text-secondary);
      line-height: 1.6;
      max-width: 100%;
      margin: 0 auto;
      display: inline;
    }
    
    /* Сравнение без слайдера */
    .seo-boost-comparison-cards {
      margin: 60px 0;
    }

    /* Новый (упрощённый) блок сравнения: в фирменном стиле, без "магических" цифр */
    .seo-boost-compare-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-bottom: 18px;
    }
    .seo-boost-compare-card {
      background: #FFFFFF;
      border: 1px solid var(--border-color);
      border-radius: 16px;
      padding: 20px;
    }
    .seo-boost-compare-card--boost {
      border-color: rgba(255, 107, 53, 0.35);
      box-shadow: 0 10px 30px rgba(255, 107, 53, 0.08);
    }
    .seo-boost-compare-title {
      font-size: 24px;
      font-weight: 900;
      margin: 0 0 14px 0;
      color: var(--text-primary);
      letter-spacing: -0.2px;
    }
    .seo-boost-compare-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 12px;
    }
    .seo-boost-compare-list li {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      color: var(--text-primary);
      font-size: 20px;
      line-height: 1.7;
    }
    .seo-boost-compare-list strong {
      font-weight: 900;
      color: var(--text-primary);
    }
    .seo-boost-muted {
      color: var(--text-secondary);
      font-weight: 600;
      white-space: normal;
    }
    .seo-boost-compare-summary {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 8px;
    }
    .seo-boost-chip {
      border: 1px solid var(--border-color);
      background: rgba(255, 107, 53, 0.06);
      color: var(--text-primary);
      border-radius: 999px;
      padding: 10px 14px;
      font-size: 18px;
      line-height: 1.4;
      font-weight: 700;
    }

    @media (max-width: 768px) {
      .seo-boost-compare-grid {
        grid-template-columns: 1fr;
      }
      .seo-boost-compare-title {
        font-size: 22px;
      }
      .seo-boost-compare-list li {
        font-size: 18px;
      }
      .seo-boost-chip {
        width: 100%;
        text-align: center;
      }
    }
    .comparison-cards-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      margin-bottom: 20px;
    }
    .comparison-left,
    .comparison-right {
      padding: 24px;
      border-radius: 8px;
    }
    .comparison-left {
      background: #F8F8F8;
      border: 1px solid #EEEEEE;
    }
    .comparison-right {
      background: #FFF5F0;
      border: 1px solid #FFE0D0;
    }
    .comparison-left h3,
    .comparison-right h3 {
      font-size: 24px;
      font-weight: 800;
      margin: 0 0 20px 0;
      color: #1a1a1a;
    }
    .comparison-content {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .comparison-content .metric {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    .comparison-content .metric .label {
      font-size: 18px;
      color: var(--text-secondary);
      font-weight: 500;
    }
    .comparison-content .metric .value {
      font-size: 32px;
      font-weight: 700;
      color: var(--primary-orange);
      line-height: 1.2;
    }
    .comparison-content .metric .unit {
      font-size: 18px;
      color: var(--text-secondary);
    }
    .comparison-content .metric .status-bad {
      color: #D32F2F;
      background: #FFEBEE;
      padding: 6px 12px;
      border-radius: 6px;
      width: fit-content;
      font-size: 18px;
    }
    .comparison-content .metric .status-good {
      color: #388E3C;
      background: #E8F5E9;
      padding: 6px 12px;
      border-radius: 6px;
      width: fit-content;
      font-size: 18px;
    }
    .comparison-results {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      padding: 32px;
      background: #FFF5F0;
      border-radius: 8px;
      text-align: center;
    }
    .result-item {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .result-label {
      font-size: 16px;
      color: var(--text-secondary);
      font-weight: 500;
    }
    .result-value {
      font-size: 36px;
      font-weight: 700;
      color: var(--primary-orange);
      line-height: 1.2;
    }
    .result-unit {
      font-size: 16px;
      color: var(--text-secondary);
    }

    /* Таблица сравнения */
    .seo-boost-comparison-table {
      margin: 60px 0;
    }
    .seo-boost-comparison-table h3 {
      font-size: 32px;
      font-weight: 800;
      margin: 0 0 32px 0;
      color: var(--text-primary);
      text-align: center;
    }
    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      background: #FFFFFF;
      border: 1px solid #EEEEEE;
      border-radius: 8px;
      overflow: hidden;
    }
    .comparison-table th {
      background: #F8F8F8;
      padding: 20px;
      text-align: left;
      font-size: 20px;
      font-weight: 800;
      color: var(--text-primary);
      border-bottom: 1px solid #EEEEEE;
    }
    .comparison-table td {
      padding: 20px;
      border-bottom: 1px solid #EEEEEE;
      font-size: 20px;
      line-height: 1.7;
      color: var(--text-secondary);
    }
    .comparison-table tr:last-child td {
      border-bottom: none;
    }
    .comparison-table tr:hover {
      background: #FAFAFA;
    }
    .comparison-table td.highlight {
      color: var(--primary-orange);
      font-weight: 700;
    }

    /* Реальные результаты (ДО/ПОСЛЕ) */
    .seo-boost-results {
      margin: 60px 0;
    }
    .seo-boost-results h3 {
      font-size: 32px;
      font-weight: 800;
      margin: 0 0 32px 0;
      text-align: center;
      color: var(--text-primary);
    }
    .seo-boost-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      align-items: flex-start;
      margin-top: 24px;
    }
    .seo-boost-card {
      background: #FFFFFF;
      border-radius: 18px;
      padding: 22px;
      border: 1px solid var(--border-color);
      box-shadow: 0 12px 32px rgba(0,0,0,0.08);
      cursor: zoom-in;
    }
    .seo-boost-label {
      font-size: 20px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-secondary);
      margin-bottom: 12px;
    }
    .seo-boost-image-wrapper {
      border-radius: 14px;
      overflow: hidden;
      background: #F8FAFC;
      border: 1px solid var(--border-color);
    }
    .seo-boost-image-wrapper img {
      display: block;
      width: 100%;
      height: auto;
      transform: scale(1.08);
      cursor: zoom-in;
    }

    /* Механика (4 шага) — адаптированный слайдер */
    .seo-boost-mechanics {
      margin: 60px 0;
      padding: 0;
    }
    .seo-boost-mechanics h3 {
      font-size: 32px;
      font-weight: 800;
      margin: 0 0 48px 0;
      text-align: center;
      color: var(--text-primary);
    }
    .mechanics-slider-container {
      position: relative;
      max-width: 960px;
      margin: 0 auto;
    }
    .mechanics-navigation {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 16px;
      margin-bottom: 32px;
    }
    .mechanics-indicators {
      width: auto;
      height: 50px;
      margin: 0;
    }
    .mechanics-indicators .indicator-box {
      fill: #fff;
      cursor: pointer;
      transition: fill 0.3s ease, transform 0.2s ease;
    }
    .mechanics-indicators .indicator-box:hover {
      fill: #f2f2f2;
      transform: scale(1.1);
    }
    .mechanics-indicators .indicator-box.active {
      fill: var(--primary-orange);
    }
    .mechanics-indicators .indicator-circle {
      fill: #e0e0e0;
      pointer-events: none;
      transition: fill 0.3s ease;
    }
    .mechanics-indicators .indicator-box.active + .indicator-circle {
      fill: var(--primary-orange);
    }
    .mechanics-nav-arrow {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: #fff;
      border: 2px solid #e0e0e0;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      color: var(--text-primary);
      font-size: 20px;
      font-weight: bold;
    }
    .mechanics-nav-arrow:hover {
      border-color: var(--primary-orange);
      background: var(--primary-orange);
      color: #fff;
    }
    .mechanics-nav-arrow:active {
      transform: scale(0.95);
    }
    .mechanics-content {
      display: flex;
      align-items: center;
      gap: 40px;
    }
    .mechanics-image-wrapper {
      flex-shrink: 1;
      max-width: 450px;
      width: 100%;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    }
    .mechanics-main-image {
      width: 100%;
      height: auto;
      display: block;
      transition: opacity 0.6s ease, transform 0.6s ease;
    }
    .mechanics-text {
      flex: 1;
      line-height: 1.44;
      padding: 0 20px;
      min-width: 400px;
    }
    .mechanics-text__title {
      font-size: 26px;
      font-weight: 800;
      margin-bottom: 20px;
      color: var(--text-primary);
      transition: opacity 0.4s ease;
      white-space: nowrap;
    }
    .mechanics-text__body {
      font-size: 20px;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 24px;
      transition: opacity 0.4s ease;
    }
    .mechanics-metric {
      display: inline-flex;
      flex-direction: column;
      gap: 6px;
      align-items: flex-start;
      justify-content: center;
      background: #FFF7F2;
      border: 1px solid #FFE0D0;
      border-radius: 12px;
      padding: 14px 18px;
      min-width: 220px;
      width: fit-content;
      transition: opacity 0.4s ease;
    }
    .mechanics-metric .metric-value {
      font-size: 24px;
      font-weight: 800;
      color: var(--text-primary);
    }
    .mechanics-metric .metric-label {
      font-size: 18px;
      color: var(--text-secondary);
    }
    @media all and (max-width: 768px) {
      .mechanics-content {
        flex-direction: column;
      }
      .mechanics-image-wrapper {
        max-width: 100%;
      }
      .mechanics-text {
        max-width: 100%;
        width: 100%;
        padding: 20px;
        min-width: auto;
      }
      .mechanics-text__title {
        font-size: 24px;
        white-space: normal;
      }
      .mechanics-navigation {
        gap: 12px;
      }
      .mechanics-nav-arrow {
        width: 40px;
        height: 40px;
        font-size: 18px;
      }
      .mechanics-indicators {
        width: auto;
        height: 45px;
      }
    }

    /* Примеры для разных аудиторий */
    .seo-boost-examples {
      margin: 80px 0;
    }
    .seo-boost-examples h3 {
      font-size: 32px;
      font-weight: 800;
      margin: 0 0 48px 0;
      text-align: center;
      color: var(--text-primary);
    }
    .seo-boost-examples .examples-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }
    .seo-boost-examples .example-card {
      padding: 32px;
      background: #FFF5F0;
      border: 1px solid #FFE0D0;
      border-radius: 12px;
      min-height: 100%;
      box-sizing: border-box;
      word-break: break-word;
    }
    .seo-boost-examples .example-card h4 {
      font-size: 20px;
      font-weight: 800;
      margin: 0 0 20px 0;
      color: var(--text-primary);
    }
    .seo-boost-examples .example-card blockquote {
      font-size: 18px;
      color: var(--text-secondary);
      margin: 0 0 20px 0;
      padding-left: 16px;
      border-left: 4px solid var(--primary-orange);
      font-style: italic;
      line-height: 1.7;
    }
    .seo-boost-examples .example-metric {
      font-size: 18px;
      color: var(--primary-orange);
      font-weight: 700;
      margin: 0;
    }


    /* Калькулятор окупаемости в SEO Boost */
    .seo-boost-calculator {
      margin: 60px 0;
      padding: 40px;
      border-radius: 12px;
      background: #FFF8F3;
      border: 1px solid rgba(255, 107, 53, 0.2);
    }
    .seo-boost-calculator h3 {
      font-size: 32px;
      font-weight: 800;
      margin: 0 0 16px 0;
      color: var(--text-primary);
      text-align: center;
    }
    .seo-boost-calculator > p {
      font-size: 28px;
      color: var(--text-secondary);
      text-align: center;
      margin: 0 0 32px 0;
      line-height: 1.6;
      max-width: 100%;
    }
    .seo-boost-calculator .calc-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 32px;
      max-width: 1000px;
      margin: 0 auto;
    }
    .seo-boost-calculator .calc-input-group {
      margin-bottom: 24px;
    }
    .seo-boost-calculator .calc-input-group label {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
      font-size: 18px;
      color: var(--text-primary);
      font-weight: 600;
    }
    .seo-boost-calculator .calc-input-group input[type="range"] {
      width: 100%;
      height: 8px;
      border-radius: 4px;
      accent-color: var(--primary-orange);
    }
    .seo-boost-calculator .calc-input-group input[type="number"],
    .seo-boost-calculator .calc-input-group input[type="text"] {
      width: 100%;
      padding: 12px;
      border: 1px solid #EEEEEE;
      border-radius: 8px;
      font-size: 18px;
      box-sizing: border-box;
      background: #fff;
      color: var(--text-primary);
    }
    .seo-boost-calculator .calc-results {
      background: #FFFFFF;
      padding: 32px;
      border-radius: 12px;
      border: 1px solid #EEEEEE;
    }
    .seo-boost-calculator .calc-results h4 {
      font-size: 24px;
      font-weight: 800;
      margin: 0 0 24px 0;
      color: var(--text-primary);
    }
    .seo-boost-calculator .calc-results-row {
      display: flex;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid #EEEEEE;
      font-size: 17px;
      line-height: 1.4;
    }
    .seo-boost-calculator .calc-results-row strong {
      color: var(--primary-orange);
      font-size: 18px;
      font-weight: 800;
    }
    .seo-boost-calculator .calc-tariff-rows {
      margin-top: 24px;
      padding-top: 24px;
      border-top: 2px solid #EEEEEE;
    }
    .seo-boost-calculator .calc-tariff-row {
      display: flex;
      justify-content: space-between;
      padding: 12px 0;
      font-size: 18px;
    }
    .seo-boost-calculator .calc-tariff-name {
      color: var(--text-secondary);
    }
    .seo-boost-calculator .calc-tariff-profit {
      font-weight: 700;
      color: var(--primary-orange);
    }
    .seo-boost-calculator .calc-recommendation {
      margin-top: 20px;
      padding: 16px;
      background: #FFF5F0;
      border-radius: 8px;
      font-size: 16px;
      color: var(--text-secondary);
      line-height: 1.6;
    }
    @media (max-width: 768px) {
      .seo-boost-calculator .calc-grid {
        grid-template-columns: 1fr;
      }
    }

    /* CTA кнопка */
    .seo-boost-cta {
      margin: 60px 0 0;
      text-align: center;
      padding: 60px 40px;
      background: #FFF5F0;
      border-radius: 12px;
    }
    .seo-boost-cta .btn-large {
      padding: 18px 48px;
      font-size: 20px;
      font-weight: 700;
    }
    .cta-description {
      font-size: 18px;
      color: var(--text-secondary);
      margin: 16px 0 0 0;
    }

    /* Мобильная адаптация */
    @media (max-width: 1024px) {
      .mechanics-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      .seo-boost-examples .examples-grid {
        grid-template-columns: repeat(2, minmax(240px, 1fr));
      }
    }
    @media (max-width: 768px) {
      .seo-boost-section {
        padding: 40px 12px;
      }
      .seo-boost-header h2 {
        font-size: 28px;
      }
      .seo-boost-header p {
        font-size: 18px;
      }
      .comparison-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      .comparison-left,
      .comparison-right {
        padding: 20px;
      }
      .comparison-left h3,
      .comparison-right h3 {
        font-size: 20px;
      }
      .comparison-content .metric .value {
        font-size: 24px;
      }
      .comparison-content .metric .label {
        font-size: 14px;
      }
      .comparison-results {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 16px;
      }
      .result-value {
        font-size: 28px;
      }
      .seo-boost-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      .seo-boost-results h3 {
        font-size: 24px;
      }
      .mechanics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
      }
      .seo-boost-examples .examples-grid {
        grid-template-columns: 1fr;
      }
      .comparison-table th,
      .comparison-table td {
        padding: 12px;
        font-size: 16px;
      }
      .seo-boost-comparison-table h3 {
        font-size: 24px;
      }
      .seo-boost-calculator {
        padding: 24px;
      }
      .seo-boost-calculator h3 {
        font-size: 24px;
      }
      .seo-boost-calculator .calc-grid {
        grid-template-columns: 1fr;
      }
    }


    .final-cta { background: var(--bg-light); text-align: center; }
    .final-cta h2 { font-size: clamp(28px,4vw,40px); margin-bottom: 14px; }

    footer {
      background: var(--text-primary);
      color: #fff;
      padding: 36px 24px;
      font-size: 14px;
    }
    .footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
    .footer-brand { flex: 1 1 320px; min-width: 280px; }
    .footer-brand h3 { font-size: 22px; font-weight: 800; margin: 0 0 8px; color: #fff; }
    .footer-brand p { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.8); margin: 0 0 12px; }
    .footer-cta { display: flex; gap: 10px; flex-wrap: wrap; }
    .footer-cta .btn { padding: 12px 18px; font-size: 15px; }

    @media (max-width: 1024px) {
      .hero { flex-direction: column; align-items: center; }
      .hero-content { max-width: 100%; text-align: center; }
      .hero p { margin-left: auto; margin-right: auto; }
      .showcase-container { width: 100%; max-width: 420px; height: 460px; }
      nav, .main-nav { 
        display: none; 
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        z-index: 99;
        padding: 80px 20px 20px;
        overflow-y: auto;
      }
      nav.active, .main-nav.active {
        display: flex;
      }
      nav a, .main-nav a {
        font-size: 24px;
        padding: 12px 0;
      }
      .mobile-menu-toggle {
        display: flex;
      }
      .header-inner {
        padding: 14px 20px;
        gap: 20px;
      }
      .logo img {
        height: 80px;
      }
      .header-actions .btn {
        padding: 12px 24px;
        font-size: 16px;
      }
    }
    @media (max-width: 768px) {
      section { padding: 48px 16px; }
      .hero { 
        padding-top: 56px; 
        padding: 80px 12px 100px; 
        min-height: 70vh;
        position: relative !important;
        z-index: 1 !important;
        overflow: hidden !important; /* Предотвращаем наложение элементов из других секций */
      }
      .hero-title { font-size: clamp(28px, 6vw, 48px) !important; }
      .hero-subtitle p { font-size: clamp(16px, 4vw, 20px) !important; }
      .showcase-container { height: 380px; }
      .hero-cta { flex-direction: column; gap: 12px; }
      .hero-cta .btn { width: 100%; }
      
      /* Гарантируем, что элементы из других секций не накладываются на Hero */
      .hero * {
        position: relative;
        z-index: 1;
      }
      
      /* Скрываем niche-image-label на мобильной версии */
      .niche-image-label,
      #niche-preview-text {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        z-index: -999 !important;
        overflow: hidden !important;
      }
  .examples .examples-grid { gap: 16px; }
  /* для бегущей строки: оставляем горизонтальный скролл и фиксированную ширину карточек */
  .examples-track { overflow-x: auto; padding: 0 20px; }
  .examples .example-card { flex: 0 0 280px; min-width: 280px; }

  /* Форсируем одну колонку для всех карточных сеток на мобильных */
  .values-grid,
  .values-grid.grid-15,
  .features-grid,
  .steps-grid,
  .how-grid,
  .mechanics-grid,
  .comparison-cards-grid,
  .seo-boost-grid,
  .solution-top-cards,
  .solution-mid-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  /* Карточки на всю ширину, без min-width */
  .value-card,
  .feature-card,
  .step-card,
  .mechanic-card,
  .pricing-card,
  .comparison-left,
  .comparison-right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  /* Таблица ниш: одна колонка, без стрелок и лишних паддингов на мобилках */
  .niche-table-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    grid-template-columns: 1fr !important;
  }

  .niche-table-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .niche-cell {
    padding: 16px 16px !important;
    min-height: auto !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .niche-cell::after,
  .niche-cell::before {
    display: none !important;
    content: none !important;
  }

  .niche-name {
    font-size: 20px !important;
    line-height: 1.3 !important;
  }

  .niche-image-preview {
    position: static !important;
    min-height: auto !important;
    margin: 0 !important;
  }

  .niche-image-preview img {
    min-height: auto !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
      .header-right {
        gap: 4px;
      }
      .header-inner {
        padding: 12px 16px;
        gap: 12px;
      }
      .logo {
        height: 70px;
      }
      .logo img {
        height: 60px;
      }
      .header-actions {
        flex-direction: column;
        gap: 8px;
        width: 100%;
      }
      .header-actions .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
        min-width: auto;
      }
      .header-contacts {
        font-size: 11px;
        align-items: center;
      }
      .header-contacts-links {
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
      }
      .container {
        padding: 0 16px;
      }
    }
    @media (max-width: 480px) {
      .hero { padding: 60px 12px 80px; min-height: 70vh; }
      .hero-title { font-size: clamp(24px, 5vw, 36px) !important; line-height: 1.3 !important; }
      .hero-subtitle p { font-size: clamp(14px, 3.5vw, 18px) !important; }
      
      /* Гарантируем скрытие niche-image-label на очень маленьких экранах */
      .niche-image-label,
      #niche-preview-text {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
      }
      
      .header-inner {
        padding: 10px 12px;
      }
      .logo img {
        height: 50px;
      }
      .logo {
        height: 60px;
        padding: 10px 0 10px 8px;
      }
      .header-actions .btn {
        padding: 12px 16px;
        font-size: 13px;
      }
      .section-header h2 {
        font-size: clamp(20px, 5vw, 32px) !important;
      }
      .section-subtitle {
        font-size: clamp(14px, 3.5vw, 18px) !important;
      }

      /* Мобильный фикс: НЕ обрезаем H2 в проблемах/решении (убираем line-clamp/ellipsis) */
      .h2-problem,
      .h2-solution {
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: unset !important;
        white-space: normal !important;
      }
    }

    /* Модальное окно */
    .modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 1000;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .modal-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(4px);
    }
    .modal-content {
      position: relative;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      max-width: 600px;
      width: 100%;
      max-height: 90vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      z-index: 1001;
    }
    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px;
      border-bottom: 2px solid var(--border-color);
    }
    .modal-title {
      font-size: 1.3rem;
      font-weight: 700;
      color: var(--text-primary);
    }
    .modal-close {
      background: none;
      border: none;
      font-size: 28px;
      color: var(--text-secondary);
      cursor: pointer;
      line-height: 1;
      padding: 0;
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      transition: all 0.2s;
    }
    .modal-close:hover {
      background: rgba(0, 0, 0, 0.05);
      color: var(--primary-orange);
    }
    .modal-body {
      padding: 24px;
      overflow-y: auto;
      flex: 1;
    }

    /* Default modals: hide "windows-like" scrollbar (still scrollable if needed) */
    .modal:not(.modal--tariff) .modal-body {
      scrollbar-width: none; /* Firefox */
    }
    .modal:not(.modal--tariff) .modal-body::-webkit-scrollbar {
      width: 0;
      height: 0;
    }

    /* Tariff modal context: show brand-styled scrollbar (orange, rounded) */
    .modal.modal--tariff .modal-body {
      overflow-y: auto; /* ensure scroll works even when desktop rule below sets visible */
      scrollbar-width: thin; /* Firefox */
      scrollbar-color: rgba(255,107,53,0.95) rgba(255,107,53,0.10);
    }
    .modal.modal--tariff .modal-body::-webkit-scrollbar {
      width: 10px;
    }
    .modal.modal--tariff .modal-body::-webkit-scrollbar-track {
      background: rgba(255,107,53,0.10);
      border-radius: 999px;
    }
    .modal.modal--tariff .modal-body::-webkit-scrollbar-thumb {
      background: linear-gradient(180deg, rgba(255,107,53,0.65), rgba(255,107,53,1));
      border-radius: 999px;
      border: 2px solid rgba(255,255,255,0.75);
      background-clip: padding-box;
    }
    .modal.modal--tariff .modal-body::-webkit-scrollbar-thumb:hover {
      background: linear-gradient(180deg, rgba(255,107,53,0.78), rgba(255,107,53,1));
      background-clip: padding-box;
    }
    .modal-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      padding: 16px 24px;
      border-top: 2px solid var(--border-color);
      background: var(--bg-light);
    }
    /* Модальное окно с двумя частями (изображение слева, форма справа) */
    .modal-content-split {
      max-width: 900px;
      display: flex;
      flex-direction: row;
      max-height: 90vh;
    }
    .modal-image-side {
      width: 45%;
      background: var(--bg-light);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      overflow: hidden;
      border-radius: 16px 0 0 16px;
      height: 100%;
    }
    .modal-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .modal-form-side {
      width: 55%;
      display: flex;
      flex-direction: column;
      background: #fff;
    }
    .modal-title {
      font-size: clamp(22px, 3vw, 30px);
      line-height: 1.2;
      white-space: nowrap;
      color: #111;
    }
    .form-group {
      margin-bottom: 20px;
    }
    .form-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 700;
      color: #111;
      font-size: 16px;
    }
    .form-group .required {
      color: var(--primary-orange);
    }
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"],
    .form-group textarea {
      width: 100%;
      padding: 13px 16px;
      border: 2px solid var(--border-color);
      border-radius: 8px;
      font-size: 17px;
      color: #111;
      transition: border-color 0.2s;
    }
    .form-group input:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--primary-orange);
    }
    .form-checkbox-group {
      margin-bottom: 16px;
    }
    .checkbox-label {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      cursor: pointer;
      font-weight: 500;
      color: #111;
      font-size: 15px;
      line-height: 1.4;
    }
    .checkbox-label input[type="checkbox"] {
      width: 20px;
      height: 20px;
      margin-top: 2px;
      cursor: pointer;
      flex-shrink: 0;
    }
    .checkbox-label a {
      color: var(--primary-orange);
      text-decoration: underline;
    }
    .form-error {
      background: #FEE2E2;
      color: #991B1B;
      padding: 12px;
      border-radius: 8px;
      margin-bottom: 16px;
      font-size: 14px;
    }
    .form-success {
      background: #D1FAE5;
      color: #065F46;
      padding: 12px;
      border-radius: 8px;
      margin-bottom: 16px;
      font-size: 14px;
    }
    @media (max-width: 768px) {
      .modal-content-split {
        flex-direction: column;
        max-width: 100%;
        height: auto;
      }
      .modal-image-side {
        width: 100%;
        height: 220px;
        border-radius: 16px 16px 0 0;
      }
      .modal-form-side {
        width: 100%;
      }
      .modal-title {
        white-space: normal;
      }
    }
    
    /* Стили для статусов ключевых слов */
    .status-error {
      background: rgba(230, 57, 70, 0.15);
      color: #E63946;
    }
    
    .loading-message {
      text-align: center;
      padding: 3rem;
      color: var(--text-secondary);
      font-size: 1.1rem;
    }
    
    .empty-message {
      text-align: center;
      padding: 3rem;
      color: var(--text-secondary);
      font-size: 1rem;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 12px;
      border: 2px dashed var(--border-color);
    }
    
    /* Анимации для уведомлений */
    @keyframes slideIn {
      from {
        transform: translateX(400px);
        opacity: 0;
      }
      to {
        transform: translateX(0);
        opacity: 1;
      }
    }
    
    @keyframes slideOut {
      from {
        transform: translateX(0);
        opacity: 1;
      }
      to {
        transform: translateX(400px);
        opacity: 0;
      }
    }
    
    /* Анимация для fade-in секций */
    .fade-in-up {
      animation: fadeInUp 0.6s ease forwards;
    }
    
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
/* Section CTA кнопки */
.section-cta {
  text-align: center;
  margin-top: 48px;
}

.cta-note {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Pricing CTA */
.pricing-cta {
  width: 100%;
  margin-top: 12px;
}

/* Final CTA Box */
.cta-box {
  background: var(--bg-light);
  padding: 64px 48px;
  border-radius: 16px;
  text-align: center;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .cta-box {
    padding: 48px 24px;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}

/* Лайтбокс для SEO Boost картинок */
.seo-boost-lightbox,
.seo-boost-lightbox-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.seo-boost-lightbox.active,
.seo-boost-lightbox-backdrop.active {
  display: flex;
}

.seo-boost-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-boost-lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
}

.seo-boost-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 40px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

.seo-boost-lightbox-close:hover {
  color: var(--primary-orange);
}

/* Выравнивание кнопок в карточках "Два пути" */
/* Блок "Какой путь к масштабированию выбрать?" использует .value-card, не .pricing-card */
.values-grid.grid-2 .value-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.values-grid.grid-2 .value-card h3 {
  font-size: 28px !important;
  font-weight: 800;
  line-height: 1.25;
  margin: 6px 0 10px;
}

.values-grid.grid-2 .value-card p,
.values-grid.grid-2 .value-card .feature-list,
.values-grid.grid-2 .value-card .feature-list li,
.values-grid.grid-2 .value-card .feature-footnote {
  font-size: 18px !important;
  line-height: 1.7;
  color: var(--text-secondary);
}

.values-grid.grid-2 .value-card .btn {
  margin-top: auto; /* Прижимаем кнопку к низу */
}

/* Готовые страницы работают сразу – подзаголовок как в примерах */
.solution-preview-content p {
  font-size: 28px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 100%;
  width: 100%;
  display: block;
}

/* Footer Grid (колонки) */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
  flex: 2 1 600px;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 200ms;
}

.footer-links a:hover {
  color: var(--primary-orange);
}

.footer-contacts a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 13px;
}

.footer-contacts a:hover {
  color: var(--primary-orange);
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0 0;
}
.footer-trust-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  margin-top: 32px;
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,0.8); text-decoration: none; }
.footer-bottom a:hover { color: var(--primary-orange); }

/* Стили для нового раздела Solution */
.solution-top-cards,
.solution-mid-cards,
.solution-bottom-cards {
  margin-bottom: 48px;
}

.solution-card-with-image {
  position: relative;
  overflow: hidden;
  padding: 0 !important; /* Убираем padding карточки */
  border: none !important; /* Убираем границы */
  display: flex;
  flex-direction: column;
  background: #f8f9fa; /* Серый фон */
  border-radius: 16px; /* Закругление */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.solution-card-with-image:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.solution-card-content {
  padding: 32px 32px 24px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Убрали номера - они больше не нужны */

/* КРИТИЧНО: Перекрываем общие стили value-card для карточек с изображениями */
.solution-card-with-image .solution-card-content h3,
.value-card.solution-card-with-image .solution-card-content h3,
.solution-card-content h3 {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em !important;
}

.solution-card-with-image .solution-card-content p,
.value-card.solution-card-with-image .solution-card-content p,
.solution-card-content p {
  margin: 0 !important;
  color: var(--text-secondary) !important;
  font-size: 18px !important;
  line-height: 1.7 !important;
  flex: 1 !important;
  letter-spacing: -0.01em !important;
}

/* Для карточек grid-2 (верхние 2 карточки) - еще крупнее */
.solution-top-cards .solution-card-with-image .solution-card-content h3,
.solution-top-cards .value-card.solution-card-with-image .solution-card-content h3,
.solution-top-cards .solution-card-content h3 {
  font-size: 32px !important;
  margin-bottom: 20px !important;
}

.solution-top-cards .solution-card-with-image .solution-card-content p,
.solution-top-cards .value-card.solution-card-with-image .solution-card-content p,
.solution-top-cards .solution-card-content p {
  font-size: 20px !important;
  line-height: 1.75 !important;
}

/* Для карточек grid-3 (средние 3 карточки) - ТАКИЕ ЖЕ РАЗМЕРЫ КАК В ВЕРХНИХ 2 */
.solution-mid-cards .solution-card-with-image .solution-card-content h3,
.solution-mid-cards .value-card.solution-card-with-image .solution-card-content h3,
.solution-mid-cards .solution-card-content h3 {
  font-size: 32px !important;
  margin-bottom: 20px !important;
}

.solution-mid-cards .solution-card-with-image .solution-card-content p,
.solution-mid-cards .value-card.solution-card-with-image .solution-card-content p,
.solution-mid-cards .solution-card-content p {
  font-size: 20px !important;
  line-height: 1.75 !important;
}

.solution-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  display: flex !important;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.solution-card-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
  z-index: 2; /* Поверх изображения, но не мешает */
  pointer-events: none;
}

.solution-card-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  visibility: visible !important;
  cursor: pointer !important;
  transition: transform 0.3s ease !important;
  opacity: 1 !important;
  transition: transform 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  min-height: 240px;
  background: transparent;
}

.solution-card-with-image:hover .solution-card-image img {
  transform: scale(1.05);
}

/* Для карточек grid-2 (верхние 2 карточки) */
.solution-top-cards .solution-card-image {
  height: 320px;
}

/* ✅ Site-templates: top row images should be top-aligned (avoid cutting heads). */
#solution .solution-top-cards .solution-card-image img {
  object-position: center center !important;
}

.solution-top-cards .solution-card-content {
  padding: 36px 36px 28px 36px;
}

/* Для карточек grid-3 (средние 3 карточки) */
.solution-mid-cards .solution-card-image {
  height: 240px;
}

.solution-mid-cards .solution-card-content {
  padding: 28px 28px 20px 28px;
}

.niche-table-container {
  margin: 48px 0;
  padding: 32px;
  background: #FFFFFF;
  border-radius: 16px;
  position: relative;
  z-index: 0;
  overflow: hidden; /* Предотвращаем выход элементов за пределы контейнера */
}

.niche-table-title {
  font-size: 32px; /* Увеличен размер */
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-primary);
  line-height: 1.3;
}

.niche-table-wrapper {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 40px;
  align-items: start;
}

/* Таблица ниш - grid 2 столбца × 4 строки */
.niche-table-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 столбца */
  gap: 0;
  border: none; /* Убираем внешнюю границу */
  border-radius: 0;
  overflow: visible; /* Убираем overflow, чтобы границы были видны */
  background: white;
  box-shadow: none; /* Убираем тень */
}

.niche-cell {
  padding: 32px 32px; /* Увеличено с 28px */
  min-height: 120px; /* Увеличено для большей высоты */
  border-right: 1px solid rgba(0, 0, 0, 0.08); /* Тонкая внутренняя граница */
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Тонкая внутренняя граница */
  border-top: none;
  border-left: none;
  cursor: pointer; /* Курсор pointer для кликабельности */
  transition: all 0.3s ease; /* Плавные переходы */
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px; /* Увеличена высота */
  position: relative;
}

/* Правый столбец - правая граница остается для всех, кроме последнего ряда */
.niche-cell:nth-child(even) {
  border-right: 1px solid rgba(0, 0, 0, 0.08); /* Оставляем тонкую границу */
}

/* Нижние ячейки - нижняя граница у последних двух строк */
.niche-cell:nth-child(7),
.niche-cell:nth-child(8) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Оставляем тонкую границу */
}

.niche-name {
  font-size: 26px; /* Увеличен с 22px */
  font-weight: 500;
  color: var(--text-primary);
  transition: color 0.3s ease;
  line-height: 1.4;
}

/* Стрелка при наведении на ячейку */
.niche-cell::after {
  content: '';
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%) scale(0.8);
}

.niche-cell::before {
  content: '→';
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 18px;
  font-weight: bold;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.niche-cell:hover {
  background: rgba(255, 107, 53, 0.08);
  border-left: 3px solid var(--primary-orange);
  padding-left: 25px;
  z-index: 1;
  position: relative;
}

.niche-cell:hover {
  background: rgba(255, 107, 53, 0.08);
  border-left: 3px solid var(--primary-orange);
  padding-left: 25px;
  z-index: 1;
  position: relative;
}

.niche-cell:hover .niche-name {
  color: var(--primary-orange);
  font-weight: 600;
}

.niche-cell:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

.niche-cell:hover::before {
  opacity: 1;
}

.niche-image-preview {
  position: sticky;
  top: 100px;
  height: 480px; /* Увеличено с 440px для соответствия новым размерам ячеек */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.niche-image-preview img {
  width: 100%;
  height: calc(100% - 80px); /* Высота изображения = общая высота - высота подложки */
  object-fit: cover; /* Заполняет весь контейнер */
  object-position: center; /* Центрирование изображения */
  display: block;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.3s ease; /* Плавная смена изображений */
  flex-shrink: 0;
  border-radius: 12px 12px 0 0; /* Скругленные края только сверху */
  opacity: 1;
  /* Double-buffer fade: allow two images to overlap without layout shifts */
  position: absolute;
  top: 0;
  left: 0;
}

.niche-image-preview img.fade-out {
  opacity: 0;
}

.niche-image-preview img.fade-in {
  opacity: 1;
}

/* Soft fade with subtle scale (smoother UX for niche preview swap) */
.niche-image-preview img.fade-out-soft {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.niche-image-preview img.fade-in-soft {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.niche-image-preview img.show-soft {
  opacity: 1;
  transform: scale(1);
}

.niche-image-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: rgba(240, 240, 240, 0.95); /* Слегка серая подложка */
  color: #000000; /* Черный цвет текста */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  height: 80px; /* Фиксированная высота подложки */
  box-sizing: border-box;
  border-radius: 0 0 12px 12px; /* Скругленные края только снизу */
  text-align: center;
}

.niche-image-label span {
  font-size: 18px;
  color: #000000; /* Черный цвет */
  font-weight: 400; /* Обычный шрифт, не жирный */
  display: block;
  width: 100%; /* Использует всю ширину */
  line-height: 1.5;
  text-align: center;
}

/* Safety: caption under niche preview must never become orange / transformed */
#solution #niche-preview-text {
  color: #000000 !important;
  text-transform: none !important;
}

.niche-view-all {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: var(--primary-orange);
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.niche-view-all:hover {
  color: var(--primary-orange-dark);
  text-decoration: underline;
}

.solution-preview-container {
  margin: 48px 0;
  padding: 48px;
  background: linear-gradient(135deg, #f0f1f3 0%, #f5f6f8 100%); /* Более заметный серый фон */
  border-radius: 16px;
  /* ✅ По просьбе: заголовок и текст — по центру (как на главной) */
  text-align: center;
  width: 100%;
}

.solution-preview-content {
  width: 100%;
  max-width: none;
}

.solution-preview-content h3 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.solution-preview-content p {
  font-size: 20px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.solution-preview-image {
  max-width: 800px;
  margin: 0 auto;
}

.solution-preview-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Кнопки CTA после блока готовых страниц - используют стили hero-cta */
.solution-preview-container + .hero-cta {
  margin: 24px 0;
}

/* Контейнер для серого блока и изображения */
.trust-features-container {
  margin: 12px 0; /* уменьшили отступ в 2 раза */
  display: grid;
  grid-template-columns: 1fr 1fr; /* Равные колонки для серого блока и изображения */
  gap: 0;
  align-items: stretch; /* Выравниваем по высоте */
  position: relative;
}

/* Дополнительные карточки доверия (два блока под первым элементом) */
/* Дополнительные карточки доверия (два блока под первым элементом) */
.trust-extra-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 32px 0;
  align-items: stretch; /* Выравниваем карточки по высоте */
}

.trust-extra-card {
  background: linear-gradient(135deg, #f8f9fb 0%, #eef0f4 100%);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%; /* Обеспечиваем одинаковую высоту */
}

.trust-extra-card h4 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
  flex-shrink: 0;
}

.trust-extra-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 20px;
  flex-shrink: 0;
}

.trust-extra-card .label {
  display: inline-block;
  padding: 6px 10px;
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.trust-extra-card-image {
  margin-top: auto; /* Прижимаем изображение к низу */
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.trust-extra-card-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.trust-cta {
  margin: 16px 0 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.trust-cta .btn {
  min-width: 200px;
}

/* Блок шагов (продолжение доверия) - карточки одна под другой */
.trust-steps {
  margin: 64px 0 48px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  position: relative;
  overflow: visible;
}

.integration-header {
  text-align: center;
  margin-bottom: 60px;
}

.integration-header h4 {
  margin: 0 0 16px 0;
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.integration-header p {
  font-size: 18px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.trust-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.trust-step-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 32px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  width: 100%;
  cursor: default;
}

.trust-step-card:hover {
  border-color: var(--primary-orange);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.1);
  transform: translateY(-8px);
}

.trust-step-card .step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-orange);
  margin: 0 0 16px 0;
  opacity: 0.3;
  line-height: 1;
}

.trust-step-card h5 {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.trust-step-card > p {
  font-size: 20px;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
  line-height: 1.75;
}

.step-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-benefits li {
  font-size: 20px;
  color: var(--text-secondary);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  line-height: 1.75;
}

.step-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-weight: 700;
}

/* Блок поддержки с видео */
.trust-support {
  margin: 48px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  /* Эталон как на главной: обе колонки одинаковой высоты */
  align-items: stretch;
}

.trust-support-card {
  background: linear-gradient(135deg, #f0f1f3 0%, #f5f6f8 100%);
  border-radius: 16px;
  padding: 32px;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.trust-support-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.trust-support-card p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.75;
  font-size: 20px;
}

.trust-support-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trust-support-list li {
  position: relative;
  padding-left: 20px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.75;
}

.trust-support-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-size: 22px;
  line-height: 1;
}

.trust-support-video {
  background: #0F172A;
  border-radius: 16px;
  /* Эталонная высота: не огромная и не маленькая, адаптивная под ширину */
  height: clamp(320px, 34vw, 460px);
  min-height: 320px;
  max-height: 460px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  box-shadow: 0 18px 40px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  overflow: hidden;
  position: relative;
}

.trust-support-video video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  /* “Центрирование по верху”, чтобы важные части (лицо) не обрезались */
  object-position: top center;
  display: block;
  background: #000;
  border-radius: 0;
}

@media (max-width: 768px) {
  .trust-support-video {
    height: 240px;
    min-height: 240px;
    max-height: 240px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
  }

  .trust-support-video video {
    height: auto;
    min-height: 0;
    max-height: 220px;
    border-radius: 12px;
  }
}

.trust-support-video .video-placeholder {
  text-align: center;
  padding: 24px;
  line-height: 1.6;
}

/* Итоговые плашки доверия */
.trust-summary {
  /* ✅ Safety: even if markup ends up outside `.container`, keep it within container width */
  width: 100%;
  max-width: 1200px;
  margin: 32px auto 0;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.trust-summary {
  text-align: center;
}

.trust-summary-title {
  margin: 0 0 14px 0;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
}

.trust-summary-pills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.trust-summary-pill {
  background: linear-gradient(135deg, #f8f9fb 0%, #f1f2f6 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  line-height: 1.75;
}

.trust-summary-pill span.icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(255, 107, 53, 0.12);
  color: var(--primary-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

/* Visual content editor (variant B): branded links injected server-side (safe DOM override) */
.ce-brand-link {
  color: var(--primary-orange) !important;
  text-decoration: none !important;
}
.ce-brand-link:hover,
.ce-brand-link:focus {
  text-decoration: none !important;
}

/* Серый блок с функциями (слева) */
.trust-features-block {
  padding: 60px 48px;
  background: linear-gradient(135deg, #f0f1f3 0%, #f5f6f8 100%); /* Серый фон как в разделе "Готовые страницы" */
  border-radius: 20px 0 0 20px; /* Закругление только слева */
  position: relative;
}

/* Убеждаемся, что родительский контейнер тоже позволяет overflow */
#trust .container {
  overflow: visible;
}

.trust-features-block > h3 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 24px 0;
  color: var(--text-primary);
  text-align: left;
}

.trust-features-intro {
  font-size: 20px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  text-align: left;
}


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

.trust-features-list li {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 0;
  margin: 0;
  position: relative;
  padding-left: 28px;
  line-height: 1.6;
}

.trust-features-list li::before {
  content: '•';
  color: var(--primary-orange);
  font-size: 24px;
  position: absolute;
  left: 0;
  line-height: 1;
  font-weight: bold;
}

/* Изображение справа - примыкает к текстовому блоку */
.trust-features-image-wrapper {
  position: relative;
  width: 100%; /* На всю ширину контейнера справа */
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: transparent;
  /* ✅ Скругляем правый край, чтобы блок не "рубился" справа */
  border-radius: 0 20px 20px 0;
  padding: 0;
  flex-shrink: 0;
  height: 100%; /* Высота как у серого блока */
  overflow: hidden;
}

.trust-features-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Заполняет всё пространство */
  display: block;
  border-radius: inherit;
  box-shadow: none;
  border: none;
  margin: 0;
  padding: 0;
}

/* Адаптивность для планшетов */
@media (max-width: 1200px) {
  .trust-features-container {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .trust-features-block {
    border-radius: 20px 20px 0 0;
  }
  
  .trust-features-image-wrapper {
    width: 100%;
    border-radius: 0 0 20px 20px;
    padding: 30px;
    min-height: 400px;
  }
  .trust-support {
    grid-template-columns: 1fr;
  }
  
  .trust-feature-item {
    padding: 12px 16px;
    font-size: 17px;
  }

  /* Адаптивность для карточек с изображениями на планшетах */
  .trust-extra-cards {
    grid-template-columns: 1fr;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 1024px) {
  .trust-features-container {
    grid-template-columns: 1fr;
  }
  
  .trust-features-block {
    padding: 40px 24px;
    border-radius: 20px 20px 0 0;
  }
  
  .trust-features-block > h3 {
    font-size: 28px;
  }
  
  .trust-features-intro {
    font-size: 20px;
  }
  .trust-steps {
    padding: 28px 22px;
  }
  
  .trust-features-list li {
    font-size: 21px;
  }
  
  .trust-section-title {
    font-size: 18px;
  }
  
  .trust-feature-item {
    padding: 10px 14px;
    font-size: 16px;
  }
  
  .trust-features-image-wrapper {
    border-radius: 0 0 20px 20px;
    padding: 30px;
    min-height: 400px;
  }
}

@media (max-width: 768px) {
  .trust-features-block {
    padding: 32px 20px;
    gap: 30px;
  }
  
  .trust-features-content > h3 {
    font-size: 24px;
  }
  
  .trust-features-intro {
    font-size: 18px;
  }
  
  .trust-features-list li {
    font-size: 18px;
  }
  .trust-support {
    gap: 18px;
  }
  .trust-support-video {
    min-height: 220px;
  }

  .trust-support-card p {
    font-size: 18px;
  }

  .trust-support-list li {
    font-size: 18px;
  }

  .trust-features-intro {
    font-size: 18px;
  }

  .trust-extra-card p {
    font-size: 18px;
  }

  .integration-header h4 {
    font-size: 36px;
  }

  .integration-header p {
    font-size: 16px;
  }

  .trust-step-card {
    padding: 32px 24px;
  }

  .trust-step-card .step-number {
    font-size: 40px;
  }

  .trust-step-card h5 {
    font-size: 18px;
  }

  .trust-step-card > p {
    font-size: 18px;
  }

  .step-benefits li {
    font-size: 18px;
  }

  .trust-steps {
    margin: 48px 0 32px 0;
  }

  .integration-header {
    margin-bottom: 40px;
  }

  .trust-steps-grid {
    gap: 20px;
    max-width: 100%;
  }
  
  .trust-section-title {
    font-size: 17px;
  }
  
  .trust-feature-item {
    padding: 10px 12px;
    font-size: 15px;
  }
  
  .trust-features-image-right {
    height: 350px;
  }

  /* Адаптивность для карточек с изображениями */
  .trust-extra-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .trust-extra-card {
    padding: 24px;
  }

  .trust-extra-card h4 {
    font-size: 20px;
  }

  /* Адаптивность для шагов */
  .trust-steps {
    padding: 28px 20px;
  }

  .trust-steps h4 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .trust-steps-grid {
    gap: 20px;
  }

  .trust-step {
    gap: 16px;
  }

  .trust-step p {
    font-size: 18px;
  }

  .trust-step .step-badge {
    width: 48px;
    height: 48px;
    font-size: 14px;
  }

  .trust-step .step-badge::after {
    bottom: -20px;
    height: 20px;
  }
}

.trust-card {
  text-align: center;
}

/* Серый фон для всех карточек в блоке "Доверие" */
#trust .value-card {
  background: #FFFFFF !important;
}

.trust-badge {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 120px;
}

.trust-badge img {
  max-width: 200px;
  max-height: 120px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .niche-table-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .niche-image-preview {
    position: static;
    min-height: 300px;
    margin-top: 24px;
  }
  
  .niche-image-preview img {
    min-height: 300px;
    object-fit: contain; /* Изображение влезает полностью */
    border-radius: 12px; /* Скругленные края */
  }
}

@media (max-width: 768px) {
  .solution-top-cards,
  .solution-mid-cards {
    grid-template-columns: 1fr;
  }
  
  .solution-card-image {
    height: 240px !important;
  }
  
  .solution-card-content {
    padding: 24px 24px 20px 24px !important;
  }
  
  .solution-card-content h3 {
    font-size: 24px !important;
    margin-bottom: 14px !important;
  }
  
  .solution-card-content p {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  
  .solution-top-cards .solution-card-content h3 {
    font-size: 26px !important;
  }
  
  .solution-top-cards .solution-card-content p {
    font-size: 18px !important;
  }
  
  /* Средние 3 карточки - ТАКИЕ ЖЕ РАЗМЕРЫ КАК В ВЕРХНИХ 2 */
  .solution-mid-cards .solution-card-content h3 {
    font-size: 26px !important;
    margin-bottom: 18px !important;
  }
  
  .solution-mid-cards .solution-card-content p {
    font-size: 18px !important;
    line-height: 1.7 !important;
  }
  
  .niche-table-grid {
    grid-template-columns: 1fr;
  }
  
  .niche-cell:nth-child(even) {
    border-right: 1px solid var(--border-color);
  }
  
  .niche-cell:nth-child(odd) {
    border-right: none;
  }
  
  .niche-cell:nth-child(7),
  .niche-cell:nth-child(8) {
    border-bottom: 1px solid var(--border-color);
  }
  
  .niche-cell:last-child {
    border-bottom: none;
  }
  
  .niche-table-wrapper {
    grid-template-columns: 1fr;
  }
  
  .niche-image-preview {
    position: relative !important;
    top: auto !important;
    order: -1;
    margin-bottom: 24px;
    overflow: hidden !important; /* Предотвращаем выход элементов за пределы контейнера */
    z-index: 0 !important; /* Убираем z-index на мобильной версии */
  }
  
  #niche-preview-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
  }
  
  .niche-image-label {
    display: none !important; /* Полностью скрываем на мобильной версии */
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: -1 !important; /* Убираем z-index на мобильной версии */
    overflow: hidden !important;
  }
  
  .niche-image-preview img {
    height: auto;
    min-height: 200px;
  }
  
  /* Общие мобильные улучшения */
  .container {
    padding: 0 16px;
  }
  
  section {
    padding: 40px 0;
  }
  
  h1, h2, h3 {
    word-wrap: break-word;
  }
  
  .btn {
    width: 100%;
    max-width: 100%;
  }
  
  table {
    font-size: 14px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   КРИТИЧНО: Размеры шрифтов для карточек раздела "Решение"
   Эти стили ДОЛЖНЫ перекрывать все остальные правила!
   ═══════════════════════════════════════════════════════════════════ */

/* Базовые размеры для всех карточек с изображениями */
.solution-card-content h3 {
  font-size: 28px !important;
  line-height: 1.3 !important;
  margin-bottom: 16px !important;
}

.solution-card-content p {
  font-size: 18px !important;
  line-height: 1.7 !important;
}

/* Верхние 2 карточки - самые крупные */
.solution-top-cards .solution-card-content h3 {
  font-size: 32px !important;
  margin-bottom: 20px !important;
}

.solution-top-cards .solution-card-content p {
  font-size: 20px !important;
  line-height: 1.75 !important;
}

/* Средние 3 карточки - ТАКИЕ ЖЕ РАЗМЕРЫ КАК В ВЕРХНИХ 2 */
.solution-mid-cards .solution-card-content h3 {
  font-size: 32px !important;
  margin-bottom: 20px !important;
}

.solution-mid-cards .solution-card-content p {
  font-size: 20px !important;
  line-height: 1.75 !important;
}


/* Lightbox модальное окно для увеличения изображений */
.image-lightbox {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.image-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  animation: zoomIn 0.3s ease;
}

.image-lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.image-lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  z-index: 10001;
}

.image-lightbox-close:hover {
  transform: rotate(90deg);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  .image-lightbox-content {
    max-width: 95%;
    max-height: 85%;
  }
  
  .image-lightbox-close {
    top: -35px;
    font-size: 35px;
  }
}

/* ⚠️ KATALIZATOR MOBILE OPTIMIZATION RULES - APPLIES ONLY TO KATALIZATOR PROJECT ⚠️ */
/* These rules ensure all pages are optimized for mobile devices */

/* 1. Box-sizing already set globally: * { box-sizing: border-box; } */

/* 2. Containers: width 100%; max-width Xpx (NOT fixed width) - Already set in .container */

/* 3. Images: width 100%, height auto */
img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* 4. Buttons: 44x44px minimum, padding 14px 20px, font-size 16px */
/* Note: .btn already has padding 14px 20px and font-size 16px from above, this ensures minimum size */
.btn, button {
  min-height: 44px;
  min-width: 44px;
}

/* 5. Grid: 1 col (mobile) → 2 cols (768px+) → 3 cols (1024px+) */
.values-grid,
.pricing-grid,
/* .examples-grid остаётся flex для бегущей строки */
.mechanics-grid,
.comparison-cards-grid {
  display: grid;
  grid-template-columns: 1fr; /* Mobile: 1 column */
  gap: 20px;
}

/* 6. Fonts: 14px (mobile) → 16px+ (tablet) */
body {
  font-size: 14px; /* Mobile default */
}

/* Media queries: @media (min-width: 480px), 768px, 1024px */
@media (min-width: 480px) {
  body {
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  /* Grid: 2 columns at 768px+ */
  .values-grid.grid-2,
  .pricing-grid.grid-2,
  /* .examples-grid.* не трогаем — бегущая строка */ 
  .comparison-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  body {
    font-size: 16px; /* Tablet: 16px+ */
  }
  
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  /* Grid: 3 columns at 1024px+ */
  .values-grid.grid-3,
  .pricing-grid.grid-3,
  /* .examples-grid.* не трогаем — бегущая строка */ 
  .mechanics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .values-grid.grid-4,
  .pricing-grid.grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  
  body {
    font-size: 16px;
  }
}

/* Десктоп: принудительно показываем меню, скрываем бургер */
@media (min-width: 1024px) {
  nav, .main-nav {
    display: flex !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
  .header-actions {
    flex-wrap: nowrap;
  }
}

/* 7. NO horizontal scroll - ensure overflow-x: hidden */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Ensure all containers don't cause horizontal scroll (без разрушения ширины на десктопе) */
.container,
section,
header,
footer {
  overflow-x: hidden;
}

/* Responsive images in all contexts */
img,
picture,
video {
  max-width: 100%;
  height: auto;
}

/* Ensure tables are responsive */
table {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  display: block;
}

@media (min-width: 768px) {
  table {
    display: table;
  }
}

/* ⚠️ KATALIZATOR COMPREHENSIVE MOBILE OPTIMIZATION ⚠️ */
/* Comprehensive mobile-first optimization for maximum conversion */

/* ============================================
   MOBILE-FIRST: Base styles (mobile default)
   ============================================ */

/* Header mobile optimization */
@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 12px;
    justify-content: space-between;
  }
  
  .logo {
    height: auto;
    padding: 8px 0 8px 8px;
    flex-shrink: 0;
  }
  
  .logo img {
    height: 50px;
    max-width: 200px;
  }
  
  .mobile-menu-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
  }
  
  .header-right {
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .header-actions {
    flex-direction: row;
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }
  
  .header-actions .btn {
    padding: 12px 20px;
    font-size: 14px;
    min-width: auto;
    flex: 0 1 auto;
  }
  
  .header-contacts {
    font-size: 11px;
    align-items: center;
    width: 100%;
  }
  
  .header-contacts-links {
    gap: 4px;
    justify-content: center;
    width: 100%;
  }
  
  nav, .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    z-index: 99;
    padding: 80px 20px 20px;
    overflow-y: auto;
  }
  
  nav.active, .main-nav.active {
    display: flex;
  }
  
  nav a, .main-nav a {
    font-size: 20px;
    padding: 12px 0;
    width: 100%;
    text-align: center;
  }
}

/* Hero section mobile optimization */
@media (max-width: 1024px) {
  .hero {
    padding: 80px 16px 100px;
    min-height: auto;
  }
  
  .hero-content {
    gap: 12px; /* ✅ ИСПРАВЛЕНО: уменьшено с 20px до 12px */
  }
  
  .hero-h1-wrapper {
    min-height: auto; /* ✅ ИСПРАВЛЕНО: убран фиксированный min-height */
    padding: 0.1em 0; /* ✅ ИСПРАВЛЕНО: минимальный padding */
    margin-bottom: 0; /* ✅ ИСПРАВЛЕНО: убран margin-bottom */
  }
  
  .hero-text {
    gap: 0px; /* ✅ ИСПРАВЛЕНО: убран gap между H1 и подзаголовком */
  }
  
  .hero-subtitle {
    margin-top: -0.55em; /* ✅ ИСПРАВЛЕНО: расстояние увеличено на 30% от предыдущего значения для комфортного визуального восприятия */
  }
  
  .hero-title {
    font-size: clamp(24px, 5.5vw, 42px) !important;
    line-height: 1.3 !important;
    /* CLS FIX: резервируем место на 3 строки для мобилок */
    min-height: 3.9em !important; /* 3 строки при line-height 1.3 */
    overflow: hidden !important;
    contain: layout !important;
  }

  /* ✅ FIX: На некоторых генерациях первая строка H1 визуально "уезжает" влево из-за фиксированной ширины типрайтера.
     Делим H1 на 2 строки принудительно и центрируем каждую. */
  .hero-title .h1-static,
  .hero-title .h1-dynamic {
    display: block;
    text-align: center;
    width: 100%;
  }
  .hero-title .h1-space {
    display: none;
    width: 0 !important;
  }
  .hero-title .h1-dynamic {
    margin-left: auto;
    margin-right: auto;
    /* типрайтер может ставить width: Nch — убираем на мобилках, чтобы не ломать центрирование */
    width: auto !important;
    max-width: 100% !important;
  }
  
  .hero-subtitle p {
    font-size: clamp(14px, 3.5vw, 18px) !important;
    padding: 0 8px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 0 8px;
  }
  
  .hero-cta .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
  }
}

/* Sections mobile optimization */
@media (max-width: 1024px) {
  section {
    padding: 48px 16px;
  }
  
  .section-header {
    padding: 0 8px;
  }
  
  .section-header h2 {
    font-size: clamp(24px, 6vw, 36px) !important;
    line-height: 1.3;
    margin-bottom: 16px;
  }
  
  .section-subtitle {
    font-size: clamp(14px, 3.5vw, 18px) !important;
    padding: 0 8px;
  }
}

/* Grids mobile optimization - Force 1 column on mobile */
/* KATALIZATOR MOBILE: Override all grid layouts for mobile */
@media (max-width: 768px) {
  .values-grid,
  .pricing-grid,
  /* оставляем .examples-grid flex для бегущей строки */ 
  .mechanics-grid,
  .comparison-cards-grid,
  .seo-boost-grid,
  .footer-grid,
  .solution-top-cards,
  .solution-mid-cards {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  
  .values-grid.grid-2,
  .values-grid.grid-3,
  .values-grid.grid-4,
  .values-grid.grid-5,
  .values-grid.grid-6,
  .values-grid.grid-15,
  .pricing-grid.grid-2,
  .pricing-grid.grid-3 {
    grid-template-columns: 1fr !important;
  }
}

/* Cards mobile optimization */
@media (max-width: 768px) {
  .value-card,
  .pricing-card,
  .example-card,
  .mechanic-card {
    padding: 20px 16px;
    width: 100%;
  }
  
  .value-card h3,
  .pricing-card h3 {
    font-size: clamp(18px, 4.5vw, 24px) !important;
  }
  
  .value-card p,
  .pricing-card p {
    font-size: clamp(14px, 3.5vw, 18px) !important;
  }
}

/* Buttons mobile optimization */
@media (max-width: 768px) {
  .btn,
  button {
    min-height: 44px;
    padding: 14px 20px;
    font-size: 16px;
    width: 100%;
    max-width: 100%;
    justify-content: center;
  }
  
  .btn-large {
    padding: 16px 24px;
    font-size: 16px;
    min-width: auto;
  }
  
  .hero-cta .btn,
  .cta-buttons .btn,
  .header-actions .btn {
    width: 100%;
  }
  
  /* Allow buttons in header to be smaller on very small screens */
  @media (max-width: 480px) {
    .header-actions .btn {
      padding: 12px 16px;
      font-size: 14px;
      min-width: auto;
    }
  }
}

/* Tables mobile optimization */
@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .pricing-comparison-table,
  .seo-boost-comparison-table {
    font-size: 14px;
  }
  
  .pricing-comparison-table th,
  .pricing-comparison-table td,
  .seo-boost-comparison-table th,
  .seo-boost-comparison-table td {
    padding: 12px 8px;
    font-size: 14px;
  }
}

/* Footer mobile optimization */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  
  .footer-column {
    text-align: center;
  }
  
  .footer-links {
    text-align: center;
  }
}

/* Container mobile optimization */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
    width: 100%;
  }
  
  section .container {
    padding: 0 16px;
  }
}

/* Niche table mobile optimization */
@media (max-width: 768px) {
  .niche-table-wrapper {
    flex-direction: column;
  }
  
  .niche-table-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  
  .niche-image-preview {
    margin-top: 20px;
    overflow: hidden !important; /* Предотвращаем выход элементов за пределы контейнера */
    position: relative !important;
    z-index: 0 !important;
  }
  
  #niche-preview-text {
    display: none !important; /* Полностью скрываем на мобильной версии */
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
  }
  
  .niche-image-label {
    display: none !important; /* Полностью скрываем на мобильной версии */
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    z-index: -1 !important;
  }
}

/* SEO Boost section mobile optimization */
@media (max-width: 768px) {
  .seo-boost-section {
    padding: 40px 16px;
  }
  
  .seo-boost-header h2 {
    font-size: clamp(24px, 6vw, 36px) !important;
  }
  
  .seo-boost-header p {
    font-size: clamp(14px, 3.5vw, 20px) !important;
    padding: 0 8px;
  }
  
  .comparison-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .comparison-left,
  .comparison-right {
    padding: 20px 16px;
  }
  
  .comparison-results {
    grid-template-columns: 1fr !important;
    gap: 16px;
    padding: 20px 16px;
  }
  
  .seo-boost-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  
  .mechanics-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
}

/* Two paths section mobile optimization */
@media (max-width: 768px) {
  .two-paths .pricing-cards {
    grid-template-columns: 1fr !important;
  }
  
  .two-paths .pricing-card {
    padding: 24px 16px;
  }
}

/* Стили для блока "Два пути" - применяем стили тарифов */
.two-paths .pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.two-paths .pricing-card {
  border: 1px solid #EEEEEE;
  border-radius: 8px;
  padding: 32px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 200ms ease;
  position: relative;
}

.two-paths .pricing-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.two-paths .pricing-card-featured {
  border: 2px solid var(--primary-orange);
  background: #FFF5F0;
  transform: translateY(-20px);
  box-shadow: 0 12px 48px rgba(0,0,0,0.12);
}

.two-paths .pricing-card-featured:hover {
  transform: translateY(-20px) scale(1.02);
}

.two-paths .pricing-popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-orange);
  color: #FFFFFF;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.two-paths .pricing-card-header {
  margin-bottom: 24px;
}

.two-paths .pricing-name {
  font-weight: 800;
  font-size: 24px;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-transform: uppercase; /* ✅ ИСПРАВЛЕНО ПРОБЛЕМА #14: Заглавные буквы в заголовках карточек */
}

.two-paths .pricing-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-orange);
  line-height: 1.2;
  margin-bottom: 8px;
}

.two-paths .pricing-price span {
  font-size: 18px;
  color: #666666;
  font-weight: 400;
}

.two-paths .pricing-badge {
  font-size: 18px;
  font-weight: 500;
  color: var(--primary-orange);
  margin-top: 8px;
}

.two-paths .pricing-leads {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #EEEEEE;
}

.two-paths .pricing-leads-label {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.two-paths .pricing-leads-value {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.two-paths .pricing-lead-cost {
  font-size: 20px;
  color: var(--text-secondary);
}

.two-paths .pricing-features {
  flex-grow: 1;
  margin-bottom: 24px;
}

.two-paths .pricing-features-title {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.two-paths .pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.two-paths .pricing-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.two-paths .pricing-features-list li:last-child {
  margin-bottom: 0;
}

.two-paths .pricing-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.two-paths .pricing-cta-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--primary-orange);
  color: #FFFFFF;
  text-align: center;
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  margin-top: auto;
}

.two-paths .pricing-cta-btn:hover {
  background: #E55A2B;
}

.two-paths .feature-footnote {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

@media (max-width: 1199px) {
  .two-paths .pricing-cards {
    grid-template-columns: 1fr;
  }
  .two-paths .pricing-card-featured {
    transform: none;
  }
  .two-paths .pricing-card-featured:hover {
    transform: scale(1.02);
  }
}

@media (max-width: 767px) {
  .two-paths .pricing-card {
    padding: 24px;
  }
}

/* Pricing calculator mobile optimization */
@media (max-width: 768px) {
  .pricing-calculator {
    padding: 32px 16px;
  }
  
  .calculator-form {
    padding: 24px 16px;
  }
  
  .calculator-input-group {
    flex-direction: column;
    gap: 12px;
  }
  
  .calculator-input-group input,
  .calculator-input-group select {
    width: 100%;
  }
}

/* FAQ mobile optimization */
@media (max-width: 768px) {
  .faq-item {
    margin-bottom: 12px;
  }
  
  .faq-toggle {
    padding: 14px 16px;
    font-size: 14px;
  }
  
  .faq-answer {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Final CTA mobile optimization */
@media (max-width: 768px) {
  .final-cta {
    padding: 40px 16px;
  }
  
  .final-cta h2 {
    font-size: clamp(24px, 6vw, 36px) !important;
  }
  
  .final-cta-subtitle {
    font-size: clamp(20px, 4vw, 28px) !important;
  }
  
  .special-program-card {
    padding: 32px 20px;
  }
  
  .special-program-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .special-program-title h3 {
    font-size: 24px;
  }
  
  .special-program-discount {
    align-items: flex-start;
  }
  
  .discount-badge {
    font-size: 36px;
    padding: 10px 20px;
  }
  
  .special-benefits-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .special-benefit {
    padding: 20px;
  }
  
  .benefit-icon {
    width: 48px;
    height: 48px;
  }
  
  .benefit-content h4 {
    font-size: 18px;
  }
  
  .benefit-content p {
    font-size: 16px;
  }
  
  .special-program-pricing {
    flex-direction: column;
    gap: 20px;
  }
  
  .pricing-value {
    font-size: 28px;
  }
  
  .cta-note {
    font-size: 16px;
  }
}

/* ============================================
   TABLET: 768px - 1024px
   ============================================ */
@media (min-width: 768px) and (max-width: 1024px) {
  .values-grid.grid-2,
  .pricing-grid.grid-2,
  .examples-grid.grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .values-grid.grid-3,
  .pricing-grid.grid-3,
  .examples-grid.grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   SMALL MOBILE: up to 480px
   ============================================ */
@media (max-width: 480px) {
  .header-inner {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .logo img {
    height: 40px;
    max-width: 150px;
  }
  
  .hero {
    padding: 60px 12px 80px;
    min-height: auto;
  }
  
  .hero-title {
    font-size: clamp(20px, 5vw, 28px) !important;
  }
  
  .hero-subtitle p {
    font-size: clamp(13px, 3vw, 16px) !important;
  }
  
  .section-header h2 {
    font-size: clamp(20px, 5vw, 28px) !important;
  }
  
  .section-subtitle {
    font-size: clamp(13px, 3vw, 16px) !important;
  }
  
  .container {
    padding: 0 12px;
  }
  
  section {
    padding: 40px 12px;
  }
  
  .value-card,
  .pricing-card {
    padding: 16px 12px;
  }
  
  .btn {
    padding: 12px 16px;
    font-size: 15px;
  }
}

/* ============================================
   EXTRA SMALL MOBILE: up to 390px
   ============================================ */
@media (max-width: 390px) {
  .header-inner {
    padding: 8px 10px;
  }
  
  .logo img {
    height: 35px;
    max-width: 120px;
  }
  
  .hero {
    padding: 50px 10px 70px;
  }
  
  .hero-title {
    font-size: clamp(18px, 4.5vw, 24px) !important;
  }
  
  .container {
    padding: 0 10px;
  }
  
  section {
    padding: 32px 10px;
  }
}

/* ============================================
   FIXES FOR COMMON MOBILE ISSUES
   ============================================ */

/* Prevent text overflow */
h1, h2, h3, h4, h5, h6, p, span, a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Fix for long words */
* {
  word-break: break-word;
}

/* Ensure touch targets are large enough */
a, button, .btn {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ✅ ИСПРАВЛЕНО: Фиксированная высота для изображений в карточках */
.value-card img,
.pricing-card img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* ✅ ИСПРАВЛЕНО РЕШЕНИЕ #1: Фиксированная высота для изображений в example-card */
.example-card img {
  width: 100%;
  height: 240px !important; /* Фиксированная высота для всех изображений */
  max-width: 100%;
  object-fit: cover;
  object-position: center; /* Центрирование при обрезке */
  display: block;
  transition: transform 0.4s ease;
}

/* Fix for accordion items on mobile */
@media (max-width: 768px) {
  .accordion-item {
    padding: 16px 12px;
  }
  
  .accordion-toggle {
    font-size: 14px;
    padding: 12px;
  }
  
  .accordion-content {
    font-size: 14px;
    padding: 12px;
  }
}

/* Fix for forms on mobile */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  textarea,
  select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px;
  }
}

/* Fix for modals on mobile */
@media (max-width: 768px) {
  .modal-content {
    max-width: 95%;
    margin: 20px auto;
    padding: 20px 16px;
  }
}

/* Performance: Reduce animations on mobile */
@media (max-width: 768px) {
  * {
    animation-duration: 0.2s !important;
    transition-duration: 0.2s !important;
  }
}

/* Performance: Speed Index optimization - отложить рендер секций ниже первого экрана */
@supports (content-visibility: auto) {
  /* применяем только к секциям ниже hero */
  main > section:not(.hero) {
    content-visibility: auto;
    contain-intrinsic-size: 1000px;
  }
}

/* Body scroll lock для модалок (iOS/Android safe) */
html.katalizator-modal-open,
body.katalizator-modal-open {
  overflow: hidden !important;
  height: 100% !important;
}

/* Модалка orderModal: компактная на мобилке, чтобы влезала без прокрутки */
@media (max-width: 768px) {
  /* 1) Модалка: без лишних отступов по высоте */
  #orderModal .modal-content {
    padding: 0; /* внутри уже есть паддинги у header/body/footer */
    max-height: calc(100dvh - 16px);
    height: auto;
  }

  /* 2) КАРТИНКА в модалке на мобилке съедает высоту.
        Делать идеал "без прокрутки" проще всего, если:
        - на обычных мобилках картинку УМЕНЬШИТЬ
        - на очень низких экранах картинку СКРЫТЬ (см. media max-height ниже)
  */
  #orderModal .modal-image-side {
    height: 120px;     /* было 220px — уменьшаем */
    min-height: 120px;
  }

  /* 3) Уплотняем header/body/footer (самый безопасный способ без ломания верстки) */
  #orderModal .modal-header {
    padding: 12px 14px;
  }
  #orderModal .modal-title {
    font-size: 18px;
    line-height: 1.2;
    white-space: normal; /* чтобы не расширялось по высоте из-за переносов странно */
  }
  #orderModal .modal-body {
    padding: 12px 14px;
  }
  #orderModal .modal-footer {
    padding: 10px 14px;
    gap: 10px;
  }

  /* 4) Уплотняем форму: меньше отступы, меньше высота инпутов */
  #orderModal .form-group {
    margin-bottom: 10px;
  }
  #orderModal .form-group label {
    margin-bottom: 6px;
    font-size: 14px;
  }
  #orderModal .form-group input[type="text"],
  #orderModal .form-group input[type="tel"],
  #orderModal .form-group input[type="email"],
  #orderModal .form-group textarea {
    padding: 10px 12px;
    font-size: 16px; /* важно: iOS не любит <16px (зум) */
  }

  /* 5) Чекбоксы компактнее */
  #orderModal .form-checkbox-group {
    margin-bottom: 10px;
  }
  #orderModal .checkbox-label span {
    font-size: 13px;
    line-height: 1.25;
  }

  /* 6) Вариант "идеал": если экран по высоте маленький — скрываем картинку полностью,
        иначе без прокрутки почти невозможно.
  */
  @media (max-height: 700px) {
    #orderModal .modal-image-side {
      display: none;
    }
  }

  /* 7) FALLBACK: если всё равно не влезло — пусть скроллится ВНУТРИ модалки (а не фон) */
  #orderModal .modal-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* 8) Оранжевый скроллбар (где поддерживается) */
  #orderModal .modal-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,107,53,0.95) rgba(255,107,53,0.10);
  }
  #orderModal .modal-content::-webkit-scrollbar { width: 10px; }
  #orderModal .modal-content::-webkit-scrollbar-track {
    background: rgba(255,107,53,0.10);
    border-radius: 999px;
  }
  #orderModal .modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(255,107,53,0.65), rgba(255,107,53,1));
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.75);
    background-clip: padding-box;
  }
}

/* =========================================================
   FIX: Mobile "hole" under niche preview image
   DO NOT affect desktop: desktop keeps absolute overlay for smooth double-buffer fades.
   Mobile only:
   - container must not keep fixed height
   - active image must participate in layout (static positioning)
   - buffer image must not take layout space
   ========================================================= */
@media (max-width: 768px) {
  .niche-image-preview {
    height: auto !important;
    min-height: 0 !important;
  }

  .niche-image-preview img {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    width: 100% !important;
    height: auto !important;

    object-fit: contain !important;
    display: block !important;
  }

  /* JS double-buffer: second img is aria-hidden="true".
     On mobile we hide it so it doesn't increase height. */
  .niche-image-preview img[aria-hidden="true"] {
    display: none !important;
  }
}
