/* PS Beton – vánoční logo (v1.17.0): sníh na rámečku loga, Santova čepice a stromeček. Zapíná se v Nastavení › Zobrazení stránek. */

body.psb-vanoce .site-branding-logo a.custom-logo-link {
	position: relative;
	overflow: visible;
}

/* Sněhová čepice přes horní hranu rámečku */
body.psb-vanoce .site-branding-logo a.custom-logo-link::before {
	content: "";
	position: absolute;
	z-index: 2;
	left: -6px;
	right: -6px;
	top: -13px;
	height: 24px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 30' preserveAspectRatio='none'%3E%3Cpath d='M0 18C10 6 30 4 45 9C60 2 85 2 100 8C118 1 145 2 160 8C178 2 205 3 220 9C230 7 240 10 240 16L240 20C232 22 226 21 222 20C220 27 214 28 212 21C190 24 170 22 150 21C147 30 139 30 137 21C110 23 90 22 70 21C68 26 62 26 61 21C40 23 20 22 8 21C4 21 0 20 0 18Z' fill='%23FFFFFF' stroke='%23C9D8EE' stroke-width='1.2'/%3E%3Cpath d='M14 12C30 7 44 9 52 11M110 7C124 4 140 5 148 8M182 8C196 5 210 6 216 9' fill='none' stroke='%23E3ECF8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	filter: drop-shadow(0 2px 2px rgba(5, 18, 45, .18));
	pointer-events: none;
}

/* Santova čepice v pravém horním rohu */
body.psb-vanoce .site-branding-logo a.custom-logo-link::after {
	content: "";
	position: absolute;
	z-index: 3;
	right: -30px;
	top: -40px;
	width: 66px;
	height: 60px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 90'%3E%3Cpath d='M14 66C18 38 40 14 66 10C77 8 85 12 88 19C78 19 71 25 67 35C63 45 66 57 75 66Z' fill='%23D62828'/%3E%3Cpath d='M48 64C50 44 58 26 72 15C64 26 60 44 62 64Z' fill='%23A81D1D' opacity='.55'/%3E%3Crect x='5' y='60' width='80' height='19' rx='9.5' fill='%23FFFFFF' stroke='%23D5E0EF' stroke-width='1.5'/%3E%3Ccircle cx='88' cy='18' r='9.5' fill='%23FFFFFF' stroke='%23D5E0EF' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / contain;
	transform: rotate(16deg);
	transform-origin: 30% 90%;
	filter: drop-shadow(0 3px 4px rgba(5, 18, 45, .3));
	pointer-events: none;
	animation: psbHatWiggle 6s ease-in-out infinite;
}

/* Vánoční stromeček u levého dolního rohu loga */
body.psb-vanoce .site-branding-logo { position: relative; }
body.psb-vanoce .site-branding-logo::after {
	content: "";
	position: absolute;
	z-index: 3;
	left: -34px;
	bottom: -2px;
	width: 44px;
	height: 60px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 82'%3E%3Crect x='25' y='68' width='10' height='12' rx='2' fill='%237A4A21'/%3E%3Cpath d='M30 34L58 70H2Z' fill='%231E7B3C'/%3E%3Cpath d='M30 20L52 52H8Z' fill='%23238C45'/%3E%3Cpath d='M30 8L46 34H14Z' fill='%2329A050'/%3E%3Cpath d='M14 34C18 37 22 35 24 33M36 33C39 36 43 36 46 34M8 52C13 55 18 54 21 51M39 51C43 55 48 55 52 52M2 70C8 73 14 72 18 69M42 69C46 73 52 73 58 70' fill='none' stroke='%23FFFFFF' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='24' cy='28' r='2.6' fill='%23D62828'/%3E%3Ccircle cx='36' cy='44' r='2.8' fill='%23F5B400'/%3E%3Ccircle cx='20' cy='46' r='2.6' fill='%2365A8FF'/%3E%3Ccircle cx='40' cy='62' r='2.8' fill='%23D62828'/%3E%3Ccircle cx='17' cy='63' r='2.8' fill='%23F5B400'/%3E%3Ccircle cx='29' cy='56' r='2.4' fill='%23FFFFFF'/%3E%3Cpath d='M30 0L32.4 5.4L38 6L33.8 9.8L35 15.4L30 12.6L25 15.4L26.2 9.8L22 6L27.6 5.4Z' fill='%23F5B400' stroke='%23FFD866' stroke-width='.8'/%3E%3C/svg%3E") no-repeat center bottom / contain;
	filter: drop-shadow(0 3px 4px rgba(5, 18, 45, .35));
	pointer-events: none;
	animation: psbTreeGlow 3.2s ease-in-out infinite;
}
@keyframes psbTreeGlow {
	0%, 100% { filter: drop-shadow(0 3px 4px rgba(5, 18, 45, .35)); }
	50% { filter: drop-shadow(0 3px 4px rgba(5, 18, 45, .35)) drop-shadow(0 0 6px rgba(245, 180, 0, .55)); }
}

@keyframes psbHatWiggle {
	0%, 82%, 100% { transform: rotate(16deg); }
	88% { transform: rotate(10deg); }
	94% { transform: rotate(19deg); }
}

@media (max-width: 767px) {
	body.psb-vanoce .site-branding-logo a.custom-logo-link::before { top: -11px; height: 20px; }
	body.psb-vanoce .site-branding-logo a.custom-logo-link::after { right: -22px; top: -32px; width: 52px; height: 47px; }
	/* na telefonu je logo u okraje – stromeček vpravo vedle rámečku */
	body.psb-vanoce .site-branding-logo { display: inline-block; }
	body.psb-vanoce .site-branding-logo::after { left: auto; right: -40px; width: 34px; height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
	body.psb-vanoce .site-branding-logo a.custom-logo-link::after,
	body.psb-vanoce .site-branding-logo::after { animation: none; }
}
