/* ============================================================
   ФОНОВЫЕ ЭФФЕКТЫ: декоративные "блобы" и искры (.ambient-bg, .ag-blob, .ember), разделители секций (.ambient-divider), шумовая текстура (.noise-overlay). Используются по всей странице как общий фон.
   ============================================================ */

.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.12;
  background-image: url(/asfalt-light.png);
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ag-blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}

.ag1 {
  width: 620px;
  height: 620px;
  top: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(255, 184, 48, 0.40), transparent 70%);
  opacity: 0.30;
  animation: driftA 50s ease-in-out infinite;
}

.ag2 {
  width: 560px;
  height: 560px;
  top: 28%;
  right: -200px;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.30), transparent 70%);
  opacity: 0.26;
  animation: driftB 62s ease-in-out infinite;
}

.ag3 {
  width: 520px;
  height: 520px;
  bottom: -200px;
  left: 18%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.26), transparent 70%);
  opacity: 0.22;
  animation: driftC 68s ease-in-out infinite;
}

.ag4 {
  width: 380px;
  height: 380px;
  top: 60%;
  right: 18%;
  background: radial-gradient(circle, rgba(255, 184, 48, 0.22), transparent 70%);
  opacity: 0.18;
  animation: driftA 40s ease-in-out infinite reverse;
}

.ember {
  position: absolute;
  bottom: -30px;
  left: var(--x, 50%);
  width: var(--s, 4px);
  height: var(--s, 4px);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px 2px rgba(255, 184, 48, 0.65);
  opacity: 0;
  animation: emberRise var(--dur, 16s) linear infinite;
  animation-delay: var(--delay, 0s);
}

@media (prefers-reduced-motion: reduce) {
  .ember,
  .ag-blob,
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

.ambient-divider {
  width: 100%;
  height: 1px;
  position: relative;
  overflow: visible;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  z-index: 1;
}

.ambient-divider::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 48, 0.75), transparent);
  box-shadow: 0 0 18px rgba(255, 184, 48, 0.45), 0 0 40px rgba(255, 184, 48, 0.18);
}

@media (max-width: 768px) {
  .ember {
    display: none !important;
  }
}

