/* Сезонный декор в свободных полосах шапки и подвала. */
.newhead-general > .shad-container::before,
.newhead-general > .shad-container::after,
#footer.tsk-foot::after {
	content: "";
	position: absolute;
	pointer-events: none;
}

.newhead-general > .shad-container::before,
.newhead-general > .shad-container::after {
	inset: 100% 0 auto;
	height: 16px;
	background-position: center top;
	background-repeat: repeat-x;
	background-size: 258px 16px;
}

.newhead-general > .shad-container::before {
	background-image: url("../images/tsk-winter-garland.webp");
}

@media (prefers-reduced-motion: no-preference) {
	.newhead-general > .shad-container::after {
		/* Блики совпадают с двумя золотыми лампочками на каждом повторе гирлянды. */
		background-image:
			radial-gradient(ellipse 4px 3px at 9.3% 51%, #fff8cc, #fad37b66 65%, transparent),
			radial-gradient(ellipse 4px 3px at 50% 75%, #fff8cc, #fad37b66 65%, transparent);
		animation: tsk-winter-twinkle 7s ease-in-out infinite;
	}
}

@keyframes tsk-winter-twinkle {
	0%, 100% { opacity: 0.06; }
	50% { opacity: 0.55; }
}

#footer.tsk-foot::after {
	top: 5px;
	right: max(16px, calc((100% - 1326px) / 2));
	width: min(420px, calc(100% - 32px));
	height: 46px;
	background: url("../images/tsk-winter-snowflakes.webp") right center / contain no-repeat;
}

@media (max-width: 978px) {
	#footer.tsk-foot::after {
		width: min(320px, calc(100% - 32px));
		height: 34px;
	}
}

@media (max-width: 768px) {
	.newhead-general > .shad-container::before,
	.newhead-general > .shad-container::after {
		height: 11px;
		background-size: 198px 11px;
	}

	#footer.tsk-foot::after {
		width: 236px;
		height: 26px;
	}
}

@media (forced-colors: active) {
	.newhead-general > .shad-container::before,
	.newhead-general > .shad-container::after,
	#footer.tsk-foot::after {
		display: none;
	}
}
