/* ==========================================================
   Новогоднее оформление (подключается только с декабря по февраль)
   Включается классами на <html>: .ny (оформление), .ny-snow (снег), .ny-night (вечерний фон)
   ========================================================== */
.ny-toggle[hidden] { display: none; }
.ny-tree { display: none; }
.ny-count[hidden] { display: none; }

/* ---------- Кнопка-снежинка в меню ---------- */
.ny-toggle {
	position: absolute;
	top: 6px; right: 186px;
	z-index: 3;
	display: grid; place-items: center;
	width: 38px; height: 38px;
	padding: 0;
	color: #fff;
	background: linear-gradient(180deg, #3d62d8 0%, #6c9bf5 100%);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 3px 7px rgba(14, 34, 110, .4), inset 0 1px 0 rgba(255, 255, 255, .45);
	cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, filter .2s;
}
.ny-toggle svg { width: 22px; height: 22px; opacity: .72; transition: opacity .2s, transform .5s ease; }
.ny-toggle:hover { filter: brightness(1.08); transform: scale(1.06); }
.ny-toggle:hover svg { transform: rotate(60deg); }
.ny-toggle:active { transform: scale(.93); }
.ny-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
/* 1: оформление + снег — кнопка светится, снежинка медленно вращается */
html[data-ny="1"] .ny-toggle { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 0 14px 3px rgba(255, 255, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
html[data-ny="1"] .ny-toggle svg { opacity: 1; animation: cfv-spin 14s linear infinite; }
/* 2: оформление без снега — яркая снежинка без свечения, снизу точка-индикатор */
html[data-ny="2"] .ny-toggle svg { opacity: 1; }
html[data-ny="2"] .ny-toggle::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 14px; height: 2px; margin-left: -7px; background: #fff; border-radius: 2px; opacity: .9; }

/* ---------- Каркас: шапка выпускает сосульки и сугроб наружу ---------- */
html.ny .header { position: relative; z-index: 6; overflow: visible; }
html.ny .topbar { padding-top: 26px; border-radius: 16px 16px 0 0; }
html.ny .nav { border-radius: 0 0 16px 16px; }
/* блик неоновой полоски больше не вылезает за шапку (у шапки в этом режиме нет overflow:hidden) */
html.ny .neon { overflow: hidden; }
html.ny body { overflow-x: clip; }
html.ny .side-box, html.ny .mat, html.ny .footer { position: relative; }
html.ny .footer { overflow: visible; }

/* сосульки под нижним краем шапки */
html.ny .header::after {
	content: '';
	position: absolute; left: 14px; right: 14px; top: calc(100% - 1px);
	height: 28px;
	background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2228%22 viewBox=%220 0 120 28%22%3E%3Cdefs%3E%3ClinearGradient id=%22g%22 x1=%220%22 y1=%220%22 x2=%220%22 y2=%221%22%3E%3Cstop offset=%220%22 stop-color=%22%23fff%22/%3E%3Cstop offset=%221%22 stop-color=%22%23b3d8ff%22/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width=%22120%22 height=%222.5%22 fill=%22%23fff%22/%3E%3Cpath d=%22M5.5 0Q7.75 11.05 10 17Q12.25 11.05 14.5 0Z%22 fill=%22url(%23g)%22 stroke=%22%238fb6e6%22 stroke-width=%22.7%22/%3E%3Cpath d=%22M23.5 0Q25.25 6.5 27 10Q28.75 6.5 30.5 0Z%22 fill=%22url(%23g)%22 stroke=%22%238fb6e6%22 stroke-width=%22.7%22/%3E%3Cpath d=%22M38.0 0Q40.5 16.25 43 25Q45.5 16.25 48.0 0Z%22 fill=%22url(%23g)%22 stroke=%22%238fb6e6%22 stroke-width=%22.7%22/%3E%3Cpath d=%22M57.0 0Q59.0 8.45 61 13Q63.0 8.45 65.0 0Z%22 fill=%22url(%23g)%22 stroke=%22%238fb6e6%22 stroke-width=%22.7%22/%3E%3Cpath d=%22M71.5 0Q74.25 13.65 77 21Q79.75 13.65 82.5 0Z%22 fill=%22url(%23g)%22 stroke=%22%238fb6e6%22 stroke-width=%22.7%22/%3E%3Cpath d=%22M89.5 0Q91.25 5.85 93 9Q94.75 5.85 96.5 0Z%22 fill=%22url(%23g)%22 stroke=%22%238fb6e6%22 stroke-width=%22.7%22/%3E%3Cpath d=%22M102.5 0Q104.75 9.75 107 15Q109.25 9.75 111.5 0Z%22 fill=%22url(%23g)%22 stroke=%22%238fb6e6%22 stroke-width=%22.7%22/%3E%3C/svg%3E") left top / 120px 28px repeat-x;
	filter: drop-shadow(0 2px 2px rgba(14, 34, 110, .3));
	pointer-events: none;
}

/* ---------- Сугробы и иней (элементы вставляет ny.js) ---------- */
.ny-drift, .ny-frost { display: none; }
html.ny .ny-drift {
	display: block;
	position: absolute; left: 0; right: 0; top: -1px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2216%22 viewBox=%220 0 120 16%22%3E%3Cpath d=%22M0 0H120V5Q111 12 102 5Q89 11 76 5Q69 13 62 5Q51 15 40 5Q32 10 24 5Q12 10 0 5Z%22 fill=%22%23a9c4ec%22 opacity=%22.6%22 transform=%22translate(0 2)%22/%3E%3Cpath d=%22M0 0H120V5Q111 12 102 5Q89 11 76 5Q69 13 62 5Q51 15 40 5Q32 10 24 5Q12 10 0 5Z%22 fill=%22%23fff%22/%3E%3C/svg%3E") left top / 120px 16px repeat-x;
	pointer-events: none;
	z-index: 5;
}
html.ny .ny-drift--out { left: 14px; right: 14px; top: -9px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22120%22 height=%2216%22 viewBox=%220 0 120 16%22%3E%3Cpath d=%22M0 8Q8 -1 16 8Q28 -4 40 8Q46.5 -2 53 8Q63 -4 73 8Q80.5 -4 88 8Q97 -1 106 8Q113 -1 120 8Q111 17 102 8Q95 17 88 8Q77 14 66 8Q58 14 50 8Q40 17 30 8Q24 16 18 8Q9 17 0 8Z%22 fill=%22%23fff%22/%3E%3C/svg%3E") left top / 120px 16px repeat-x; filter: drop-shadow(0 -1px 2px rgba(150, 190, 255, .55)); }
html.ny .ny-frost {
	display: block;
	position: absolute; inset: 0;
	border-radius: inherit;
	--frost: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 0 16px 2px rgba(236, 246, 255, .55);
	background:
		radial-gradient(circle 70px at 0 100%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 100%),
		radial-gradient(circle 70px at 100% 0, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 100%);
	pointer-events: none;
	z-index: 4;
}
html.ny .ny-frost::before,
html.ny .ny-frost::after {
	content: '';
	position: absolute;
	width: 60px; height: 60px;
	background: var(--frost);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2260%22 height=%2260%22 viewBox=%220 0 60 60%22%3E%3Cpath d=%22M60 0L50.97 51.21M57.29 15.36L66.06 26.59M57.29 15.36L45.21 22.91M55.49 25.61L62.85 35.03M55.49 25.61L45.34 31.94M53.68 35.85L59.63 43.47M53.68 35.85L45.48 40.97M60 0L25.52 44.13M49.66 13.24L52.32 28.35M49.66 13.24L34.35 14.31M42.76 22.06L45 34.75M42.76 22.06L29.91 22.96M35.87 30.89L37.67 41.15M35.87 30.89L25.48 31.62M60 0L19.8 17.9M47.94 5.37L44.22 16.83M47.94 5.37L36.93 0.47M39.9 8.95L36.77 18.57M39.9 8.95L30.66 4.83M31.86 12.53L29.33 20.31M31.86 12.53L24.39 9.2M60 0L65.9 33.48M61.77 10.05L69.67 14.98M61.77 10.05L56.04 17.39M62.95 16.74L69.58 20.89M62.95 16.74L58.14 22.9M64.13 23.44L69.5 26.79M64.13 23.44L60.24 28.42%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.4%22 stroke-linecap=%22round%22/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2260%22 height=%2260%22 viewBox=%220 0 60 60%22%3E%3Cpath d=%22M60 0L50.97 51.21M57.29 15.36L66.06 26.59M57.29 15.36L45.21 22.91M55.49 25.61L62.85 35.03M55.49 25.61L45.34 31.94M53.68 35.85L59.63 43.47M53.68 35.85L45.48 40.97M60 0L25.52 44.13M49.66 13.24L52.32 28.35M49.66 13.24L34.35 14.31M42.76 22.06L45 34.75M42.76 22.06L29.91 22.96M35.87 30.89L37.67 41.15M35.87 30.89L25.48 31.62M60 0L19.8 17.9M47.94 5.37L44.22 16.83M47.94 5.37L36.93 0.47M39.9 8.95L36.77 18.57M39.9 8.95L30.66 4.83M31.86 12.53L29.33 20.31M31.86 12.53L24.39 9.2M60 0L65.9 33.48M61.77 10.05L69.67 14.98M61.77 10.05L56.04 17.39M62.95 16.74L69.58 20.89M62.95 16.74L58.14 22.9M64.13 23.44L69.5 26.79M64.13 23.44L60.24 28.42%22 fill=%22none%22 stroke=%22%23000%22 stroke-width=%221.4%22 stroke-linecap=%22round%22/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: .85;
}
html.ny .ny-frost::before { top: 0; right: 0; }
html.ny .ny-frost::after  { bottom: 0; left: 0; transform: rotate(180deg); }
html.ny .mat > .ny-frost::after,
html.ny .footer > .ny-frost::after { display: none; }
html.ny .mat > .ny-frost,
html.ny .footer > .ny-frost { --frost: #8fb3ee; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), inset 0 0 14px 2px rgba(210, 230, 255, .8); }

/* ---------- Гирлянды: провод — фон, лампочки — 4 слоя, мигающие волнами ---------- */
.ny-garland { display: none; }
html.ny .ny-garland {
	display: block;
	position: absolute; left: 10px; right: 10px; top: 0;
	height: 44px;
	z-index: 4;
	background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22192%22 height=%2244%22 viewBox=%220 0 192 44%22%3E%3Cpath d=%22M0 3Q48 25 96 3M96 3Q144 25 192 3%22 fill=%22none%22 stroke=%22%232c4a3c%22 stroke-width=%221.7%22/%3E%3Cpath d=%22M48 14V22%22 stroke=%22%232c4a3c%22 stroke-width=%221%22/%3E%3Ccircle cx=%2248%22 cy=%2229%22 r=%227%22 fill=%22%23e8453c%22/%3E%3Ccircle cx=%2248%22 cy=%2229%22 r=%227%22 fill=%22none%22 stroke=%22%239c1f2a%22 stroke-width=%22.8%22/%3E%3Cellipse cx=%2245.5%22 cy=%2226.5%22 rx=%222%22 ry=%222.8%22 fill=%22%23fff%22 opacity=%22.6%22/%3E%3Crect x=%2245.6%22 y=%2220.5%22 width=%224.8%22 height=%222.4%22 rx=%22.8%22 fill=%22%23e8b93a%22/%3E%3Cpath d=%22M144 14V20%22 stroke=%22%232c4a3c%22 stroke-width=%221%22/%3E%3Cpolygon points=%22144,20 146.25,25.41 152.08,25.87 147.64,29.68 149,35.38 144,32.33 139,35.38 140.36,29.68 135.92,25.87 141.75,25.41%22 fill=%22%23ffc933%22 stroke=%22%23d98a0f%22 stroke-width=%22.9%22 stroke-linejoin=%22round%22/%3E%3C/svg%3E") center top / auto 100% repeat-x;
	pointer-events: none;
}
html.ny .ny-garland i {
	position: absolute; inset: 0;
	background: var(--l) center top / auto 100% repeat-x;
	animation: ny-blink 2.4s ease-in-out infinite;
}
html.ny .ny-garland i:nth-child(1) { --l: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22192%22 height=%2244%22 viewBox=%220 0 192 44%22%3E%3Ccircle cx=%2212%22 cy=%2213.81%22 r=%228%22 fill=%22%23ff4d4f%22 opacity=%22.30%22/%3E%3Crect x=%2210.4%22 y=%227.31%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2212%22 cy=%2213.81%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ff4d4f%22/%3E%3Cellipse cx=%2211%22 cy=%2212.41%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%2272%22 cy=%2217.25%22 r=%228%22 fill=%22%23ff4d4f%22 opacity=%22.30%22/%3E%3Crect x=%2270.4%22 y=%2210.75%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2272%22 cy=%2217.25%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ff4d4f%22/%3E%3Cellipse cx=%2271%22 cy=%2215.85%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22132%22 cy=%2219.31%22 r=%228%22 fill=%22%23ff4d4f%22 opacity=%22.30%22/%3E%3Crect x=%22130.4%22 y=%2212.81%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22132%22 cy=%2219.31%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ff4d4f%22/%3E%3Cellipse cx=%22131%22 cy=%2217.91%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3C/svg%3E"); animation-delay: 0s; }
html.ny .ny-garland i:nth-child(2) { --l: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22192%22 height=%2244%22 viewBox=%220 0 192 44%22%3E%3Ccircle cx=%2224%22 cy=%2217.25%22 r=%228%22 fill=%22%23ffd23f%22 opacity=%22.30%22/%3E%3Crect x=%2222.4%22 y=%2210.75%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2224%22 cy=%2217.25%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ffd23f%22/%3E%3Cellipse cx=%2223%22 cy=%2215.85%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%2284%22 cy=%2213.81%22 r=%228%22 fill=%22%23ffd23f%22 opacity=%22.30%22/%3E%3Crect x=%2282.4%22 y=%227.31%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2284%22 cy=%2213.81%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ffd23f%22/%3E%3Cellipse cx=%2283%22 cy=%2212.41%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22156%22 cy=%2219.31%22 r=%228%22 fill=%22%23ffd23f%22 opacity=%22.30%22/%3E%3Crect x=%22154.4%22 y=%2212.81%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22156%22 cy=%2219.31%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ffd23f%22/%3E%3Cellipse cx=%22155%22 cy=%2217.91%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3C/svg%3E"); animation-delay: -.6s; }
html.ny .ny-garland i:nth-child(3) { --l: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22192%22 height=%2244%22 viewBox=%220 0 192 44%22%3E%3Ccircle cx=%2236%22 cy=%2219.31%22 r=%228%22 fill=%22%233ddc84%22 opacity=%22.30%22/%3E%3Crect x=%2234.4%22 y=%2212.81%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2236%22 cy=%2219.31%22 rx=%223.3%22 ry=%224.4%22 fill=%22%233ddc84%22/%3E%3Cellipse cx=%2235%22 cy=%2217.91%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22108%22 cy=%2213.81%22 r=%228%22 fill=%22%233ddc84%22 opacity=%22.30%22/%3E%3Crect x=%22106.4%22 y=%227.31%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22108%22 cy=%2213.81%22 rx=%223.3%22 ry=%224.4%22 fill=%22%233ddc84%22/%3E%3Cellipse cx=%22107%22 cy=%2212.41%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22168%22 cy=%2217.25%22 r=%228%22 fill=%22%233ddc84%22 opacity=%22.30%22/%3E%3Crect x=%22166.4%22 y=%2210.75%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22168%22 cy=%2217.25%22 rx=%223.3%22 ry=%224.4%22 fill=%22%233ddc84%22/%3E%3Cellipse cx=%22167%22 cy=%2215.85%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3C/svg%3E"); animation-delay: -1.2s; }
html.ny .ny-garland i:nth-child(4) { --l: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22192%22 height=%2244%22 viewBox=%220 0 192 44%22%3E%3Ccircle cx=%2260%22 cy=%2219.31%22 r=%228%22 fill=%22%234fc3ff%22 opacity=%22.30%22/%3E%3Crect x=%2258.4%22 y=%2212.81%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2260%22 cy=%2219.31%22 rx=%223.3%22 ry=%224.4%22 fill=%22%234fc3ff%22/%3E%3Cellipse cx=%2259%22 cy=%2217.91%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22120%22 cy=%2217.25%22 r=%228%22 fill=%22%234fc3ff%22 opacity=%22.30%22/%3E%3Crect x=%22118.4%22 y=%2210.75%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22120%22 cy=%2217.25%22 rx=%223.3%22 ry=%224.4%22 fill=%22%234fc3ff%22/%3E%3Cellipse cx=%22119%22 cy=%2215.85%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22180%22 cy=%2213.81%22 r=%228%22 fill=%22%234fc3ff%22 opacity=%22.30%22/%3E%3Crect x=%22178.4%22 y=%227.31%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22180%22 cy=%2213.81%22 rx=%223.3%22 ry=%224.4%22 fill=%22%234fc3ff%22/%3E%3Cellipse cx=%22179%22 cy=%2212.41%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3C/svg%3E"); animation-delay: -1.8s; }
@keyframes ny-blink { 0%, 100% { opacity: 1; } 50% { opacity: .22; } }
/* гирлянда вдоль низа меню — без шаров, отдельной полосой над неоном */
html.ny .nav > .ny-garland--nav {
	position: relative; left: 0; right: 0;
	flex: 0 0 100%; order: 2;
	height: 25px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22192%22 height=%2225%22 viewBox=%220 0 192 25%22%3E%3Cpath d=%22M0 3Q48 19 96 3M96 3Q144 19 192 3%22 fill=%22none%22 stroke=%22%232c4a3c%22 stroke-width=%221.7%22/%3E%3C/svg%3E");
}
html.ny .ny-garland--nav i:nth-child(1) { --l: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22192%22 height=%2225%22 viewBox=%220 0 192 25%22%3E%3Ccircle cx=%2212%22 cy=%2212.5%22 r=%228%22 fill=%22%23ff4d4f%22 opacity=%22.30%22/%3E%3Crect x=%2210.4%22 y=%226%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2212%22 cy=%2212.5%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ff4d4f%22/%3E%3Cellipse cx=%2211%22 cy=%2211.1%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%2260%22 cy=%2216.5%22 r=%228%22 fill=%22%23ff4d4f%22 opacity=%22.30%22/%3E%3Crect x=%2258.4%22 y=%2210%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2260%22 cy=%2216.5%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ff4d4f%22/%3E%3Cellipse cx=%2259%22 cy=%2215.1%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22120%22 cy=%2215%22 r=%228%22 fill=%22%23ff4d4f%22 opacity=%22.30%22/%3E%3Crect x=%22118.4%22 y=%228.5%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22120%22 cy=%2215%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ff4d4f%22/%3E%3Cellipse cx=%22119%22 cy=%2213.6%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22168%22 cy=%2215%22 r=%228%22 fill=%22%23ff4d4f%22 opacity=%22.30%22/%3E%3Crect x=%22166.4%22 y=%228.5%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22168%22 cy=%2215%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ff4d4f%22/%3E%3Cellipse cx=%22167%22 cy=%2213.6%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3C/svg%3E"); }
html.ny .ny-garland--nav i:nth-child(2) { --l: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22192%22 height=%2225%22 viewBox=%220 0 192 25%22%3E%3Ccircle cx=%2224%22 cy=%2215%22 r=%228%22 fill=%22%23ffd23f%22 opacity=%22.30%22/%3E%3Crect x=%2222.4%22 y=%228.5%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2224%22 cy=%2215%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ffd23f%22/%3E%3Cellipse cx=%2223%22 cy=%2213.6%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%2272%22 cy=%2215%22 r=%228%22 fill=%22%23ffd23f%22 opacity=%22.30%22/%3E%3Crect x=%2270.4%22 y=%228.5%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2272%22 cy=%2215%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ffd23f%22/%3E%3Cellipse cx=%2271%22 cy=%2213.6%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22132%22 cy=%2216.5%22 r=%228%22 fill=%22%23ffd23f%22 opacity=%22.30%22/%3E%3Crect x=%22130.4%22 y=%2210%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22132%22 cy=%2216.5%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ffd23f%22/%3E%3Cellipse cx=%22131%22 cy=%2215.1%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22180%22 cy=%2212.5%22 r=%228%22 fill=%22%23ffd23f%22 opacity=%22.30%22/%3E%3Crect x=%22178.4%22 y=%226%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22180%22 cy=%2212.5%22 rx=%223.3%22 ry=%224.4%22 fill=%22%23ffd23f%22/%3E%3Cellipse cx=%22179%22 cy=%2211.1%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3C/svg%3E"); }
html.ny .ny-garland--nav i:nth-child(3) { --l: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22192%22 height=%2225%22 viewBox=%220 0 192 25%22%3E%3Ccircle cx=%2236%22 cy=%2216.5%22 r=%228%22 fill=%22%233ddc84%22 opacity=%22.30%22/%3E%3Crect x=%2234.4%22 y=%2210%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2236%22 cy=%2216.5%22 rx=%223.3%22 ry=%224.4%22 fill=%22%233ddc84%22/%3E%3Cellipse cx=%2235%22 cy=%2215.1%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%2284%22 cy=%2212.5%22 r=%228%22 fill=%22%233ddc84%22 opacity=%22.30%22/%3E%3Crect x=%2282.4%22 y=%226%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2284%22 cy=%2212.5%22 rx=%223.3%22 ry=%224.4%22 fill=%22%233ddc84%22/%3E%3Cellipse cx=%2283%22 cy=%2211.1%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22144%22 cy=%2217%22 r=%228%22 fill=%22%233ddc84%22 opacity=%22.30%22/%3E%3Crect x=%22142.4%22 y=%2210.5%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22144%22 cy=%2217%22 rx=%223.3%22 ry=%224.4%22 fill=%22%233ddc84%22/%3E%3Cellipse cx=%22143%22 cy=%2215.6%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3C/svg%3E"); }
html.ny .ny-garland--nav i:nth-child(4) { --l: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22192%22 height=%2225%22 viewBox=%220 0 192 25%22%3E%3Ccircle cx=%2248%22 cy=%2217%22 r=%228%22 fill=%22%234fc3ff%22 opacity=%22.30%22/%3E%3Crect x=%2246.4%22 y=%2210.5%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%2248%22 cy=%2217%22 rx=%223.3%22 ry=%224.4%22 fill=%22%234fc3ff%22/%3E%3Cellipse cx=%2247%22 cy=%2215.6%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22108%22 cy=%2212.5%22 r=%228%22 fill=%22%234fc3ff%22 opacity=%22.30%22/%3E%3Crect x=%22106.4%22 y=%226%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22108%22 cy=%2212.5%22 rx=%223.3%22 ry=%224.4%22 fill=%22%234fc3ff%22/%3E%3Cellipse cx=%22107%22 cy=%2211.1%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3Ccircle cx=%22156%22 cy=%2216.5%22 r=%228%22 fill=%22%234fc3ff%22 opacity=%22.30%22/%3E%3Crect x=%22154.4%22 y=%2210%22 width=%223.2%22 height=%223.4%22 rx=%22.8%22 fill=%22%232c4a3c%22/%3E%3Cellipse cx=%22156%22 cy=%2216.5%22 rx=%223.3%22 ry=%224.4%22 fill=%22%234fc3ff%22/%3E%3Cellipse cx=%22155%22 cy=%2215.1%22 rx=%22.9%22 ry=%221.5%22 fill=%22%23fff%22 opacity=%22.75%22/%3E%3C/svg%3E"); }
html.ny .nav > .neon--bottom { order: 3; }

/* ---------- Колпак Санты на силуэте круга ---------- */
html.ny .logo { position: relative; }
html.ny .logo::before {
	content: '';
	position: absolute; left: -7px; top: -19px;
	width: 46px; height: 43px;
	background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 60 56%22%3E%3Cpath d=%22M9 40C9 20 22 6 40 6C46 6 50 9 51 14C55 14 57 20 56 27C53 33 49 38 46 42Z%22 fill=%22%23e53f3f%22/%3E%3Cpath d=%22M40 6C46 6 50 9 51 14C55 14 57 20 56 27C53 33 49 38 46 42L38 41C45 30 46 18 40 6Z%22 fill=%22%23b82d36%22 opacity=%22.55%22/%3E%3Cpath d=%22M14 26C17 16 25 9 34 7%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.45%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Crect x=%224%22 y=%2238%22 width=%2248%22 height=%2213%22 rx=%226.5%22 fill=%22%23fff%22/%3E%3Cpath d=%22M8 46Q28 52 48 46%22 fill=%22none%22 stroke=%22%23c9dcf5%22 stroke-width=%222%22 stroke-linecap=%22round%22/%3E%3Ccircle cx=%2253%22 cy=%2213%22 r=%226%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2253%22 cy=%2213%22 r=%226%22 fill=%22none%22 stroke=%22%23c9dcf5%22 stroke-width=%221%22/%3E%3C/svg%3E") center / contain no-repeat;
	transform: rotate(-10deg);
	filter: drop-shadow(0 2px 2px rgba(18, 28, 110, .35));
	z-index: 2;
}

/* ---------- Ёлки ---------- */
html.ny .ny-tree { display: block; pointer-events: none; }
html.ny .ny-tree svg { display: block; width: 100%; height: 100%; overflow: visible; }
html.ny .ny-tree .b { animation: ny-blink 1.8s ease-in-out infinite; }
html.ny .ny-tree .b1 { fill: #ff5a5f; animation-delay: 0s; }
html.ny .ny-tree .b2 { fill: #ffd23f; animation-delay: -.45s; }
html.ny .ny-tree .b3 { fill: #5ad2ff; animation-delay: -.9s; }
html.ny .ny-tree .b4 { fill: #ff8be0; animation-delay: -1.35s; }
html.ny .ny-tree .star { transform-origin: 50px 8px; animation: ny-star 3s ease-in-out infinite; }
@keyframes ny-star { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); filter: drop-shadow(0 0 3px #fff); } }
html.ny .ny-tree--hero { position: absolute; left: 8px; bottom: 2px; z-index: 2; width: 58px; height: 87px; }
html.ny .ny-tree--foot { position: absolute; bottom: calc(100% - 7px); z-index: 7; }
html.ny .ny-tree--foot.is-l { right: 96px; width: 64px; height: 96px; }
html.ny .ny-tree--foot.is-r { right: 30px; width: 46px; height: 69px; }

/* ---------- Заголовки записей: снежинка вместо «лезвий» ---------- */
html.ny .mat-title::before {
	background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 12L12 1.5M12 5.49L9.19 3.29M12 5.49L14.81 3.29M12 8.22L10.01 6.67M12 8.22L13.99 6.67M12 12L21.09 6.75M17.64 8.75L18.13 5.21M17.64 8.75L20.95 10.08M15.27 10.11L15.62 7.61M15.27 10.11L17.61 11.05M12 12L21.09 17.25M17.64 15.25L20.95 13.92M17.64 15.25L18.13 18.79M15.27 13.89L17.61 12.95M15.27 13.89L15.62 16.39M12 12L12 22.5M12 18.51L14.81 20.71M12 18.51L9.19 20.71M12 15.78L13.99 17.33M12 15.78L10.01 17.33M12 12L2.91 17.25M6.36 15.25L5.87 18.79M6.36 15.25L3.05 13.92M8.73 13.89L8.38 16.39M8.73 13.89L6.39 12.95M12 12L2.91 6.75M6.36 8.74L3.05 10.08M6.36 8.74L5.87 5.21M8.73 10.11L6.39 11.05M8.73 10.11L8.38 7.61%22 fill=%22none%22 stroke=%22%23fff%22 stroke-width=%222.2%22 stroke-linecap=%22round%22/%3E%3C/svg%3E") center / 68% no-repeat, linear-gradient(135deg, #2a4fc0, #5b8cf3);
}

/* ---------- Плашка «До Нового года» ---------- */
.ny-count {
	display: flex; align-items: center; gap: 6px;
	min-height: 104px;
	padding: 10px 14px 10px 8px;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(circle 60px at 82% 24%, rgba(80, 240, 200, .35), rgba(80, 240, 200, 0) 100%),
		radial-gradient(circle 70px at 30% 110%, rgba(170, 130, 255, .45), rgba(170, 130, 255, 0) 100%),
		radial-gradient(rgba(255, 255, 255, .85) 1px, transparent 1.6px) 0 0 / 23px 19px,
		linear-gradient(160deg, #1d2f7e 0%, #2f4aa8 60%, #4a5fc4 100%);
	border: 3px solid #fff;
	border-radius: 20px;
	box-shadow: 0 10px 22px rgba(14, 34, 110, .42), 0 2px 5px rgba(14, 34, 110, .3);
}
.ny-count .ny-tree--plate { flex: none; display: block; width: 56px; height: 84px; margin: 4px 4px 0 2px; position: relative; z-index: 1; }
.ny-count-txt { position: relative; z-index: 1; display: grid; gap: 1px; line-height: 1.1; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.ny-count-lab { font-size: 13px; font-weight: 700; color: #cfe0ff; }
.ny-count-num { font: 900 34px/1.05 var(--font-head); color: #fff; letter-spacing: .01em; text-shadow: 0 0 12px rgba(160, 200, 255, .8), 0 2px 3px rgba(0, 0, 0, .3); }
.ny-count-num small { font-size: 19px; font-weight: 900; }
.ny-count-sub { font-size: 13px; font-weight: 700; color: #ffe08a; }

/* ---------- Кнопка «наверх» — ракета ---------- */
html.ny .to-top-arrow {
	position: relative;
	width: 21px; height: 26px; margin: 0;
	border: 0; border-radius: 0;
	background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 30%22%3E%3Cpath d=%22M12 1C17 6 18.5 13 17.5 21H6.5C5.5 13 7 6 12 1Z%22 fill=%22%23fff%22/%3E%3Cpath d=%22M12 1C17 6 18.5 13 17.5 21H12Z%22 fill=%22%23cfe0ff%22/%3E%3Ccircle cx=%2212%22 cy=%2211%22 r=%223.1%22 fill=%22%233a5fd0%22 stroke=%22%23a9c3fa%22 stroke-width=%221.2%22/%3E%3Cpath d=%22M6.8 14L2 22L6.6 21Z%22 fill=%22%23ff6b4a%22/%3E%3Cpath d=%22M17.2 14L22 22L17.4 21Z%22 fill=%22%23ff6b4a%22/%3E%3Crect x=%228%22 y=%2221%22 width=%228%22 height=%222.6%22 rx=%221.2%22 fill=%22%23ffb52e%22/%3E%3C/svg%3E") center / contain no-repeat;
	transform: none;
	filter: drop-shadow(0 1px 1px rgba(10, 25, 100, .4));
}
html.ny .to-top-arrow::after {
	content: '';
	position: absolute; left: 50%; top: 92%;
	width: 8px; height: 11px; margin-left: -4px;
	background: radial-gradient(ellipse at 50% 12%, #fff 0, #ffe17a 35%, #ff8a2b 70%, rgba(255, 90, 40, 0) 100%);
	border-radius: 50% 50% 60% 60% / 30% 30% 90% 90%;
	transform-origin: 50% 0;
	animation: ny-flame .35s ease-in-out infinite alternate;
}
@keyframes ny-flame { from { transform: scaleY(.7); opacity: .8; } to { transform: scaleY(1.25); opacity: 1; } }
html.ny .to-top-btn:hover .to-top-arrow { animation: ny-rock .5s ease-in-out infinite; }
@keyframes ny-rock { 0%, 100% { transform: translate(0, 0) rotate(-3deg); } 50% { transform: translate(0, -3px) rotate(3deg); } }
html.ny .to-top-btn.is-launch .to-top-arrow { animation: ny-launch .9s ease-in forwards; }
@keyframes ny-launch {
	0% { transform: translateY(0); opacity: 1; }
	55% { transform: translateY(-90px) scale(.8); opacity: 0; }
	56% { transform: translateY(40px); opacity: 0; }
	100% { transform: translateY(0); opacity: 1; }
}

/* ---------- Снег ---------- */
.ny-snow-cv { position: fixed; inset: 0; z-index: 45; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Вечерний фон с северным сиянием ---------- */
html.ny-night { background: #1c2a6b; }
html.ny-night .bg-fx { background: #1c2a6b url(img/bg-winter.jpg) repeat-y; background-size: max(100%, 1100px) auto; background-position: center var(--bg-y, 0px); }
html.ny-night .bg-fx::before,
html.ny-night .bg-fx::after {
	content: '';
	position: absolute;
	pointer-events: none;
	mix-blend-mode: screen;
}
/* пятна света */
html.ny-night .bg-fx::before {
	inset: -10% -15% 35% -15%;
	background:
		radial-gradient(ellipse 34% 55% at 18% 52%, rgba(60, 255, 190, .62), rgba(60, 255, 190, 0) 100%),
		radial-gradient(ellipse 30% 50% at 52% 38%, rgba(110, 170, 255, .55), rgba(110, 170, 255, 0) 100%),
		radial-gradient(ellipse 34% 48% at 84% 55%, rgba(190, 120, 255, .55), rgba(190, 120, 255, 0) 100%);
	filter: blur(26px);
	animation: ny-aurora 26s ease-in-out infinite alternate;
}
/* вертикальные «лучи» сияния */
html.ny-night .bg-fx::after {
	inset: 0 -10% 45% -10%;
	background: repeating-linear-gradient(90deg, rgba(120, 255, 205, 0) 0 26px, rgba(120, 255, 205, .24) 52px, rgba(150, 190, 255, .16) 70px, rgba(120, 255, 205, 0) 110px);
	-webkit-mask: linear-gradient(180deg, transparent 0%, #000 35%, transparent 100%);
	mask: linear-gradient(180deg, transparent 0%, #000 35%, transparent 100%);
	filter: blur(3px);
	animation: ny-aurora2 34s ease-in-out infinite alternate;
}
@keyframes ny-aurora  { from { transform: translateX(-6%) skewX(-4deg); opacity: .75; } to { transform: translateX(7%) skewX(5deg); opacity: 1; } }
@keyframes ny-aurora2 { from { transform: translateX(4%) scaleY(.9); opacity: .55; } to { transform: translateX(-5%) scaleY(1.12); opacity: .95; } }

/* ---------- Телефоны ---------- */
@media (max-width: 860px) {
	html.ny .nav > .ny-garland--nav { flex: 0 0 auto; width: 100%; }
	.ny-toggle { position: static; order: 1; align-self: flex-end; margin: 10px 16px 12px auto; }
	html.ny .nav > .ny-toggle { margin: 10px 16px 12px auto; }
}
@media (max-width: 700px) {
	html.ny .topbar { padding-top: 22px; }
	html.ny .ny-garland { height: 28px; background-size: auto 28px; }
	html.ny .ny-garland i { background-size: auto 28px; }
	html.ny .logo::before { left: -6px; top: -16px; width: 38px; height: 36px; }
	html.ny .ny-tree--hero { width: 40px; height: 60px; left: 4px; }
	html.ny .ny-tree--foot { display: none; }
	html.ny-night .bg-fx::before { filter: blur(18px); }
	.ny-count { min-height: 96px; }
}
