/* Новогодний баннер на первом экране + плавающая снежинка → новогодний сайт. Генерирует deploy/build.py */
.ny-promo { position: relative; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate;
  width: min(460px, calc(100% - 2 * var(--gutter, 16px))); min-height: 360px; margin: 0 0 20px var(--gutter, 16px);
  border-radius: 22px; overflow: hidden; text-decoration: none; color: #fff; background: #0a0d16;
  border: 1px solid rgba(255,233,201,.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 26px rgba(255,170,70,.16), 0 24px 60px rgba(0,0,0,.55);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.ny-promo-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s ease; }
.ny-promo::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,8,14,0) 18%, rgba(6,8,14,.55) 45%, rgba(6,8,14,.94) 72%, #06080e 100%); }
.ny-promo-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px 24px 24px; }
.ny-promo-tag { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 11px; border-radius: 999px;
  background: rgba(120,18,32,.82); color: #fff3e6; font: 700 13px/1 var(--body, sans-serif); letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(255,190,170,.35); box-shadow: 0 4px 14px rgba(0,0,0,.35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ny-promo-tag svg { width: 16px; height: 16px; color: #fff; opacity: .9; }
.ny-promo-tag b { color: #ffd9a0; font-weight: 700; }
.ny-promo-title { font: 800 clamp(28px, 2.3vw, 38px)/1.08 var(--body, sans-serif); letter-spacing: -.01em; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.ny-promo-title em { font-style: normal; color: #ffd27d; text-shadow: 0 0 2px rgba(255,220,150,.8), 0 0 18px rgba(255,170,60,.65), 0 0 42px rgba(255,140,30,.35); }
.ny-promo-text { font-size: 15px; line-height: 1.45; color: #d4dbe6; max-width: 34ch; }
.ny-promo-hot { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 14px; color: #f2c28c; }
.ny-promo-cta { margin-top: 6px; display: inline-flex; align-items: center; gap: .6em; padding: 14px 26px; border-radius: 999px;
  background: rgba(10,12,18,.55); color: #ffe9c9; border: 1px solid rgba(255,233,201,.75); font: 500 16px/1 var(--body, sans-serif);
  text-shadow: 0 0 14px rgba(255,170,80,.28); box-shadow: 0 0 14px rgba(255,170,80,.18), inset 0 0 10px rgba(255,170,80,.08);
  transition: box-shadow .4s ease, border-color .4s ease, color .4s ease; }
.ny-promo-cta b { font-weight: 400; transition: transform .4s ease; }
.ny-promo:hover, .ny-promo:focus-visible { outline: none; transform: translateY(-3px); border-color: rgba(255,233,201,.7);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 36px rgba(255,180,80,.28), 0 30px 70px rgba(0,0,0,.6); }
.ny-promo:hover .ny-promo-bg { transform: scale(1.06); }
.ny-promo:hover .ny-promo-cta { border-color: var(--neon, #ffb35c); color: var(--neon-core, #fff3e0); box-shadow: var(--glow, 0 0 24px rgba(255,170,80,.45)), inset 0 0 12px rgba(255,154,46,.2); }
.ny-promo:hover .ny-promo-cta b { transform: translateX(5px); }
@media (min-width: 1100px) {
  .ny-promo { position: absolute; right: var(--gutter); top: clamp(104px, 13vh, 150px); margin: 0; width: clamp(400px, 29vw, 520px);
    min-height: min(440px, calc(var(--hero-h, 100vh) - 380px)); }
}
@media (prefers-reduced-motion: no-preference) {
  .ny-promo { animation: ny-promo-in .8s .5s ease both; }
  .ny-snow svg { animation: ny-snow-spin 14s linear infinite; }
}
@keyframes ny-promo-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes ny-snow-spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .ny-promo { width: auto; margin: 0 var(--gutter) 16px; min-height: 0; border-radius: 18px; }
  .ny-promo-bg { object-position: 50% 25%; }
  .ny-promo::before { background: linear-gradient(90deg, rgba(6,8,14,.92) 0%, rgba(6,8,14,.78) 55%, rgba(6,8,14,.35) 100%); }
  .ny-promo-tag { position: static; padding: 6px 11px 6px 9px; font-size: 11px; }
  .ny-promo-tag svg { width: 15px; height: 15px; }
  .ny-promo-body { padding: 16px; gap: 8px; }
  .ny-promo-title { font-size: 23px; }
  .ny-promo-text { display: none; }
  .ny-promo-hot { font-size: 13px; }
  .ny-promo-cta { padding: 13px 22px; font-size: 15px; }
}
/* плавающая снежинка — появляется после первого экрана, вместе с «Наверх» */
.ny-snow { position: fixed; z-index: 49; right: clamp(16px, 2vw, 40px); bottom: calc(clamp(16px, 2vw, 40px) + clamp(48px, 3.4vw, 60px) + 12px); display: flex; flex-direction: row-reverse; align-items: center;
  height: clamp(48px, 3.4vw, 60px); border-radius: 999px; background: rgba(7,8,11,.82); border: 1px solid rgba(190,220,255,.5); color: #e6f2ff;
  box-shadow: 0 0 18px rgba(150,200,255,.25), 0 8px 30px rgba(0,0,0,.4); text-decoration: none; overflow: hidden; transition: box-shadow .3s, border-color .3s, opacity .3s; }
.to-top:not(.show) ~ .ny-snow { opacity: 0; pointer-events: none; visibility: hidden; }
.ny-snow-ico { flex: none; display: grid; place-items: center; width: calc(clamp(48px, 3.4vw, 60px) - 2px); height: calc(clamp(48px, 3.4vw, 60px) - 2px); }
.ny-snow svg { width: 26px; height: 26px; filter: drop-shadow(0 0 6px rgba(170,215,255,.9)); }
.ny-snow-txt { max-width: 0; opacity: 0; white-space: nowrap; font: 600 14px/1.2 var(--body, sans-serif); transition: max-width .35s ease, opacity .25s ease, padding .35s ease; }
.ny-snow-txt small { display: block; font-weight: 400; font-size: 12px; color: #b9cfe6; }
.ny-snow:hover, .ny-snow:focus-visible { outline: none; border-color: #cfe6ff; box-shadow: 0 0 26px rgba(170,215,255,.45), 0 8px 30px rgba(0,0,0,.4); }
.ny-snow:hover .ny-snow-txt, .ny-snow:focus-visible .ny-snow-txt { max-width: 220px; opacity: 1; padding-left: 22px; text-align: right; }
@media (max-width: 760px) {
  .ny-snow { height: 48px; bottom: calc(80px + 48px + 10px + env(safe-area-inset-bottom)); }
  .ny-snow-ico { width: 46px; height: 46px; }
}
