/* Новогодний слой: гирлянда по верху шапки, ровная шапка на знаке, редкий снег. */
.hdr-logo { position: relative; }
.ny-hat {
    position: absolute;
    left: 0;
    top: -13px;
    width: 30px;
    height: 25px;
    transform: rotate(-16deg);
    transform-origin: 70% 100%;
    pointer-events: none;
    filter: drop-shadow(0 1px 1px rgba(20, 16, 40, .18));
}
.ny-lights {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 36px;
    margin-top: -6px;
    z-index: 6;
    pointer-events: none;
}
.ny-wire {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}
.ny-lights i {
    position: absolute;
    z-index: 1;
    width: 9px;
    height: 9px;
    margin: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 34% 32%, #fff 0 1.2px, var(--c) 2.4px);
    box-shadow: 0 0 6px var(--c);
}
.ny-lights i:nth-of-type(4n+1) { --c: #1a4fe0; }
.ny-lights i:nth-of-type(4n+2) { --c: #e10600; }
.ny-lights i:nth-of-type(4n+3) { --c: #12963c; }
.ny-lights i:nth-of-type(4n+4) { --c: #ffcc00; }
.ny-lights i:nth-of-type(odd) { animation: ny-bulb 2.8s ease-in-out infinite; }
.ny-lights i:nth-of-type(4n) { animation-delay: -1.4s; }
@keyframes ny-bulb {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.35); }
}
.ny-snow {
    position: fixed;
    inset: 0;
    z-index: 180;
    overflow: hidden;
    pointer-events: none;
}
.ny-snow span {
    position: absolute;
    top: -12px;
    width: 5px;
    height: 5px;
    margin-left: -2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px rgba(255, 255, 255, .95);
    opacity: .8;
    animation: ny-fall linear infinite;
}
.ny-snow span:nth-child(3n) { width: 3px; height: 3px; opacity: .55; }
.ny-snow span:nth-child(4n) { width: 7px; height: 7px; opacity: .9; }
@keyframes ny-fall {
    to { transform: translateY(105vh); }
}
@media (max-width: 1139px) {
    .ny-hat { width: 24px; height: 20px; left: -1px; top: -11px; }
}
@media (max-width: 640px) {
    .ny-lights i { width: 8px; height: 8px; box-shadow: 0 0 5px var(--c); }
}
@media (prefers-reduced-motion: reduce) {
    .ny-lights i,
    .ny-admin-lights i,
    .ny-snow span { animation: none; }
    .ny-snow { display: none; }
}

/* Админка: короткая гирлянда по верхнему краю и шапка на знаке RC. */
.admin-logo { position: relative; }
.ny-admin-hat {
    position: absolute;
    left: -7px;
    top: -12px;
    width: 20px;
    height: 16px;
    z-index: 2;
    pointer-events: none;
    transform: rotate(-16deg);
    transform-origin: 70% 100%;
    filter: drop-shadow(0 1px 1px rgba(20, 16, 40, .2));
}
.ny-admin-lights {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 18px;
    z-index: 400;
    pointer-events: none;
}
.ny-admin-lights .ny-wire { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.ny-admin-lights i {
    position: absolute;
    z-index: 1;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 34% 32%, #fff 0 1px, var(--c) 2px);
    box-shadow: 0 0 5px var(--c);
}
.ny-admin-lights i:nth-of-type(4n+1) { --c: #1a4fe0; }
.ny-admin-lights i:nth-of-type(4n+2) { --c: #e10600; }
.ny-admin-lights i:nth-of-type(4n+3) { --c: #12963c; }
.ny-admin-lights i:nth-of-type(4n+4) { --c: #ffcc00; }
.ny-admin-lights i:nth-of-type(odd) { animation: ny-bulb 2.8s ease-in-out infinite; }
