/* Лицензирование: граф тарифов + плавающие иконки (фон секции) */

.site-premium .section-scene--pricing {
  position: relative;
}

.site-premium .cinematic-bg--pricing.pricing-bg {
  z-index: 0;
}

.site-premium .section-scene--pricing .section-scene__inner {
  position: relative;
  z-index: 1;
}

.site-premium .pricing-bg .pricing-bg__mesh {
  opacity: 0.72;
  background:
    radial-gradient(ellipse 55% 45% at 18% 30%, rgba(45, 128, 194, 0.16), transparent 58%),
    radial-gradient(ellipse 50% 40% at 82% 70%, rgba(15, 136, 147, 0.14), transparent 52%);
}

.site-premium .pricing-bg .pricing-bg__sweep {
  opacity: 1;
  width: 32%;
  animation-duration: 14s;
}

/* ——— Граф: Временная → Бессрочная → Обновления ——— */
.pricing-bg__graph-wrap {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(920px, 96%);
  height: clamp(150px, 24vw, 220px);
  transform: translate(-50%, -50%);
  opacity: 0.38;
  pointer-events: none;
  filter: drop-shadow(0 4px 28px rgba(45, 128, 194, 0.12));
}

.pricing-bg__graph {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.pricing-bg__edge {
  fill: none;
  stroke-width: 2.75;
  stroke-linecap: round;
  stroke-dasharray: 14 10;
  opacity: 1;
}

.pricing-bg__edge--1 {
  stroke: url(#pricing-edge-grad-a);
  animation: pricing-edge-flow 3.8s linear infinite;
}

.pricing-bg__edge--2 {
  stroke: url(#pricing-edge-grad-b);
  animation: pricing-edge-flow 3.8s linear infinite;
  animation-delay: -1.4s;
}

@keyframes pricing-edge-flow {
  to {
    stroke-dashoffset: -48;
  }
}

.pricing-bg__node-circle {
  fill: rgba(255, 255, 255, 0.78);
  stroke-width: 2.25;
}

.pricing-bg__node--year .pricing-bg__node-circle {
  stroke: var(--primary-color);
}

.pricing-bg__node--perpetual .pricing-bg__node-circle {
  stroke: var(--info-color);
  animation: pricing-node-center-glow 4s ease-in-out infinite;
}

@keyframes pricing-node-center-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(15, 136, 147, 0));
    stroke-width: 2.25;
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(15, 136, 147, 0.45));
    stroke-width: 2.75;
  }
}

.pricing-bg__node--updates .pricing-bg__node-circle {
  stroke: var(--primary-color);
}

.pricing-bg__node-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: pricing-node-ring-pulse 3.8s ease-in-out infinite;
}

.pricing-bg__node-ring {
  fill: none;
  stroke: var(--info-color);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  animation: pricing-ring-dash 3.8s linear infinite;
}

@keyframes pricing-ring-dash {
  to {
    stroke-dashoffset: -28;
  }
}

@keyframes pricing-node-ring-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.95;
  }
}

.pricing-bg__node-glyph {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-bg__node--year {
  color: var(--primary-color);
}

.pricing-bg__node--perpetual {
  color: var(--info-color);
}

.pricing-bg__node--updates {
  color: var(--primary-color);
}

.pricing-bg__node-label {
  font-size: 12px;
  font-weight: 700;
  fill: var(--text-muted);
  opacity: 0.72;
  letter-spacing: 0.02em;
}

/* ——— Плавающие иконки ——— */
.pricing-bg__floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pricing-bg__float {
  position: absolute;
  left: var(--fx);
  top: var(--fy);
  width: clamp(32px, 3.8vw, 48px);
  height: clamp(32px, 3.8vw, 48px);
  margin: -16px 0 0 -16px;
  color: var(--primary-color);
  opacity: var(--fo, 0.24);
  filter: drop-shadow(0 2px 10px rgba(45, 128, 194, 0.2));
  animation: pricing-float-drift var(--fd, 18s) ease-in-out infinite;
  animation-delay: var(--fdelay, 0s);
}

.pricing-bg__float--teal {
  color: var(--info-color);
  filter: drop-shadow(0 2px 10px rgba(15, 136, 147, 0.22));
}

.pricing-bg__float svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pricing-bg__float-glyph {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes pricing-float-drift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(22px, -24px) rotate(7deg) scale(1.06);
  }
  55% {
    transform: translate(-18px, 18px) rotate(-6deg) scale(0.96);
  }
  80% {
    transform: translate(14px, 10px) rotate(3deg) scale(1.03);
  }
}

@media (max-width: 720px) {
  .pricing-bg__graph-wrap {
    top: 52%;
    opacity: 0.34;
  }

  .pricing-bg__node-label {
    font-size: 10px;
  }

  .pricing-bg__float:nth-child(n + 6) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-bg__edge,
  .pricing-bg__node-ring,
  .pricing-bg__node-pulse,
  .pricing-bg__node--perpetual .pricing-bg__node-circle,
  .pricing-bg__float,
  .site-premium .pricing-bg .pricing-bg__sweep {
    animation: none;
  }
}
