/* ONIX — новогодний слой (подключает ny.js). Снег — canvas, гирлянда — SVG под линией шапки; клики проходят насквозь. */
.ny-snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 98; pointer-events: none; }   /* ниже меню (99/100) и окна заявки (10000) */

.ny-garland { position: absolute; left: 5%; right: 5%; top: calc(100% - 1px); height: 22px; pointer-events: none; z-index: 1; }
.ny-garland svg { display: block; overflow: visible; pointer-events: none; }
.ny-wire { fill: none; stroke: rgba(244, 241, 234, 0.55); stroke-width: 1; }
.ny-cap { fill: rgba(60, 52, 40, 0.9); }
.ny-lamp { fill: currentColor; }
.ny-glow { fill: currentColor; opacity: 0.28; }
.ny-b { animation: ny-twinkle 2.4s ease-in-out infinite; }
@keyframes ny-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (max-width: 759px) { .ny-garland { left: 18px; right: 18px; height: 16px; } }
@media (prefers-reduced-motion: reduce) { .ny-b { animation: none; } }

/* Новогодний слайд главной: сказочный вечер с огнями деревни; лодка — рендер Blender, доведённый до фотографии через Weave и вклеенный в картинку (форма, мотор, люди и фон не менялись; 28.11, вечер). Чем крупнее и чётче экран, тем крупнее файл. */
.hero__slide.ny-slide { background-color: #0b1a3d; background-image: url(img/ny-hero-wv-1440.webp); background-size: cover; background-position: 72% 60%; }
@media (min-width: 1200px), (min-width: 760px) and (-webkit-min-device-pixel-ratio: 1.5), (min-width: 760px) and (min-resolution: 1.5dppx) { .hero__slide.ny-slide { background-image: url(img/ny-hero-wv-2400.webp); } }
@media (min-width: 2500px), (min-width: 1300px) and (-webkit-min-device-pixel-ratio: 1.5), (min-width: 1300px) and (min-resolution: 1.5dppx) { .hero__slide.ny-slide { background-image: url(img/ny-hero-wv-3840.webp); } }
/* почти квадратное окно (планшет лёжа): сдвиг влево, чтобы щит со скидкой не обрезался */
@media (min-width: 760px) and (max-aspect-ratio: 3/2) { .hero__slide.ny-slide { background-position: 40% 60%; } }
/* компьютер: подпись слева над санями — Дед Мороз и Санта по центру не закрыты */
@media (min-width: 1000px) {
  .hero__stick.ny .hero__caption { left: 5%; right: auto; margin: 0; max-width: min(44%, 640px); align-items: flex-start; text-align: left; }
  .hero__stick.ny .hc-title { font-size: clamp(40px, 3.5vw, 58px); padding-left: 0; }
  .hero__stick.ny .hc-row { align-items: flex-start; }
}
/* телефон и планшет стоя: свой вертикальный кадр на весь экран — небо под подписью, лодка с санями целиком по ширине */
@media (max-width: 759px) {
  .hero__slide.ny-slide { background: #0b1a3d url(img/ny-hero-wv-m.webp) center 58% / cover no-repeat; }
}
@media (min-width: 760px) and (max-aspect-ratio: 1/1) {
  .hero__slide.ny-slide { background: #0b1a3d url(img/ny-hero-wv-m-1536.webp) center 58% / cover no-repeat; }
}
/* гирлянда по верхнему краю экрана — над пунктами меню */
.ny-garland--top { top: 0; left: 0; right: 0; }
@media (max-width: 759px) { .ny-garland--top { left: 0; right: 0; } }

/* лодочка на линии шапки: линия — «вода», катер тянет табличку и проходит линию за минуту */
.ny-boat { position: absolute; left: 5%; right: 5%; bottom: 0; height: 28px; overflow: hidden; pointer-events: none; z-index: 1; }
.ny-boat__go { position: absolute; bottom: -1px; left: -45%; height: 100%; display: flex; align-items: flex-end; white-space: nowrap; animation: ny-sail 60s linear -21s infinite; }
.ny-boat__go img { height: 100%; width: auto; animation: ny-bob 2.8s ease-in-out infinite; }
.ny-boat__sign { margin-bottom: 3px; padding: 1px 5px; font: 700 10px/1.25 Jost, Arial, sans-serif; letter-spacing: .02em; color: #d81f26; background: #fff; border: 1px solid #d81f26; border-radius: 2px; animation: ny-bob 2.8s ease-in-out .6s infinite; }
.ny-boat__rope { flex: none; width: 22px; height: 1px; margin-bottom: 9px; background: rgba(222, 186, 120, .95); transform: rotate(-8deg); }
@keyframes ny-sail { from { left: -45%; } to { left: 100%; } }
@keyframes ny-bob { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-1.5px) rotate(-0.6deg); } }
.hdr.scrolled .ny-boat { height: 20px; }
.hdr.scrolled .ny-boat__sign { font-size: 8px; margin-bottom: 2px; }
@media (max-width: 759px) { .ny-boat { left: 18px; right: 18px; height: 16px; } .ny-boat__go { animation-duration: 40s; } .ny-boat__sign { font-size: 7px; padding: 0 3px; margin-bottom: 1px; } .ny-boat__rope { width: 12px; margin-bottom: 5px; } }
@media (prefers-reduced-motion: reduce) { .ny-boat__go { animation: none; left: 60%; } .ny-boat__go img, .ny-boat__sign { animation: none; } }
@media print { .ny-snow, .ny-garland, .ny-boat { display: none !important; } }
