/* Фон лендинга — сетка и пятна как в теме finclub-blog */

body.theme-green::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(6, 78, 59, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 45% at 95% 80%, rgba(15, 118, 110, 0.14), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(132, 204, 22, 0.04), transparent 40%);
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(165deg, #ecfdf5 0%, #eef6f1 40%, #e6f4ed 100%);
}

.site-bg__grid {
  position: absolute;
  inset: -20% -10%;
  z-index: 2;
  background-image:
    linear-gradient(rgba(6, 95, 70, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 95, 70, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 1;
  -webkit-mask-image:
    radial-gradient(ellipse 55% 42% at 18% 22%, rgba(0, 0, 0, 0.55) 0%, transparent 72%),
    radial-gradient(ellipse 48% 40% at 82% 18%, rgba(0, 0, 0, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 70% 58% at 52% 52%, rgba(0, 0, 0, 0.38) 0%, transparent 78%),
    radial-gradient(ellipse 50% 44% at 28% 78%, rgba(0, 0, 0, 0.32) 0%, transparent 68%),
    radial-gradient(ellipse 52% 46% at 86% 72%, rgba(0, 0, 0, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 120% 95% at 50% 50%, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 55%, transparent 100%);
  mask-image:
    radial-gradient(ellipse 55% 42% at 18% 22%, rgba(0, 0, 0, 0.55) 0%, transparent 72%),
    radial-gradient(ellipse 48% 40% at 82% 18%, rgba(0, 0, 0, 0.45) 0%, transparent 70%),
    radial-gradient(ellipse 70% 58% at 52% 52%, rgba(0, 0, 0, 0.38) 0%, transparent 78%),
    radial-gradient(ellipse 50% 44% at 28% 78%, rgba(0, 0, 0, 0.32) 0%, transparent 68%),
    radial-gradient(ellipse 52% 46% at 86% 72%, rgba(0, 0, 0, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 120% 95% at 50% 50%, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.08) 55%, transparent 100%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

.site-bg__blob {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  filter: blur(72px);
}

.site-bg__blob--1 {
  top: -8%;
  left: -5%;
  width: min(58vw, 640px);
  height: min(58vw, 640px);
  background: radial-gradient(circle, rgba(52, 211, 153, 0.55) 0%, rgba(52, 211, 153, 0) 68%);
  animation: blob-drift-1 26s ease-in-out infinite;
}

.site-bg__blob--2 {
  top: 55%;
  left: 50%;
  width: min(50vw, 560px);
  height: min(50vw, 560px);
  background: radial-gradient(circle, rgba(15, 118, 110, 0.45) 0%, rgba(15, 118, 110, 0) 70%);
  animation: blob-drift-2 32s ease-in-out infinite;
}

.site-bg__blob--3 {
  top: 20%;
  right: -8%;
  width: min(42vw, 480px);
  height: min(42vw, 480px);
  background: radial-gradient(circle, rgba(132, 204, 22, 0.42) 0%, rgba(132, 204, 22, 0) 65%);
  animation: blob-drift-3 22s ease-in-out infinite;
}

.site-bg__blob--4 {
  bottom: -12%;
  left: 25%;
  width: min(48vw, 520px);
  height: min(48vw, 520px);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.38) 0%, rgba(4, 47, 46, 0) 72%);
  animation: blob-drift-4 38s ease-in-out infinite;
}

@keyframes blob-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(35vw, 18vh) scale(1.12); }
  50%  { transform: translate(18vw, 42vh) scale(0.92); }
  75%  { transform: translate(-8vw, 22vh) scale(1.08); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blob-drift-2 {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(-32vw, -28vh) scale(1.1); }
  50%  { transform: translate(-12vw, -48vh) scale(0.95); }
  75%  { transform: translate(20vw, -15vh) scale(1.15); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blob-drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(-28vw, 30vh) scale(1.18); }
  66%  { transform: translate(-40vw, -12vh) scale(0.88); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes blob-drift-4 {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(22vw, -35vh) scale(1.05); }
  60%  { transform: translate(-18vw, -20vh) scale(1.2); }
  100% { transform: translate(0, 0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .site-bg__blob {
    animation: none !important;
    transform: none !important;
  }

  .site-bg__grid {
    -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 100% 90% at 50% 50%, rgba(0, 0, 0, 0.35) 0%, transparent 100%);
  }
}
