/* Добрый VPN — новогоднее настроение 2027.
   Подключение: <link rel="stylesheet" href="/ny/ny.css"> + <script src="/ny/ny.js" defer></script>.
   Всё оформление в стиле сайта: тёмный контур, жёсткие смещённые тени, цвета бренда. */
:root {
  --ny-ink: #10140C;
  --ny-red: #E0492C;
  --ny-lime: #BCE645;
  --ny-amber: #E8B23A;
  --ny-mint: #7FE3D8;
  --ny-pink: #E89AB0;
  --ny-blue: #229ED9;
  --ny-green: #1C5638;
  --ny-snow: #FFFFFF;
  --ny-snow-shade: #DDEBE8;
}

/* ---------- гирлянда ---------- */
html.ny-home body, html.ny-sub body, html.ny-other body { padding-top: 26px; }
.ny-garland { position: absolute; left: 0; right: 0; top: 0; height: 46px; z-index: 60; pointer-events: none; overflow: visible; }
.ny-garland svg { display: block; overflow: visible; }
.ny-wire { fill: none; stroke: var(--ny-ink); stroke-width: 2.2; stroke-linecap: round; }
.ny-hook { fill: var(--ny-ink); }
.ny-b { pointer-events: auto; cursor: pointer; }
html.ny-cab .ny-b { pointer-events: none; }
.ny-sw { transform-box: fill-box; transform-origin: 50% 0; animation: nySway 3.4s ease-in-out infinite alternate; animation-delay: calc(var(--r) * -1); }
.ny-glass { opacity: .34; }
.ny-glow { opacity: 0; }
.m-steady .ny-glass { opacity: 1; animation: nyBreath 2.8s ease-in-out infinite; }
.m-steady .ny-glow { opacity: .9; animation: nyBreathG 2.8s ease-in-out infinite; }
.m-twinkle .ny-glass { animation: nyOn 1.5s ease-in-out infinite alternate; animation-delay: calc(var(--r) * -1); }
.m-twinkle .ny-glow { animation: nyOnG 1.5s ease-in-out infinite alternate; animation-delay: calc(var(--r) * -1); }
.m-chase .ny-glass { animation: nyChase 1.4s linear infinite; animation-delay: calc(var(--i) * -.12s); }
.m-chase .ny-glow { animation: nyChaseG 1.4s linear infinite; animation-delay: calc(var(--i) * -.12s); }
.m-wave .ny-glass { animation: nyOn 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.22s); }
.m-wave .ny-glow { animation: nyOnG 1.1s ease-in-out infinite alternate; animation-delay: calc(var(--k) * -.22s); }
.m-flash .ny-glass { opacity: 1; animation: nyFlash .22s steps(2) 8; }
.m-flash .ny-glow { opacity: 1; animation: nyFlashG .22s steps(2) 8; }
@keyframes nySway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes nyOn { from { opacity: .3; } to { opacity: 1; } }
@keyframes nyOnG { from { opacity: 0; } to { opacity: .95; } }
@keyframes nyBreath { 0%, 100% { opacity: .82; } 50% { opacity: 1; } }
@keyframes nyBreathG { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes nyChase { 0%, 28% { opacity: 1; } 34%, 100% { opacity: .3; } }
@keyframes nyChaseG { 0%, 28% { opacity: .95; } 34%, 100% { opacity: 0; } }
@keyframes nyFlash { 0% { opacity: .3; } 100% { opacity: 1; } }
@keyframes nyFlashG { 0% { opacity: 0; } 100% { opacity: 1; } }

/* ---------- снег ---------- */
.ny-snow { position: fixed; inset: 0; z-index: 45; pointer-events: none; }

/* ---------- сугробы на кнопках и карточках ---------- */
.ny-cap { position: absolute; left: -5px; right: -5px; top: -11px; height: 20px; pointer-events: none; z-index: 3;
  background: no-repeat center / 100% 100%; }
.ny-cap.in { top: -1px; left: 4px; right: 4px; height: 15px; }
.ny-cap.sm { top: -7px; height: 12px; }
.ny-cap.in.sm { top: -1px; height: 8px; }
.ny-cap.v1 { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'><path d='M3 17 C 5 9 14 6 25 8 C 35 2 49 3 59 7 C 71 1 86 2 98 6 C 112 0 129 2 141 7 C 153 2 168 4 179 8 C 189 6 197 10 197 16 C 198 20 195 21 191 20 C 186 20 185 23 181 23 C 177 23 176 20 171 20 L 121 20 C 117 20 116 24 112 24 C 108 24 107 20 103 20 L 61 20 C 57 20 57 22 53 22 C 49 22 49 20 45 20 L 11 20 C 6 21 2 20 3 17 Z' fill='white' stroke='%2310140C' stroke-width='1.6' vector-effect='non-scaling-stroke'/><path d='M10 17 C 60 15 140 15 190 17' stroke='%23DDEBE8' stroke-width='2.5' fill='none' vector-effect='non-scaling-stroke'/></svg>"); }
.ny-cap.v2 { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'><path d='M3 18 C 4 11 12 7 22 9 C 30 4 42 4 50 9 C 64 3 78 4 88 8 C 104 2 118 3 128 8 C 140 4 156 3 166 8 C 180 5 196 9 197 17 C 198 20 196 21 192 21 L 150 21 C 146 21 145 24 141 24 C 137 24 136 21 132 21 L 80 21 C 76 21 75 23 71 23 C 67 23 66 21 62 21 L 9 21 C 4 21 2 20 3 18 Z' fill='white' stroke='%2310140C' stroke-width='1.6' vector-effect='non-scaling-stroke'/><path d='M12 18 C 70 16 130 16 188 18' stroke='%23DDEBE8' stroke-width='2.5' fill='none' vector-effect='non-scaling-stroke'/></svg>"); }
.ny-cap.v3 { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 24' preserveAspectRatio='none'><path d='M3 17 C 6 8 18 5 30 9 C 44 1 60 2 72 8 C 84 3 96 4 104 8 C 118 2 136 1 150 7 C 164 2 184 5 197 15 C 199 19 196 21 192 21 L 172 21 C 168 21 168 24 164 24 C 160 24 160 21 156 21 L 96 21 C 92 21 91 23 87 23 C 83 23 83 21 79 21 L 34 21 C 30 21 30 23 26 23 C 22 23 22 21 18 21 L 9 21 C 4 21 2 20 3 17 Z' fill='white' stroke='%2310140C' stroke-width='1.6' vector-effect='non-scaling-stroke'/><path d='M12 17 C 70 15 130 15 188 17' stroke='%23DDEBE8' stroke-width='2.5' fill='none' vector-effect='non-scaling-stroke'/></svg>"); }

/* ---------- колпак Деда Мороза ---------- */
.ny-hat { position: absolute; pointer-events: none; z-index: 4; display: block; }
.ny-hat svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(1px 2px 0 rgba(16, 20, 12, .25)); }
.ny-hat-host { position: relative; }
.brand .ny-hat { width: 32px; left: 24px; top: -18px; transform: rotate(20deg); }
.brand-mark .ny-hat { width: 24px; left: 13px; top: -13px; transform: rotate(20deg); }
.ny-letter { position: relative; display: inline-block; }
.ny-letter .ny-hat { width: .56em; left: auto; right: -.22em; top: -.27em; transform: rotate(16deg); }

/* ---------- отсчёт до Нового года ---------- */
.ny-count { display: inline-flex; align-items: center; gap: 10px; margin: 2px 0 22px; padding: 9px 16px 9px 12px; border: 2px solid var(--ny-ink);
  border-radius: 999px; background: #FAF7EC; box-shadow: 4px 4px 0 var(--ny-lime); font-weight: 700; font-size: 15px; color: var(--ny-ink);
  font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ny-count svg { width: 22px; height: 22px; flex: none; }
.ny-count b { font-weight: 900; }
.ny-count .u { font-weight: 600; opacity: .7; margin-right: 4px; }
.ny-count.done { box-shadow: 4px 4px 0 var(--ny-red); }
.ny-count.sm { font-size: 13.5px; padding: 7px 13px 7px 10px; margin: 16px 0 2px; box-shadow: 3px 3px 0 var(--ny-lime); gap: 8px; }
.ny-count.sm svg { width: 19px; height: 19px; }
.ny-count.in-cab { margin: 4px 0 16px; }
html.ny-cab .login .ny-count { align-self: flex-start; }

/* ---------- ёлка в первом экране ---------- */
.ny-tree { position: absolute; right: max(2vw, 16px); bottom: 30px; width: min(44vw, 640px); z-index: 2; user-select: none; -webkit-user-select: none; }
.ny-tree svg { display: block; width: 100%; height: auto; overflow: visible; }
.ny-star { cursor: pointer; transform-box: fill-box; transform-origin: 50% 55%; animation: nyStar 4s ease-in-out infinite; }
.ny-star-glow { animation: nyStarGlow 2.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes nyStar { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes nyStarGlow { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
.ny-star.spin { animation: nySpin .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes nySpin { from { transform: rotate(0); } to { transform: rotate(360deg) scale(1.08); } }
.ny-orn { cursor: grab; transform-box: fill-box; transform-origin: 50% 0; }
.ny-orn.swing { animation: nySwing 1.4s ease-out; }
@keyframes nySwing { 0% { transform: rotate(0); } 15% { transform: rotate(16deg); } 35% { transform: rotate(-12deg); } 55% { transform: rotate(8deg); } 75% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
.ny-gift { cursor: pointer; transform-box: fill-box; transform-origin: 50% 100%; transition: transform .2s; }
.ny-gift:hover { transform: translateY(-5px) rotate(-2deg); }
.ny-gift .lid { transform-box: fill-box; transform-origin: 0% 100%; transition: transform .35s cubic-bezier(.2, 1.6, .4, 1); }
.ny-gift.open .lid { transform: translate(-4px, -16px) rotate(-24deg); }
.ny-tree .ny-b { pointer-events: none; }
.ny-hint { position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%) rotate(-3deg); background: var(--ny-ink); color: #fff; font-weight: 700;
  font-size: 13px; padding: 6px 11px; border-radius: 10px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .4s; }
.ny-hint::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--ny-ink); }
.ny-hint.show { opacity: 1; }
@media (max-width: 1100px) { .ny-tree { width: min(48vw, 520px); right: 12px; } }
@media (max-width: 760px) {
  .ny-tree { position: relative; right: auto; bottom: auto; width: min(100%, 470px); margin: 26px auto 0; }
  .ny-count { font-size: 14px; margin-bottom: 18px; }
}

/* ---------- подарок в шапке звенит ---------- */
.ny-jingle { animation: nyJingle 5s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes nyJingle { 0%, 84%, 100% { transform: rotate(0); } 87% { transform: rotate(-7deg); } 90% { transform: rotate(6deg); } 93% { transform: rotate(-4deg); } 96% { transform: rotate(2deg); } }

/* ---------- подвал: сугроб и звёзды ---------- */
.ny-drift { position: absolute; left: 0; right: 0; top: -26px; height: 44px; pointer-events: none; z-index: 2; }
.ny-drift.in { top: -1px; height: 40px; z-index: 3; }
.ny-drift svg { width: 100%; height: 100%; display: block; }
.ny-stars { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.ny-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, .7);
  animation: nyTw 2.6s ease-in-out infinite alternate; animation-delay: var(--d); opacity: .2; }
.ny-stars i.b { width: 4px; height: 4px; background: var(--ny-lime); box-shadow: 0 0 8px 2px rgba(188, 230, 69, .6); }
@keyframes nyTw { from { opacity: .15; transform: scale(.7); } to { opacity: 1; transform: scale(1.1); } }

/* ---------- выключатель снега ---------- */
.ny-toggle { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 70; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--ny-ink); background: #FAF7EC; box-shadow: 3px 3px 0 var(--ny-ink); display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: transform .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.ny-toggle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ny-ink); }
.ny-toggle:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ny-ink); }
.ny-toggle svg { width: 24px; height: 24px; }
.ny-toggle.off svg { opacity: .35; }
.ny-toggle.off::after { content: ""; position: absolute; width: 30px; height: 2px; background: var(--ny-red); transform: rotate(-45deg); border-radius: 2px; }
.ny-toggle:focus-visible { outline: 3px solid var(--ny-lime); outline-offset: 2px; }
html.ny-cab .ny-toggle { width: 40px; height: 40px; opacity: .9; }
html.ny-cab .ny-toggle svg { width: 21px; height: 21px; }
html.ny-cab.ny-tabbar .ny-toggle { bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }

/* ---------- салют ---------- */
.ny-fx { position: fixed; inset: 0; z-index: 80; pointer-events: none; }

/* ---------- бережём глаза и батарейку ---------- */
@media (prefers-reduced-motion: reduce) {
  .ny-sw, .ny-star, .ny-star-glow, .ny-jingle, .ny-stars i, .m-twinkle .ny-glass, .m-twinkle .ny-glow, .m-chase .ny-glass, .m-chase .ny-glow, .m-wave .ny-glass, .m-wave .ny-glow { animation: none !important; }
  .ny-garland .ny-glass { opacity: 1 !important; }
  .ny-garland .ny-glow { opacity: .8 !important; }
}
html.ny-calm .ny-sw, html.ny-calm .ny-glass, html.ny-calm .ny-glow { animation: none !important; }
html.ny-calm .ny-glass { opacity: 1 !important; }
html.ny-calm .ny-glow { opacity: .75 !important; }

/* кабинет: колпак выходит за круг аватара — картинку скругляем саму */
html.ny-cab .ava img, html.ny-cab .ava svg { border-radius: 50%; }
html.ny-cab .ny-hat svg { filter: drop-shadow(1px 1px 0 rgba(16, 20, 12, .3)); }


/* ---------- мягкий снег на больших карточках (без контура) ---------- */
.ny-cap.soft { height: 16px; top: -9px; filter: drop-shadow(0 2px 2px rgba(16, 40, 28, .22)); }
.ny-cap.soft.in { height: 10px; top: -1px; filter: none; }
.ny-cap.soft.v1, .ny-cap.soft.v2, .ny-cap.soft.v3 { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><defs><linearGradient id='g' x1='0' y1='0' x2='0' y2='1'><stop offset='0' stop-color='white'/><stop offset='.7' stop-color='white'/><stop offset='1' stop-color='%23DCE9E6'/></linearGradient></defs><path d='M2 16 C 4 9 12 6 22 8 C 34 2 50 3 62 7 C 76 2 92 2 104 6 C 118 1 134 2 146 7 C 160 3 176 4 186 8 C 194 8 199 12 198 16 C 197 19 192 19 186 18 C 182 18 181 20 177 20 C 173 20 172 18 168 18 L 112 18 C 108 18 107 20 103 20 C 99 20 98 18 94 18 L 40 18 C 36 18 36 20 32 20 C 28 20 28 18 24 18 L 8 18 C 4 18 1 18 2 16 Z' fill='url(%23g)'/></svg>"); }

/* ---------- промокод-подарок ---------- */
.ny-promo { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; padding: 8px 8px 8px 12px; border: 2px solid var(--ny-ink);
  border-radius: 18px; background: #FAF7EC; box-shadow: 4px 4px 0 var(--ny-red); color: var(--ny-ink); font-weight: 600; font-size: 15px; max-width: 100%; }
.ny-promo-ico svg { width: 30px; height: 30px; display: block; animation: nyGiftHop 3.2s ease-in-out infinite; }
@keyframes nyGiftHop { 0%, 78%, 100% { transform: translateY(0) rotate(0); } 84% { transform: translateY(-5px) rotate(-6deg); } 90% { transform: translateY(0) rotate(4deg); } }
.ny-promo-t b { font-weight: 900; }
.ny-code { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 14px; border: 2px dashed var(--ny-ink); border-radius: 12px; background: var(--ny-lime);
  color: var(--ny-ink); font: 900 17px/1.05 var(--font-display, inherit); letter-spacing: .08em; cursor: pointer; transition: transform .15s, background .15s; }
.ny-code i { font: 600 10.5px/1 var(--font-body, inherit); letter-spacing: 0; font-style: normal; opacity: .75; }
.ny-code:hover { transform: translateY(-1px) rotate(-1deg); background: #D6F25A; }
.ny-code.ok { background: var(--ny-mint); }
.ny-code:focus-visible { outline: 3px solid var(--ny-ink); outline-offset: 2px; }
.ny-code.big { font-size: 26px; padding: 10px 22px; margin: 6px auto 4px; }
.ny-code.big i { font-size: 12px; }
.ny-promo-how { margin: 0 0 22px; font-size: 13.5px; color: var(--ink-soft, #2B3327); }
.ny-promo-how a { color: var(--green, #1C5638); font-weight: 700; }
.ny-promo.sm { margin: 16px 0 2px; font-size: 13.5px; box-shadow: 3px 3px 0 var(--ny-red); padding: 7px 12px 7px 9px; }
.ny-promo.sm .ny-promo-ico svg { width: 24px; height: 24px; }
html.ny-cab .login .ny-promo { align-self: flex-start; }

/* открытка с подарком */
.ny-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: rgba(16, 20, 12, .45); backdrop-filter: blur(3px); animation: nyFade .2s ease; }
.ny-modal.out { opacity: 0; transition: opacity .2s; }
@keyframes nyFade { from { opacity: 0; } to { opacity: 1; } }
.ny-card { position: relative; width: min(400px, 100%); padding: 34px 24px 22px; border: 2px solid var(--ny-ink); border-radius: 26px; background: #FAF7EC; text-align: center;
  box-shadow: 10px 10px 0 var(--ny-red); animation: nyPop .45s cubic-bezier(.2, 1.4, .4, 1); color: var(--ny-ink); }
@keyframes nyPop { from { transform: scale(.7) rotate(-6deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ny-card h3 { margin: 2px 0 8px; font: 900 26px/1.1 var(--font-display, inherit); }
.ny-card p { margin: 0 0 10px; font-size: 15px; }
.ny-card-k { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--ny-ink); color: var(--ny-lime); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ny-card-bow { position: absolute; left: 50%; top: -34px; width: 64px; margin-left: -32px; }
.ny-card-bow svg { width: 64px; height: 64px; filter: drop-shadow(3px 3px 0 rgba(16, 20, 12, .25)); animation: nyGiftHop 2.6s ease-in-out infinite; }
.ny-card-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.ny-btn { display: inline-flex; align-items: center; padding: 11px 18px; border: 2px solid var(--ny-ink); border-radius: 14px; background: #fff; color: var(--ny-ink); font-weight: 800; text-decoration: none; box-shadow: 3px 3px 0 var(--ny-ink); transition: transform .15s, box-shadow .15s; }
.ny-btn.lime { background: var(--ny-lime); }
.ny-btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ny-ink); }
.ny-x { position: absolute; right: 10px; top: 8px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ny-ink); }

/* кабинет: карточка подарка */
.ny-gift-card { display: flex !important; align-items: center; gap: 12px; position: relative; margin-bottom: 14px; border: 2px dashed rgba(224, 73, 44, .55) !important; }
.ny-gift-ico svg { width: 40px; height: 40px; display: block; animation: nyGiftHop 3.2s ease-in-out infinite; }
.ny-gift-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ny-gift-t b { font-size: 16px; }
.ny-gift-t code { font-weight: 900; letter-spacing: .06em; background: var(--ny-lime); color: var(--ny-ink); padding: 1px 6px; border-radius: 6px; }
.ny-gift-x { position: absolute; right: 6px; top: 2px; border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: inherit; opacity: .45; padding: 4px; }
.ny-gift-x:hover { opacity: .9; }
.ny-gift-go { flex: none; }

/* ---------- бант на карточке тарифа ---------- */
.ny-bow { position: absolute; left: -26px; top: -40px; width: 92px; z-index: 4; pointer-events: none; transform: rotate(-14deg); filter: drop-shadow(3px 3px 0 rgba(16, 20, 12, .25)); }
.ny-bow svg { display: block; width: 100%; height: auto; }

/* ---------- шаги-шарики ---------- */
html.ny-home .step__num { position: relative; border-radius: 50%; border: 2px solid var(--ny-ink); box-shadow: inset -4px -5px 0 rgba(16, 20, 12, .14), inset 5px 4px 0 rgba(255, 255, 255, .35); overflow: visible; }
html.ny-home .step__num::before { content: ""; position: absolute; left: 50%; top: -7px; width: 12px; height: 7px; margin-left: -6px; background: var(--ny-ink); border-radius: 2px 2px 1px 1px; }
html.ny-home .step__num::after { content: ""; position: absolute; left: 50%; top: -15px; width: 8px; height: 9px; margin-left: -4px; border: 2px solid var(--ny-ink); border-bottom: 0; border-radius: 6px 6px 0 0; }

/* ---------- сани с котом в подвале ---------- */
.ny-sleigh { position: absolute; left: 0; top: 18px; width: 200px; z-index: 1; pointer-events: none; animation: nySleigh 13s linear infinite; animation-delay: 2s; transform: translateX(-240px); }
.ny-sl-bob { animation: nyBob 1.3s ease-in-out infinite alternate; }
.ny-sleigh svg { display: block; width: 100%; height: auto; overflow: visible; }
.ny-sl-trail circle { animation: nyTrail .9s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes nySleigh { 0% { transform: translateX(-240px); } 62% { transform: translateX(calc(100vw + 40px)); } 100% { transform: translateX(calc(100vw + 40px)); } }
@keyframes nyBob { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(10px) rotate(2deg); } }
@keyframes nyTrail { from { opacity: .2; } to { opacity: 1; } }
@media (max-width: 760px) { .ny-sleigh { width: 140px; top: 10px; } }

/* ---------- зимний пейзаж в бирюзовом разделе ---------- */
.ny-land { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ny-land svg { display: block; position: absolute; left: 0; top: 0; overflow: visible; }
.ny-win { animation: nyWin 3.4s ease-in-out infinite alternate; }
@keyframes nyWin { from { fill: #E8B23A; } to { fill: #FFD873; } }

@media (prefers-reduced-motion: reduce) { .ny-promo-ico svg, .ny-gift-ico svg, .ny-card-bow svg, .ny-sl-bob, .ny-win { animation: none !important; } }

/* кабинет: кнопка снега под окнами приложения (не закрывает «Активировать») */
html.ny-cab .ny-toggle { z-index: 9; }


/* ---------- двор: подсказка у подарков, подарки зовут ---------- */
.ny-gift-hint { left: 30%; top: auto; bottom: 60%; transform: translate(-50%, 0) rotate(-3deg); font-size: 14px; padding: 7px 12px; background: var(--ny-red); box-shadow: 3px 3px 0 var(--ny-ink); border: 2px solid var(--ny-ink); }
.ny-gift-hint::after { display: none; }
.ny-gift-hint.show { animation: nyHintBob 1.6s ease-in-out infinite; }
@keyframes nyHintBob { 0%, 100% { transform: translate(-50%, 0) rotate(-3deg); } 50% { transform: translate(-50%, -6px) rotate(-1deg); } }
.ny-arr { display: inline-block; margin-left: 2px; }
.ny-gift.attn { animation: nyAttn 2.6s ease-in-out infinite; filter: drop-shadow(0 0 5px rgba(188, 230, 69, .9)); }
.ny-gift.g2.attn { animation-delay: -.9s; } .ny-gift.g3.attn { animation-delay: -1.7s; }
@keyframes nyAttn { 0%, 70%, 100% { transform: rotate(0) translateY(0); } 76% { transform: rotate(-5deg) translateY(-4px); } 82% { transform: rotate(4deg) translateY(-2px); } 88% { transform: rotate(-2deg) translateY(0); } }
.ny-smoke circle { animation: nySmoke 3.6s ease-in infinite; transform-box: fill-box; transform-origin: center; opacity: 0; }
.ny-smoke circle:nth-child(2) { animation-delay: 1.2s; } .ny-smoke circle:nth-child(3) { animation-delay: 2.4s; }
@keyframes nySmoke { 0% { opacity: 0; transform: translate(0, 20px) scale(.5); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(8px, -26px) scale(1.4); } }
.ny-wave { transform-box: fill-box; transform-origin: 0% 100%; animation: nyWave 1.6s ease-in-out infinite alternate; }
@keyframes nyWave { from { transform: rotate(-8deg); } to { transform: rotate(18deg); } }

/* ---------- конфеты и леденцы ---------- */
.ny-candy { position: absolute; width: 70px; z-index: 3; pointer-events: auto; transform: rotate(var(--r)); animation: nyCandy 4.5s ease-in-out infinite alternate; filter: drop-shadow(3px 3px 0 rgba(16, 20, 12, .2)); cursor: grab; }
.ny-candy svg { display: block; width: 100%; height: auto; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.ny-candy:hover svg { transform: rotate(160deg) scale(1.15); }
@keyframes nyCandy { from { translate: 0 0; } to { translate: 0 -10px; } }
@media (max-width: 760px) { .ny-candy:not(.keep) { display: none; } .ny-candy { width: 52px; } }
.ny-canes { position: absolute; right: -62px; bottom: -58px; width: 170px; z-index: 0; pointer-events: none; }
.ny-canes svg { display: block; width: 100%; height: auto; overflow: visible; }
.ny-over { z-index: 1; }
@media (max-width: 760px) { .ny-canes { right: -16px; bottom: -48px; width: 120px; } }

/* ---------- подвал: луна, олени ---------- */
.ny-moon { position: absolute; right: 7%; top: 30px; width: 84px; z-index: 0; pointer-events: none; filter: drop-shadow(0 0 22px rgba(246, 241, 216, .45)); }
.ny-moon svg { display: block; width: 100%; height: auto; }
.ny-sleigh { width: 400px; }
@media (max-width: 760px) { .ny-sleigh { width: 260px; } .ny-moon { width: 56px; right: 6%; } }
.ny-nose { animation: nyNose 1.4s ease-in-out infinite alternate; }
@keyframes nyNose { from { fill: #E0492C; } to { fill: #FF7A5C; } }
.ny-legs { transform-box: fill-box; transform-origin: 50% 0; animation: nyLegs .5s ease-in-out infinite alternate; }
@keyframes nyLegs { from { transform: skewX(-8deg); } to { transform: skewX(8deg); } }

/* ---------- кабинет: наш кот вместо листика, гирлянда не лезет на кнопки ---------- */
html.ny-cab .logo.ny-cat { background: transparent !important; padding: 0; overflow: visible; }
html.ny-cab .logo.ny-cat .ny-catlogo { width: 100%; height: 100%; display: block; border-radius: inherit; object-fit: cover; }
html.ny-cab .app { margin-top: 22px; height: calc(100vh - 22px); height: calc(100dvh - 22px); }
html.ny-cab .ny-garland { height: 30px; }
@media (prefers-reduced-motion: reduce) { .ny-gift.attn, .ny-smoke circle, .ny-wave, .ny-candy, .ny-nose, .ny-legs, .ny-gift-hint.show { animation: none !important; } }

.ny-promo.sm { flex-wrap: nowrap; }
.ny-promo.sm .ny-promo-t { flex: 1; min-width: 0; }

/* ===== v11: объёмный кот в санях, отзывы-открытки, колпак качается с котом, фон кабинета ===== */
/* кот «Добавь подписку»: кот и колпак качаются вместе */
html.ny-home .ny-bob { position: relative; z-index: 2; display: block; width: min(100%, 600px); animation: fvBob 7s ease-in-out infinite; }
html.ny-home .ny-bob > .howto__img { width: 100%; animation: none; display: block; }
html.ny-home .ny-cat-hat { z-index: 3; transform: rotate(14deg); transform-origin: 50% 92%; }

/* сани: кот сидит, сзади гора подарков, звёздный след */
.ny-sleigh { width: 420px; top: 4px; }
.ny-sleigh svg { filter: drop-shadow(4px 5px 0 rgba(16, 20, 12, .28)); }
.ny-tw { transform-box: fill-box; transform-origin: center; animation: nyTw 1.1s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes nyTw { from { opacity: .2; transform: scale(.55) rotate(0deg); } to { opacity: 1; transform: scale(1.1) rotate(20deg); } }
.ny-bells { transform-box: fill-box; transform-origin: 50% 0; animation: nyBell .32s ease-in-out infinite alternate; }
@keyframes nyBell { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@media (max-width: 760px) { .ny-sleigh { width: 270px; top: 6px; } }

/* отзывы: открытки на прищепках висят на гирлянде, штемпель «С НГ 2027» */
html.ny-home .ny-rh .rh-track { position: relative; padding-top: 50px; }
.ny-rope { position: absolute; left: 0; top: 0; height: 60px; z-index: 0; pointer-events: none; }
.ny-rope svg { display: block; overflow: visible; }
.ny-rope .ny-b { pointer-events: none; cursor: default; }
html.ny-home .ny-rh .rh-card { position: relative; z-index: 1; transform: rotate(var(--rot, 0deg)); transform-origin: 50% -36px; transition: transform .6s cubic-bezier(.2, 1.5, .4, 1); }
html.ny-home .ny-rh .rh-card:hover { transform: rotate(calc(var(--rot, 0deg) * -1.6)); }
.ny-pin { position: absolute; left: 50%; top: -38px; width: 15px; margin-left: -7.5px; z-index: 3; pointer-events: none; }
.ny-pin svg { display: block; width: 100%; height: auto; filter: drop-shadow(1px 2px 0 rgba(16, 20, 12, .25)); }
.ny-stamp { position: absolute; right: -14px; top: -18px; width: 58px; transform: rotate(16deg); opacity: .88; pointer-events: none; z-index: 2; mix-blend-mode: multiply; }
.ny-stamp svg { display: block; width: 100%; height: auto; }
@media (max-width: 760px) { .ny-stamp { width: 48px; right: -8px; top: -14px; } }

/* кабинет: праздничный фон под карточками */
.ny-cabbg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ny-cabbg::before { content: ""; position: absolute; inset: 0; opacity: .11;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%231C5638' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M44 20v40M26.7 30l34.6 20M26.7 50l34.6-20M44 20l-5 5M44 20l5 5M44 60l-5-5M44 60l5-5'/%3E%3Cpath d='M146 118v26M134.7 124.5l22.6 13M134.7 137.5l22.6-13'/%3E%3C/g%3E%3Cg fill='%23E0492C'%3E%3Cpath d='M138 30l3.4 8 8 3.4-8 3.4-3.4 8-3.4-8-8-3.4 8-3.4z'/%3E%3Ccircle cx='70' cy='156' r='3.4'/%3E%3C/g%3E%3Cg fill='%23E8B23A'%3E%3Ccircle cx='178' cy='78' r='3'/%3E%3Cpath d='M34 120l2.6 6 6 2.6-6 2.6-2.6 6-2.6-6-6-2.6 6-2.6z'/%3E%3Ccircle cx='104' cy='92' r='2.2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 200px 200px; }
.ny-cabbg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 38% at 88% 0%, rgba(232, 178, 58, .16), transparent 70%), radial-gradient(50% 36% at 8% 100%, rgba(127, 227, 216, .2), transparent 72%); }
.ny-cb-orn { position: absolute; right: 6px; top: 16px; z-index: 1; }
.ny-cb-orn svg { display: block; overflow: visible; filter: drop-shadow(2px 3px 0 rgba(16, 20, 12, .18)); }
.ny-hang { transform-box: fill-box; transform-origin: 50% 0; animation: nyOrn 3.6s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes nyOrn { from { transform: rotate(-5deg); } to { transform: rotate(5deg); } }
.ny-cb-land { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; }
.ny-cb-land svg { display: block; position: absolute; left: 0; bottom: 0; overflow: visible; }
.ny-lamp { animation: nyLamp 2.6s ease-in-out infinite alternate; }
@keyframes nyLamp { from { opacity: .25; } to { opacity: .6; } }
:root[data-theme="dark"] .ny-cabbg::before { opacity: .07; filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .ny-cabbg::after { background: radial-gradient(55% 38% at 88% 0%, rgba(232, 178, 58, .12), transparent 70%), radial-gradient(50% 36% at 8% 100%, rgba(127, 227, 216, .1), transparent 72%); }
:root[data-theme="dark"] .ny-cb-land { opacity: .55; filter: brightness(.82); }
:root[data-theme="dark"] .ny-cb-orn { opacity: .85; }
@media (prefers-reduced-motion: reduce) { .ny-tw, .ny-bells, .ny-hang, .ny-lamp, html.ny-home .ny-bob { animation: none !important; } }

/* v11b: штемпель — в нижний правый угол открытки, не закрывает дату */
.ny-stamp { top: auto; bottom: -22px; right: -16px; transform: rotate(-14deg); }
@media (max-width: 760px) { .ny-stamp { top: auto; bottom: -18px; right: -8px; } }
html.ny-home .ny-rh .rh-track { padding-bottom: 30px; }

/* ===== v12: плашка над снегом, висящие игрушки, наклейки, настоящие сосульки, открытки на /reviews/ ===== */
html.ny-home .price-card__badge { z-index: 6; }

/* висящие игрушки под разделами */
.ny-hangers { position: absolute; top: 0; z-index: 2; pointer-events: none; }
.ny-hangers svg { display: block; overflow: visible; filter: drop-shadow(2px 3px 0 rgba(16, 20, 12, .18)); }
.ny-hangers .ny-hang { pointer-events: auto; cursor: grab; }
@media (max-width: 760px) { .ny-hangers { left: auto !important; right: 2px !important; transform: scale(.62); transform-origin: top right; } .ny-hangers.nm { display: none; } }

/* наклейки-иллюстрации */
.ny-stk { position: absolute; width: 86px; z-index: 3; pointer-events: auto; cursor: pointer; transform: rotate(var(--r)); animation: nyCandy 5s ease-in-out infinite alternate; filter: drop-shadow(3px 3px 0 rgba(16, 20, 12, .2)); }
.ny-stk svg { display: block; width: 100%; height: auto; overflow: visible; transition: transform .45s cubic-bezier(.2, 1.5, .4, 1); }
.ny-stk:hover svg { transform: rotate(-12deg) scale(1.15); }
.ny-stk.pop svg { animation: nyPop .6s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes nyPop { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(10deg); } 100% { transform: scale(1); } }
.ny-stk-globe, .ny-stk-bells { width: 92px; }
.ny-stk-holly { width: 74px; }
.ny-steam path { animation: nySteam 2.8s ease-in-out infinite; }
.ny-steam path:nth-child(2) { animation-delay: -.9s; } .ny-steam path:nth-child(3) { animation-delay: -1.8s; }
@keyframes nySteam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px); } }
.ny-bell-l, .ny-bell-r { transform-box: fill-box; transform-origin: 50% 0; animation: nyBell .5s ease-in-out infinite alternate; }
.ny-bell-r { animation-delay: -.25s; }
.ny-stk-bells:not(:hover) .ny-bell-l, .ny-stk-bells:not(:hover) .ny-bell-r { animation-duration: 1.6s; }
@media (max-width: 760px) { .ny-stk { display: none; } }

/* настоящие сосульки с каплями (под снежным карнизом подвала) */
.ny-ice { position: absolute; left: 0; right: 0; top: -1px; height: 120px; z-index: 2; pointer-events: none; }
.ny-ice svg { display: block; overflow: visible; filter: drop-shadow(0 0 3px rgba(200, 236, 248, .35)); }
.ny-drip { transform-box: fill-box; transform-origin: 50% 0; opacity: 0; animation: nyDrip var(--t, 6s) ease-in infinite; animation-delay: var(--d, 0s); }
@keyframes nyDrip { 0% { opacity: 0; transform: translateY(0) scale(.3); } 38% { opacity: .95; transform: translateY(0) scale(1); } 52% { opacity: .95; transform: translateY(2px) scale(.95, 1.2); } 80% { opacity: 0; transform: translateY(74px) scale(.7, 1.3); } 100% { opacity: 0; transform: translateY(74px); } }

/* /reviews/: открытки со скотчем, наклейка в углу */
.ny-rvc { position: relative; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1); }
.ny-rvc:hover { transform: translateY(-3px) rotate(-.4deg); }
.ny-rvc::before { content: ""; position: absolute; left: 50%; top: -12px; width: 82px; height: 22px; margin-left: -41px; z-index: 2; pointer-events: none; transform: rotate(var(--tr, -3deg));
  background: repeating-linear-gradient(-45deg, rgba(224, 73, 44, .88) 0 6px, rgba(255, 255, 255, .9) 6px 12px); box-shadow: 0 1px 2px rgba(16, 20, 12, .18);
  clip-path: polygon(3% 0, 97% 0, 100% 20%, 97% 40%, 100% 60%, 97% 80%, 100% 100%, 3% 100%, 0 80%, 3% 60%, 0 40%, 3% 20%); }
.ny-rvc1::before { background: repeating-linear-gradient(-45deg, rgba(28, 86, 56, .88) 0 6px, rgba(255, 255, 255, .9) 6px 12px); }
.ny-rvc2::before { background: repeating-linear-gradient(-45deg, rgba(232, 178, 58, .92) 0 6px, rgba(255, 255, 255, .9) 6px 12px); }
.ny-rvs { position: absolute; right: -14px; bottom: -16px; width: 52px; z-index: 3; pointer-events: none; transform: rotate(var(--r, 8deg)); transition: transform .45s cubic-bezier(.2, 1.5, .4, 1); filter: drop-shadow(2px 2px 0 rgba(16, 20, 12, .2)); }
.ny-rvs svg { display: block; width: 100%; height: auto; overflow: visible; }
.ny-rvc:hover .ny-rvs { transform: rotate(0deg) scale(1.15); }
@media (max-width: 760px) { .ny-rvs { width: 44px; right: -6px; bottom: -14px; } }

@media (prefers-reduced-motion: reduce) { .ny-stk, .ny-steam path, .ny-bell-l, .ny-bell-r, .ny-drip, .ny-hang { animation: none !important; } .ny-drip { display: none; } }

/* v12b: подсказка про подарок видна на телефоне; колпак на «Ч» в отзывах меньше; сани ниже сосулек */
@media (max-width: 760px) { .ny-gift-hint { left: 50%; bottom: 66%; font-size: 13px; white-space: nowrap; } }
.rv-title .ny-letter .ny-hat { width: .42em; top: -.14em; right: -.16em; }
.ny-sleigh { top: 58px; }
@media (max-width: 760px) { .ny-sleigh { top: 46px; } }

/* ===== статус-сайт (status.azmov.site) ===== */
html.ny-status .top .logo img { border-radius: inherit; }
.ny-crt-hat { width: 124px; right: -40px; top: -50px; transform: rotate(22deg); z-index: 5; }
.ny-crt-hat svg { filter: drop-shadow(3px 4px 0 rgba(16, 20, 12, .25)); }
.ny-st-globe { left: -118px; top: auto; bottom: 6px; }
.ny-st-cocoa { right: -104px; top: auto; bottom: 2px; }
@media (max-width: 1299px) { .ny-hangers.wide { display: none; } .ny-st-globe, .ny-st-cocoa { display: none; } }
@media (max-width: 760px) { .ny-crt-hat { width: 84px; right: -14px; top: -36px; } }
html.ny-status #app { padding-top: 22px; }
html.ny-status .ny-garland { height: 30px; }
html.ny-status .ny-b { pointer-events: none; }
html.ny-status #hero { margin-top: 34px; }
@media (max-width: 760px) { html.ny-status #hero { margin-top: 26px; } }
