/* ───── «Семья»: новогоднее настроение ───── */
#nySnow { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
body.dm-open #nySnow { display: none; }
.ny-garland { position: relative; height: 16px; margin-bottom: -16px; z-index: 3; display: flex; justify-content: space-around; align-items: flex-start; pointer-events: none;
  background: radial-gradient(ellipse 60% 14px at 50% -6px, transparent 12px, #2e4a2e 12px, #2e4a2e 13.5px, transparent 14px) 0 0 / 48px 16px repeat-x; }
.ny-garland i { width: 7px; height: 10px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%; margin-top: 5px; animation: nyBlink 1.6s ease-in-out infinite; }
.ny-garland i:nth-child(4n+1) { background: #ff3b3b; color: #ff3b3b; } .ny-garland i:nth-child(4n+2) { background: #ffd166; color: #ffd166; }
.ny-garland i:nth-child(4n+3) { background: #06d6a0; color: #06d6a0; } .ny-garland i:nth-child(4n) { background: #4dc3ff; color: #4dc3ff; }
@keyframes nyBlink { 0%, 100% { opacity: 1; box-shadow: 0 0 8px 1px currentColor; } 50% { opacity: .35; box-shadow: none; } }
.ny-card { position: relative; overflow: hidden; margin: 0 12px 12px; padding: 22px 16px 14px; border-radius: 18px; cursor: pointer;
  background: radial-gradient(circle at 12% 30%, #fff 0 1.5px, transparent 2.5px), radial-gradient(circle at 70% 20%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 88% 55%, #fff 0 1.5px, transparent 2.5px), radial-gradient(ellipse at 100% 120%, #b3202a 0%, transparent 55%), linear-gradient(160deg, #0b1a3a, #1d3b6e); }
.ny-card .ny-lights { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-around; }
.ny-card .ny-lights i { width: 6px; height: 9px; border-radius: 50%; margin-top: 4px; animation: nyBlink 1.6s ease-in-out infinite; }
.ny-card .ny-lights i:nth-child(4n+1) { background: #ff3b3b; color: #ff3b3b; } .ny-card .ny-lights i:nth-child(4n+2) { background: #ffd166; color: #ffd166; }
.ny-card .ny-lights i:nth-child(4n+3) { background: #06d6a0; color: #06d6a0; } .ny-card .ny-lights i:nth-child(4n) { background: #4dc3ff; color: #4dc3ff; }
.ny-card .k { font-size: 12px; font-weight: 800; letter-spacing: .6px; color: #ffd166; }
.ny-card .big { font-size: 28px; font-weight: 900; margin-top: 4px; color: #fff; }
.ny-card .j { font-size: 14.5px; font-weight: 600; margin-top: 8px; color: #eaf1ff; padding-right: 54px; line-height: 1.35; }
.ny-card .n { font-size: 12px; color: #a9bbe0; margin-top: 8px; padding-right: 54px; }
.ny-card .tree { position: absolute; right: 10px; bottom: 6px; font-size: 52px; filter: drop-shadow(0 0 12px rgba(255,209,102,.5)); animation: nyTree 3s ease-in-out infinite; }
@keyframes nyTree { 50% { transform: rotate(-4deg) scale(1.05); } }
body.ny .hero h1::after, body.ny .cas-head h1::after, body.ny .dm-head h1::after { content: " 🎄"; font-size: .8em; }
body.ny .tabs button.on svg { filter: drop-shadow(0 0 6px rgba(246,201,51,.6)); }
@media (prefers-reduced-motion: reduce) { .ny-garland i, .ny-card .ny-lights i, .ny-card .tree { animation: none; } }
