/* Гирлянда закреплена на нижней кромке полосы с контактами. */
.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: calc(100% - 7px) 0 auto;
	height: 21px;
	background-position: center top;
	background-repeat: repeat-x;
	background-size: 288px 21px;
}

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

@media (prefers-reduced-motion: no-preference) {
	.newhead-general > .shad-container::after {
		background-image:
			radial-gradient(ellipse 4px 4px at 6.25% 51%, #fff2c6d9, #ffca654d 51%, transparent),
			radial-gradient(ellipse 4px 4px at 33.3% 64%, #fff8dfd9, #ffc76a42 51%, transparent),
			radial-gradient(ellipse 4px 4px at 61.8% 69%, #fff1c1d9, #ffca654d 51%, transparent);
		animation: tsk-winter-glass-shimmer 7s ease-in-out infinite;
	}
}

@keyframes tsk-winter-glass-shimmer {
	0%, 100% { opacity: 0.08; }
	50% { opacity: 0.62; }
}

#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 {
		inset-block-start: calc(100% - 6px);
		height: 17px;
		background-size: 232px 17px;
	}

	#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;
	}
}
