/* ===== ФОН: свечения, сетка, зерно ===== */
.bg-glow {
  position: fixed;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -2;
  transition: opacity 0.8s ease;
}

.bg-glow--gold {
  top: -18vmax;
  left: -14vmax;
  background: radial-gradient(circle, rgba(201, 168, 106, 0.22), transparent 65%);
}

.bg-glow--violet {
  bottom: -20vmax;
  right: -16vmax;
  background: radial-gradient(circle, rgba(155, 140, 196, 0.16), transparent 65%);
}

/* сетка */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.9), transparent 75%);
  pointer-events: none;
}

/* зерно (кинематографичная плёнка) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* вертикальный светлый градиент внизу */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(201, 168, 106, 0.07), transparent 60%),
    radial-gradient(ellipse 70% 45% at 90% 100%, rgba(155, 140, 196, 0.05), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
