/**
 * CWKS Resovia — home cover gate + sticky strip.
 */

/* ========== NOTICE ========== */

body > #cwks-notice.cwks-notice,
#cwks-notice.cwks-notice {
	--cwks-spot-h: 2.75rem;
	--cwks-spot-bg: #000000;
	--cwks-spot-fg: #ffffff;
	--cwks-rsv-cta-bg: #e40001;
	--cwks-rsv-cta-fg: #ffffff;
	--cwks-spot-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--cwks-spot-pad-x: 0.75rem;
	--cwks-spot-tabbar: 0px;

	position: fixed !important;
	left: 0 !important;
	right: 0 !important;
	bottom: var(--cwks-spot-tabbar) !important;
	top: auto !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: 1090 !important;
	height: var(--cwks-spot-h);
	min-height: var(--cwks-spot-h);
	background: var(--cwks-spot-bg);
	color: var(--cwks-spot-fg);
	box-shadow:
		0 -8px 32px rgba(0, 0, 0, 0.28),
		0 -1px 0 rgba(255, 255, 255, 0.06) inset;
	transform: translate3d(0, 110%, 0);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	overflow: visible;
	font-family: "Saira Condensed", "Kumbh Sans", sans-serif;
	box-sizing: border-box !important;
}

#cwks-notice.cwks-notice[hidden] {
	display: none !important;
}

#cwks-notice.cwks-notice.is-visible {
	display: block !important;
	visibility: visible;
	pointer-events: auto;
	animation: cwks-notice-enter 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

#cwks-notice.cwks-notice.is-hiding {
	animation: cwks-spot-slide-down 0.45s var(--cwks-spot-ease) forwards;
	pointer-events: none;
}

@keyframes cwks-notice-enter {
	0% {
		transform: translate3d(0, 100%, 0);
		opacity: 0;
	}
	55% {
		transform: translate3d(0, -4%, 0);
		opacity: 1;
	}
	78% {
		transform: translate3d(0, 1.5%, 0);
		opacity: 1;
	}
	100% {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
}

@keyframes cwks-spot-slide-up {
	0% {
		transform: translate3d(0, 110%, 0);
		opacity: 0;
	}
	100% {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
}

@keyframes cwks-spot-slide-down {
	0% {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
	100% {
		transform: translate3d(0, 110%, 0);
		opacity: 0;
	}
}

body.cwks-rsv-gate-open #cwks-notice.cwks-notice {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.cwks-notice__shine {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		transparent 40%,
		rgba(255, 255, 255, 0.1) 50%,
		transparent 60%
	);
	transform: translateX(-120%);
	opacity: 0;
}

.cwks-notice.is-visible .cwks-notice__shine {
	animation: cwks-spot-shine 1.1s 0.25s var(--cwks-spot-ease) forwards;
}

@keyframes cwks-spot-shine {
	0% {
		transform: translateX(-120%);
		opacity: 0;
	}
	20% {
		opacity: 1;
	}
	100% {
		transform: translateX(120%);
		opacity: 0;
	}
}

.cwks-notice__inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: stretch;
	gap: 0;
	height: 100%;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1rem;
	box-sizing: border-box;
	overflow: hidden;
}

.cwks-notice__content {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	max-width: none;
}

@media (min-width: 801px) {
	.cwks-notice__content {
		justify-content: center;
		gap: 0.75rem;
	}

	.cwks-notice__text {
		flex: 0 1 auto;
		text-align: center;
	}

	.cwks-notice__actions {
		margin-left: 0;
	}
}

@media (max-width: 800px) {
	.cwks-notice__content {
		justify-content: space-between;
		gap: 0.5rem;
	}

	.cwks-notice__text {
		flex: 1 1 auto;
		text-align: left;
	}

	.cwks-notice__actions {
		margin-left: 0.5rem;
	}
}

.cwks-notice__close {
	appearance: none;
	position: absolute;
	top: calc(-2.25rem - 0.4rem);
	right: 0.75rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.45s ease, visibility 0.45s ease, background 0.2s ease;
}

.cwks-notice.is-close-ready .cwks-notice__close {
	opacity: 0.9;
	visibility: visible;
	pointer-events: auto;
}

.cwks-notice__close:hover,
.cwks-notice__close:focus-visible {
	opacity: 1;
	background: #e40001;
	outline: none;
}

.cwks-notice__text {
	margin: 0;
	flex: 1 1 auto;
	min-width: 0;
	font-size: clamp(0.8rem, 1.5vw, 1rem);
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: uppercase;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	opacity: 0;
	transform: translate3d(-2rem, 0, 0);
}

.cwks-notice.is-ready .cwks-notice__text {
	animation: cwks-spot-text-in 0.65s 0.15s var(--cwks-spot-ease) forwards;
}

@keyframes cwks-spot-text-in {
	0% {
		opacity: 0;
		transform: translate3d(-2rem, 0, 0);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.cwks-notice__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	margin-left: 0.5rem;
	gap: 0.4rem;
}

.cwks-rsv-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: calc(var(--cwks-spot-h) - 0.55rem);
	max-height: 2.15rem;
	padding: 0 1rem;
	border-radius: 999px;
	background: var(--cwks-rsv-cta-bg, #e40001);
	color: var(--cwks-rsv-cta-fg, #fff);
	text-decoration: none !important;
	font-size: clamp(0.7rem, 1.2vw, 0.85rem);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1;
	white-space: nowrap;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
	transition:
		transform 0.25s var(--cwks-spot-ease),
		box-shadow 0.25s ease,
		filter 0.25s ease;
	opacity: 0;
	transform: translate3d(2rem, 0, 0);
	will-change: transform, box-shadow, filter;
	box-sizing: border-box;
}

.cwks-notice.is-ready .cwks-rsv-cta {
	animation: cwks-rsv-cta-in 0.55s 0.28s var(--cwks-spot-ease) forwards;
}

@keyframes cwks-rsv-cta-in {
	0% {
		opacity: 0;
		transform: translate3d(2rem, 0, 0);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.cwks-rsv-cta:hover,
.cwks-rsv-cta:focus-visible {
	transform: none;
	filter: brightness(1.06);
	box-shadow:
		0 4px 14px rgba(228, 0, 1, 0.35),
		0 1px 0 rgba(255, 255, 255, 0.14) inset;
	outline: none;
	color: var(--cwks-rsv-cta-fg, #fff);
}

.cwks-rsv-cta:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.55);
	outline-offset: 2px;
}

.cwks-rsv-cta--animated {
	position: relative;
	overflow: hidden;
	min-width: var(--cwks-rsv-cta-rotator-width, auto);
}

.cwks-rsv-cta--animated::after {
	content: '';
	position: absolute;
	top: 0;
	left: -120%;
	width: 55%;
	height: 100%;
	background: linear-gradient(
		105deg,
		transparent 0%,
		rgba(255, 255, 255, 0.2) 38%,
		rgba(255, 255, 255, 0.95) 50%,
		rgba(255, 255, 255, 0.2) 62%,
		transparent 100%
	);
	transform: skewX(-20deg);
	opacity: 0;
	pointer-events: none;
	z-index: 2;
}

.cwks-rsv-cta--animated.is-flashing::after {
	animation: cwks-rsv-cta-shine 0.42s ease-out forwards;
}

@keyframes cwks-rsv-cta-shine {
	0% {
		left: -120%;
		opacity: 0;
	}
	20% {
		opacity: 1;
	}
	100% {
		left: 140%;
		opacity: 0;
	}
}

.cwks-rsv-cta-rotator {
	position: relative;
	display: grid;
	place-items: center;
	min-width: var(--cwks-rsv-cta-rotator-width, auto);
}

.cwks-rsv-cta-rotator-track {
	position: relative;
	display: grid;
	place-items: center;
}

.cwks-rsv-cta-slide {
	grid-area: 1 / 1;
	opacity: 0;
	transform: translateX(22px) scale(0.97);
	transition:
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.32s ease,
		filter 0.2s ease,
		text-shadow 0.2s ease;
	white-space: nowrap;
	pointer-events: none;
}

.cwks-rsv-cta-slide.is-active {
	opacity: 1;
	transform: translateX(0) scale(1);
}

.cwks-rsv-cta-slide.is-flashing {
	filter: brightness(1.45);
	text-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

.cwks-rsv-cta-slide.is-leaving {
	opacity: 0;
	transform: translateX(-22px) scale(0.97);
}

.cwks-rsv-cta.is-pulsing {
	animation: cwks-spot-pulse 0.7s var(--cwks-spot-ease);
	z-index: 2;
}

@keyframes cwks-spot-pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
	}
	35% {
		transform: scale(1.08);
		box-shadow:
			0 0 0 3px rgba(255, 255, 255, 0.22),
			0 6px 18px rgba(0, 0, 0, 0.35);
		filter: brightness(1.12);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
		filter: none;
	}
}

/* ========== HOME COVER GATE ========== */

body > #cwks-rsv-gate.cwks-rsv-gate,
#cwks-rsv-gate.cwks-rsv-gate {
	--cwks-spot-ease: cubic-bezier(0.22, 1, 0.36, 1);

	position: fixed !important;
	inset: 0 !important;
	z-index: 12080 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding:
		max(1rem, env(safe-area-inset-top))
		max(1rem, env(safe-area-inset-right))
		max(1rem, env(safe-area-inset-bottom))
		max(1rem, env(safe-area-inset-left));
	box-sizing: border-box;
	font-family: "Saira Condensed", "Kumbh Sans", sans-serif;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

#cwks-rsv-gate.cwks-rsv-gate[hidden] {
	display: none !important;
}

#cwks-rsv-gate.cwks-rsv-gate.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	animation: cwks-rsv-gate-fade-in 0.35s var(--cwks-spot-ease) forwards;
}

#cwks-rsv-gate.cwks-rsv-gate.is-hiding {
	animation: cwks-rsv-gate-fade-out 0.3s var(--cwks-spot-ease) forwards;
	pointer-events: none;
}

@keyframes cwks-rsv-gate-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes cwks-rsv-gate-fade-out {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

.cwks-rsv-gate__veil {
	position: absolute;
	inset: 0;
	background: #e40001;
	cursor: pointer;
	overflow: hidden;
	will-change: background-color, filter;
}

.cwks-rsv-gate__veil.is-bg-red {
	background: #e40001;
}

.cwks-rsv-gate__veil.is-bg-white {
	background: #ffffff;
}

.cwks-rsv-gate__veil.is-strobing {
	filter: brightness(1.85) contrast(1.25) saturate(1.4);
}

.cwks-rsv-gate__veil.is-strobing.is-strobe-red {
	background: #e40001 !important;
	box-shadow: inset 0 0 120px rgba(255, 255, 255, 0.45);
}

.cwks-rsv-gate__veil.is-strobing.is-strobe-white {
	background: #ffffff !important;
	box-shadow: inset 0 0 140px rgba(228, 0, 1, 0.55);
}

@media (prefers-reduced-motion: reduce) {
	.cwks-rsv-gate__veil.is-strobing {
		filter: none;
		box-shadow: none;
	}
}

.cwks-rsv-gate__stage {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.85rem;
	width: min(100%, 56rem);
	max-height: min(92vh, 92dvh);
}

.cwks-rsv-gate__timer {
	margin: 0;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	font-size: clamp(0.78rem, 2vw, 0.92rem);
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1.3;
	opacity: 0;
	transform: translate3d(0, -0.5rem, 0);
}

.cwks-rsv-gate__timer-label {
	margin-right: 0.35em;
}

.cwks-rsv-gate__timer-unit {
	letter-spacing: 0;
	margin-left: 0.05em;
}

.cwks-rsv-gate.is-visible .cwks-rsv-gate__timer {
	animation: cwks-spot-timer-in 0.45s 0.12s var(--cwks-spot-ease) forwards;
}

.cwks-rsv-gate.is-ready .cwks-rsv-gate__timer {
	opacity: 0.95;
	transform: none;
	animation: none;
}

@keyframes cwks-spot-timer-in {
	0% {
		opacity: 0;
		transform: translate3d(0, -0.5rem, 0);
	}
	100% {
		opacity: 0.95;
		transform: translate3d(0, 0, 0);
	}
}

.cwks-rsv-gate__timer-count {
	display: inline-block;
	min-width: 2ch;
	text-align: right;
	letter-spacing: 0;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #ffffff;
}

.cwks-rsv-gate__frame {
	position: relative;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: 100%;
	max-height: calc(min(92vh, 92dvh) - 7rem);
	overflow: hidden;
	border-radius: 0.35rem;
	box-shadow:
		0 24px 64px rgba(0, 0, 0, 0.45),
		0 0 0 1px rgba(255, 255, 255, 0.08);
	opacity: 0;
	transform: translate3d(0, 1rem, 0) scale(0.97);
}

.cwks-rsv-gate__image-link {
	display: block;
	width: 100%;
	line-height: 0;
	text-decoration: none;
	color: inherit;
}

.cwks-rsv-gate__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	opacity: 0;
	transform: translate3d(0, 0.75rem, 0);
}

.cwks-rsv-gate.is-visible .cwks-rsv-gate__actions {
	animation: cwks-rsv-cta-in 0.45s 0.18s var(--cwks-spot-ease) forwards;
}

.cwks-rsv-gate.is-ready .cwks-rsv-gate__actions {
	opacity: 1;
	transform: none;
	animation: none;
}

@keyframes cwks-rsv-cta-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 0.75rem, 0);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

.cwks-rsv-cta--cover {
	height: auto;
	min-height: 3rem;
	max-height: none;
	padding: 0.95rem 1.75rem;
	font-size: clamp(0.95rem, 2.6vw, 1.2rem);
	opacity: 1;
	transform: none;
	animation: none;
	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.28),
		0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.cwks-rsv-cta--cover:hover,
.cwks-rsv-cta--cover:focus-visible {
	transform: none;
}

.cwks-rsv-gate.is-visible .cwks-rsv-gate__frame {
	animation: cwks-spot-frame-in 0.45s 0.08s var(--cwks-spot-ease) forwards;
}

.cwks-rsv-gate.is-ready .cwks-rsv-gate__frame {
	opacity: 1;
	transform: none;
	animation: none;
}

@keyframes cwks-spot-frame-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 1rem, 0) scale(0.97);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

.cwks-rsv-gate__image-img {
	display: block;
	width: 100%;
	height: auto;
	max-height: calc(min(92vh, 92dvh) - 7rem);
	object-fit: contain;
	margin: 0 auto;
	vertical-align: middle;
	background: #111;
}

.cwks-rsv-gate__close {
	appearance: none;
	position: absolute;
	top: 0.55rem;
	right: 0.55rem;
	width: 2.25rem;
	height: 2.25rem;
	border: 0;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.55);
	color: #ffffff;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.9;
	transition: opacity 0.2s ease, background 0.2s ease;
	z-index: 2;
}

.cwks-rsv-gate__close:hover,
.cwks-rsv-gate__close:focus-visible {
	opacity: 1;
	background: #e40001;
	outline: none;
}

/* ========== RESPONSIVE / TABBAR ========== */
/* Tabbar motywu: .mobile-header { height: 65px } */

@media (max-width: 1000px) {
	body > #cwks-notice.cwks-notice,
	#cwks-notice.cwks-notice {
		--cwks-spot-tabbar: 65px;
		height: auto !important;
		min-height: var(--cwks-spot-h);
		overflow: visible;
		/* Pod tabbarem (.mobile-header z-index: 1000) — wjazd „spod” paska. */
		z-index: 990 !important;
		bottom: var(--cwks-spot-tabbar) !important;
		transform: translate3d(0, calc(100% + var(--cwks-spot-tabbar)), 0);
	}

	#cwks-notice.cwks-notice.is-visible {
		animation: cwks-notice-enter-mobile 1.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
	}

	#cwks-notice.cwks-notice.is-hiding {
		animation: cwks-notice-exit-mobile 0.45s var(--cwks-spot-ease) forwards;
	}

	@keyframes cwks-notice-enter-mobile {
		0% {
			transform: translate3d(0, calc(100% + var(--cwks-spot-tabbar)), 0);
			opacity: 0;
		}
		55% {
			transform: translate3d(0, -4%, 0);
			opacity: 1;
		}
		78% {
			transform: translate3d(0, 1.5%, 0);
			opacity: 1;
		}
		100% {
			transform: translate3d(0, 0, 0);
			opacity: 1;
		}
	}

	@keyframes cwks-notice-exit-mobile {
		0% {
			transform: translate3d(0, 0, 0);
			opacity: 1;
		}
		100% {
			transform: translate3d(0, calc(100% + var(--cwks-spot-tabbar)), 0);
			opacity: 0;
		}
	}

	#cwks-notice .cwks-notice__inner {
		align-items: center;
		justify-content: stretch;
		height: 100%;
		min-height: var(--cwks-spot-h);
		max-width: 1280px;
		margin: 0 auto;
		padding: 0 1rem;
		gap: 0;
	}

	#cwks-notice .cwks-notice__content {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: center;
		gap: 0.75rem;
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
	}

	#cwks-notice .cwks-notice__text {
		flex: 0 1 auto;
		width: auto;
		max-width: none;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		text-align: center;
		font-size: 0.78rem;
	}

	#cwks-notice .cwks-notice__actions {
		justify-content: center;
		flex: 0 0 auto;
		margin-left: 0;
		width: auto;
	}

	#cwks-notice .cwks-notice__close {
		top: calc(-2.1rem - 0.3rem);
		right: 0.75rem;
		width: 2.1rem;
		height: 2.1rem;
		font-size: 1.35rem;
	}

	#cwks-notice .cwks-rsv-cta {
		height: 1.85rem;
		padding: 0 0.75rem;
		font-size: 0.68rem;
	}

	.cwks-rsv-gate__stage {
		width: min(100%, 100%);
		padding-bottom: calc(65px + 0.5rem);
	}

	.cwks-rsv-gate__frame,
	.cwks-rsv-gate__image-img {
		max-height: calc(min(92vh, 92dvh) - 65px - 7rem);
	}

	.cwks-rsv-cta--cover {
		min-height: 2.75rem;
		padding: 0.8rem 1.35rem;
		font-size: 0.95rem;
		width: min(100%, 20rem);
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	#cwks-notice.cwks-notice,
	#cwks-notice.cwks-notice.is-visible,
	#cwks-notice.cwks-notice.is-hiding,
	#cwks-notice .cwks-notice__text,
	#cwks-notice .cwks-rsv-cta,
	#cwks-notice .cwks-notice__shine,
	#cwks-rsv-gate.cwks-rsv-gate,
	#cwks-rsv-gate .cwks-rsv-gate__frame,
	#cwks-rsv-gate .cwks-rsv-gate__timer,
	#cwks-rsv-gate .cwks-rsv-gate__actions {
		animation: none !important;
		transition: none !important;
	}

	#cwks-notice .cwks-notice__close {
		transition: none !important;
	}

	#cwks-notice.cwks-notice.is-visible {
		transform: none;
		opacity: 1;
		visibility: visible;
	}

	#cwks-notice.is-ready .cwks-notice__text,
	#cwks-notice.is-ready .cwks-rsv-cta,
	#cwks-rsv-gate.is-visible .cwks-rsv-gate__frame,
	#cwks-rsv-gate.is-visible .cwks-rsv-gate__timer,
	#cwks-rsv-gate.is-visible .cwks-rsv-gate__actions {
		opacity: 1;
		transform: none;
	}
}

.cwks-spot-spacer {
	display: block;
	width: 100%;
	height: 0;
	margin: 0;
	padding: 0;
	pointer-events: none;
	visibility: hidden;
	flex-shrink: 0;
}

.cwks-spot-spacer[hidden] {
	display: none !important;
}

html.cwks-spot-has-notice,
body.cwks-spot-has-notice {
	scroll-padding-bottom: calc(var(--cwks-spot-spacer, var(--cwks-spot-h, 2.75rem)) + var(--cwks-spot-tabbar, 0px));
}

@media (max-width: 1000px) {
	html.cwks-spot-has-notice,
	body.cwks-spot-has-notice {
		--cwks-spot-tabbar: 65px;
	}
}
