/* THData Home — styles */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap");

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  background: #FFFFFF;
  color: #384142;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body { overflow-x: hidden; }

:root {
  --th-green:        #44990C;
  --th-green-hover:  #82BB5D;
  --th-green-light:  #C0DDAE;
  --th-green-pale:   #F5F9F2;
  --th-charcoal:     #384142;
  --th-muted:        #6B7280;
}

/* Container */
.container-th {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .container-th { padding: 0 32px; } }

/* Section helpers */
.section       { padding: 96px 0; }
@media (max-width: 768px) { .section { padding: 64px 0; } }
.section-pale  { background: var(--th-green-pale); }
.section-white { background: #FFFFFF; }
.section-dark  { background: var(--th-charcoal); color: white; }
.section-green { background: var(--th-green); color: white; }

/* Type */
h1.th-hero {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.1; letter-spacing: 0;
  margin: 0; color: var(--th-charcoal);
}
h2.th-section {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600; line-height: 1.15; letter-spacing: 0;
  margin: 0; color: var(--th-charcoal);
}
h3.th-card { font-size: 20px; font-weight: 600; line-height: 1.3; margin: 0; color: var(--th-charcoal); }
.p-lead  { font-size: 18px; color: var(--th-muted); line-height: 1.6; margin: 0; }
.p-body  { font-size: 15px; color: var(--th-charcoal); line-height: 1.6; margin: 0; }
.p-muted { font-size: 14px; color: var(--th-muted); line-height: 1.6; margin: 0; }

.text-gradient {
  background: linear-gradient(90deg, #44990C 0%, #82BB5D 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; border-radius: 8px;
  transition: all 200ms ease;
  cursor: pointer; border: 0; font-family: inherit; text-align: center;
  white-space: nowrap;
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-md { padding: 12px 22px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-primary { background: var(--th-green); color: white; box-shadow: 0 1px 2px rgba(56,65,66,0.05); }
.btn-primary:hover { background: var(--th-green-hover); }
.btn-outline { background: transparent; color: var(--th-charcoal); border: 1.5px solid var(--th-charcoal); }
.btn-outline:hover { background: var(--th-charcoal); color: white; }
.btn-outline-green { background: transparent; color: var(--th-green); border: 1.5px solid var(--th-green); }
.btn-outline-green:hover { background: var(--th-green); color: white; }
.btn-white { background: white; color: var(--th-green); }
.btn-white:hover { background: var(--th-green-pale); }
.btn-ghost-white { background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.12); border-color: white; }

/* Inputs */
.input-th {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--th-green-light);
  background: white;
  font-family: inherit; font-size: 14px; color: var(--th-charcoal);
  transition: border-color 200ms, box-shadow 200ms;
  outline: none;
}
.input-th:focus {
  border-color: var(--th-green);
  box-shadow: 0 0 0 3px rgba(68,153,12,0.2);
}
.input-th::placeholder { color: #9CA3AF; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 9999px;
  background: rgba(68,153,12,0.10); color: var(--th-green);
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--th-green); }

/* Cards */
.card-th {
  background: white;
  border: 1px solid var(--th-green-light);
  border-radius: 8px;
  padding: 28px;
  transition: box-shadow 300ms ease, transform 200ms ease, border-color 200ms ease;
}
.card-th.hoverable:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -6px rgba(56,65,66,0.12);
  border-color: var(--th-green);
}

/* Icon chip */
.icon-chip {
  width: 56px; height: 56px; border-radius: 8px;
  background: rgba(68,153,12,0.10); color: var(--th-green);
  display: flex; align-items: center; justify-content: center;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(192,221,174,0.6);
}

/* Якорные переходы (#final-cta, #pricing, #faq и т.п.):
   фиксированный header высотой 72px накрывал бы верх секции.
   scroll-margin-top компенсирует — теперь верх секции встаёт под header
   с небольшим отступом, заголовок виден сразу. */
section[id] {
  scroll-margin-top: 88px;
}
.site-header .container-th { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a {
  padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--th-charcoal);
  border-radius: 8px; cursor: pointer; transition: all 150ms;
}
.site-header nav a:hover { background: rgba(192,221,174,0.3); color: var(--th-green); }
@media (max-width: 960px) {
  .site-header nav { display: none; }
}

/* Wordmark */
.wordmark { display: inline-flex; align-items: baseline; gap: 4px; letter-spacing: -0.01em; }
.wordmark .th { font-weight: 800; color: var(--th-green); }
.wordmark .suffix { font-weight: 300; color: var(--th-charcoal); }
.wordmark.dark .suffix { color: white; }

/* Tabs */
.tabs-list {
  display: flex; flex-direction: column; gap: 6px;
  margin: 0; padding: 0; list-style: none;
}
.tab-btn {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 200ms;
  text-align: left;
  font-family: inherit;
  width: 100%;
  color: var(--th-charcoal);
}
.tab-btn:hover { background: rgba(192,221,174,0.25); }
.tab-btn.active {
  background: white;
  border-color: var(--th-green-light);
  box-shadow: 0 4px 12px -4px rgba(56,65,66,0.08);
}
.tab-btn .tab-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  background: rgba(68,153,12,0.10); color: var(--th-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  transition: all 200ms;
}
.tab-btn.active .tab-num { background: var(--th-green); color: white; }
.tab-btn .tab-title { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.tab-btn .tab-desc { font-size: 13px; color: var(--th-muted); line-height: 1.45; }

/* Horizontal tabs (modules, cases) */
.tabs-h {
  display: inline-flex; gap: 4px; padding: 6px;
  background: white;
  border: 1px solid var(--th-green-light);
  border-radius: 8px;
  flex-wrap: wrap;
}
.tabs-h button {
  padding: 9px 16px; font-size: 13px; font-weight: 600;
  border-radius: 8px; border: 0; background: transparent; color: var(--th-charcoal);
  cursor: pointer; font-family: inherit; transition: all 200ms;
}
.tabs-h button:hover { background: var(--th-green-pale); }
.tabs-h button.active { background: var(--th-green); color: white; }

/* Mockup frame (laptop-ish) */
.mockup-frame {
  background: white;
  border: 1px solid var(--th-green-light);
  border-radius: 8px;
  box-shadow: 0 30px 60px -20px rgba(56,65,66,0.18), 0 10px 20px -8px rgba(56,65,66,0.08);
  overflow: hidden;
  position: relative;
}
.mockup-bar {
  height: 32px; background: var(--th-green-pale);
  border-bottom: 1px solid var(--th-green-light);
  display: flex; align-items: center; gap: 6px; padding: 0 12px;
}
.mockup-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #D1D5DB; }
.mockup-bar .dot:nth-child(1) { background: #F3C3C3; }
.mockup-bar .dot:nth-child(2) { background: #F4DFB0; }
.mockup-bar .dot:nth-child(3) { background: var(--th-green-light); }
.mockup-bar .url {
  flex: 1; height: 20px; border-radius: 6px; background: white;
  border: 1px solid var(--th-green-light);
  font-size: 11px; color: var(--th-muted); display: flex; align-items: center;
  padding: 0 10px; margin-left: 8px; letter-spacing: 0.02em;
}

/* Fade transitions for mockup swap */
.mockup-body { animation: fadeIn 300ms ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Checkbox/chip */
.check-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--th-green-light);
  background: white;
  font-size: 13px; font-weight: 500; color: var(--th-charcoal);
  cursor: pointer; transition: all 150ms;
  user-select: none;
}
.check-chip:hover { border-color: var(--th-green); }
.check-chip.checked { background: rgba(68,153,12,0.08); border-color: var(--th-green); color: var(--th-green); }
.check-chip .box {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--th-green-light);
  display: flex; align-items: center; justify-content: center;
  background: white;
}
.check-chip.checked .box { background: var(--th-green); border-color: var(--th-green); color: white; }

/* Slider */
input[type="range"].th-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--th-green-light);
  outline: none;
}
input[type="range"].th-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--th-green); border: 3px solid white;
  box-shadow: 0 2px 8px rgba(68,153,12,0.35);
  cursor: pointer;
}
input[type="range"].th-slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--th-green); border: 3px solid white;
  box-shadow: 0 2px 8px rgba(68,153,12,0.35);
  cursor: pointer;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--th-green-light);
  padding: 22px 0;
}
.faq-q {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  cursor: pointer; font-weight: 600; font-size: 17px; color: var(--th-charcoal);
  background: transparent; border: 0; padding: 0;
  width: 100%; text-align: left; font-family: inherit;
}
.faq-icon {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--th-green);
  display: flex; align-items: center; justify-content: center;
  color: var(--th-green);
  transition: transform 300ms ease, background 200ms;
}
.faq-item.open .faq-icon { background: var(--th-green); color: white; transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 300ms ease, margin-top 200ms;
  color: var(--th-muted); line-height: 1.6; font-size: 15px;
}
.faq-item.open .faq-a { max-height: 500px; margin-top: 14px; }

/* Fade-up on scroll — only when JS enables it */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }

/* Hero decorations */
@keyframes th-pulse   { 0%,100% { transform: scale(1); opacity: 0.10; } 50% { transform: scale(1.15); opacity: 0.15; } }
@keyframes th-pulse-2 { 0%,100% { transform: scale(1.2); opacity: 0.05; } 50% { transform: scale(1); opacity: 0.10; } }
@keyframes th-float   { 0%,100% { transform: translateY(0); opacity: 0.18; } 50% { transform: translateY(-14px); opacity: 0.28; } }

/* Scroll */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--th-green-pale); }
::-webkit-scrollbar-thumb { background: var(--th-green-light); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--th-green); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Small utility */
.eq-grid {
  display: grid;
  gap: 24px;
  /* На мобиле колонка single = minmax(0, 1fr). Без minmax(0,...) колонка
     auto-расширяется по min-content потомка (например .visual-card с
     aspect-ratio 4/3 + min-height 310 даёт min-width 413 → горизонтальный
     скролл при viewport 390-414). minmax(0,1fr) ограничивает ширину
     контейнером и заставляет потомков подстраиваться. */
  grid-template-columns: minmax(0, 1fr);
}
.eq-grid > * { min-width: 0; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
}

/* Глобальный страховочный пояс от горизонтального скролла на мобиле:
   absolute-позиционированные декорации не должны выпирать за viewport. */
html { overflow-x: hidden; }

/* ===== Мобильная версия — облегчение =====
   На узких экранах (≤ 768) скрываем тяжёлые декоративные мокапы,
   которые на десктопе сидят справа/слева от текстового контента.
   Они визуально не работают на мобиле (нечитаемо, занимают экран,
   тормозят рендер) и дублируют информацию из соседнего текста.

   Кейсы — оставляем только первые 3 из 6: Производство, Ритейл,
   Услуги. Остальные индустрии видны на десктопе. */
@media (max-width: 768px) {
  .mobile-hide { display: none !important; }
  /* nth-child(n+4) — каждый ребёнок начиная с 4-го.
     !important нужен потому что у case-card в JSX есть inline
     style 'display: flex' (для column-layout), а inline побеждает
     CSS-правило по specificity. */
  .case-grid > .case-card:nth-child(n+4) { display: none !important; }
}

/* Hero section */
.hero-section {
  padding-top: 128px;
  padding-bottom: 88px;
}
.hero-section::before {
  content: "";
  position: absolute;
  inset: 72px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(68,153,12,0.22), transparent);
}
@media (max-width: 768px) {
  .hero-section {
    padding-top: 100px;
    padding-bottom: 64px;
  }
}

/* Hero — wider container for a stronger product preview */
.hero-container {
  max-width: 1440px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    gap: 56px;
  }
}
.hero-left { min-width: 0; }
.hero-right { min-width: 0; }
/* На очень широких экранах позволяем картинке выйти за границы контейнера */
@media (min-width: 1440px) {
  .hero-right {
    margin-right: -32px;
  }
}
/* Hero title stays compact in the two-column layout */
.hero-left .th-hero {
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.12;
}
@media (max-width: 1023px) {
  .hero-left .th-hero {
    font-size: clamp(28px, 5.5vw, 40px);
  }
}

/* Hero — плавающие metric-бейджи поверх скриншота */
.hero-metric {
  position: absolute;
  z-index: 2;
  background: white;
  border: 1px solid var(--th-green-light);
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 14px 32px -10px rgba(56, 65, 66, 0.18), 0 4px 10px -4px rgba(56, 65, 66, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  max-width: 220px;
}
.hero-metric > span {
  font-size: 26px;
  font-weight: 800;
  color: var(--th-green);
  line-height: 1;
  letter-spacing: 0;
}
.hero-metric > small {
  font-size: 11px;
  color: var(--th-muted);
  line-height: 1.4;
  font-weight: 500;
}
.hero-metric-a { bottom: 18px; left: -26px; }
.hero-metric-b { top: -24px; right: 18px; }
@media (max-width: 1023px) {
  .hero-metric { display: none; }
}

/* Numbers strip */
.num-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
}
@media (min-width: 768px) { .num-strip { grid-template-columns: repeat(4, 1fr); } }
.num-strip .big {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700; color: var(--th-green-hover);
  line-height: 1; letter-spacing: 0;
  white-space: nowrap;
}

/* Case card hover arrow */
.case-card .case-arrow { transition: transform 200ms ease; }
.case-card:hover .case-arrow { transform: translateX(4px); }

/* Pricing */
.plan {
  background: white; border-radius: 8px; padding: 32px;
  border: 1px solid var(--th-green-light);
  display: flex; flex-direction: column; transition: transform 200ms, box-shadow 200ms;
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -12px rgba(56,65,66,0.12); }
.plan.featured {
  border: 2px solid var(--th-green);
  box-shadow: 0 20px 40px -12px rgba(68,153,12,0.18);
  position: relative;
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--th-green); color: white;
  padding: 6px 14px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

/* Testimonial */
.dots-nav { display: flex; gap: 10px; }
.dots-nav button {
  width: 32px; height: 6px; border-radius: 3px;
  background: var(--th-green-light); border: 0; cursor: pointer;
  transition: all 200ms;
}
.dots-nav button.active { background: var(--th-green); width: 48px; }

/* Product visuals */
.visual-card {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #F5F9F2;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  overflow: hidden;
}
.chaos-visual { min-height: 310px; }
.chaos-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.38;
}
.chaos-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 152px;
  transform: translate(-50%, -50%);
  padding: 14px;
  background: white;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 16px 26px -22px rgba(56,65,66,0.35);
}
.chaos-center strong,
.chaos-center small { display: block; }
.chaos-center strong { margin-top: 6px; font-size: 12px; color: var(--th-charcoal); }
.chaos-center small { margin-top: 4px; font-size: 10px; color: var(--th-muted); line-height: 1.35; }
.chaos-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  background: white;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  color: var(--th-charcoal);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(56,65,66,0.06);
}
.cost-tag {
  position: absolute;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 10px;
}
.cost-tag b,
.cost-tag span { display: block; }
.cost-tag-a {
  top: 42%;
  right: 6%;
  background: white;
  border: 1px dashed #EF4444;
  color: #EF4444;
}
.cost-tag-b {
  bottom: 7%;
  left: 8%;
  background: var(--th-charcoal);
  color: white;
}
.cost-tag span { margin-top: 3px; opacity: 0.72; }

.portal-panel {
  background: #FAFBF9;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  box-shadow: 0 24px 48px -30px rgba(56,65,66,0.26);
  overflow: hidden;
}
.portal-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: white;
  border-bottom: 1px solid #C0DDAE;
}
.portal-panel-head strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: var(--th-charcoal);
}
.portal-panel-head > span {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(68,153,12,0.1);
  color: var(--th-green);
  font-size: 12px;
  font-weight: 800;
}
.panel-kicker {
  color: var(--th-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.module-visual {
  min-height: 430px;
}
.module-visual-grid {
  display: grid;
  grid-template-columns: 158px 1fr;
  gap: 18px;
  padding: 20px;
}
.module-visual-tabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.module-visual-tabs div {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 11px 10px;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  background: white;
  color: var(--th-charcoal);
  font-size: 11px;
  font-weight: 700;
}
.module-visual-tabs div.active {
  border-color: var(--th-green);
  background: var(--th-green);
  color: white;
}
.module-visual-tabs b {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(68,153,12,0.1);
  color: var(--th-green);
  font-size: 10px;
}
.module-visual-tabs .active b {
  background: rgba(255,255,255,0.2);
  color: white;
}
.module-visual-content {
  min-width: 0;
}
.module-content-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--th-muted);
  font-size: 11px;
}
.module-content-head b {
  color: var(--th-green);
  font-size: 12px;
}
.module-mini-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.module-mini-cards div {
  min-height: 104px;
  padding: 13px;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  background: white;
  color: var(--th-green);
}
.module-mini-cards div.featured {
  background: #F5F9F2;
  border-color: var(--th-green);
}
.module-mini-cards strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--th-charcoal);
  font-size: 12px;
}
.module-mini-cards span {
  display: block;
  color: var(--th-muted);
  font-size: 10px;
  line-height: 1.35;
}
.module-tabs-wrap {
  margin-bottom: 22px;
  padding: 12px;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  background: #F5F9F2;
}
.module-tabs-label {
  margin-bottom: 8px;
  color: var(--th-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.savings-visual {
  padding-bottom: 18px;
}
.savings-summary {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  align-items: center;
  gap: 14px;
  padding: 18px 20px 14px;
}
.savings-summary div {
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  background: white;
  padding: 14px;
}
.savings-summary small {
  display: block;
  margin-bottom: 5px;
  color: var(--th-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}
.savings-summary strong {
  display: block;
  color: var(--th-charcoal);
  font-size: 18px;
}
.savings-summary div:last-child strong {
  color: var(--th-green);
}
.savings-chart {
  margin: 0 20px 14px;
  padding: 14px;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  background: white;
}
.savings-row {
  display: grid;
  grid-template-columns: 132px 1fr 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 10px;
  color: var(--th-charcoal);
}
.savings-row:last-child { margin-bottom: 0; }
.savings-row .bar {
  height: 9px;
  border-radius: 999px;
  background: #EEF3EA;
  overflow: hidden;
}
.savings-row .bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.savings-row .before i { background: #C0DDAE; }
.savings-row .after i { background: linear-gradient(90deg, #44990C, #82BB5D); }
.savings-breakdown {
  margin: 0 20px;
  padding: 14px;
  border-radius: 8px;
  background: #384142;
  color: white;
}
.savings-breakdown-title {
  margin-bottom: 10px;
  color: #C0DDAE;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.savings-breakdown div div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid rgba(192,221,174,0.18);
  font-size: 11px;
}
.savings-breakdown b {
  color: #82BB5D;
}

.solution-visual {
  position: relative;
  min-height: 420px;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(245,249,242,0.96)),
    radial-gradient(circle at 20% 20%, rgba(68,153,12,0.16), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(37,99,235,0.12), transparent 36%);
  box-shadow: 0 24px 48px -30px rgba(56,65,66,0.26);
}
.solution-orbit {
  position: absolute;
  inset: 0;
}
.solution-lines {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  fill: none;
  stroke: rgba(56,65,66,0.22);
  stroke-width: 1.2;
  stroke-dasharray: 5 7;
}
.solution-stage {
  position: absolute;
  z-index: 2;
  width: 150px;
  padding: 12px;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  color: var(--th-charcoal);
  box-shadow: 0 12px 28px -22px rgba(56,65,66,0.3);
}
.solution-stage span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: rgba(68,153,12,0.1);
  color: var(--th-green);
}
.solution-stage strong {
  display: block;
  font-size: 12px;
}
.solution-stage.active {
  border-color: var(--th-green);
  transform: translateY(-4px);
}
.solution-stage.active span {
  background: var(--th-green);
  color: white;
}
.solution-stage-0 { left: 26px; top: 34px; }
.solution-stage-1 { right: 34px; top: 56px; }
.solution-stage-2 { left: 50%; bottom: 30px; transform: translateX(-50%); }
.solution-stage-2.active { transform: translateX(-50%) translateY(-4px); }
.solution-dashboard {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(72%, 430px);
  transform: translate(-50%, -50%);
  display: grid;
  grid-template-columns: 68px 1fr;
  min-height: 214px;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 20px 42px -24px rgba(56,65,66,0.3);
}
.solution-sidebar {
  background: var(--th-charcoal);
  padding: 14px 12px;
}
.solution-sidebar b {
  display: block;
  color: var(--th-green);
  margin-bottom: 18px;
}
.solution-sidebar span {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(192,221,174,0.34);
  margin-bottom: 10px;
}
.solution-sidebar span:first-of-type {
  background: var(--th-green);
}
.solution-main {
  padding: 16px;
}
.solution-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.solution-head small,
.solution-card span {
  display: block;
  color: var(--th-muted);
  font-size: 10px;
}
.solution-head strong {
  display: block;
  color: var(--th-charcoal);
  font-size: 16px;
  margin-top: 3px;
}
.solution-head > span {
  color: var(--th-green);
  font-size: 20px;
  font-weight: 800;
}
.solution-flow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.solution-flow div {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border: 1px solid #E7F1DE;
  border-radius: 8px;
  color: #94A3B8;
  font-size: 11px;
}
.solution-flow .done {
  border-color: #C0DDAE;
  color: var(--th-green);
  background: #F5F9F2;
}
.solution-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #F5F9F2;
  border: 1px solid #C0DDAE;
}
.solution-card strong {
  display: block;
  color: var(--th-charcoal);
  font-size: 14px;
  margin-bottom: 2px;
}

.case-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F9F2 100%);
}
.case-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  font-size: 11px;
  color: var(--th-charcoal);
}
.case-preview-top span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}
.case-preview-top b {
  color: var(--th-green);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.case-preview-body {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 0 12px 12px;
}
.mini-sidebar {
  min-height: 98px;
  border-radius: 8px;
  background: var(--th-charcoal);
  padding: 12px 10px;
}
.mini-sidebar span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: rgba(192,221,174,0.4);
  margin-bottom: 9px;
}
.mini-sidebar span:first-child { background: var(--th-green); }
.case-preview .mini-sidebar span:first-child { background: var(--case-accent); }
.mini-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-row {
  padding: 9px 10px;
  border-radius: 8px;
  background: white;
  border: 1px solid rgba(192,221,174,0.8);
}
.mini-row span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--th-charcoal);
}
.mini-row i {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--case-accent), #82BB5D);
}

.testimonial-visual {
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F9F2 100%);
  padding: 18px;
  min-height: 360px;
  box-shadow: 0 20px 40px -28px rgba(56,65,66,0.22);
}
.testimonial-header,
.testimonial-score {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.testimonial-header span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--th-charcoal);
  font-size: 13px;
  font-weight: 700;
}
.testimonial-header b {
  color: var(--th-green);
  font-size: 24px;
}
.testimonial-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 34px 0;
}
.chat-line {
  max-width: 82%;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}
.chat-line.left {
  background: white;
  border: 1px solid #C0DDAE;
  color: var(--th-charcoal);
}
.chat-line.right {
  align-self: flex-end;
  background: var(--th-charcoal);
  color: white;
}
.testimonial-score {
  gap: 14px;
  color: var(--th-muted);
  font-size: 12px;
}
.testimonial-score i {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #E7F1DE;
  overflow: hidden;
}
.testimonial-score b {
  display: block;
  width: 76%;
  height: 100%;
  background: linear-gradient(90deg, #44990C, #82BB5D);
}

.audit-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  max-width: 980px;
  margin: 0 auto 20px;
  align-items: stretch;
}
.audit-input {
  min-width: 0;
  padding: 16px 18px;
  font-size: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: white;
  font-family: inherit;
  outline: none;
}
.audit-input::placeholder {
  color: rgba(255,255,255,0.72);
}
.audit-input:focus {
  border-color: white;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}
.audit-form .btn {
  min-height: 54px;
}
.audit-form .btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.audit-input.is-invalid {
  border-color: #FECACA;
  background: rgba(254, 202, 202, 0.18);
}
/* Honeypot: невидимое поле-ловушка для ботов.
   Реальные люди сюда не попадут (off-screen + не в табе),
   а боты, заполняющие все поля подряд, выдают себя. */
.honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.cookie-notice {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  width: min(340px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid #C0DDAE;
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 20px 44px -22px rgba(56,65,66,0.32);
  backdrop-filter: blur(10px);
}
.cookie-title {
  margin-bottom: 6px;
  color: var(--th-charcoal);
  font-size: 14px;
  font-weight: 800;
}
.cookie-notice p {
  margin: 0 0 14px;
  color: var(--th-muted);
  font-size: 12px;
  line-height: 1.45;
}
.cookie-actions {
  display: flex;
  gap: 8px;
}
.cookie-actions button {
  flex: 1;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #C0DDAE;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
}
.cookie-allow {
  background: var(--th-green);
  border-color: var(--th-green) !important;
  color: white;
}
.cookie-decline {
  background: white;
  color: var(--th-charcoal);
}

/* Divider */
.hr-soft { border: 0; border-top: 1px solid var(--th-green-light); margin: 0; }

/* Sprite logos (client logos band) */
.logo-cloud {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 48px;
  align-items: center; justify-items: center;
}
@media (min-width: 640px) { .logo-cloud { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-cloud { grid-template-columns: repeat(6, 1fr); } }
.logo-cloud .logo-item {
  opacity: 0.65; transition: opacity 200ms;
  display: flex; align-items: center; justify-content: center;
  height: 40px;
}
.logo-cloud .logo-item:hover { opacity: 1; }

@media (max-width: 520px) {
  .container-th { padding: 0 18px; }
  .btn-lg { width: 100%; white-space: normal; min-height: 52px; }
  .tabs-h { width: 100%; }
  .tabs-h button { flex: 1 1 auto; }
  .case-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .case-preview-body {
    grid-template-columns: 44px 1fr;
    gap: 8px;
  }
  .module-visual-grid,
  .savings-summary,
  .savings-row {
    grid-template-columns: 1fr;
  }
  .module-mini-cards {
    grid-template-columns: 1fr;
  }
  .savings-summary > span {
    justify-self: center;
    transform: rotate(90deg);
  }
  .audit-form {
    grid-template-columns: 1fr;
  }
  .solution-visual { min-height: 500px; }
  .solution-dashboard {
    width: calc(100% - 28px);
    top: 53%;
    grid-template-columns: 54px 1fr;
  }
  .solution-stage {
    width: 132px;
    padding: 10px;
  }
  .solution-stage-0 { left: 14px; top: 18px; }
  .solution-stage-1 { right: 14px; top: 18px; }
  .solution-stage-2 { bottom: 16px; }
  .chaos-node { font-size: 11px; padding: 7px 9px; }
  .chaos-center { width: 138px; }
}

/* Keyboard focus visibility */
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--th-green); outline-offset: 2px;
}
