/* Новогоднее оформление: кабинет → «Сайт» → «Новогоднее оформление» (авто 1.12–14.01 МСК / включено / выключено). Подключается из footer.php блоком <!-- NY -->.
   Все декоративные слои — pointer-events:none, без влияния на раскладку (только absolute/fixed). */
/* гирлянду под шапкой заменил Дед Мороз на санях — рисуется в ny.js на canvas снега */

/* красная новогодняя шапка на вершине «A» логотипа (размеры — доли ширины знака: 75 / 60 / 44 px) */
html.ny .brand{position:relative}
html.ny .brand::before{
  content:"";position:absolute;left:21px;top:-15px;width:34px;height:26px;pointer-events:none;z-index:1;transform:rotate(-8deg);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 36'%3E%3Cdefs%3E%3ClinearGradient id='r' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ff4a4a'/%3E%3Cstop offset='1' stop-color='%23b3121b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M7 26C8 14 16 5 27 5c8 0 13 5 15 12-3-2-7-2-9 1-2 3-1 6 0 8z' fill='url(%23r)'/%3E%3Cpath d='M27 5c8 0 13 5 15 12-2-1-4-1-6 0-1-6-5-10-9-12z' fill='%238e0c14' opacity='.35'/%3E%3Ccircle cx='42' cy='18' r='4.6' fill='%23fff'/%3E%3Ccircle cx='40.8' cy='16.8' r='1.6' fill='%23fff' /%3E%3Crect x='3' y='23' width='34' height='9' rx='4.5' fill='%23f4f4f4'/%3E%3Crect x='3' y='23' width='34' height='4' rx='2' fill='%23fff'/%3E%3C/svg%3E") no-repeat 0 0/contain;
}
@media (max-width:1199px){html.ny .brand::before{left:17px;top:-12px;width:27px;height:21px}}
@media (max-width:767px){
  html.ny .brand::before{left:12px;top:-9px;width:20px;height:15px}
}

/* снег */
.ny-snow{position:fixed;inset:0;width:100%;height:100%;z-index:30;pointer-events:none}
html.ny-nosnow .ny-snow{display:none}

/* кнопка «выключить снег» — справа под шапкой, двигается вместе с ней */
.ny-tgl{position:absolute;right:10px;top:calc(100% + 4px);z-index:1;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;
  background:rgba(25,25,25,.85);border:1px solid #333338;color:#9da1b1;opacity:.75;transition:opacity .2s,color .2s}
.ny-tgl:hover,.ny-tgl:focus-visible{opacity:1;color:#fff}
.ny-tgl svg{width:14px;height:14px}
.ny-tgl[aria-pressed="false"]::after{content:"";position:absolute;width:16px;height:1.5px;background:currentColor;transform:rotate(-45deg);border-radius:1px}
body.menu-open .ny-tgl{display:none}
@media (max-width:767px){.ny-tgl{right:6px;top:calc(100% + 3px);width:22px;height:22px}.ny-tgl svg{width:12px;height:12px}}
@media (prefers-reduced-motion:reduce){.ny-snow,.ny-tgl{display:none!important}}
@media print{html.ny .brand::before,.ny-snow,.ny-tgl{display:none!important}}
