/* ============================================================
   newyear.css — новогоднее оформление. Подключается сервером последним
   и только в сезон (lib/newyear.js), поэтому вне праздника сайт не меняется.
   Всё привязано к html[data-ny], работает поверх классической и премиум-темы,
   тёмной и светлой.

   Палитра: глубокий синий, морозный голубой, белый, серебро;
   золото и красный — только акценты (лампочки, лента, звезда).
   Анимируются только transform и opacity. При prefers-reduced-motion
   или выключателе «❄» движение отключается, остаются цвета.
   ============================================================ */

:root[data-ny]{
  --ny-serif:"Palatino Linotype","Book Antiqua",Palatino,"Iowan Old Style",Georgia,serif;
  --ny-red:#d63a3a;
  --ny-gold:#ffd36b;
  --ny-ice:#8fd6ff;
}

/* ---------- 1. ЦВЕТА: кабинет, панель, публичные страницы (тёмная) ---------- */
html[data-ny]:not([data-ny-pyd]):not([data-theme="light"]){
  --bg:#06122b; --bg2:#0a1a3a; --bg3:#102650; --bg4:#183364;
  --card:#0c1d3f; --border:#1c3568; --line-2:rgba(170,205,255,.22);
  --text:#eef5ff; --ink:#eef5ff; --muted:#a3b8d9; --dim:#7088b0;
  --accent:#78cbff; --accent2:#4aa8ef; --accent-rgb:120,203,255; --accent-ink:#06122b;
  --blue:#6aa8ff; --purple:#b7a6ff; --cyan:#7fe3ee; --coral:#ff7b7b; --yellow:#ffd36b;
  --btn-bg:#eaf5ff; --btn-bg-h:#ffffff; --btn-text:#06122b;
  --field:#081734; --hi:inset 0 1px 0 rgba(200,225,255,.07);
  --glow-bg:radial-gradient(60% 42% at 50% -6%, rgba(110,185,255,.20), transparent 72%);
  --pm-a:120,203,255; --pm-accent:#78cbff; --pm-accent2:#4aa8ef; --pm-card:#0c1d3f; --pm-bg3:#102650; --pm-btn-text:#06122b;
  /* публичные страницы (app.css) */
  --paper:#06122b; --line:#1c3568; --hero:#071530; --hero-2:#0d2250; --glow:#78cbff;
}
/* светлая: морозное утро */
html[data-ny][data-theme="light"]:not([data-ny-pyd]){
  --bg:#eef5ff; --bg2:#ffffff; --bg3:#e6f0fd; --bg4:#d5e4f8;
  --card:#ffffff; --border:#d3e2f5; --line-2:#b9d0ee;
  --text:#0b1c3a; --ink:#0b1c3a; --muted:#44587a; --dim:#667b9e;
  --accent:#1f78d1; --accent2:#155fae; --accent-rgb:31,120,209; --accent-ink:#ffffff;
  --blue:#2563eb; --purple:#6d4fe0; --cyan:#0e7f8a; --coral:#c8372d; --yellow:#a86a00;
  --btn-bg:#1f6fce; --btn-bg-h:#155fae; --btn-text:#ffffff;
  --field:#ffffff; --hair:rgba(11,28,58,.08);
  --glow-bg:radial-gradient(50% 40% at 16% -4%, rgba(140,200,255,.34), transparent 70%), radial-gradient(42% 38% at 88% 2%, rgba(190,210,255,.30), transparent 70%);
  --pm-a:31,120,209; --pm-accent:#1f78d1; --pm-accent2:#155fae; --pm-card:#ffffff; --pm-bg3:#e6f0fd; --pm-btn-text:#ffffff;
  --paper:#eef5ff; --line:#d3e2f5; --hero:#0b2a5c; --hero-2:#14407f; --glow:rgba(31,120,209,.35);
}

/* ---------- 2. ЦВЕТА: главная страница ---------- */
html[data-ny]:not([data-ny-pyd]) body.is-landing{
  --bg:#06102a; --surface:#0a1836; --surface-2:#0f2147;
  --line:rgba(160,200,255,.14); --line-2:rgba(160,200,255,.26);
  --text:#eef5ff; --text-2:#b7c9e6; --muted:#8aa2c8;
  --accent:#8fd3ff; --accent-text:#b5e2ff; --accent-glow:rgba(120,200,255,.55);
  --btn-bg:#f2f8ff; --btn-text:#06122c; --btn-bg-h:#ffffff;
  --top-bg:rgba(6,16,42,.78);
  --h-a:#ffffff; --h-b:#9fc4ee;
  --glow:radial-gradient(60% 60% at 50% 0%, rgba(110,185,255,.30), transparent 72%);
  --grid:rgba(160,200,255,.045);
  --field:#08152f; --field-line:rgba(160,200,255,.22); --hint:#7a92b8;
  --hover:rgba(160,200,255,.09);
}
html[data-ny][data-theme="light"]:not([data-ny-pyd]) body.is-landing{
  --bg:#f1f7ff; --surface:#ffffff; --surface-2:#e6f0fd;
  --line:#d3e2f5; --line-2:#b9d0ee;
  --text:#0c1d3a; --text-2:#33496b; --muted:#5a7094;
  --accent:#1d6fd1; --accent-text:#155fae; --accent-glow:rgba(29,111,209,0);
  --btn-bg:#1d6fd1; --btn-text:#ffffff; --btn-bg-h:#155fae;
  --top-bg:rgba(241,247,255,.86);
  --h-a:#0c1d3a; --h-b:#0c1d3a;
  --glow:radial-gradient(50% 50% at 18% 0%, rgba(150,205,255,.42), transparent 70%), radial-gradient(45% 45% at 85% 10%, rgba(200,215,255,.40), transparent 70%);
  --p1:#e3f1ff; --p2:#dcebff; --p3:#e2f6f3; --p4:#ffe4e4; --p5:#e8e4fb;
  --field:#ffffff; --field-line:#b9d0ee; --hint:#7f93b3;
  --hover:rgba(12,29,58,.06);
}
html[data-ny]:not([data-ny-pyd]):not([data-theme="light"]) body.is-landing{
  --p1:var(--surface); --p2:var(--surface); --p3:var(--surface); --p4:var(--surface); --p5:var(--surface);
}
html[data-ny][data-theme="light"]:not([data-ny-pyd]) body:not(.is-landing){ background-image:
  radial-gradient(1000px 520px at 6% -8%, rgba(120,190,255,.18), transparent 62%),
  radial-gradient(800px 480px at 102% 2%, rgba(190,210,255,.22), transparent 58%); }
html[data-ny]:not([data-ny-pyd]):not([data-theme="light"]) body:not(.is-landing){ background-image:
  radial-gradient(1000px 520px at 50% -12%, rgba(90,160,240,.17), transparent 66%); background-attachment:fixed; }

/* ---------- 3. КНОПКИ: зимний градиент и мягкое свечение ---------- */
html[data-ny]:not([data-ny-pyd]) :is(.live-btn--primary, .btn--primary, .lp-btn--main){
  box-shadow:0 0 0 1px rgba(255,255,255,.14) inset, 0 6px 22px -8px rgba(110,190,255,.65);
  transition:box-shadow .25s ease, transform .2s ease, filter .2s ease, background-color .2s ease;
}
html[data-ny]:not([data-ny-pyd]):not([data-theme="light"]) :is(.live-btn--primary, .btn--primary){
  background:linear-gradient(135deg,#a8e0ff,#5aaef2 55%,#9dbdff); border-color:transparent; color:#06122b;
}
html[data-ny]:not([data-ny-pyd]) :is(.live-btn--primary, .btn--primary, .lp-btn--main):hover{
  box-shadow:0 0 0 1px rgba(255,255,255,.25) inset, 0 8px 30px -6px rgba(130,205,255,.9);
}
/* лёгкая звёздочка у главной кнопки на главной */
html[data-ny] .lp-btn--main{ position:relative; }

/* ---------- 4. ЗАГОЛОВКИ: искорка рядом с текстом (добавляет скрипт) ---------- */
.ny-star{
  display:inline-block; margin-left:.28em; font-size:.42em; line-height:1; vertical-align:top; position:relative; top:.15em;
  color:var(--ny-gold); -webkit-text-fill-color:var(--ny-gold); background:none; text-shadow:0 0 10px rgba(255,211,107,.7);
  font-style:normal; font-weight:400; letter-spacing:0; text-transform:none;
  animation:ny-twinkle 3.2s ease-in-out infinite; will-change:transform,opacity;
}
.ny-star--b{ color:var(--ny-ice); -webkit-text-fill-color:var(--ny-ice); text-shadow:0 0 10px rgba(143,214,255,.8); animation-delay:-1.4s; font-size:.3em; top:.9em; margin-left:.12em; }
@keyframes ny-twinkle{ 0%,100%{ opacity:.35; transform:scale(.7) rotate(0deg); } 50%{ opacity:1; transform:scale(1.15) rotate(25deg); } }

/* ---------- 5. ИНЕЙ И СНЕЖИНКИ НА ФОНЕ (полупрозрачно, поверх страницы, клики не ловит) ---------- */
html[data-ny]:not([data-ny-pyd])::before{
  content:""; position:fixed; inset:0; z-index:56; pointer-events:none;
  background:
    radial-gradient(560px 360px at 0 0, rgba(210,235,255,.11), transparent 70%),
    radial-gradient(520px 340px at 100% 0, rgba(210,235,255,.09), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%23cfe6ff' stroke-width='1.1' stroke-linecap='round'%3E%3Cg opacity='.5'%3E%3Cpath d='M60 34v32M44 50h32M49 39l22 22M71 39L49 61'/%3E%3Cpath d='M180 150v32M164 166h32M169 155l22 22M191 155l-22 22'/%3E%3C/g%3E%3Cg opacity='.32'%3E%3Cpath d='M184 40v18M175 49h18M178 43l12 12M190 43l-12 12'/%3E%3Cpath d='M42 176v18M33 185h18M36 179l12 12M48 179l-12 12'/%3E%3C/g%3E%3C/svg%3E");
  opacity:.3;
}
html[data-ny][data-theme="light"]:not([data-ny-pyd])::before{
  background:
    radial-gradient(560px 360px at 0 0, rgba(120,185,255,.16), transparent 70%),
    radial-gradient(520px 340px at 100% 0, rgba(150,190,255,.14), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%235a9ae0' stroke-width='1.1' stroke-linecap='round'%3E%3Cg opacity='.4'%3E%3Cpath d='M60 34v32M44 50h32M49 39l22 22M71 39L49 61'/%3E%3Cpath d='M180 150v32M164 166h32M169 155l22 22M191 155l-22 22'/%3E%3C/g%3E%3Cg opacity='.26'%3E%3Cpath d='M184 40v18M175 49h18M178 43l12 12M190 43l-12 12'/%3E%3Cpath d='M42 176v18M33 185h18M36 179l12 12M48 179l-12 12'/%3E%3C/g%3E%3C/svg%3E");
  opacity:.32;
}
/* сугроб-свечение по низу окна — только на широких экранах (на телефоне там нижнее меню) */
html[data-ny]:not([data-ny-pyd])::after{
  content:""; position:fixed; left:0; right:0; bottom:0; height:70px; z-index:56; pointer-events:none;
  background:linear-gradient(to top, rgba(215,236,255,.13), transparent);
}
html[data-ny][data-theme="light"]:not([data-ny-pyd])::after{ background:linear-gradient(to top, rgba(130,190,255,.18), transparent); }
@media (max-width:900px){ html[data-ny]:not([data-ny-pyd])::after{ display:none; } }

/* ---------- 6. СНЕГ (canvas) ---------- */
.ny-snow{ position:fixed; inset:0; width:100%; height:100%; z-index:57; pointer-events:none; }

/* ---------- 7. ГИРЛЯНДА ---------- */
.ny-garland{ position:fixed; top:0; left:0; right:0; height:24px; z-index:60; pointer-events:none; overflow:hidden; }
.ny-garland svg{ position:absolute; left:0; top:0; }
.ny-garland path{ fill:none; stroke:#0a1730; stroke-width:1.6; stroke-linecap:round; opacity:.8; }
html[data-ny]:not([data-theme="light"]) .ny-garland path{ stroke:#9fb4d4; opacity:.55; }
.ny-b{ position:absolute; left:0; top:0; width:7px; height:12px; margin-left:-3.5px; }
.ny-b i{ position:absolute; left:1.5px; top:-2px; width:4px; height:3px; background:#26334d; border-radius:1px 1px 0 0; }
.ny-b b{ position:absolute; left:0; top:1px; width:7px; height:10px; border-radius:50% 50% 55% 55% / 40% 40% 60% 60%; background:var(--c); opacity:.95; }
.ny-b b::after{
  content:""; position:absolute; left:-8px; top:-6px; width:23px; height:23px; border-radius:50%;
  background:radial-gradient(circle, var(--c) 0%, transparent 68%); opacity:.55;
  animation:ny-blink 2.8s ease-in-out infinite; animation-delay:var(--d,0s); will-change:opacity;
}
.ny-b--r{ --c:#ff4a4a; } .ny-b--g{ --c:#ffcc5c; } .ny-b--i{ --c:#7fd0ff; } .ny-b--w{ --c:#f2f8ff; }
@keyframes ny-blink{ 0%,100%{ opacity:.18; } 45%,60%{ opacity:.8; } }

/* ---------- 8. ЛЕНТА «С НОВЫМ ГОДОМ!» (кабинет и панель, широкие экраны) ---------- */
.ny-ribbon{
  position:fixed; top:12px; left:50%; transform:translateX(-50%); z-index:61;
  display:none; align-items:center; gap:10px; padding:5px 8px 5px 16px; border-radius:999px;
  background:linear-gradient(135deg,#d63a3a,#a82222); color:#fff; border:1px solid rgba(255,211,107,.8);
  box-shadow:0 6px 20px -6px rgba(214,58,58,.65), 0 0 0 3px rgba(255,211,107,.12);
  font:italic 500 15px/1.2 var(--ny-serif); letter-spacing:.01em; white-space:nowrap;
}
.ny-ribbon span{ color:var(--ny-gold); font-style:normal; }
.ny-ribbon button{
  width:22px; height:22px; padding:0; border:0; border-radius:50%; cursor:pointer;
  background:rgba(255,255,255,.18); color:#fff; font:600 15px/1 sans-serif;
}
.ny-ribbon button:hover{ background:rgba(255,255,255,.32); }
@media (min-width:1100px){ body:not(.is-landing) .ny-ribbon{ display:inline-flex; } }
html[data-ny-ribbon="off"] .ny-ribbon{ display:none !important; }

/* приветствие в первом экране главной */
.ny-greet{
  display:inline-flex; align-items:center; gap:8px; margin:0 0 14px; padding:7px 16px; border-radius:999px;
  background:linear-gradient(135deg,rgba(214,58,58,.92),rgba(168,34,34,.92)); color:#fff;
  border:1px solid rgba(255,211,107,.75); box-shadow:0 8px 26px -10px rgba(214,58,58,.7);
  font:italic 500 17px/1.2 var(--ny-serif);
}
.ny-greet span{ color:var(--ny-gold); font-style:normal; }

/* ---------- 9. ЁЛКА И ВЫКЛЮЧАТЕЛЬ ---------- */
.ny-tree{ position:fixed; left:188px; bottom:118px; z-index:58; width:64px; height:78px; pointer-events:none; display:none; }
.ny-tree svg{ width:100%; height:100%; overflow:visible; filter:drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.ny-tree .tw{ animation:ny-blink 2.4s ease-in-out infinite; animation-delay:var(--d,0s); }
.ny-tree .st{ transform-origin:45px 14px; animation:ny-twinkle 3.2s ease-in-out infinite; }
/* в кабинете и панели ёлка стоит в свободном месте боковой колонки, пока она развёрнута */
@media (min-width:1100px) and (min-height:800px){ html:not([data-side="min"]) .ny-tree{ display:block; } }
/* на главной — в левом нижнем углу, только на очень широких экранах */
body.is-landing .ny-tree{ left:12px; bottom:8px; width:78px; height:96px; display:none !important; }
@media (min-width:1500px){ body.is-landing .ny-tree{ display:block !important; } }

/* кнопка снега: рядом с кнопкой темы (docked) либо плавающая в углу, если кнопки темы нет */
.ny-toggle{ position:relative; }
.ny-toggle svg{ display:block; }
.ny-toggle[aria-pressed="false"]::after{ content:""; position:absolute; left:50%; top:50%; width:22px; height:2px; margin:-1px 0 0 -11px; background:currentColor; transform:rotate(-45deg); border-radius:2px; pointer-events:none; }
@media (min-width:861px){ html[data-ny] .top__in .nav{ flex-wrap:nowrap; } html[data-ny] .top__in .nav a{ white-space:nowrap; } html[data-ny] .top__in .brand{ min-width:0; } }
@media (max-width:380px){ html[data-ny] .topbar__right{ gap:3px; } html[data-ny] .topbar__right .tb-btn{ width:34px; } html[data-ny] .topbar__left{ min-width:0; } }
.ny-dock.tb-btn{ color:#7fb8ff; }
html[data-theme="light"] .ny-dock.tb-btn{ color:#1f6fce; }
.ny-dock.tb-btn:hover{ color:var(--text); }
.ny-dock.pub-theme{ color:#9fcbff; }
html[data-theme="light"] .ny-dock.pub-theme, body.is-landing .ny-dock.pub-theme{ color:#1f6fce; }
@media (max-width:860px){
  .ny-dock.pub-theme{ margin-left:auto; order:2; }
  .ny-dock + .pub-theme{ margin-left:6px; }
}
.ny-float{
  position:fixed; left:14px; bottom:112px; z-index:62; width:34px; height:34px; padding:0; border-radius:50%; cursor:pointer;
  display:grid; place-items:center;
  background:rgba(12,29,63,.78); color:#cfe6ff; border:1px solid rgba(170,205,255,.35);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); opacity:.7; transition:opacity .2s, transform .2s;
}
.ny-float:hover,.ny-float:focus-visible{ opacity:1; transform:scale(1.08); }
html[data-ny][data-theme="light"] .ny-float{ background:rgba(255,255,255,.85); color:#1f6fce; border-color:#b9d0ee; }
.ny-float[aria-pressed="false"]{ opacity:.9; }
@media (max-width:1099px){ .ny-float{ bottom:84px; } }
body.is-landing .ny-float{ bottom:16px; left:14px; }

/* ---------- 10. КУРСОР-СНЕЖИНКА (только мышь, только если эффекты включены) ---------- */
@media (pointer:fine){
  html[data-ny]:not([data-ny-pyd]):not([data-ny-fx="off"]) body{
    cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cg stroke='%23061a3a' stroke-width='4.2' stroke-linecap='round' fill='none'%3E%3Cpath d='M13 3v20M4.3 8l17.4 10M21.7 8L4.3 18'/%3E%3C/g%3E%3Cg stroke='%23ffffff' stroke-width='2' stroke-linecap='round' fill='none'%3E%3Cpath d='M13 3v20M4.3 8l17.4 10M21.7 8L4.3 18'/%3E%3C/g%3E%3C/svg%3E") 13 13, auto;
  }
}

/* ---------- 11. ПЛАВНОЕ ПОЯВЛЕНИЕ БЛОКОВ ПРИ ПРОКРУТКЕ ---------- */
.ny-rv{ opacity:0; transform:translateY(18px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.ny-rv.ny-in{ opacity:1; transform:none; }

/* ---------- 12. ВЫКЛЮЧЕНО ВЫКЛЮЧАТЕЛЕМ / reduced-motion ---------- */
html[data-ny-fx="off"] .ny-snow,
html[data-ny-fx="off"] .ny-ribbon{ display:none !important; }
html[data-ny-fx="off"] .ny-star,
html[data-ny-fx="off"] .ny-b b::after,
html[data-ny-fx="off"] .ny-tree .tw,
html[data-ny-fx="off"] .ny-tree .st{ animation:none; }
html[data-ny-fx="off"] .ny-b b::after{ opacity:.5; }
html[data-ny-fx="off"] .ny-rv{ opacity:1; transform:none; transition:none; }
@media (prefers-reduced-motion:reduce){
  .ny-snow{ display:none !important; }
  .ny-star,.ny-b b::after,.ny-tree .tw,.ny-tree .st{ animation:none !important; }
  .ny-b b::after{ opacity:.5; }
  .ny-rv{ opacity:1 !important; transform:none !important; transition:none !important; }
  html[data-ny] .live-btn--primary, html[data-ny] .lp-btn--main{ transition:none; }
}

/* ============================================================
   НОВОЕ ОФОРМЛЕНИЕ (лендинг, /map, вход, договор, политика): html[data-ny-pyd]
   Тёмная: IDE — холодные огоньки, поздравление как строка редактора.
   Светлая: «Цифры и лицо» — плоская гирлянда с чёрным контуром, наклейка-поздравление.
   Памятный элемент один: шапка Деда Мороза на маскоте.
   Старые цвета, ёлка, лента и курсор здесь отключены (см. :not([data-ny-pyd]) выше).
   ============================================================ */
html[data-ny-pyd] .ny-tree, html[data-ny-pyd] .ny-ribbon{ display:none !important; }

/* гирлянда под нижней линией шапки */
.ny-garland--hd{ position:absolute; top:100%; left:0; right:0; height:26px; z-index:2; }
.top-pyd.is-menu .ny-garland--hd{ display:none; }
html[data-ny-pyd] .ny-b--w{ --c:#3ddc4a; }
html[data-ny-pyd]:not([data-theme="light"]) .ny-garland path{ stroke:#3a4756; stroke-width:1.5; opacity:1; }
html[data-ny-pyd]:not([data-theme="light"]) .ny-b i{ background:#3a4756; }
html[data-ny-pyd][data-theme="light"] .ny-garland path{ stroke:#111; stroke-width:3; opacity:1; }
html[data-ny-pyd][data-theme="light"] .ny-b{ width:11px; height:15px; margin-left:-5.5px; }
html[data-ny-pyd][data-theme="light"] .ny-b i{ left:2.5px; top:-3px; width:6px; height:5px; background:#111; border-radius:2px 2px 0 0; }
html[data-ny-pyd][data-theme="light"] .ny-b b{ left:0; top:1px; width:11px; height:14px; box-sizing:border-box; border:2.5px solid #111; opacity:1; }
html[data-ny-pyd][data-theme="light"] .ny-b b::after{ display:none; }
html[data-ny-pyd][data-theme="light"] .ny-b--r{ --c:#ff5a4f; } html[data-ny-pyd][data-theme="light"] .ny-b--g{ --c:#ffd43b; }
html[data-ny-pyd][data-theme="light"] .ny-b--i{ --c:#6db6ff; } html[data-ny-pyd][data-theme="light"] .ny-b--w{ --c:#34c53a; }
html[data-ny-pyd][data-theme="light"] .ny-b b{ transform-origin:50% -3px; animation:ny-sway 3.4s ease-in-out infinite; animation-delay:var(--d,0s); will-change:transform; }
@keyframes ny-sway{ 0%,100%{ transform:rotate(-5deg); } 50%{ transform:rotate(5deg); } }

/* кнопка снега рядом с кнопкой темы — цвет как у соседней */
html[data-ny-pyd] .ny-dock.pub-theme{ color:inherit; margin-left:0; order:0; }
html[data-ny-pyd][data-theme="light"] .ny-dock.pub-theme{ color:inherit; }
@media (max-width:860px){ html[data-ny-pyd] .ny-dock.pub-theme{ margin-left:0; order:0; } }

/* поздравление над заголовком */
html[data-ny-pyd] .ny-greet{ display:inline-flex; align-items:center; align-self:flex-start; gap:9px; margin:0; font-style:normal; }
html[data-ny-pyd] .ny-greet svg{ flex:none; }
html[data-ny-pyd]:not([data-theme="light"]) .ny-greet{
  padding:7px 14px; border-radius:10px; background:#131a22; border:0; box-shadow:inset 0 0 0 1px #2d3a48;
  font:500 13px/1.2 var(--pd-mf,"PD Mono",monospace); color:#7cc4ff;
}
html[data-ny-pyd]:not([data-theme="light"]) .ny-greet::before{ content:"#"; color:#6b7c8f; order:-1; margin-right:-3px; }
html[data-ny-pyd][data-theme="light"] .ny-greet{
  padding:8px 16px; border-radius:14px; background:#ffd43b; border:3px solid #111; box-shadow:4px 4px 0 #111; color:#111;
  font:600 16px/1.1 var(--pd-hf,"PD Oswald",sans-serif); text-transform:uppercase; letter-spacing:.03em; transform:rotate(-2deg);
}

/* шапка Деда Мороза на маскоте */
.ny-hat, .ny-hw{ pointer-events:none; }
.ny-hat{ position:absolute; display:block; left:19%; top:-19%; width:40%; transform:rotate(-12deg); transform-origin:50% 90%; }
.ny-hat svg, .ny-hw svg{ display:block; width:100%; height:auto; overflow:visible; }
.pd-stage.is-wow .ny-hat{ animation:pd-hop .7s cubic-bezier(.2,1.4,.4,1); }
.ny-hw{ position:absolute; }
.ny-hw svg{ position:absolute; left:19%; top:-16%; width:38%; transform:rotate(-12deg); transform-origin:50% 90%; }
.ny-hw--lap{ right:-10px; bottom:-34px; width:140px; aspect-ratio:309/329; animation:pd-rise .8s cubic-bezier(.2,1.4,.4,1) 4.9s both; }
.ny-hw--lg{ left:50%; bottom:2%; width:50%; aspect-ratio:309/329; transform:translateX(-50%); animation:lgv-bob 4s ease-in-out infinite; }
.ny-hw--lg svg, .ny-hw--lap svg{ left:19%; top:-19%; width:40%; }
@media (max-width:720px){ .ny-hw--lap{ width:100px; right:-4px; } }
html[data-ny-fx="off"] .ny-b b{ animation:none !important; }
@media (prefers-reduced-motion:reduce){ .ny-b b, .ny-hw--lg, .ny-hw--lap{ animation:none !important; } }
html[data-ny-pyd] .ny-greet span{ color:inherit; font-style:normal; }
html[data-ny-pyd][data-theme="light"] .ny-garland--hd, html[data-ny-pyd][data-theme="light"] .ny-garland{ height:34px; }

/* ---------- сугробы, снеговики, йети и снегоуборщик в кабинете (newyear.js → makeDrift) ---------- */
.ny-yard{ position:fixed; left:0; right:0; bottom:0; height:0; z-index:58; pointer-events:none; }
.ny-yard > span{ position:absolute; left:0; bottom:0; will-change:transform; }
.ny-yard svg{ display:block; overflow:visible; }
.ny-sm svg{ transform-origin:50% 100%; animation:ny-build .9s cubic-bezier(.2,1.4,.4,1) both; }
.ny-sm.is-gone svg{ animation:ny-crumble .4s ease-in forwards; }
@keyframes ny-build{ 0%{ transform:scale(.55,.1); opacity:0; } 60%{ transform:scale(1.05,1.08); opacity:1; } 100%{ transform:none; } }
@keyframes ny-crumble{ to{ transform:scale(1.25,.15); opacity:0; } }
.ny-yeti svg{ transform-origin:50% 100%; animation:ny-walk .5s ease-in-out infinite alternate; }
.ny-yeti.is-left svg{ animation-name:ny-walk-l; }
.ny-yeti.is-smash svg{ animation:ny-smash .18s ease-in-out infinite alternate; }
@keyframes ny-walk{ from{ transform:translateY(0) rotate(-3deg); } to{ transform:translateY(-3px) rotate(3deg); } }
@keyframes ny-walk-l{ from{ transform:scaleX(-1) translateY(0) rotate(-3deg); } to{ transform:scaleX(-1) translateY(-3px) rotate(3deg); } }
@keyframes ny-smash{ from{ transform:scale(1.04,.96) rotate(-6deg); } to{ transform:scale(.97,1.05) rotate(6deg); } }
.ny-plough svg{ animation:ny-rumble .12s linear infinite alternate; }
@keyframes ny-rumble{ from{ transform:translateY(0); } to{ transform:translateY(-1.5px); } }
.ny-plough-btn{
  position:fixed; left:50%; bottom:42px; transform:translateX(-50%); z-index:59;
  display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border-radius:999px;
  font:600 13.5px/1 inherit; cursor:pointer; color:var(--btn-text,#06122b); background:var(--btn-bg,#eaf5ff);
  border:1px solid rgba(255,255,255,.5); box-shadow:0 6px 22px rgba(3,10,30,.35);
  animation:ny-pop .4s cubic-bezier(.2,1.4,.4,1);
}
.ny-plough-btn:hover{ background:var(--btn-bg-h,#fff); }
.ny-plough-btn:focus-visible{ outline:2px solid var(--accent,#78cbff); outline-offset:3px; }
.ny-plough-btn[hidden]{ display:none; }
@keyframes ny-pop{ from{ transform:translateX(-50%) scale(.6); opacity:0; } }
/* на телефоне снег не копится — кнопка уборки не нужна */
@media (max-width:759px){ .ny-plough-btn{ display:none !important; } }
html[data-ny-fx="off"] .ny-yard, html[data-ny-fx="off"] .ny-plough-btn{ display:none !important; }
@media (prefers-reduced-motion:reduce){ .ny-yard, .ny-plough-btn{ display:none !important; } }

/* ---------- пейзаж за кабинетом (newyear.js → sceneSvg) ----------
   Отдельный неподвижный слой позади страницы: рисуется один раз, при прокрутке не перерисовывается. */
.ny-scene{ position:fixed; inset:0; z-index:-1; pointer-events:none; transform:translateZ(0); contain:strict; opacity:.8; }
html[data-theme="light"] .ny-scene{ opacity:.55; }
.ny-scene svg{ display:block; width:100%; height:100%; }
html[data-ny-scene]{ background:var(--bg); }
html[data-ny-scene] body{ background:transparent; }
.ny-scene{
  --s1:#040b1f; --s2:#0c1d47; --s3:#1d3270; --star:#dfe9ff; --moon:#fff3cf; --cut:#06102b;
  --far:#22356a; --mid:#172a57; --pine:#0d1d3d; --snow:#e8f1ff; --trunk:#2b1d14;
  --house:#3a2618; --roof:#22150d; --chim:#4a3426; --win:#ffcf6b; --frame:#6b4a2c; --door:#2a1a10;
  --gr:#5f78a8; --gr2:#7890bd;
}
html[data-theme="light"] .ny-scene{
  --s1:#8fbcec; --s2:#c6def8; --s3:#eaf4ff; --star:transparent; --moon:#ffffff; --cut:transparent;
  --far:#9cb4d8; --mid:#b6cae6; --pine:#35577f; --snow:#ffffff; --trunk:#5a3d28;
  --house:#8a5a36; --roof:#5e3a22; --chim:#7a5236; --win:#ffd98a; --frame:#5e3a22; --door:#5a3720;
  --gr:#ffffff; --gr2:#f6faff;
}
.ny-scene .s-sky1{ stop-color:var(--s1); } .ny-scene .s-sky2{ stop-color:var(--s2); } .ny-scene .s-sky3{ stop-color:var(--s3); }
.ny-scene .s-star{ fill:var(--star); } .ny-scene .s-moon{ fill:var(--moon); } .ny-scene .s-sky-cut{ fill:var(--cut); }
.ny-scene .s-far{ fill:var(--far); } .ny-scene .s-mid{ fill:var(--mid); } .ny-scene .s-pine{ fill:var(--pine); }
.ny-scene .s-snow{ fill:var(--snow); } .ny-scene .s-trunk{ fill:var(--trunk); }
.ny-scene .s-house{ fill:var(--house); } .ny-scene .s-roof{ fill:var(--roof); } .ny-scene .s-chim{ fill:var(--chim); }
.ny-scene .s-win{ fill:var(--win); } .ny-scene .s-frame{ stroke:var(--frame); stroke-width:3; fill:none; } .ny-scene .s-door{ fill:var(--door); }
.ny-scene .s-ground{ fill:var(--gr); } .ny-scene .s-ground2{ fill:var(--gr2); }
html[data-ny-fx="off"] .ny-scene{ display:none; }
html[data-ny-fx="off"][data-ny-scene] body{ background:var(--bg); }

/* ---------- домик в боковой колонке, рядом с ёлкой (newyear.js → cabinSvg) ---------- */
.ny-cabin{ position:fixed; left:18px; bottom:112px; z-index:58; width:170px; height:120px; pointer-events:none; display:none; }
.ny-cabin svg{ display:block; width:100%; height:100%; overflow:visible; filter:drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
@media (max-height:879px){ .ny-cabin{ width:136px; height:96px; } }
@media (min-width:1100px) and (min-height:800px){ html:not([data-side="min"]) .ny-cabin{ display:block; } }
/* ёлку сдвигаем правее домика, чтобы стояли рядом */
@media (min-width:1100px) and (min-height:800px){ html[data-ny-scene]:not([data-side="min"]) .ny-tree{ left:184px; bottom:114px; } }
.ny-cabin{ --c-wall:#5a3a22; --c-roof:#2e1c10; --c-chim:#6b4a33; --c-win:#ffcf6b; --c-frame:#7a5532; --c-door:#3a2414; --c-pine:#123056; --c-snow:#eef5ff; --c-trunk:#3a2616; --c-smoke:rgba(220,232,255,.55); }
html[data-theme="light"] .ny-cabin{ --c-pine:#2e5a86; --c-snow:#ffffff; --c-smoke:rgba(150,170,200,.5); }
.ny-cabin .c-wall{ fill:var(--c-wall); } .ny-cabin .c-roof{ fill:var(--c-roof); } .ny-cabin .c-chim{ fill:var(--c-chim); }
.ny-cabin .c-win{ fill:var(--c-win); animation:ny-cozy 3.6s ease-in-out infinite; }
.ny-cabin .c-win--b{ animation-delay:-1.7s; }
.ny-cabin .c-frame{ stroke:var(--c-frame); stroke-width:2; fill:none; } .ny-cabin .c-door{ fill:var(--c-door); }
.ny-cabin .c-pine{ fill:var(--c-pine); } .ny-cabin .c-snow{ fill:var(--c-snow); } .ny-cabin .c-trunk{ fill:var(--c-trunk); }
.ny-cabin .c-glow{ animation:ny-cozy 3.6s ease-in-out infinite; }
.ny-cabin .c-smoke circle{ fill:var(--c-smoke); transform-box:fill-box; transform-origin:center; animation:ny-smoke 3.2s ease-out infinite; }
.ny-cabin .c-smoke circle:nth-child(2){ animation-delay:-1.07s; } .ny-cabin .c-smoke circle:nth-child(3){ animation-delay:-2.14s; }
@keyframes ny-cozy{ 0%,100%{ opacity:1; } 45%{ opacity:.82; } 55%{ opacity:.95; } }
@keyframes ny-smoke{ 0%{ transform:translate(0,14px) scale(.5); opacity:0; } 25%{ opacity:.9; } 100%{ transform:translate(6px,-16px) scale(1.4); opacity:0; } }
html[data-ny-fx="off"] .ny-cabin .c-win, html[data-ny-fx="off"] .ny-cabin .c-glow, html[data-ny-fx="off"] .ny-cabin .c-smoke circle{ animation:none; }
@media (prefers-reduced-motion:reduce){ .ny-cabin .c-win, .ny-cabin .c-glow, .ny-cabin .c-smoke circle{ animation:none !important; } }
