.k22-slider,
.k22-slider * {
	box-sizing: border-box;
}

.k22-slider {
	position: relative;
	isolation: isolate;
	width: 100%;
	max-width: 1920px;
	margin: 0 auto;
	background: var(--k22-bg, #f4f4f2);
	color: var(--k22-text, #292929);
	font-family: Inter, Montserrat, Avenir, "Segoe UI", Arial, sans-serif;
	line-height: 1.25;
	overflow: hidden;
	box-shadow: 0 1.25rem 3.5rem rgb(20 24 55 / 16%);
	outline: none;
	-webkit-font-smoothing: antialiased;
}

.k22-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	min-height: 31rem;
	background: var(--k22-bg, #f4f4f2);
}

.k22-slide {
	--slide-accent: var(--k22-accent, #363b75);
	--slide-bg: var(--k22-bg, #f4f4f2);
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	background: var(--slide-bg);
	color: var(--k22-text, #292929);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 650ms ease, transform 650ms cubic-bezier(.22, .61, .36, 1), visibility 650ms;
}

.k22-transition-slide .k22-slide {
	transform: translateX(5%);
}

.k22-transition-none .k22-slide {
	transition: none;
}

.k22-slide.is-active {
	z-index: 2;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(0);
}

.k22-photo {
	position: relative;
	grid-column: 2;
	grid-row: 1;
	background-color: color-mix(in srgb, var(--slide-accent), white 82%);
	background-image: var(--slide-image, linear-gradient(145deg, color-mix(in srgb, var(--slide-accent), white 76%), color-mix(in srgb, var(--slide-accent), white 92%)));
	background-position: center;
	background-size: cover;
}

.k22-photo::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--slide-accent);
	opacity: .08;
}

.k22-photo-overlay {
	display: none;
}

.k22-content-card {
	position: relative;
	z-index: 4;
	grid-column: 1;
	grid-row: 1;
	align-self: center;
	max-height: calc(100% - 9rem);
	margin: 4.5rem clamp(2.25rem, 5vw, 6.5rem);
	overflow: hidden;
}

.k22-kicker {
	margin: 0 0 1.15rem;
	color: var(--slide-accent);
	font-size: clamp(.72rem, 1.05vw, 1.15rem);
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.k22-title {
	position: relative;
	margin: 0 0 clamp(1rem, 2vw, 2rem);
	font-size: clamp(2.2rem, 4.5vw, 5.6rem);
	font-weight: 760;
	letter-spacing: -.045em;
	line-height: .98;
}

.k22-title::after {
	content: "";
	display: inline-block;
	width: clamp(2.8rem, 6vw, 6.5rem);
	height: .08em;
	margin: 0 0 .22em .25em;
	background: var(--slide-accent);
}

.k22-subtitle {
	margin: 0 0 1rem;
	font-size: clamp(1.05rem, 1.55vw, 1.85rem);
	font-weight: 620;
}

.k22-body {
	max-width: 46rem;
	font-size: clamp(.9rem, 1.18vw, 1.35rem);
	line-height: 1.55;
}

.k22-body > :first-child {
	margin-top: 0;
}

.k22-body > :last-child {
	margin-bottom: 0;
}

.k22-body a {
	color: inherit;
	text-decoration-thickness: .08em;
	text-underline-offset: .16em;
}

.k22-schedule {
	display: inline-block;
	max-width: 100%;
	margin: clamp(1.1rem, 2vw, 2.2rem) 0 0;
	padding: .72em 1em;
	background: var(--slide-accent);
	color: #fff;
	font-size: clamp(1rem, 1.65vw, 2rem);
	font-weight: 720;
	line-height: 1.15;
	box-shadow: .55rem .55rem 0 rgb(35 35 35 / 10%);
}

.k22-brand {
	position: absolute;
	z-index: 7;
	top: clamp(1.2rem, 2vw, 2.5rem);
	left: clamp(1.2rem, 2vw, 2.5rem);
	font-size: clamp(.85rem, 1.35vw, 1.55rem);
	font-weight: 820;
	letter-spacing: -.03em;
}

.k22-vertical-label {
	position: absolute;
	z-index: 7;
	right: clamp(.55rem, 1vw, 1.1rem);
	top: 50%;
	font-size: clamp(.5rem, .62vw, .74rem);
	font-weight: 650;
	letter-spacing: .16em;
	text-transform: lowercase;
	transform: translate(45%, -50%) rotate(-90deg);
	transform-origin: center;
}

.k22-deco {
	position: absolute;
	z-index: 5;
	background: var(--slide-accent);
	pointer-events: none;
}

.k22-deco-one {
	top: 0;
	right: 0;
	width: clamp(4.2rem, 8vw, 9rem);
	height: clamp(1.4rem, 3vw, 3.5rem);
}

.k22-deco-two {
	right: clamp(2.5rem, 4vw, 5rem);
	bottom: 0;
	width: clamp(3.6rem, 7vw, 8rem);
	height: clamp(1.3rem, 3vw, 3.4rem);
}

/* Wariant: zdjęcie po lewej. */
.k22-layout-split-left .k22-photo {
	grid-column: 1;
}

.k22-layout-split-left .k22-content-card {
	grid-column: 2;
}

/* Wariant: plansza typograficzna. */
.k22-layout-text {
	display: block;
	background:
		linear-gradient(90deg, transparent 0 72%, color-mix(in srgb, var(--slide-accent), white 93%) 72%),
		var(--slide-bg);
}

.k22-layout-text .k22-photo {
	display: none;
}

.k22-layout-text .k22-content-card {
	display: flex;
	min-height: 100%;
	max-width: 68%;
	max-height: none;
	margin-top: 0;
	margin-bottom: 0;
	flex-direction: column;
	justify-content: center;
}

/* Wariant: ogłoszenie z kartą. */
.k22-layout-announcement .k22-photo {
	grid-column: 2;
	margin: 9% 8% 11% 0;
	box-shadow: 0 1.5rem 4rem rgb(24 27 55 / 15%);
}

.k22-layout-announcement .k22-content-card {
	padding: clamp(1.4rem, 2.6vw, 3.2rem);
	background: rgb(255 255 255 / 94%);
	box-shadow: 0 1.5rem 4rem rgb(24 27 55 / 12%);
}

/* Wariant: zdjęcie pełnoekranowe. */
.k22-layout-hero {
	display: block;
	background: var(--slide-accent);
}

.k22-layout-hero .k22-photo,
.k22-layout-hero .k22-photo-overlay {
	position: absolute;
	display: block;
	inset: 0;
	width: 100%;
	height: 100%;
}

.k22-layout-hero .k22-photo-overlay {
	z-index: 2;
	background: linear-gradient(90deg, rgb(13 16 40 / 75%), rgb(13 16 40 / 12%)), var(--slide-accent);
	opacity: var(--slide-overlay, .35);
}

.k22-layout-hero .k22-content-card {
	display: flex;
	min-height: calc(100% - 8rem);
	max-width: 75%;
	max-height: none;
	margin-top: 4rem;
	margin-bottom: 4rem;
	flex-direction: column;
	justify-content: center;
	color: #fff;
}

.k22-layout-hero .k22-title {
	font-size: clamp(3.4rem, 7.2vw, 9.2rem);
}

.k22-layout-hero .k22-title::after,
.k22-layout-hero .k22-schedule {
	background: #fff;
	color: var(--slide-accent);
}

.k22-layout-hero .k22-kicker,
.k22-layout-hero .k22-brand,
.k22-layout-hero .k22-vertical-label {
	color: #fff;
}

.k22-align-center .k22-content-card {
	text-align: center;
}

.k22-align-center .k22-body {
	margin-right: auto;
	margin-left: auto;
}

.k22-align-right .k22-content-card {
	text-align: right;
}

.k22-align-right .k22-body {
	margin-left: auto;
}

.k22-timer {
	position: absolute;
	z-index: 20;
	left: 0;
	width: 100%;
	pointer-events: none;
}

.k22-timer-top .k22-timer {
	top: 0;
}

.k22-timer-bottom .k22-timer {
	bottom: 0;
}

.k22-timer-track {
	width: 100%;
	height: .35rem;
	background: rgb(255 255 255 / 28%);
}

.k22-timer-progress {
	display: block;
	width: 0;
	height: 100%;
	background: var(--k22-accent);
	box-shadow: 0 0 1rem rgb(54 59 117 / 28%);
	transform-origin: left;
}

.k22-countdown {
	position: absolute;
	top: .7rem;
	right: 1.15rem;
	min-width: 4.25em;
	padding: .38em .55em;
	border-radius: .18rem;
	background: rgb(20 23 43 / 78%);
	color: #fff;
	font-size: clamp(.72rem, .95vw, 1rem);
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: .08em;
	text-align: center;
	backdrop-filter: blur(8px);
}

.k22-timer-bottom .k22-countdown {
	top: auto;
	bottom: .7rem;
}

.k22-timer-mode-progress .k22-countdown,
.k22-timer-mode-countdown .k22-timer-track {
	display: none;
}

.k22-chrome {
	position: absolute;
	z-index: 22;
	left: 50%;
	bottom: clamp(.8rem, 1.5vw, 1.6rem);
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: .45rem .6rem;
	border: 1px solid rgb(255 255 255 / 24%);
	border-radius: .3rem;
	background: rgb(25 27 43 / 72%);
	color: #fff;
	box-shadow: 0 .5rem 1.5rem rgb(15 17 33 / 20%);
	transform: translateX(-50%);
	backdrop-filter: blur(10px);
}

.k22-counter {
	min-width: 3.2rem;
	font-size: .72rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	text-align: center;
}

.k22-dots {
	display: flex;
	max-width: min(31vw, 24rem);
	align-items: center;
	gap: .32rem;
	overflow: auto hidden;
	scrollbar-width: none;
}

.k22-dots::-webkit-scrollbar {
	display: none;
}

.k22-dot,
.k22-controls button,
.k22-fullscreen {
	appearance: none;
	border: 0;
	color: inherit;
	cursor: pointer;
}

.k22-dot {
	width: .42rem;
	min-width: .42rem;
	height: .42rem;
	padding: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / 45%);
}

.k22-dot.is-active {
	background: #fff;
	box-shadow: 0 0 0 .18rem rgb(255 255 255 / 18%);
}

.k22-controls {
	display: flex;
	gap: .15rem;
}

.k22-controls button,
.k22-fullscreen {
	display: inline-grid;
	width: 2rem;
	height: 2rem;
	padding: 0;
	place-items: center;
	border-radius: .2rem;
	background: transparent;
	font: inherit;
	font-size: 1rem;
}

.k22-controls button:hover,
.k22-controls button:focus-visible,
.k22-fullscreen:hover,
.k22-fullscreen:focus-visible {
	background: rgb(255 255 255 / 16%);
	outline: 2px solid #fff;
	outline-offset: 1px;
}

.k22-play-icon,
.k22-slider.is-paused .k22-pause-icon {
	display: none;
}

.k22-slider.is-paused .k22-play-icon {
	display: inline;
}

.k22-slider:fullscreen {
	width: 100vw;
	max-width: none;
	height: 100vh;
	background: #111;
}

.k22-slider:fullscreen .k22-stage {
	width: 100vw;
	height: 100vh;
	min-height: 0;
	aspect-ratio: auto;
}

.k22-empty {
	padding: 1rem;
	border-left: 4px solid #dba617;
	background: #fff8df;
}

.k22-slider .screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	clip: rect(0 0 0 0) !important;
	overflow: hidden !important;
}

@media (max-width: 800px) {
	.k22-stage {
		min-height: min(78vh, 46rem);
		aspect-ratio: 4 / 5;
	}

	.k22-slide {
		grid-template-columns: 1fr;
		grid-template-rows: minmax(12rem, 42%) 1fr;
	}

	.k22-slide .k22-photo,
	.k22-layout-split-left .k22-photo,
	.k22-layout-announcement .k22-photo {
		grid-column: 1;
		grid-row: 1;
		margin: 0;
	}

	.k22-slide .k22-content-card,
	.k22-layout-split-left .k22-content-card {
		grid-column: 1;
		grid-row: 2;
		align-self: start;
		max-height: calc(100% - 2rem);
		margin: 2rem 2rem 4.75rem;
	}

	.k22-layout-announcement .k22-content-card {
		margin-top: -2.2rem;
		padding: 1.5rem;
	}

	.k22-layout-text .k22-content-card,
	.k22-layout-hero .k22-content-card {
		grid-row: 1 / -1;
		max-width: none;
		min-height: 100%;
		margin: 0 2rem;
	}

	.k22-title {
		font-size: clamp(2rem, 9vw, 3.7rem);
	}

	.k22-layout-hero .k22-title {
		font-size: clamp(3rem, 13vw, 5.3rem);
	}

	.k22-body {
		font-size: .95rem;
	}

	.k22-vertical-label {
		display: none;
	}

	.k22-chrome {
		max-width: calc(100% - 2rem);
	}

	.k22-dots {
		max-width: 24vw;
	}
}

@media (prefers-reduced-motion: reduce) {
	.k22-slide {
		transition: none !important;
	}
}

