/* ============================================================
   Зимнее оформление витрины.
   Подключается шапкой, только когда зима на сайте и посетитель её
   не выключил; все правила — под html.season-winter, поэтому после
   выключения кнопкой (класс снимается) сайт сразу становится обычным.
   Разметка: template/season/winter/header.twig, footer.twig,
   гирлянда, игрушки и снег — javascript/season/winter.js.
   Настройки — «Дизайн → Сезонное оформление» в админке.
   ============================================================ */

html.season-winter {
	--sw-navy-900: #0e1a2d;
	--sw-navy-800: #15223a;
	--sw-navy-700: #1c3050;
	--sw-navy-600: #2a4570;
	--sw-ice-50: #f4f7fb;
	--sw-ice-100: #edf1f6;
	--sw-ice-200: #e2e9f2;
	--sw-ice-300: #d2deeb;
	--sw-snow: #f7fafd;
	--sw-gold: #f1cf94;
}

/* palette:start — генерирует scripts/season_palette.py --tokens winter, руками не править */
html.season-winter {
	--tone-280c12: #0e1928;
	--tone-280c12-rgb: 14, 25, 40;
	--tone-28141e: #161e29;
	--tone-28141e-rgb: 22, 30, 41;
	--tone-2d0f14: #111d2e;
	--tone-2d0f14-rgb: 17, 29, 46;
	--tone-3f141e: #172840;
	--tone-3f141e-rgb: 23, 40, 64;
	--tone-440e0c: #132740;
	--tone-440e0c-rgb: 19, 39, 64;
	--tone-4a1520: #182e4b;
	--tone-4a1520-rgb: 24, 46, 75;
	--tone-4a1a1f: #1d314b;
	--tone-4a1a1f-rgb: 29, 49, 75;
	--tone-4a252c: #28374b;
	--tone-4a252c-rgb: 40, 55, 75;
	--tone-561824: #1c3557;
	--tone-561824-rgb: 28, 53, 87;
	--tone-5a1622: #1a365a;
	--tone-5a1622-rgb: 26, 54, 90;
	--tone-5a1824: #1c375b;
	--tone-5a1824-rgb: 28, 55, 91;
	--tone-5a1d2a: #213a5b;
	--tone-5a1d2a-rgb: 33, 58, 91;
	--tone-5a2030: #243c5b;
	--tone-5a2030-rgb: 36, 60, 91;
	--tone-5a3a3a: #3e4b5c;
	--tone-5a3a3a-rgb: 62, 75, 92;
	--tone-5b2028: #243c5c;
	--tone-5b2028-rgb: 36, 60, 92;
	--tone-5c1508: #173051;
	--tone-5c1508-rgb: 23, 48, 81;
	--tone-692132: #25436a;
	--tone-692132-rgb: 37, 67, 106;
	--tone-6b1f2c: #23436c;
	--tone-6b1f2c-rgb: 35, 67, 108;
	--tone-7a1f2b: #244a7b;
	--tone-7a1f2b-rgb: 36, 74, 123;
	--tone-7a3a46: #3f5a7c;
	--tone-7a3a46-rgb: 63, 90, 124;
	--tone-7c2837: #2d507d;
	--tone-7c2837-rgb: 45, 80, 125;
	--tone-7d2634: #2b4f7e;
	--tone-7d2634-rgb: 43, 79, 126;
	--tone-8a6e72: #747f8e;
	--tone-8a6e72-rgb: 116, 127, 142;
	--tone-8a6f74: #75808e;
	--tone-8a6f74-rgb: 117, 128, 142;
	--tone-8c3c4b: #42638e;
	--tone-8c3c4b-rgb: 66, 99, 142;
	--tone-8d2b3c: #31598f;
	--tone-8d2b3c-rgb: 49, 89, 143;
	--tone-a3182f: #2c5a97;
	--tone-a3182f-rgb: 44, 90, 151;
	--tone-a52a3a: #3164a6;
	--tone-a52a3a-rgb: 49, 100, 166;
	--tone-a8546a: #5d7ea9;
	--tone-a8546a-rgb: 93, 126, 169;
	--tone-ab1e12: #2c5b98;
	--tone-ab1e12-rgb: 44, 91, 152;
	--tone-b59aa0: #a3adba;
	--tone-b59aa0-rgb: 163, 173, 186;
	--tone-c9a7ad: #a2b0c3;
	--tone-c9a7ad-rgb: 162, 176, 195;
	--tone-c9b4b8: #a7b1be;
	--tone-c9b4b8-rgb: 167, 177, 190;
	--tone-d63384: #4981ca;
	--tone-d63384-rgb: 73, 129, 202;
	--tone-e0d0d0: #d1d7df;
	--tone-e0d0d0-rgb: 209, 215, 223;
	--tone-e6d9dc: #dadfe5;
	--tone-e6d9dc-rgb: 218, 223, 229;
	--tone-ece3e1: #e2e6eb;
	--tone-ece3e1-rgb: 226, 230, 235;
	--tone-ece5e0: #e1e5eb;
	--tone-ece5e0-rgb: 225, 229, 235;
	--tone-ece6e3: #e4e7eb;
	--tone-ece6e3-rgb: 228, 231, 235;
	--tone-ece7e3: #e4e7eb;
	--tone-ece7e3-rgb: 228, 231, 235;
	--tone-eee4de: #dfe5ed;
	--tone-eee4de-rgb: 223, 229, 237;
	--tone-f0e0e0: #e1e7ef;
	--tone-f0e0e0-rgb: 225, 231, 239;
	--tone-f0ebe8: #e9ecef;
	--tone-f0ebe8-rgb: 233, 236, 239;
	--tone-f1e7e3: #e4e9f0;
	--tone-f1e7e3-rgb: 228, 233, 240;
	--tone-f1ece8: #e9ecf0;
	--tone-f1ece8-rgb: 233, 236, 240;
	--tone-f1efee: #eeeff1;
	--tone-f1efee-rgb: 238, 239, 241;
	--tone-f2edeb: #eceef1;
	--tone-f2edeb-rgb: 236, 238, 241;
	--tone-f3e9ea: #eaedf2;
	--tone-f3e9ea-rgb: 234, 237, 242;
	--tone-f3eeea: #ebeef2;
	--tone-f3eeea-rgb: 235, 238, 242;
	--tone-f4e9e6: #e7ecf3;
	--tone-f4e9e6-rgb: 231, 236, 243;
	--tone-f4e9eb: #eaeef3;
	--tone-f4e9eb-rgb: 234, 238, 243;
	--tone-f5f3f0: #f0f2f5;
	--tone-f5f3f0-rgb: 240, 242, 245;
	--tone-f6eced: #edf0f5;
	--tone-f6eced-rgb: 237, 240, 245;
	--tone-f6eeee: #eff2f5;
	--tone-f6eeee-rgb: 239, 242, 245;
	--tone-f6eef0: #eff2f5;
	--tone-f6eef0-rgb: 239, 242, 245;
	--tone-f6efee: #eff2f5;
	--tone-f6efee-rgb: 239, 242, 245;
	--tone-f7eff0: #f0f3f6;
	--tone-f7eff0-rgb: 240, 243, 246;
	--tone-f7f3f0: #f1f3f6;
	--tone-f7f3f0-rgb: 241, 243, 246;
	--tone-f7f3f2: #f2f4f7;
	--tone-f7f3f2-rgb: 242, 244, 247;
	--tone-f7f5f3: #f3f5f7;
	--tone-f7f5f3-rgb: 243, 245, 247;
	--tone-f8f6f5: #f5f6f8;
	--tone-f8f6f5-rgb: 245, 246, 248;
	--tone-f9f1f2: #f2f5f8;
	--tone-f9f1f2-rgb: 242, 245, 248;
	--tone-faf7f5: #f5f7fa;
	--tone-faf7f5-rgb: 245, 247, 250;
	--tone-faf8f7: #f7f8fa;
	--tone-faf8f7-rgb: 247, 248, 250;
	--tone-faf8f8: #f8f9fa;
	--tone-faf8f8-rgb: 248, 249, 250;
	--tone-fbf3f4: #f4f7fa;
	--tone-fbf3f4-rgb: 244, 247, 250;
	--tone-fcf8f8: #f8fafc;
	--tone-fcf8f8-rgb: 248, 250, 252;
	--tone-fdeef0: #f2f5f9;
	--tone-fdeef0-rgb: 242, 245, 249;
	--tone-fdfafa: #fafbfd;
	--tone-fdfafa-rgb: 250, 251, 253;
	--tone-fdfcfb: #fbfcfd;
	--tone-fdfcfb-rgb: 251, 252, 253;
	--tone-fff7f8: #f9fbfd;
	--tone-fff7f8-rgb: 249, 251, 253;
}
/* palette:end */

/* ===== Приглушённый фон страницы ===== */
html.season-winter body {
	background-color: var(--sw-ice-100);
}

/* ===== Верхняя полоса: ночное небо со звёздами ===== */
html.season-winter #top {
	position: relative;
	/* Звёзды — у верхнего и нижнего края, где нет текста ссылок */
	background:
		radial-gradient(1px 1px at 4% 12%, rgba(255, 255, 255, 0.7) 50%, transparent 51%),
		radial-gradient(1px 1px at 13% 88%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
		radial-gradient(1px 1px at 22% 10%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
		radial-gradient(1px 1px at 37% 90%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
		radial-gradient(1px 1px at 46% 12%, rgba(255, 255, 255, 0.45) 50%, transparent 51%),
		radial-gradient(1px 1px at 58% 88%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
		radial-gradient(1px 1px at 69% 10%, rgba(255, 255, 255, 0.5) 50%, transparent 51%),
		radial-gradient(1px 1px at 81% 90%, rgba(255, 255, 255, 0.55) 50%, transparent 51%),
		radial-gradient(1px 1px at 93% 12%, rgba(255, 255, 255, 0.6) 50%, transparent 51%),
		linear-gradient(135deg, var(--sw-navy-900) 0%, var(--sw-navy-700) 62%, #24406a 100%);
}
/* Несколько звёзд поярче мерцают. Слой без z-index: иначе выпадающее
   меню «Личный кабинет» окажется под шапкой */
html.season-winter #top::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(1.5px 1.5px at 9% 14%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 31% 86%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 52% 12%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 75% 86%, #fff 50%, transparent 51%),
		radial-gradient(1.5px 1.5px at 88% 14%, #fff 50%, transparent 51%);
	opacity: 0.35;
	animation: sw-stars 4.5s ease-in-out infinite alternate;
}
@keyframes sw-stars {
	to { opacity: 0.9; }
}

/* Поздравление посередине полосы — только на планшете (768–1199 px): на
   компьютере полоса занята подписями ссылок, там оно в шапке у ёлки,
   на телефоне — под логотипом */
html.season-winter .season-greeting {
	flex: 1 1 0;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-align: center;
	color: var(--sw-gold);
	font-size: 13px;
	font-style: italic;
	letter-spacing: 0.02em;
	line-height: 1;
}
html.season-winter .season-greeting.is-hidden {
	visibility: hidden;
}
html.season-winter .season-greeting .fa {
	font-size: 11px;
	margin: 0 7px;
	opacity: 0.75;
}

/* ===== Шапка: ледяной фон и полоса под гирлянду ===== */
html.season-winter header {
	background: linear-gradient(180deg, #d6e2ef 0%, #e5ecf5 34%, #f0f4f9 100%);
	box-shadow: 0 2px 14px rgba(20, 42, 76, 0.08);
	padding-top: 40px;
}
/* Содержимое шапки — над гирляндой (0) и над снежным краем (2): иначе снег
   ляжет поверх раскрытой корзины и подсказок поиска */
html.season-winter header > .container {
	position: relative;
	z-index: 3;
}
/* Снег на краю шапки, свисает на меню. Шапка (z-index 991) выше меню (990) */
html.season-winter header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -9px;
	height: 16px;
	pointer-events: none;
	z-index: 2;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='16' viewBox='0 0 200 16'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23e3ecf7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 0H200V6C194 6 192 10 186 10C179 10 178 7 170 7C162 7 160 12 150 12C141 12 139 8 131 8C126 8 125 9.5 122 9.5L121 15L119.5 9.5C113 9.5 110 6 102 6C94 6 92 11 82 11C73 11 70 7 62 7C55 7 53 10 46 10L45 13.5L43.8 10C38 10 36 6 28 6C20 6 18 10 10 10C5 10 3 6 0 6Z'/%3E%3C/svg%3E") repeat-x 0 0 / 200px 16px;
	filter: drop-shadow(0 2px 1.5px rgba(28, 56, 98, 0.2));
}

/* Меню под шапкой — чуть голубее белого, чтобы читался снег */
html.season-winter .menu-container {
	background: var(--sw-ice-50);
	border-bottom-color: var(--sw-ice-300);
	box-shadow: 0 3px 12px rgba(20, 42, 76, 0.08);
}
html.season-winter .menu-link:hover {
	background: rgba(28, 48, 80, 0.07);
}

/* ===== Гирлянда и игрушки (строит winter.js) ===== */
.sw-garland {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}
.sw-garland__wire {
	position: absolute;
	top: 0;
	left: 0;
	overflow: visible;
}
.sw-bulb {
	position: absolute;
	width: 8px;
	height: 12px;
	margin-left: -4px;
	transform-origin: 50% 0;
	transform: rotate(var(--r, 0deg));
}
/* Цоколь */
.sw-bulb::before {
	content: "";
	position: absolute;
	left: 1.5px;
	top: 0;
	width: 5px;
	height: 4px;
	border-radius: 1px;
	background: #3d4a3f;
}
/* Колба со свечением; мерцает только непрозрачность — это дёшево */
.sw-bulb i {
	position: absolute;
	left: 0;
	top: 3px;
	width: 8px;
	height: 10px;
	border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
	background: radial-gradient(circle at 40% 35%, #fff 0 12%, var(--c) 45%, var(--c2) 100%);
	box-shadow: 0 0 6px 2px var(--g), 0 0 14px 4px var(--g);
	animation: sw-twinkle var(--d, 2.4s) ease-in-out var(--dl, 0s) infinite alternate;
}
@keyframes sw-twinkle {
	0%, 30% { opacity: 1; }
	100% { opacity: 0.38; }
}
.sw-c1 { --c: #ffd77a; --c2: #e0a530; --g: rgba(255, 205, 110, 0.55); }
.sw-c2 { --c: #ff6b5e; --c2: #b8322a; --g: rgba(255, 96, 80, 0.45); }
.sw-c3 { --c: #8fd0ff; --c2: #3b8fd0; --g: rgba(120, 190, 255, 0.5); }
.sw-c4 { --c: #7fe0a6; --c2: #2f9a5c; --g: rgba(110, 220, 150, 0.42); }
.sw-c5 { --c: #fff3d6; --c2: #f0c98a; --g: rgba(255, 236, 190, 0.6); }

/* Ёлочная игрушка: нитка + шар (или сосулька, звезда) с колпачком; качается */
.sw-toy {
	position: absolute;
	top: 0;
	width: var(--s, 22px);
	margin-left: calc(var(--s, 22px) / -2);
	transform-origin: 50% 0;
	animation: sw-swing var(--sd, 4s) ease-in-out var(--sdl, 0s) infinite alternate;
}
@keyframes sw-swing {
	from { transform: rotate(-3.5deg); }
	to { transform: rotate(3.5deg); }
}
.sw-toy__thread {
	display: block;
	width: 1px;
	height: var(--len, 10px);
	margin: 0 auto;
	background: linear-gradient(180deg, rgba(120, 140, 170, 0.35), rgba(170, 150, 110, 0.9));
}
.sw-toy__cap {
	display: block;
	width: 32%;
	height: 4px;
	margin: 0 auto;
	border-radius: 1px 1px 0 0;
	background: linear-gradient(90deg, #a8812f, #f3d58a 45%, #b88d34);
}
.sw-toy__ball {
	position: relative;
	display: block;
	width: var(--s, 22px);
	height: var(--s, 22px);
	margin-top: -1px;
	border-radius: 50%;
	background: radial-gradient(circle at 34% 30%, var(--t1) 0%, var(--t2) 42%, var(--t3) 100%);
	box-shadow: inset -2px -3px 6px rgba(0, 0, 0, 0.22), 0 3px 6px rgba(18, 36, 66, 0.22);
}
/* Блик */
.sw-toy__ball::after {
	content: "";
	position: absolute;
	left: 22%;
	top: 16%;
	width: 26%;
	height: 18%;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.75);
	transform: rotate(-30deg);
	filter: blur(0.4px);
}
/* Поясок с «изморозью» у части шаров */
.sw-toy--band .sw-toy__ball::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 44%;
	height: 16%;
	background:
		radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.5px) 0 50% / 5px 100% repeat-x,
		linear-gradient(90deg, rgba(240, 210, 140, 0.15), rgba(255, 236, 190, 0.85) 50%, rgba(240, 210, 140, 0.15));
	opacity: 0.9;
}
.sw-t1 { --t1: #8eb6ea; --t2: #24508f; --t3: #0f2547; }   /* синий */
.sw-t2 { --t1: #e6878e; --t2: #8c2232; --t3: #4a0f19; }   /* бордо, как у магазина */
.sw-t3 { --t1: #ffffff; --t2: #c8d4e3; --t3: #7d8ea6; }   /* серебро */
.sw-t4 { --t1: #fff1c4; --t2: #d6a640; --t3: #7d5a14; }   /* золото */
.sw-t5 { --t1: #a5e0d0; --t2: #2e7d6b; --t3: #123d34; }   /* изумруд */

/* Сосулька */
.sw-toy--icicle .sw-toy__ball {
	width: calc(var(--s) * 0.62);
	height: calc(var(--s) * 1.9);
	margin-left: auto;
	margin-right: auto;
	border-radius: 50% 50% 50% 50% / 18% 18% 82% 82%;
	clip-path: polygon(0 0, 100% 0, 62% 100%, 38% 100%);
	background: linear-gradient(90deg, #a9c3e2 0%, #ffffff 38%, #cfdff1 60%, #8aa9cf 100%);
	box-shadow: none;
}
.sw-toy--icicle .sw-toy__ball::after {
	left: 30%;
	width: 14%;
	height: 50%;
}
/* Звезда */
.sw-toy--star .sw-toy__ball {
	border-radius: 0;
	clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 92%, 50% 71%, 21% 92%, 32% 57%, 2% 35%, 39% 35%);
	background: radial-gradient(circle at 45% 40%, #fff6d0 0%, #f0c859 45%, #a97a1c 100%);
	box-shadow: none;
}
.sw-toy--star .sw-toy__ball::after {
	display: none;
}

/* ===== Свечи (у логотипа и в пейзаже подвала) ===== */
.sw-candles {
	display: flex;
	align-items: flex-end;
	gap: 7px;
	flex-shrink: 0;
	position: relative;
	height: 74px;
	padding: 0 6px 8px;
	pointer-events: none;
}
.sw-candle {
	position: relative;
	width: 12px;
	height: var(--h, 40px);
	border-radius: 3px 3px 2px 2px;
	background: linear-gradient(90deg, #dccbb0 0%, #fffaf0 38%, #f3e7d2 62%, #cdb994 100%);
	box-shadow: 0 2px 3px rgba(40, 30, 20, 0.15);
}
.sw-candle--red {
	background: linear-gradient(90deg, #5a1520 0%, #9c3442 40%, #7e2433 62%, #4a111a 100%);
}
/* Наплыв воска сверху */
.sw-candle::before {
	content: "";
	position: absolute;
	left: -1px;
	right: -1px;
	top: -1px;
	height: 7px;
	border-radius: 4px 4px 45% 55% / 4px 4px 100% 80%;
	background: inherit;
	filter: brightness(1.06);
}
/* Фитиль */
.sw-candle::after {
	content: "";
	position: absolute;
	left: 50%;
	top: -5px;
	width: 1.5px;
	height: 6px;
	margin-left: -0.75px;
	border-radius: 1px;
	background: #2e231b;
}
.sw-flame {
	position: absolute;
	left: 50%;
	bottom: 100%;
	width: 9px;
	height: 18px;
	margin: 0 0 3px -4.5px;
	border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
	background: radial-gradient(ellipse 50% 60% at 50% 72%, #ffffff 0%, #fff3c4 28%, #ffc24d 55%, rgba(255, 140, 40, 0.85) 75%, rgba(255, 120, 30, 0) 100%);
	transform-origin: 50% 90%;
	animation: sw-flicker 1.7s ease-in-out var(--fd, 0s) infinite alternate;
}
/* Ореол — отдельный слой, мерцает прозрачностью */
.sw-flame::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 55%;
	width: 54px;
	height: 54px;
	margin: -27px 0 0 -27px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 196, 100, 0.42) 0%, rgba(255, 196, 100, 0.12) 40%, rgba(255, 196, 100, 0) 70%);
	animation: sw-halo 2.3s ease-in-out var(--fd, 0s) infinite alternate;
}
@keyframes sw-flicker {
	0% { transform: scale(1, 1) rotate(-1.5deg); }
	22% { transform: scale(0.94, 1.07) rotate(1.5deg); }
	47% { transform: scale(1.04, 0.95) rotate(-2.5deg); }
	73% { transform: scale(0.97, 1.04) rotate(2deg); }
	100% { transform: scale(1.02, 0.98) rotate(-0.5deg); }
}
@keyframes sw-halo {
	from { opacity: 0.75; }
	to { opacity: 1; }
}
/* ===== Пушистая ель с подарками у логотипа (image/season/winter-tree.svg) =====
   Огоньки и звезда мерцают внутри самого SVG, там же — «меньше движения» */
.sw-tree {
	flex-shrink: 0;
	width: 108px;
	height: 90px;
	pointer-events: none;
}
.sw-tree img {
	display: block;
	width: 100%;
	height: 100%;
}

/* ===== Поздравление в шапке: на компьютере — у ёлки, как подпись на
   открытке, на телефоне — под логотипом ===== */
.season-greeting-h {
	display: none;
}
@media (min-width: 1200px) {
	html.season-winter .season-greeting {
		display: none;
	}
	html.season-winter .season-greeting-h {
		position: absolute;
		left: calc(50% + var(--header-logo-width) / 2 + 108px);
		top: calc(var(--header-logo-width) / 6);
		transform: translateY(-50%);
		max-width: 140px;
		color: var(--tone-6b1f2c);
		font-family: Georgia, 'Times New Roman', serif;
		font-size: 15.5px;
		font-style: italic;
		line-height: 1.25;
		/* Длинное своё поздравление — не больше трёх строк */
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
	}
	.season-greeting-h .fa {
		display: none;
	}
}

/* ===== Карточки товара: холодная рамка ===== */
html.season-winter .pcard {
	border-color: #dde5ef;
}
html.season-winter .pcard:hover {
	border-color: #c8d6e7;
	box-shadow: 0 10px 26px rgba(24, 50, 90, 0.13);
}

/* ===== Снег на кнопках: корзина в шапке и «Добавить в корзину» / «Купить»
   на странице товара. У кнопки «уже в корзине» снега нет — она белая ===== */
html.season-winter .header-cart #cart,
html.season-winter .mobile-buy-btn {
	position: relative;
}
html.season-winter .header-cart #cart::before,
html.season-winter .cart-btn:not(.cart-btn--in-cart)::after,
html.season-winter .mobile-buy-btn:not(.in-cart)::after {
	content: "";
	position: absolute;
	left: 3px;
	right: 4px;
	top: -8px;
	height: 16px;
	z-index: 2;
	pointer-events: none;
	/* Один цельный сугроб с закруглёнными краями, тянется на ширину кнопки */
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='16' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='.65' stop-color='%23f7fafd'/%3E%3Cstop offset='1' stop-color='%23dfe8f4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M9.0 2.3 11.0 2.3 13.0 2.4 15.0 2.4 17.1 2.4 19.1 2.5 21.1 2.6 23.1 2.6 25.1 2.7 27.1 2.7 29.1 2.7 31.2 2.7 33.2 2.7 35.2 2.7 37.2 2.6 39.2 2.5 41.2 2.4 43.2 2.3 45.3 2.2 47.3 2.1 49.3 2.0 51.3 1.9 53.3 1.9 55.3 1.9 57.3 1.9 59.4 2.0 61.4 2.1 63.4 2.2 65.4 2.4 67.4 2.6 69.4 2.8 71.4 3.1 73.5 3.3 75.5 3.6 77.5 3.9 79.5 4.1 81.5 4.4 83.5 4.6 85.5 4.8 87.6 4.9 89.6 5.1 91.6 5.1 93.6 5.2 95.6 5.2 97.6 5.1 99.6 5.1 101.7 5.0 103.7 4.9 105.7 4.7 107.7 4.6 109.7 4.4 111.7 4.3 113.7 4.2 115.8 4.1 117.8 4.0 119.8 3.9 121.8 3.9 123.8 3.9 125.8 3.9 127.8 3.9 129.9 3.9 131.9 4.0 133.9 4.0 135.9 4.1 137.9 4.1 139.9 4.1 141.9 4.1 144.0 4.0 146.0 4.0 148.0 3.9 150.0 3.8 152.0 3.6 154.0 3.4 156.0 3.2 158.1 3.0 160.1 2.8 162.1 2.5 164.1 2.3 166.1 2.1 168.1 1.8 170.1 1.7 172.2 1.5 174.2 1.4 176.2 1.3 178.2 1.3 180.2 1.3 182.2 1.4 184.2 1.5 186.3 1.6 188.3 1.8 190.3 2.0 192.3 2.2 194.3 2.4 196.3 2.6 198.3 2.8 200.4 3.0 202.4 3.2 204.4 3.4 206.4 3.5 208.4 3.6 210.4 3.7 212.4 3.7 214.5 3.7 216.5 3.8 218.5 3.7 220.5 3.7 222.5 3.7 224.5 3.6 226.5 3.6 228.6 3.6 230.6 3.6 232.6 3.6 234.6 3.7 236.6 3.8 238.6 3.9 240.6 4.0 242.7 4.1 244.7 4.3 246.7 4.4 248.7 4.6 250.7 4.8 252.7 4.9 254.7 5.1 256.8 5.2 258.8 5.3 260.8 5.3 262.8 5.3 264.8 5.3 266.8 5.2 268.8 5.1 270.9 5.0 272.9 4.8 274.9 4.6 276.9 4.3 278.9 4.1 280.9 3.8 282.9 3.6 285.0 3.3 287.0 3.1 289.0 2.8 291.0 2.6 293.1 2.8 295.0 3.1 296.7 3.7 297.9 4.5 298.7 5.4 299.0 6.3 298.7 7.3 297.9 8.2 296.7 9.0 295.0 9.5 293.1 9.9 291.0 10.0 289.0 10.0 287.0 10.0 285.0 10.0 282.9 10.0 280.9 10.0 278.9 10.0 276.9 10.1 274.9 10.1 272.9 10.2 270.9 10.2 268.8 10.3 266.8 10.3 264.8 10.4 262.8 10.5 260.8 10.5 258.8 10.6 256.8 10.7 254.7 10.7 252.7 10.8 250.7 10.9 248.7 10.9 246.7 11.0 244.7 11.0 242.7 11.1 240.6 11.2 238.6 11.8 236.6 13.2 234.6 12.8 232.6 11.5 230.6 11.2 228.6 11.2 226.5 11.2 224.5 11.1 222.5 11.1 220.5 11.1 218.5 11.0 216.5 11.0 214.5 10.9 212.4 10.9 210.4 10.8 208.4 10.7 206.4 10.6 204.4 10.6 202.4 10.5 200.4 10.4 198.3 10.4 196.3 10.3 194.3 10.2 192.3 10.2 190.3 10.1 188.3 10.1 186.3 10.1 184.2 10.0 182.2 10.0 180.2 10.0 178.2 10.0 176.2 10.0 174.2 10.0 172.2 10.0 170.1 10.1 168.1 10.1 166.1 10.2 164.1 10.2 162.1 10.7 160.1 12.3 158.1 13.8 156.0 12.5 154.0 11.0 152.0 10.6 150.0 10.7 148.0 10.7 146.0 10.8 144.0 10.9 141.9 10.9 139.9 11.0 137.9 11.0 135.9 11.1 133.9 11.1 131.9 11.2 129.9 11.2 127.8 11.2 125.8 11.2 123.8 11.2 121.8 11.2 119.8 11.2 117.8 11.1 115.8 11.1 113.7 11.1 111.7 11.0 109.7 11.0 107.7 10.9 105.7 10.9 103.7 10.8 101.7 10.7 99.6 10.6 97.6 10.6 95.6 10.5 93.6 10.4 91.6 10.4 89.6 10.3 87.6 10.2 85.5 10.2 83.5 10.1 81.5 10.1 79.5 10.1 77.5 10.0 75.5 10.0 73.5 10.0 71.4 10.0 69.4 10.0 67.4 10.1 65.4 10.5 63.4 12.0 61.4 12.6 59.4 11.1 57.3 10.3 55.3 10.3 53.3 10.3 51.3 10.4 49.3 10.4 47.3 10.5 45.3 10.6 43.2 10.7 41.2 10.7 39.2 10.8 37.2 10.9 35.2 10.9 33.2 11.0 31.2 11.0 29.1 11.1 27.1 11.1 25.1 11.2 23.1 11.2 21.1 11.2 19.1 11.2 17.1 11.2 15.0 11.2 13.0 11.2 11.0 11.1 9.0 11.1 6.9 11.0 5.0 10.5 3.3 9.8 2.1 8.9 1.3 7.9 1.0 6.7 1.3 5.6 2.1 4.5 3.3 3.6 5.0 2.9 6.9 2.5Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
	filter: drop-shadow(0 1.5px 1px rgba(20, 40, 70, 0.28));
}
/* У большой кнопки скругление 16 px — снег начинается за изгибом угла */
html.season-winter .cart-btn:not(.cart-btn--in-cart)::after {
	left: 9px;
	right: 10px;
	top: -9px;
	height: 18px;
}

/* ===== Фирменные цвета =====
   Бордовые кнопки, текст, рамки и розоватые/кремовые подложки перекрашивает
   палитра вверху файла (переменные --tone-*, scripts/season_palette.py).
   Здесь — только то, что на сайте не бордовое: чёрные кнопки выбора города
   и раскрывашки связи на телефоне — тоже в синий */
html.season-winter .city-modal__submit,
html.season-winter .floating-messenger__trigger {
	background: linear-gradient(135deg, var(--tone-4a1a1f) 0%, var(--tone-6b1f2c) 100%);
}
html.season-winter .city-modal__submit:hover {
	background: linear-gradient(135deg, var(--tone-5b2028) 0%, var(--tone-7c2837) 100%);
}
html.season-winter .floating-messenger__trigger.is-open {
	background: #3a4f6e;
}

/* ===== Подвал: зимние сумерки и пейзаж ===== */
html.season-winter footer {
	position: relative;
	border-top: 0;
	background: linear-gradient(180deg, var(--sw-navy-800) 0%, #101b2e 100%);
}
html.season-winter:not(.season-no-scene) footer {
	margin-top: 160px;
}
html.season-winter footer hr {
	border-bottom-color: rgba(255, 255, 255, 0.14);
}
.sw-scene {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(100% - 1px);
	height: 150px;
	overflow: hidden;
	pointer-events: none;
	/* Сумерки: от фона страницы к цвету подвала */
	background: linear-gradient(180deg, rgba(237, 241, 246, 0) 0%, rgba(150, 172, 202, 0.35) 38%, rgba(52, 78, 118, 0.85) 78%, var(--sw-navy-800) 100%);
}
.sw-scene::before {
	content: "";
	position: absolute;
	inset: 40% 0 0;
	background:
		radial-gradient(1px 1px at 8% 30%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 27% 60%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 44% 20%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 63% 50%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 78% 25%, #fff 50%, transparent 51%),
		radial-gradient(1px 1px at 91% 55%, #fff 50%, transparent 51%);
	opacity: 0.45;
	animation: sw-stars 5s ease-in-out infinite alternate;
}
.sw-scene__ground {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 34px;
}
.sw-scene__left,
.sw-scene__right {
	position: absolute;
	bottom: 6px;
	height: 140px;
	color: var(--sw-navy-900);
}
.sw-scene__left {
	left: 0;
	width: 560px;
}
.sw-scene__right {
	right: 0;
	width: 485px;
}
.sw-scene .sw-far {
	color: #2c4468;
}
.sw-scene .sw-win {
	animation: sw-window 6s ease-in-out infinite alternate;
}
@keyframes sw-window {
	0%, 60% { opacity: 1; }
	100% { opacity: 0.8; }
}
.sw-scene__candles {
	position: absolute;
	right: 9%;
	bottom: 4px;
	height: auto;
	padding: 0 4px 6px;
}
.sw-scene__candles .sw-candle {
	width: 15px;
}

/* ===== Телефон и планшет ===== */
@media (min-width: 1200px) {
	/* Ёлка и поздравление — справа от логотипа, выше поиска */
	.header-inner > .sw-tree {
		position: absolute;
		left: calc(50% + var(--header-logo-width) / 2 - 8px);
		top: calc(var(--header-logo-width) / 6);
		transform: translateY(-50%);
	}
}
@media (max-width: 1199px) {
	/* На средних экранах между логотипом и поиском места нет */
	.header-inner > .sw-tree {
		display: none;
	}
}
@media (max-width: 767px) {
	html.season-winter .season-greeting {
		display: none;
	}
	html.season-winter header {
		padding-top: 34px;
	}
	/* Ёлка над правым краем крупного логотипа, в свободном углу шапки */
	.header-inner > .sw-tree {
		display: block;
		position: absolute;
		right: -6px;
		top: -18px;
		width: 54px;
		height: 45px;
	}
	html.season-winter .season-greeting-h {
		display: block;
		width: 100%;
		order: 2;
		margin: -6px 0 -2px;
		text-align: center;
		color: #2a4570;
		font-size: 15px;
		font-style: italic;
		line-height: 1.3;
	}
	.season-greeting-h .fa {
		font-size: 12px;
		margin: 0 6px;
		color: #6f8db5;
	}
	html.season-winter:not(.season-no-scene) footer {
		margin-top: 112px;
	}
	.sw-scene {
		height: 108px;
	}
	.sw-scene__left {
		height: 96px;
		width: 384px;
	}
	.sw-scene__right {
		display: none;
	}
	.sw-scene__ground {
		height: 24px;
	}
	.sw-scene__candles {
		right: 14px;
		transform: scale(0.82);
		transform-origin: 100% 100%;
	}
}
/* Узкий телефон: ёлке у логотипа не хватает места */
@media (max-width: 374px) {
	.header-inner > .sw-tree {
		display: none;
	}
}

/* ===== Снег (холст поверх страницы, нажатия проходят насквозь) ===== */
.sw-snow {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 999;
	pointer-events: none;
}

/* Кто просил систему меньше анимаций — всё неподвижно */
@media (prefers-reduced-motion: reduce) {
	html.season-winter #top::before,
	.sw-bulb i,
	.sw-toy,
	.sw-flame,
	.sw-flame::after,
	.sw-scene::before,
	.sw-scene .sw-win {
		animation: none !important;
	}
}

/* Печать — без украшений */
@media print {
	.sw-garland,
	.sw-snow,
	.sw-candles,
	.sw-tree,
	.sw-scene {
		display: none !important;
	}
}
