/* EGA CRM - overrides poверх system.css + inline component styles
   Поправки шрифтовой шкалы и stats-секции (зелёный фон).
*/

/* ─── Stats (numbers + labels) ──────────────────────────────────── */
.stats {
  background: var(--accent-2);
  border-top: 0 !important;
  border-bottom: 0 !important;
  padding: 80px 0;
}
.stats .stat-n {
  font-size: 52px !important;
  font-weight: 500 !important;
  color: #fff !important;
}
.stats .stat-l {
  font-size: 12px !important;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55) !important;
  margin-top: 20px !important;
}
.stats .stat-d {
  color: #fff !important;
  font-size: 14px !important;
  white-space: pre-line;
}
.stats .stat:not(:first-child) {
  border-left: 1px solid rgba(255,255,255,0.16) !important;
}
@media (max-width: 900px) {
  .stats .stat-n { font-size: 44px !important; }
}
@media (max-width: 720px) {
  .stats .stat-n { font-size: 40px !important; }
  .stats .stat:not(:first-child) {
    border-left: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.16) !important;
  }
}

/* ─── Clusters headline (revenue/costs slogan) ──────────────────── */
.clusters-headline {
  font-size: 56px !important;
  font-weight: 500 !important;
  letter-spacing: -0.035em !important;
  color: rgba(255,255,255,0.72) !important;
  text-shadow: 0 1px 10px rgba(15,15,18,0.32), 0 1px 2px rgba(15,15,18,0.20) !important;
}
@media (max-width: 1100px) {
  .clusters-headline { font-size: 44px !important; }
}
@media (max-width: 720px) {
  .clusters-headline { font-size: 30px !important; }
}

/* ─── Промежуточный тайпсет для подзаголовков (h2 → h3 разрыв) ──── */
.h-mid {
  font-size: 28px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.018em !important;
  font-weight: 500 !important;
  color: var(--ink-2) !important;
  max-width: 720px !important;
}

/* ─── Trust strip (под stats) - корректный отступ от тёмной секции ─ */
.trust { background: var(--bg); }

/* ─── Подъём clusters: видим часть скриншота на первом экране ────── */
.heroV2 { padding: 96px 0 40px !important; }
.clusters { padding: 28px 0 80px !important; }

/* (scroll-nav: возвращён оригинальный кремовый+blur, появляется только после первого экрана) */

/* ─── Footer (ctaftr) - тёмно-зелёный как треугольники hero ─── */
.ctaftr-top { background: var(--accent-2) !important; position: relative; overflow: visible; }
.ctaftr-bot { background: #073B36 !important; }

/* ─── Временно: прячем только колонки-ссылки футера, EGA-лого оставляем ─── */
.ctaftr-bot .ftr-col { display: none !important; }
.ctaftr-bot .ftr-grid { grid-template-columns: 1fr !important; }

/* ─── Footer CTA headline в стиле других секций: кикер + mint-акцент ─── */
.ctaftr-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
}
.ctaftr-top-inner h2 {
  font-size: 48px !important;
  letter-spacing: -0.03em !important;
  font-weight: 600 !important;
  line-height: 1.08 !important;
  max-width: 860px !important;
}
.ctaftr-h2-accent { color: #6FE0C5; }
@media (max-width: 720px) {
  .ctaftr-top-inner h2 { font-size: 32px !important; }
}

/* ─── Bookend-треугольник: тёмный wedge в BR cases, гипотенуза параллельна
   полоскам Industries (~76° от горизонтали → ratio width:height = 1:4).
   Не касается футера: bottom: 100px gap. ─── */
.cases { position: relative; overflow: hidden; }
.cases::before {
  content: '';
  position: absolute;
  bottom: 100px;
  right: 0;
  width: 140px;
  height: 540px;
  background: var(--accent-2);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
  z-index: 0;
}
.cases > * { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .cases::before { width: 80px; height: 320px; bottom: 60px; }
}

/* ─── Industries: фоновые полоски под углом hero-триангла (~104°) ─── */
.industries {
  position: relative;
  background:
    repeating-linear-gradient(
      104deg,
      transparent 0,
      transparent 78px,
      rgba(11,95,86,0.05) 78px,
      rgba(11,95,86,0.05) 79px
    );
}
.industries > .container { position: relative; z-index: 2; }
.ind-card {
  transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .25s ease, border-color .25s ease !important;
}
.ind-grid > .ind-card:hover {
  transform: translateY(-4px) !important;
  z-index: 5;
}

/* ─── Overscroll: чтобы при скролле выше hero не было белой полосы ─ */
html { background: var(--accent-2); }
body { background: var(--bg); }


/* ─── Срез dashboard: контейнер под точные пропорции картинки ─────── */
.clusters-bg {
  aspect-ratio: 3022 / 1630 !important;
}
.clusters-bg-img {
  object-fit: contain !important;
  background: var(--bg-sunken);
}

/* ─── Trigger для попапа demo: курсор на скриншоте ─────────────── */
.clusters-bg { cursor: pointer !important; }

/* ─── Demo modal (vanilla, по аналогии с Pricing offer) ─────────── */
.dm-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8,12,10,0.78);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 24px;
  animation: dmOver .2s ease;
}
@keyframes dmOver { from { opacity: 0 } to { opacity: 1 } }
.dm-modal {
  position: relative; width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto;
  background: linear-gradient(150deg, #0E7F73 0%, #0A5F57 100%);
  color: #fff; border-radius: 20px; padding: 36px 44px;
  animation: dmPop .25s ease;
  font-family: var(--font-sans);
}
.dm-trust { margin-bottom: 18px !important; }
.dm-title { margin-bottom: 18px !important; }
@keyframes dmPop { from { transform: translateY(20px) scale(0.98); opacity: 0 } to { transform: translateY(0) scale(1); opacity: 1 } }
.dm-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.16); color: #fff;
  border: 0; font-size: 22px; line-height: 1; cursor: pointer;
  transition: background .15s ease;
}
.dm-close:hover { background: rgba(255,255,255,0.28); }
.dm-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); font-weight: 500;
}
.dm-title {
  font-size: 30px; line-height: 1.15; font-weight: 600;
  letter-spacing: -0.02em; color: #fff; margin: 12px 0 14px;
}
.dm-lede {
  font-size: 14.5px; color: rgba(255,255,255,0.78);
  line-height: 1.55; margin: 0 0 22px; max-width: 48ch;
}
.dm-trust { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.85); }
.dm-trust li { display: flex; gap: 10px; align-items: center; }
.dm-tick { color: #6FE0C5; font-weight: 600; }
.dm-form { display: flex; flex-direction: column; gap: 12px; }
.dm-field { display: flex; flex-direction: column; gap: 6px; }
.dm-field label { font-size: 12px; color: rgba(255,255,255,0.78); font-weight: 500; }
.dm-field input, .dm-field textarea, .dm-field select {
  padding: 11px 14px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-md);
  color: #fff; font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .15s ease, background .15s ease;
  appearance: none; -webkit-appearance: none;
}
.dm-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 8 8' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'><path d='M1 2.5L4 5.5L7 2.5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.dm-field select option { background: #0A5F57; color: #fff; }
.dm-field input::placeholder, .dm-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.dm-field input:focus, .dm-field textarea:focus { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.12); }
.dm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dm-consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 4px; }
.dm-consent input { margin-top: 3px; }
.dm-submit {
  margin-top: 6px; padding: 13px 18px;
  background: #fff; color: var(--accent-2);
  border: 0; border-radius: var(--r-md);
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  transition: transform .15s ease, background .2s ease;
}
.dm-submit:hover { transform: translateY(-1px); background: #f4f3ef; }
.dm-done { text-align: center; padding: 24px 8px; }
.dm-done-mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(111, 224, 197, 0.2); color: #6FE0C5;
  margin: 0 auto 20px; display: grid; place-items: center;
}
@media (max-width: 720px) {
  .dm-modal { padding: 32px 24px; }
  .dm-title { font-size: 24px; }
  .dm-row { grid-template-columns: 1fr; }
}
