/* ===== Новогоднее оформление (пробная версия) ===== */

/* Снег — фоновый canvas поверх контента, не мешает кликам */
.ny-snow {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

/* Гирлянда под шапкой */
.ny-garland {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-around;
  padding: 0 24px;
  pointer-events: none;
}
.ny-garland-wire {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(36, 90, 141, .35) 8%, rgba(36, 90, 141, .35) 92%, transparent);
}
.ny-bulb {
  position: relative;
  top: 0;
  width: 10px;
  height: 10px;
  margin-top: var(--hang, 12px);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--bulb-color, #ffd166);
  box-shadow: 0 0 16px 4px var(--bulb-color, #ffd166);
  animation: ny-twinkle 2.4s ease-in-out var(--twinkle-delay, 0s) infinite;
}
.ny-bulb::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 9px;
  background: rgba(36, 90, 141, .35);
}
.ny-bulb::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 3px;
  border-radius: 2px;
  background: #245a8d;
}
@keyframes ny-twinkle {
  0%, 100% { opacity: 1; filter: brightness(1.15); }
  50% { opacity: .7; filter: brightness(.95); }
}

/* Новогодний бейдж в hero */
.ny-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(120deg, #e8f4fd, #d3e9f7);
  border: 1px solid #a8d3ef;
  color: #245a8d;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(36, 90, 141, .12);
}

/* Морозные искры на логотипе в шапке */
.site-header .brand {
  position: relative;
}
.site-header .brand::after {
  content: "❄";
  position: absolute;
  top: -8px;
  right: -14px;
  font-size: 14px;
  color: #ffffff;
  opacity: .85;
  animation: ny-frost 3s ease-in-out infinite;
}
@keyframes ny-frost {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: .85; }
  50% { transform: rotate(20deg) scale(1.15); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ny-bulb, .site-header .brand::after { animation: none; }
}

@media (max-width: 680px) {
  .ny-bulb { width: 7px; height: 7px; }
  .ny-badge { font-size: 11px; padding: 8px 14px; }
}
