/* ═══════════════════════════════════════════════════════════════
   ДИЗАЙН-СИСТЕМА 2026 — строительствоплощадок.online
   Тренды: Bold typography · Bento grid · Dark hero · Micro-motion
   ═══════════════════════════════════════════════════════════════ */

/* ─── 1. ПЕРЕМЕННЫЕ ────────────────────────────────────────────── */
:root {
  --color-brand:          #E8501A;
  --color-brand-hover:    #C94012;
  --color-on-brand:       #ffffff;
  --color-accent:         #2D7A42;
  --color-accent-hover:   #236334;

  --color-bg:             #FAFAF8;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F4F0EB;
  --color-surface-3:      #EDE6DC;

  --color-text:           #1A1209;
  --color-muted:          #5C4A38;
  --color-border:         #E2D8CC;

  --color-overlay-dark:   #0F0A05;
  --color-on-dark:        #FFFFFF;

  --gradient-brand:       linear-gradient(135deg, #FF6B35 0%, #E8501A 100%);
  --gradient-hero:        linear-gradient(160deg, #1A1209 0%, #0F0A05 100%);
  --gradient-surface:     linear-gradient(180deg, #FAFAF8 0%, #F4F0EB 100%);
  --gradient-brand-soft:  linear-gradient(135deg, rgba(232,80,26,.12) 0%, rgba(232,80,26,.03) 100%);

  --shadow-sm:   0 2px 8px rgba(26,18,9,.08);
  --shadow-md:   0 8px 24px rgba(26,18,9,.10);
  --shadow-lg:   0 20px 50px rgba(26,18,9,.14);
  --shadow-xl:   0 36px 80px rgba(26,18,9,.18);
  --shadow-brand: 0 12px 32px rgba(232,80,26,.28);
  --shadow-brand-strong: 0 20px 48px rgba(232,80,26,.40);

  --radius-sm:  10px;
  --radius-md:  18px;
  --radius-lg:  28px;
  --radius-xl:  40px;
  --radius-full: 999px;

  --font-sans:  "Nunito", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
}

/* ─── 2. БАЗОВАЯ ТИПОГРАФИКА ───────────────────────────────────── */
body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  line-height: 1.18;
}

/* ─── 3. ГЛОБАЛЬНЫЕ КНОПКИ ─────────────────────────────────────── */
.dl-btn-primary,
.jbtn {
  background: var(--gradient-brand) !important;
  color: #fff !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  box-shadow: var(--shadow-brand) !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
  position: relative;
  overflow: hidden;
}
.dl-btn-primary::after,
.jbtn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .18s;
}
.dl-btn-primary:hover,
.jbtn:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-brand-strong) !important;
}
.dl-btn-primary:hover::after,
.jbtn:hover::after {
  background: rgba(255,255,255,.08);
}

.dl-btn-secondary {
  border: 2px solid var(--color-brand) !important;
  color: var(--color-brand) !important;
  background: transparent !important;
  border-radius: var(--radius-full) !important;
  font-weight: 700 !important;
  transition: all .18s !important;
}
.dl-btn-secondary:hover {
  background: var(--color-brand) !important;
  color: #fff !important;
}

/* ─── 4. НАВИГАЦИЯ ─────────────────────────────────────────────── */
[class*="block-header"] {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: rgba(250,250,248,.92) !important;
  border-bottom: 1px solid var(--color-border) !important;
  box-shadow: 0 2px 20px rgba(26,18,9,.06) !important;
}

/* Телефон в nav — крупнее */
[class*="block-header"] a[href^="tel"] {
  font-weight: 800 !important;
  font-size: 1.05rem !important;
  color: var(--color-text) !important;
}
[class*="block-header"] a[href^="tel"]:hover {
  color: var(--color-brand) !important;
}

/* ─── 5. HERO СЕКЦИЯ (Flexbe + JTBD) ───────────────────────────── */
/* Оригинальный Flexbe hero */
[class*="block-hero-form-banner-glass"] {
  background: var(--gradient-hero) !important;
}

/* JTBD hero */
.js--hero {
  background: var(--gradient-hero) !important;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.js--hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(232,80,26,.25) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.js--hero::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(45,122,66,.15) 0%, transparent 70%);
  bottom: -80px; left: 20%;
  pointer-events: none;
}

/* Цвет текста в тёмном hero */
.js--hero .jh2,
.js--hero h1 {
  color: #fff !important;
  font-size: clamp(2rem, 5vw, 3.2rem) !important;
  font-weight: 900 !important;
}
.js--hero .jlead {
  color: rgba(255,255,255,.85) !important;
  opacity: 1 !important;
  font-size: 1.1rem;
}
.js--hero .jbullets li {
  color: rgba(255,255,255,.9);
}
.js--hero .jsection-label {
  color: var(--color-brand) !important;
  background: rgba(232,80,26,.15);
  padding: .2rem .75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(232,80,26,.3);
  display: inline-block;
}

/* Форма в hero — стеклянная карточка */
.jform {
  background: rgba(255,255,255,.08) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,.15) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.3) !important;
}
.jform > div:first-child {
  color: #fff !important;
}
.jform input {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
}
.jform input::placeholder { color: rgba(255,255,255,.55) !important; }
.jform input:focus {
  background: rgba(255,255,255,.18) !important;
  border-color: rgba(232,80,26,.7) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(232,80,26,.2) !important;
}
.jform p { color: rgba(255,255,255,.6) !important; }

/* ─── 6. СЕКЦИИ ────────────────────────────────────────────────── */
.js { padding: 5rem 0 !important; }
.js--surface  { background: var(--color-surface) !important; }
.js--surface2 { background: var(--color-surface-2) !important; }
.js--dark     { background: var(--color-overlay-dark) !important; }
.js--brand    { background: var(--gradient-brand) !important; }

/* Wave-разделитель между секциями */
.js + .js--dark::before,
.js--dark + .js::before {
  content: none;
}

/* ─── 7. КАРТОЧКИ ──────────────────────────────────────────────── */
.jcard {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform .22s ease, box-shadow .22s ease !important;
}
.jcard:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-md) !important;
  border-color: rgba(232,80,26,.25) !important;
}
.jcard--accent {
  border-left: 4px solid var(--color-brand) !important;
}

/* ─── 8. СТАТИСТИКА ────────────────────────────────────────────── */
.jstat { padding: 2rem 1.5rem !important; }
.jstat__num {
  font-size: 3rem !important;
  font-weight: 900 !important;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1 !important;
}
.jstat__label {
  color: var(--color-muted) !important;
  font-size: .9rem !important;
  margin-top: .5rem !important;
  font-weight: 600;
}

/* ─── 9. ЗАГОЛОВКИ СЕКЦИЙ ──────────────────────────────────────── */
.jh2 {
  font-size: clamp(1.75rem, 3.5vw, 2.6rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.15 !important;
}
.jh3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}
.jsection-label {
  font-size: .78rem !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
  color: var(--color-brand) !important;
  text-transform: uppercase;
}
.jdivider {
  width: 3.5rem;
  height: 4px;
  background: var(--gradient-brand);
  border-radius: 2px;
  margin: .75rem 0 2rem !important;
}

/* ─── 10. СПИСОК ПРОБЛЕМ (тёмная секция) ──────────────────────── */
.jproblem-list li {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  border-radius: var(--radius-sm) !important;
  color: rgba(255,255,255,.88) !important;
  transition: background .2s;
}
.jproblem-list li:hover {
  background: rgba(255,255,255,.07) !important;
}
.jproblem-list li::before { color: #E8501A !important; }

/* ─── 11. ГАРАНТИИ ─────────────────────────────────────────────── */
.jguarantee {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: var(--radius-md) !important;
  transition: background .2s, transform .2s;
}
.jguarantee:hover {
  background: rgba(255,255,255,.08) !important;
  transform: translateY(-2px);
}
.jguarantee__title { color: #fff !important; }
.jguarantee__text  { color: rgba(255,255,255,.82) !important; opacity: 1 !important; }

/* ─── 12. ШАГИ ПРОЦЕССА ────────────────────────────────────────── */
.jstep__num {
  background: var(--gradient-brand) !important;
  box-shadow: var(--shadow-brand) !important;
  flex-shrink: 0;
}
.jstep__body h4 { font-size: 1rem; font-weight: 800; color: var(--color-text); }
.jstep__body p  { color: var(--color-muted) !important; }

/* ─── 13. КЕЙСЫ ─────────────────────────────────────────────────── */
.jcase {
  border-radius: var(--radius-md) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform .22s, box-shadow .22s !important;
  overflow: hidden;
}
.jcase:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lg) !important;
}
.jcase__stat b { color: var(--color-brand) !important; font-size: 1.5rem !important; }
.jcase__meta {
  border-top: 1px solid var(--color-border) !important;
  gap: 2rem !important;
}

/* ─── 14. ТЕГИ ──────────────────────────────────────────────────── */
.jtag {
  background: var(--gradient-brand) !important;
  color: #fff !important;
  font-size: .7rem !important;
  font-weight: 800 !important;
  letter-spacing: .06em !important;
  padding: .25rem .7rem !important;
  border-radius: var(--radius-full) !important;
}
.jtag[style*="color-accent"] { background: var(--color-accent) !important; }

/* ─── 15. АККОРДЕОН FAQ ────────────────────────────────────────── */
.jacc-q {
  color: var(--color-text) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding: 1.25rem 0 !important;
}
.jacc-q:hover { color: var(--color-brand) !important; }
.jacc-icon { color: var(--color-brand) !important; font-size: 1.4rem !important; }
.jacc-item { border-bottom: 1px solid var(--color-border) !important; }

/* ─── 16. ФИНАЛЬНЫЙ CTA ─────────────────────────────────────────── */
.js--brand input {
  color: var(--color-text) !important;
  background: #fff !important;
  border: none !important;
  border-radius: var(--radius-full) !important;
  padding: .9rem 1.4rem !important;
  font-size: 1rem !important;
}
.js--brand input::placeholder { color: #999 !important; }
.js--brand input:focus {
  outline: 3px solid rgba(255,255,255,.4) !important;
  outline-offset: 2px;
}

/* ─── 17. P.S. БЛОК ─────────────────────────────────────────────── */
.jps {
  background: var(--color-surface) !important;
  border-left: 4px solid var(--color-brand) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--color-muted) !important;
  box-shadow: var(--shadow-sm);
}

/* ─── 18. WHATSAPP FLOAT ────────────────────────────────────────── */
.jwa-btn {
  box-shadow: 0 6px 24px rgba(37,211,102,.45) !important;
}

/* ─── 19. FLEXBE КОМПОНЕНТЫ — УЛУЧШЕНИЕ ─────────────────────────── */
/* Карточки услуг */
[class*="block-features-alt__item"],
[class*="block-services__item"],
[class*="block-cards__item"] {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform .22s, box-shadow .22s !important;
}
[class*="block-features-alt__item"]:hover,
[class*="block-services__item"]:hover,
[class*="block-cards__item"]:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Заголовки Flexbe */
[class*="__title"],
[class*="__heading"] {
  letter-spacing: -0.02em;
}

/* Flexbe секции */
[class*="block-"] {
  --color-border: #E2D8CC;
}

/* ─── 20. СКРОЛЛ-АНИМАЦИЯ ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }
.fade-up:nth-child(6) { transition-delay: .5s; }

/* ─── 21. STICKY МОБИЛЬНАЯ ПОЛОСКА ─────────────────────────────── */
.d26-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  background: var(--color-overlay-dark);
  padding: .75rem 1rem;
  gap: .5rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,.3);
}
.d26-sticky-bar a {
  flex: 1;
  text-align: center;
  padding: .7rem .5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
}
.d26-sticky-bar .d26-call {
  background: var(--gradient-brand);
  color: #fff;
}
.d26-sticky-bar .d26-wa {
  background: #25D366;
  color: #fff;
}
@media (max-width: 768px) {
  .d26-sticky-bar { display: flex; }
  .jwa-float { bottom: 5rem; } /* поднять над sticky bar */
  body { padding-bottom: 64px; }
}

/* ─── 22. ФУТЕР ─────────────────────────────────────────────────── */
[class*="block-footer"] {
  background: var(--color-overlay-dark) !important;
  color: rgba(255,255,255,.7) !important;
}
[class*="block-footer"] a {
  color: rgba(255,255,255,.6) !important;
  text-decoration: none;
}
[class*="block-footer"] a:hover {
  color: var(--color-brand) !important;
}
[class*="block-footer__brand-name"],
[class*="block-footer__heading"] {
  color: #fff !important;
}

/* ─── 23. МЕДИА ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .js { padding: 3.5rem 0 !important; }
  .jh2 { font-size: clamp(1.5rem, 6vw, 2rem) !important; }
  .jstat__num { font-size: 2.2rem !important; }
  .jgrid--4 { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  .jhero-wrap { gap: 2rem; }
  .jgrid--2,
  .jgrid--3 { grid-template-columns: 1fr !important; }
}

/* ─── 24. СКРОЛЛ-АНИМАЦИЯ — INIT ────────────────────────────────── */
/* Добавляем класс через JS */
