/* ===== Новогоднее оформление (включается из админки) ===== */

/* --- Снег --- */
#nySnow{
  position:fixed; inset:0; width:100%; height:100%;
  z-index:250; pointer-events:none;
}

/* --- Гирлянда: подвешена к нижнему краю шапки и едет вместе с ней --- */
.ny-garland{
  position:absolute; left:0; right:0; top:100%;
  height:48px; overflow:hidden; pointer-events:none; z-index:2;
}
.ny-garland svg{display:block; width:100%; height:100%;}
.ny-garland .ny-wire{fill:none; stroke:#2f3b46; stroke-width:1.6; stroke-linecap:round;}
.ny-garland .ny-cap{fill:#2f3b46;}
.ny-garland .ny-bulb{animation:nyBlink 2.4s ease-in-out infinite;}
.ny-garland .ny-a1{animation-delay:0s;}
.ny-garland .ny-a2{animation-delay:.8s;}
.ny-garland .ny-a3{animation-delay:1.6s;}
.ny-garland .c0{--c:#ff4d5e;} .ny-garland .c1{--c:#ffc43d;}
.ny-garland .c2{--c:#3ddc97;} .ny-garland .c3{--c:#4db8ff;}
.ny-garland .ny-glass{fill:var(--c);}
.ny-garland .ny-glow{fill:var(--c); opacity:.28;}
.ny-garland .ny-shine{fill:#fff; opacity:.65;}
@keyframes nyBlink{
  0%,100%{opacity:1;}
  50%{opacity:.35;}
}

/* --- Шапка Деда Мороза на логотипе --- */
.ny-hat-on header .logo{position:relative;}
.ny-hat{
  position:absolute; left:-8px; top:-15px;
  width:50px; height:auto; z-index:3;
  transform:rotate(-16deg); transform-origin:60% 100%;
  pointer-events:none; filter:drop-shadow(0 2px 2px rgba(15,23,42,.25));
}
@media (max-width:640px){
  .ny-hat{width:38px; left:-6px; top:-11px;}
  .ny-garland{height:40px;}
}

@media (prefers-reduced-motion:reduce){
  .ny-garland .ny-bulb{animation:none;}
}
