/* Новогоднее оформление 2027 — вариант «Хвоя, шары и огни» (гирлянда слева, ветка с шарами справа).
   Включается шаблоном index.tpl на период 01.12.2026–15.01.2027. Откат: убрать подключение файла. */
.ny-ornament { position:absolute; inset:0; z-index:1; overflow:hidden; pointer-events:none; }
.ny-corner { position:absolute; top:0; right:19px; width:300px; height:148px; pointer-events:none; }
.festive-point {
  position:absolute; left:var(--x); top:var(--y); width:var(--size); height:var(--size);
}
.festive-spark {
  opacity:var(--alpha,.9); background:var(--ink,#bc873d);
  clip-path:polygon(50% 0,58% 38%,100% 50%,58% 62%,50% 100%,42% 62%,0 50%,42% 38%);
}
.festive-branch {
  position:absolute; left:var(--x); top:var(--y); width:180px; height:66px;
  transform-origin:top right; transform:rotate(var(--turn)) scale(var(--scale,1));
}
.festive-branch::after {
  content:''; position:absolute; top:29px; left:6px; width:170px; height:1.75px; background:#72583a;
  transform:rotate(-5deg); transform-origin:right;
}
.festive-branch i {
  position:absolute; left:var(--needle-x); top:var(--needle-y); width:var(--length); height:var(--weight);
  background:linear-gradient(90deg,transparent 1%,var(--needle) 38%,var(--needle));
  border-radius:90% 15% 23% 60%; transform-origin:right center; transform:rotate(var(--angle));
}
.festive-ball {
  --bright:#ffe2a0; --middle:#c79445; --dark:#825026; --rim:#d49b4f;
  border-radius:50%; color:#ac8540;
  background:radial-gradient(circle at 30% 22%,#fff5ce 0%,var(--bright) 12%,var(--middle) 41%,var(--dark) 77%,var(--rim) 95%);
  box-shadow:inset -1px -2px 6px #260b194a,0 6px 10px #38292138;
}
.festive-ball.ruby { --bright:#f8afa0; --middle:#b54c51; --dark:#7f2638; --rim:#e07c65; }
.festive-ball.pine { --bright:#b8d2a3; --middle:#568168; --dark:#315049; --rim:#88b08d; }
.festive-ball.ice { --bright:#e3f5ff; --middle:#89aac5; --dark:#526c91; --rim:#adcded; }
.festive-ball::before {
  content:''; position:absolute; bottom:96%; left:34%; width:32%; height:12%;
  background:linear-gradient(90deg,#85692e 0%,#dec782 38%,#af8744 75%,#876830); border-radius:2px;
}
.festive-ball::after {
  content:''; position:absolute; bottom:106%; left:50%; width:1px; height:calc(var(--y) + 10px);
  background:linear-gradient(#ad865842,#aa784cbf);
}
.festive-wire {
  position:absolute; top:-65px; left:10px; width:282px; height:104px;
  border-radius:50%; border-bottom:2px solid #6a5949;
}
.festive-light {
  height:calc(var(--size) * 1.13); border-radius:45% 45% 52% 52%; color:var(--ink,#eca659);
  background:radial-gradient(circle at 50% 45%,#fff7dd 0%,color-mix(in srgb,currentColor 73%,white) 29%,currentColor 65%);
  box-shadow:0 0 9px color-mix(in srgb,currentColor 72%,transparent),0 0 21px color-mix(in srgb,currentColor 54%,transparent);
  transform:rotate(var(--tilt,0deg));
}
.festive-light::before {
  content:''; position:absolute; bottom:93%; left:24%; width:52%; height:5px; background:#695749; border-radius:1.5px;
}
.ny-ornament .combined-wire { top:-68px; left:6px; width:281px; height:106px; border-bottom-width:1.5px; }
.ny-ornament .festive-light { z-index:1; }
.ny-ornament .combined-garland,
.ny-ornament .combined-bough { position:absolute; top:0; width:300px; height:128px; }
.ny-ornament .combined-garland { left:-242px; }
.ny-ornament .combined-bough { left:0; }
@media (max-width:768px) {
  .ny-corner { left:6px; right:auto; transform:scale(.62); transform-origin:top left; }
  .festive-wire { border-color:#c49f70; }
  .festive-branch::after { background:#a98b63; }
  .festive-branch i { background:linear-gradient(90deg,transparent 1%,color-mix(in srgb,var(--needle) 67%,#d7e9a1) 40%,var(--needle)); }
  .ny-ornament .combined-garland { left:0; top:7px; transform:scale(.54); transform-origin:top left; }
  .ny-ornament .combined-garland .festive-light { width:calc(var(--size) * 1.24); height:calc(var(--size) * 1.39); }
  .ny-ornament .combined-bough { left:113px; top:26px; transform:scale(.70); transform-origin:top left; }
}

/* Мелкий падающий снег на всех страницах (включается тем же периодом) */
.ny-snow { position:fixed; left:0; top:0; right:0; bottom:0; z-index:1500; overflow:hidden; pointer-events:none; }
.ny-snow i {
  position:absolute; top:-14px; left:var(--x); width:var(--size); height:var(--size);
  border-radius:50%; background:#eef6ff; opacity:var(--op,.72);
  box-shadow:0 0 3px rgba(120,158,196,.55);
  animation:ny-fall var(--dur) linear var(--delay) infinite;
  will-change:transform;
}
@keyframes ny-fall {
  0%   { transform:translate3d(0,-16px,0); }
  100% { transform:translate3d(var(--drift),100vh,0); }
}
@media (prefers-reduced-motion: reduce) { .ny-snow { display:none; } }
@media print { .ny-snow { display:none; } }
