/* Nowa strona główna. Arkusz wchodzi tylko na stronie ze skrótem [ts_glowna]. */

/* Motyw wtłacza treść w wąski kontener i rysuje tytuł strony z kreską —
   na tej stronie to zbędne, bo hero ma iść na całą szerokość. */

body.ts-glowna-strona main > .wp-block-post-title,
body.ts-glowna-strona main > .wp-block-separator,
body.ts-glowna-strona main > .wp-block-spacer {
	display: none !important;
}

/* Motyw wiesza globalny odstęp bloków na .has-global-padding, a trafia w to
   również main - stąd białe pasy po bokach hero. */

body.ts-glowna-strona main,
body.ts-glowna-strona .wp-site-blocks,
body.ts-glowna-strona main.has-global-padding {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.ts-glowna-strona main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.ts-glowna-strona .wp-site-blocks {
	position: relative;
	padding-top: 0 !important;
}

@media (prefers-reduced-motion: no-preference) {
	html:has(body.ts-glowna-strona) {
		scroll-behavior: smooth;
	}
}

body.ts-glowna-strona .wp-block-post-content,
body.ts-glowna-strona main > .wp-block-group {
	max-width: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Górny margines treści zapadał się przez całą stronę aż do body i spychał ją
   o 24 px w dół — stąd biały pasek nad filmem. */

body.ts-glowna-strona .wp-block-post-content,
body.ts-glowna-strona .wp-block-post-content > *:first-child,
body.ts-glowna-strona .tsg,
body.ts-glowna-strona .tsg > *:first-child {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}

/* Kontener „constrained" motywu zwęża swoje dzieci, więc szerokość trzeba
   zdjąć z naszego korzenia, nie z rodzica. */

body.ts-glowna-strona .is-layout-constrained > .tsg,
body.ts-glowna-strona .wp-block-post-content > .tsg,
body.ts-glowna-strona .tsg {
	max-width: none !important;
	width: 100%;
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* Nagłówek to blok cover z własnym filmem w tle. Na tej stronie kładziemy go
   na naszym hero i wyłączamy jego tło — inaczej strona ciągnęłaby dwa filmy
   naraz, w tym ten ciężki, oryginalny. */

body.ts-glowna-strona .wp-site-blocks > .wp-block-cover.home-cover,
body.ts-glowna-strona .wp-site-blocks > .wp-block-group:first-child,
body.ts-glowna-strona header.wp-block-template-part {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
	min-height: 0 !important;
	background: transparent !important;
}

body.ts-glowna-strona .home-cover .wp-block-cover__background,
body.ts-glowna-strona .home-cover video.wp-block-cover__video-background,
body.ts-glowna-strona .home-cover .wp-block-cover__image-background {
	display: none !important;
}

body.ts-glowna-strona .wp-block-navigation a,
body.ts-glowna-strona .wp-block-navigation .wp-block-navigation-item__label {
	color: #FFFFFF !important;
}

/* Pasek nawigacji dostaje ten sam krój, co reszta nowej strony. */

body.ts-glowna-strona .wp-block-navigation,
body.ts-glowna-strona .wp-block-navigation a,
body.ts-glowna-strona .wp-block-navigation .wp-block-navigation-item__label,
body.ts-glowna-strona .home-cover {
	font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* Wspólne */

.tsg {
	--ink: #101319;
	--body: #4B5361;
	--muted: #6B7383;
	--line: #E5E8ED;
	--line-strong: #D8DDE5;
	--line-soft: #EEF0F4;
	--surface: #FFFFFF;
	--bg: #F7F8FA;
	--yellow: #FEDB32;
	--yellow-hover: #E3BD00;
	--green: #256E4B;
	--font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--naglowek: 132px;
	/* 1240 x 1.1 - reszta arkusza jest już przemnożona, więc kontener też musi
	   urosnąć, inaczej treść zwęża się zamiast przybliżać. */
	--szer: 1364px;

	font-family: var(--font);
	color: var(--ink);
	background: var(--bg);
}

.tsg *,
.tsg *::before,
.tsg *::after {
	box-sizing: border-box;
}

.tsg img {
	max-width: 100%;
	height: auto;
}

.tsg-guzik {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8.8px;
	min-height: 50.6px;
	padding: 0 24.2px;
	border: 0;
	border-radius: 12.1px;
	background: var(--yellow);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease;
}

.tsg-guzik:hover {
	background: var(--yellow-hover);
}

/* Motyw maluje wszystkie odnośniki na firmowy żółty, przez co napis na
   żółtym guziku znikał. Kolor tekstu wymuszamy. */

.tsg a.tsg-guzik,
.tsg a.tsg-guzik:hover,
.tsg a.tsg-guzik:visited,
.tsg button.tsg-guzik {
	color: #101319 !important;
	text-decoration: none !important;
}

/* Hero */

.tsg-hero {
	position: relative;
	/* Bez 100vw — ta jednostka wlicza pasek przewijania, więc hero wystawał
	   poza stronę i łapał poziomy suwak. Kontener i tak jest pełnej szerokości. */
	width: 100%;
	min-height: 100vh;
	overflow: hidden;
	background: #16202B;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	text-align: center;
	padding: calc(var(--naglowek) + 61.6px) 26.4px 165px;
}

.tsg-hero__film {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}

/* Jednolita nakładka na cały kadr plus przyciemnienie góry i dołu — bez tego
   biały napis gubi się na śniegu. */

.tsg-hero__cien {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(8, 12, 18, .62) 0%, rgba(8, 12, 18, .18) 34%, rgba(8, 12, 18, .82) 100%),
		rgba(10, 14, 20, .34);
}

.tsg-hero__tresc {
	position: relative;
	z-index: 2;
	max-width: 900px;
}

.tsg-hero__tytul {
	margin: 0;
	font-size: clamp(44px, 6.16vw, 81.4px);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.04;
	color: #FFFFFF;
	text-wrap: balance;
	text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}

.tsg-hero__lead {
	margin: 37.4px auto 0;
	max-width: 54ch;
	font-size: clamp(17.6px, 1.59vw, 20.9px);
	line-height: 1.6;
	color: rgba(255, 255, 255, .88);
	text-shadow: 0 1px 20px rgba(0, 0, 0, .3);
}

.tsg-hero__akcje {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 13.2px;
	margin-top: 46.2px;
}

.tsg-hero__cta,
.tsg a.tsg-hero__cta,
.tsg a.tsg-hero__cta:visited,
.tsg a.tsg-hero__cta:hover {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: var(--yellow) !important;
	font-size: 18.7px;
	font-weight: 800;
	letter-spacing: -0.015em;
	text-decoration: none !important;
	text-shadow: 0 1px 16px rgba(0, 0, 0, .4);
}

.tsg-hero__cta-tekst {
	position: relative;
}

.tsg-hero__cta-tekst::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -5.5px;
	height: 2.2px;
	background: currentColor;
	transform-origin: center;
	transition: opacity .18s ease, transform .18s ease;
}

.tsg a.tsg-hero__cta:hover .tsg-hero__cta-tekst::after {
	opacity: 0;
	transform: scaleX(.55);
}

.tsg-hero__cta svg {
	flex: none;
	transition: transform .18s ease;
}

.tsg a.tsg-hero__cta:hover svg {
	transform: translateX(4.4px);
}

.tsg-hero__nizej {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 127.6px;
	z-index: 2;
	color: rgba(255, 255, 255, .6);
	animation: tsg-skacz 2.4s ease-in-out infinite;
}

@keyframes tsg-skacz {
	0%, 100% { transform: translate(-50%, 0); }
	50%      { transform: translate(-50%, 7px); }
}

@media (prefers-reduced-motion: reduce) {
	.tsg-hero__nizej { animation: none; }
}

/* Pasek wjeżdżający na film */

.tsg-pasek {
	position: relative;
	z-index: 3;
	max-width: var(--szer);
	margin: -83.6px auto 0;
	padding: 0 26.4px;
}

/* Kolumny lecą na flexboksie, bo grid-template-columns się nie animuje -
   przeglądarka nie interpoluje track-listy i pasek przeskakiwał. */

.tsg-pasek__karta {
	display: flex;
	flex-wrap: wrap;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 17.6px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(16, 19, 25, .16);
	transition: box-shadow .46s ease;
}

.tsg-pasek__karta.is-nocleg {
	box-shadow: 0 26px 60px rgba(16, 19, 25, .22);
}

.tsg-pasek__nocleg {
	display: flex;
	align-items: center;
	gap: 17.6px;
	flex: 0 0 300px;
	padding: 33px 28.6px;
	border: 0;
	background: var(--yellow);
	font-family: var(--font);
	color: var(--ink);
	text-align: left;
	cursor: pointer;
	transition: flex-basis .46s cubic-bezier(.32, .72, 0, 1), background .15s ease;
}

.is-nocleg .tsg-pasek__nocleg {
	flex-basis: 100%;
}

.tsg-pasek__nocleg:hover {
	background: var(--yellow-hover);
}

.tsg-pasek__ikona {
	display: grid;
	place-items: center;
	width: 50.6px;
	height: 50.6px;
	flex: none;
	border-radius: 13.2px;
	background: rgba(16, 19, 25, .1);
	transition: transform .46s cubic-bezier(.32, .72, 0, 1), background .3s ease;
}

.is-nocleg .tsg-pasek__ikona {
	transform: rotate(-8deg) scale(1.06);
	background: rgba(16, 19, 25, .16);
}

/* Oba napisy leżą w tej samej komórce, żeby zamiana była przenikaniem,
   a nie podmianą display. */

.tsg-pasek__tresc {
	display: grid;
	flex-grow: 1;
	min-width: 0;
}

.tsg-pasek__opis,
.tsg-pasek__wroc {
	grid-area: 1 / 1;
	align-self: center;
	transition: opacity .26s ease, transform .42s cubic-bezier(.32, .72, 0, 1);
}

.tsg-pasek__opis {
	min-width: 0;
}

.tsg-pasek__tytul {
	display: block;
	font-size: 17.1px;
	font-weight: 800;
	letter-spacing: -0.015em;
}

.tsg-pasek__pod {
	display: block;
	margin-top: 1.1px;
	font-size: 14.3px;
	line-height: 1.45;
	color: #5C5426;
}

.tsg-pasek__wroc {
	font-size: 17.1px;
	font-weight: 800;
	letter-spacing: -0.015em;
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
}

.is-nocleg .tsg-pasek__opis {
	opacity: 0;
	transform: translateY(-10px);
	pointer-events: none;
}

.is-nocleg .tsg-pasek__wroc {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.tsg-pasek__strzalka {
	flex: none;
	display: grid;
	place-items: center;
	transition: transform .3s ease;
}

.is-nocleg .tsg-pasek__strzalka {
	transform: rotate(180deg);
}

.tsg-pasek__karnet {
	display: flex;
	flex-direction: column;
	gap: 11px;
	padding: 28.6px 28.6px;
	opacity: 1;
	transition: opacity .2s ease;
}

/* Wysokość kolumny karnetu ustawia JavaScript w pikselach - to jedyny sposób,
   żeby zwijanie do zera było płynne. */

.tsg-pasek__karnet {
	flex: 1 1 0%;
	min-width: 0;
	overflow: hidden;
	padding: 28.6px;
	opacity: 1;
	transition: height .46s cubic-bezier(.32, .72, 0, 1),
	            padding .46s cubic-bezier(.32, .72, 0, 1),
	            opacity .24s ease;
}

.tsg-pasek__wnetrze {
	display: flex;
	flex-direction: column;
	gap: 11px;
}

.is-nocleg .tsg-pasek__karnet {
	padding-top: 0;
	padding-bottom: 0;
	opacity: 0;
	pointer-events: none;
}

.tsg-pole {
	display: flex;
	flex-direction: column;
	gap: 6.6px;
	flex-grow: 1;
	min-width: 0;
}

.tsg-pole__etykieta {
	font-size: 12.7px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--muted);
}

.tsg-pole select,
.tsg-pole input {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	border: 1px solid var(--line-strong);
	border-radius: 11px;
	padding: 12.1px 14.3px;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.4;
	color: var(--ink);
	background: var(--surface);
}

/* Safari na iPhonie trzyma natywne pole daty na szerokości jego treści i nie
   pozwala mu się zwęzić - przyjazd i wyjazd wychodziły poza pasek. */
.tsg-pole input[type="date"] {
	-webkit-appearance: none;
	appearance: none;
	min-height: 48.6px;
	text-align: left;
}

.tsg-pole select:focus,
.tsg-pole input:focus {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px rgba(16, 19, 25, .07);
}

.tsg-pole select:disabled {
	color: var(--body);
	background: #F7F8FA;
}

/* Formularz noclegowy rozsuwa się razem z paskiem */

.tsg-nocleg {
	flex: 0 0 100%;
	height: 0;
	overflow: hidden;
	opacity: 0;
	background: var(--surface);
	transition: height .46s cubic-bezier(.32, .72, 0, 1), opacity .3s ease;
}

.is-nocleg .tsg-nocleg {
	opacity: 1;
	box-shadow: inset 0 1px 0 var(--line);
}

.tsg-nocleg__wnetrze {
	min-height: 0;
}

.tsg-nocleg__pola {
	display: grid;
	grid-template-columns: 1.2fr 1.2fr .9fr 1.1fr 1.1fr auto;
	gap: 13.2px;
	align-items: end;
	padding: 22px 26.4px 0;
}

/* Pola wchodzą kaskadą, żeby rozsunięcie miało kierunek, a nie było samym
   pojawieniem się bloku. */

.tsg-nocleg__pola > *,
.tsg-nocleg__nota {
	opacity: 0;
	transform: translateY(12px);
	transition: opacity .3s ease, transform .42s cubic-bezier(.32, .72, 0, 1);
}

.is-nocleg .tsg-nocleg__pola > *,
.is-nocleg .tsg-nocleg__nota {
	opacity: 1;
	transform: none;
}

.is-nocleg .tsg-nocleg__pola > :nth-child(1) { transition-delay: .10s; }
.is-nocleg .tsg-nocleg__pola > :nth-child(2) { transition-delay: .14s; }
.is-nocleg .tsg-nocleg__pola > :nth-child(3) { transition-delay: .18s; }
.is-nocleg .tsg-nocleg__pola > :nth-child(4) { transition-delay: .22s; }
.is-nocleg .tsg-nocleg__pola > :nth-child(5) { transition-delay: .26s; }
.is-nocleg .tsg-nocleg__pola > :nth-child(6) { transition-delay: .30s; }
.is-nocleg .tsg-nocleg__nota { transition-delay: .34s; }

.tsg-nocleg__nota {
	margin: 13.2px 0 0;
	padding: 0 26.4px 22px;
	font-size: 13.8px;
	color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
	.tsg-pasek__karta,
	.tsg-pasek__karnet,
	.tsg-pasek__ikona,
	.tsg-pasek__opis,
	.tsg-pasek__wroc,
	.tsg-nocleg,
	.tsg-nocleg__pola > *,
	.tsg-nocleg__nota {
		transition: none;
	}
}

/* Slider polecanych */

.tsg-slider {
	max-width: var(--szer);
	margin: 48.4px auto 0;
	padding: 0 26.4px;
}

.tsg-slider__zakladki {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8.8px;
	margin-bottom: 15.4px;
}

.tsg-slider__zakladka {
	padding: 11px 17.6px;
	border: 1px solid var(--line);
	border-radius: 1098.9px;
	background: var(--surface);
	font-family: var(--font);
	font-size: 14.9px;
	font-weight: 600;
	color: var(--body);
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.tsg-slider__zakladka:hover {
	border-color: var(--ink);
	color: var(--ink);
}

.tsg-slider__zakladka.is-aktywna {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--yellow);
	font-weight: 700;
}

.tsg-slider__okno {
	background: transparent;
	touch-action: pan-y;
}

.tsg-slajd {
	display: grid;
	grid-template-columns: 440px minmax(0, 1fr);
	gap: 22px;
	align-items: stretch;
}

.tsg-slajd.is-aktywny {
	animation: tsg-slajd-wjazd .28s ease both;
}

@keyframes tsg-slajd-wjazd {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.tsg-slajd[hidden] {
	display: none;
}

/* Karta bez tła i bez ramki — sam produkt na bieli, z zapasem po bokach. */

.tsg-slajd__foto {
	position: relative;
	display: grid;
	place-items: center;
	padding: 37.4px 52.8px;
	background: var(--surface);
	border-radius: 17.6px;
}

.tsg-slajd__foto img {
	filter: drop-shadow(0 14px 26px rgba(16, 19, 25, .16));
}

.tsg-slajd__plakietka {
	position: absolute;
	top: 15.4px;
	left: 15.4px;
	padding: 5.5px 12.1px;
	border-radius: 1098.9px;
	background: var(--yellow);
	color: var(--ink);
	font-size: 12.1px;
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.tsg-slajd__tresc {
	padding: 33px 37.4px;
	background: var(--ink);
	border-radius: 17.6px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.tsg-slajd__tytul {
	margin: 0;
	font-size: clamp(22px, 2.09vw, 27.5px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.14;
	color: #FFFFFF;
}

.tsg-slajd__lead {
	margin: 11px 0 0;
	max-width: 62ch;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .72);
}

/* Przycisk zawsze przy prawej krawędzi, niezależnie od tego, czy przy cenie
   stoi przekreślenie i nota Omnibusa. */
.tsg-slajd__dol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 19.8px;
	margin-top: 22px;
}

.tsg-slider__kropki {
	display: flex;
	justify-content: center;
	gap: 8.8px;
	margin-top: 15.4px;
}

.tsg-slider__kropka {
	width: 26.4px;
	height: 4.4px;
	border-radius: 2.2px;
	background: var(--line-strong);
	transition: background .15s ease;
}

.tsg-slider__kropka.is-aktywna {
	background: var(--ink);
}

/* Cena */

.tsg-cena {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8.8px;
	font-variant-numeric: tabular-nums;
}

.tsg-cena__od {
	width: 100%;
	font-size: 13.8px;
	font-weight: 500;
	color: var(--muted);
}

.tsg-cena__od del {
	text-decoration: line-through;
}

.tsg-cena__teraz {
	font-size: 20.4px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.tsg-cena__rabat {
	padding: 3.3px 8.8px;
	border-radius: 1098.9px;
	background: var(--yellow);
	font-size: 11.6px;
	font-weight: 800;
	color: var(--ink);
}

.tsg-cena__omnibus {
	width: 100%;
	margin-top: 2.2px;
	font-size: 12.7px;
	font-weight: 500;
	color: #9AA1AC;
}

.tsg-slajd__cena .tsg-cena__teraz {
	font-size: 28.6px;
	color: #FFFFFF;
}

.tsg-slajd__cena .tsg-cena__od,
.tsg-slajd__cena .tsg-cena__omnibus {
	color: rgba(255, 255, 255, .55);
}

/* Lista karnetów — bez ramek, na bieli, z lekkim przybliżeniem po najechaniu */

.tsg-sekcja {
	max-width: var(--szer);
	margin: 48.4px auto 0;
	padding: 0 26.4px;
}

.tsg-sekcja__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8.8px 22px;
	margin-bottom: 15.4px;
}

.tsg-sekcja__tytul {
	margin: 0;
	font-size: clamp(24.2px, 2.31vw, 27.5px);
	font-weight: 800;
	letter-spacing: -0.03em;
}

.tsg-sekcja__pod {
	font-size: 14.3px;
	color: var(--muted);
}

.tsg-siatka {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 15.4px;
}

.tsg-karta {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 0;
	border-radius: 15.4px;
	padding: 15.4px 15.4px 17.6px;
	transition: transform .22s ease, box-shadow .22s ease;
}

.tsg-karta:hover {
	transform: translateY(-4px) scale(1.015);
	box-shadow: 0 16px 34px rgba(16, 19, 25, .1);
}

@media (prefers-reduced-motion: reduce) {
	.tsg-karta:hover { transform: none; }
}

.tsg-karta__foto {
	display: block;
	padding: 6.6px 6.6px 13.2px;
	background: transparent;
}

.tsg-karta__foto img {
	display: block;
	width: 100%;
}

.tsg-karta__tresc {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 0 4.4px;
}

.tsg-karta__tytul {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.tsg-karta__tytul a {
	color: var(--ink);
	text-decoration: none;
}

.tsg-karta__opis {
	margin: 5.5px 0 0;
	font-size: 14.3px;
	line-height: 1.5;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tsg-karta__dol {
	margin-top: auto;
	padding-top: 13.2px;
}

.tsg-karta__cena {
	padding-top: 11px;
	border-top: 1px solid var(--line-soft);
	line-height: 1.3;
}

.tsg-karta__cta {
	width: 100%;
	min-height: 46.2px;
	margin-top: 13.2px;
	font-size: 14.9px;
}

/* Artykuł i kafelki */

.tsg-news {
	max-width: var(--szer);
	margin: 44px auto 0;
	padding: 0 26.4px 57.2px;
}

.tsg-news__kafelki {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 13.2px;
}

.tsg-news__artykul {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 330px;
	padding: 33px;
	border-radius: 17.6px;
	overflow: hidden;
	background: linear-gradient(140deg, #1F2A22, #4E5C3C);
	background-size: cover;
	background-position: center;
}

.tsg-news__artykul::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 14, 10, .1) 0%, rgba(10, 14, 10, .82) 100%);
}

.tsg-news__tresc {
	position: relative;
	z-index: 1;
}

.tsg-news__etyk {
	font-size: 12.7px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--yellow);
}

.tsg-news__tytul {
	margin: 11px 0 0;
	font-size: clamp(24.2px, 2.53vw, 30.8px);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
	color: #FFFFFF;
	text-wrap: balance;
}

.tsg-news__lead {
	margin: 8.8px 0 0;
	max-width: 58ch;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, .84);
}

.tsg-news__tresc .tsg-guzik {
	margin-top: 19.8px;
}

/* Kafelki: ciemny tekst, równa siatka, spokojna ikona */

.tsg-kafelek,
.tsg a.tsg-kafelek,
.tsg a.tsg-kafelek:visited {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 11px;
	padding: 17.6px 19.8px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 15.4px;
	color: #101319 !important;
	font-size: 15.4px;
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none !important;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.tsg a.tsg-kafelek svg {
	color: var(--muted);
}

.tsg a.tsg-kafelek:hover {
	border-color: var(--ink);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(16, 19, 25, .08);
}

.tsg a.tsg-kafelek:hover svg {
	color: var(--ink);
}

/* Węższe ekrany */

@media (max-width: 1080px) {
	.tsg-pasek__nocleg,
	.is-nocleg .tsg-pasek__nocleg,
	.tsg-pasek__karnet {
		flex: 0 0 100%;
	}

	.tsg-nocleg__pola {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tsg-siatka {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tsg-slajd {
		grid-template-columns: minmax(0, 1fr);
	}

	.tsg-news__kafelki {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.tsg-hero {
		min-height: 90vh;
		padding-bottom: 160px;
	}

	.tsg-pasek {
		margin-top: -101.2px;
		padding: 0 17.6px;
	}

	.tsg-pasek__karnet .tsg-guzik {
		width: 100%;
	}

	.tsg-nocleg__pola {
		grid-template-columns: minmax(0, 1fr);
	}

	.tsg-nocleg__pola .tsg-guzik {
		width: 100%;
	}

	.tsg-slider,
	.tsg-sekcja,
	.tsg-news {
		padding-left: 17.6px;
		padding-right: 17.6px;
	}

	.tsg-siatka {
		grid-template-columns: minmax(0, 1fr);
	}

	.tsg-slajd__tresc {
		padding: 24.2px;
	}

	.tsg-news__kafelki {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: auto;
	}
}

/* Druga linia nagłówka: rabat na żółtym maźnięciu. Plama jest wektorem
   rozciąganym do rozmiaru napisu, więc odstępy trzymamy w em. */

.tsg-hero__rabat {
	position: relative;
	display: table;
	margin: 17.6px auto 0;
	padding: .22em 1.26em .38em;
	transform: rotate(-1.1deg);
	font-size: .58em;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: #101319;
	text-shadow: none;
}

.tsg-hero__rabat-plama {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.tsg-hero__rabat-tekst {
	position: relative;
	z-index: 1;
}

/* Podpis przy zakładkach slidera */

.tsg-slider__etykieta {
	margin-right: 4.4px;
	font-size: 16.5px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ink);
}

/* Ciemny box polecanej oferty: gęściej i konkretniej */

.tsg-slajd__limit {
	align-self: flex-start;
	margin-bottom: 13.2px;
	padding: 5.5px 12.1px;
	border-radius: 1098.9px;
	border: 1px solid rgba(254, 219, 50, .5);
	background: rgba(254, 219, 50, .12);
	color: #FEDB32;
	font-size: 12.1px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.tsg-slajd__punkty {
	list-style: none;
	margin: 17.6px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9.9px;
}

.tsg-slajd__punkty li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin: 0;
	font-size: 15.4px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .84);
}

.tsg-slajd__punkty svg {
	flex: none;
	margin-top: 2.2px;
}

.tsg-slajd__dol {
	margin-top: 24.2px;
	padding-top: 19.8px;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

/* Ikony kafelków w kolorze podpisu */

.tsg a.tsg-kafelek svg,
.tsg a.tsg-kafelek:hover svg {
	color: #101319;
}

.tsg-slajd__cena {
	flex-grow: 1;
	min-width: 0;
}

.tsg-slajd__dol .tsg-guzik {
	flex: none;
	margin-left: auto;
}

.tsg-pasek__naglowek {
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--ink);
}

.tsg-pasek__pola {
	display: flex;
	align-items: flex-end;
	gap: 13px;
}

/* Na wąskim ekranie najpierw karnet, dopiero pod nim nocleg. */

@media (max-width: 1080px) {
	.tsg-pasek__karnet {
		order: 1;
	}

	.tsg-pasek__nocleg {
		order: 2;
	}

	.tsg-nocleg {
		order: 3;
	}
}

@media (max-width: 640px) {
	.tsg-pasek__pola {
		flex-wrap: wrap;
	}

	.tsg-pasek__pola .tsg-guzik {
		width: 100%;
	}
}

/* Okno z ofertami noclegowymi */

body.tsg-bez-przewijania {
	overflow: hidden;
}

.tsg-oferty {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 24px;
	font-family: var(--font);
}

.tsg-oferty[hidden] {
	display: none;
}

.tsg-oferty__tlo {
	position: absolute;
	inset: 0;
	background: rgba(16, 19, 25, .58);
	opacity: 0;
	transition: opacity .24s ease;
}

.tsg-oferty.is-otwarte .tsg-oferty__tlo {
	opacity: 1;
}

.tsg-oferty__karta {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(760px, 100%);
	max-height: min(88vh, 760px);
	background: var(--surface);
	border-radius: 17.6px;
	box-shadow: 0 30px 80px rgba(16, 19, 25, .32);
	overflow: hidden;
	opacity: 0;
	transform: translateY(18px) scale(.97);
	transition: opacity .24s ease, transform .34s cubic-bezier(.32, .72, 0, 1);
}

.tsg-oferty.is-otwarte .tsg-oferty__karta {
	opacity: 1;
	transform: none;
}

.tsg-oferty__head {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 24px 26.4px 18px;
	border-bottom: 1px solid var(--line);
}

.tsg-oferty__naglowek {
	flex-grow: 1;
	min-width: 0;
}

.tsg-oferty__tytul {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.tsg-oferty__termin {
	margin: 4px 0 0;
	font-size: 14.3px;
	color: var(--muted);
}

.tsg-oferty__zamknij {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #F2F4F7;
	color: var(--ink);
	cursor: pointer;
	transition: background .15s ease;
}

.tsg-oferty__zamknij:hover {
	background: var(--line-strong);
}

.tsg-oferty__tresc {
	flex-grow: 1;
	min-height: 140px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 8px 26.4px;
}

.tsg-oferty__lista {
	display: flex;
	flex-direction: column;
}

.tsg-oferta {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr) auto;
	gap: 16px;
	align-items: center;
	padding: 14px 0;
	border-bottom: 1px solid var(--line-soft);
	color: inherit;
	text-decoration: none;
	animation: tsg-oferta-wjazd .32s cubic-bezier(.32, .72, 0, 1) both;
	animation-delay: calc(var(--kolej) * .05s);
}

.tsg-oferty__lista .tsg-oferta:last-child {
	border-bottom: 0;
}

.tsg-oferta__foto {
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 11px;
	overflow: hidden;
	background: #F2F4F7;
}

.tsg-oferta__foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s cubic-bezier(.32, .72, 0, 1);
}

.tsg-oferta:hover .tsg-oferta__foto img {
	transform: scale(1.06);
}

.tsg-oferta__opis {
	display: block;
	min-width: 0;
}

.tsg-oferta__obiekt {
	display: block;
	font-size: 12.1px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--muted);
}

.tsg-oferta__nazwa {
	display: block;
	margin-top: 2px;
	font-size: 16.5px;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--ink);
}

.tsg-oferta:hover .tsg-oferta__nazwa {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.tsg-oferta__lead {
	display: block;
	margin-top: 3px;
	font-size: 14px;
	line-height: 1.45;
	color: var(--body);
}

.tsg-oferta__cena {
	display: block;
	flex: none;
	text-align: right;
	white-space: nowrap;
}

.tsg-oferta__kwota {
	display: block;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ink);
}

.tsg-oferta__za {
	display: block;
	margin-top: 1px;
	font-size: 12.7px;
	color: var(--muted);
}

.tsg-oferty__stan {
	margin: 0;
	padding: 34px 0;
	text-align: center;
}

.tsg-oferty__stan strong {
	display: block;
	font-size: 16.5px;
	font-weight: 800;
	letter-spacing: -0.015em;
	color: var(--ink);
}

.tsg-oferty__stan span {
	display: block;
	margin-top: 5px;
	font-size: 14.3px;
	color: var(--muted);
}

.tsg-oferty__stan--ladowanie strong::before {
	content: "";
	display: block;
	width: 28px;
	height: 28px;
	margin: 0 auto 14px;
	border: 3px solid var(--line-strong);
	border-top-color: var(--yellow-hover);
	border-radius: 999px;
	animation: tsg-obrot .7s linear infinite;
}

.tsg-oferty__stan--blad strong {
	color: #B3261E;
}

.tsg-oferty__stopka {
	display: flex;
	align-items: center;
	/* Notke o cenach usunelismy, a to ona rozpychala stopke (flex-grow),
	   wiec teraz guzik trzymamy przy prawej krawedzi jawnie. */
	justify-content: flex-end;
	gap: 18px;
	padding: 18px 26.4px;
	border-top: 1px solid var(--line);
	background: #FAFBFC;
}

.tsg-oferty__nota {
	flex-grow: 1;
	margin: 0;
	font-size: 12.7px;
	line-height: 1.45;
	color: var(--muted);
}

.tsg-oferty__stopka .tsg-guzik {
	flex: none;
}

@keyframes tsg-oferta-wjazd {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

@keyframes tsg-obrot {
	to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
	.tsg-oferty {
		padding: 0;
		place-items: end stretch;
	}

	.tsg-oferty__karta {
		width: 100%;
		max-height: 92vh;
		border-radius: 17.6px 17.6px 0 0;
		transform: translateY(100%);
	}

	.tsg-oferty__head,
	.tsg-oferty__tresc,
	.tsg-oferty__stopka {
		padding-left: 17.6px;
		padding-right: 17.6px;
	}

	.tsg-oferta {
		grid-template-columns: 68px minmax(0, 1fr);
		gap: 12px;
	}

	.tsg-oferta__lead {
		display: none;
	}

	.tsg-oferta__cena {
		grid-column: 2;
		text-align: left;
	}

	.tsg-oferty__stopka {
		flex-direction: column;
		align-items: stretch;
		padding-bottom: calc(18px + env(safe-area-inset-bottom));
	}

	.tsg-oferty__stopka .tsg-guzik {
		width: 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsg-oferty__tlo,
	.tsg-oferty__karta,
	.tsg-oferta__foto img {
		transition: none;
	}

	.tsg-oferta {
		animation: none;
	}
}

/* Oferta specjalna za zasłoną */

.tsg-slajd.is-sekret,
.tsg-karta.is-sekret {
	position: relative;
}

/* Na telefonie zakryty slajd zjadał cały ekran razem z zakładkami, więc do
   czasu odsłonięcia trzymamy go niższego - pod spodem i tak nic nie widać. */
@media (max-width: 860px) {
	.tsg-slajd.is-sekret {
		max-height: 545px;
		overflow: hidden;
	}
}

/* Rozmycie bierzemy z tła, więc pod spodem leży gotowa karta i po zdjęciu
   zasłony nie ma czego dorysowywać. */
/* Zasłona kryje w całości: prześwit czerni panelu i bieli zdjęcia robił brudne
   plamy, a backdrop-filter zostawiał ciemną kreskę na zaokrąglonych brzegach.
   Stąd pełne krycie i milimetr zapasu poza kartę. */
.tsg-zaslona {
	position: absolute;
	inset: -1px;
	z-index: 3;
	border-radius: 18.6px;
	background:
		radial-gradient(115% 85% at 50% 36%, rgba(255, 255, 255, .92), rgba(255, 255, 255, 0) 62%),
		linear-gradient(150deg, #FFF0AC, #FFFBE4 52%, #FFEC96);
	transition: opacity .44s ease, transform .44s cubic-bezier(.32, .72, 0, 1);
}

.tsg-karta .tsg-zaslona {
	border-radius: 16.4px;
	background:
		radial-gradient(120% 80% at 50% 34%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 64%),
		linear-gradient(150deg, #FFF0AC, #FFFBE4 52%, #FFEC96);
}

.tsg-zaslona.is-znika {
	opacity: 0;
	transform: scale(1.015);
	pointer-events: none;
}

/* Kartę pod spodem wprowadzamy osobno, żeby odsłonięcie miało własny oddech. */
.tsg-slajd.is-odkryte .tsg-slajd__foto,
.tsg-slajd.is-odkryte .tsg-slajd__tresc,
.tsg-karta.is-odkryte .tsg-karta__foto,
.tsg-karta.is-odkryte .tsg-karta__tresc {
	animation: tsg-odslona .5s cubic-bezier(.32, .72, 0, 1) both;
}

.tsg-slajd.is-odkryte .tsg-slajd__tresc,
.tsg-karta.is-odkryte .tsg-karta__tresc {
	animation-delay: .07s;
}

@keyframes tsg-odslona {
	from { opacity: 0; transform: translateY(9px) scale(.99); }
	to   { opacity: 1; transform: none; }
}

.tsg-zaslona__guzik {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14.3px;
	width: 100%;
	height: 100%;
	padding: 22px;
	border: 0;
	border-radius: inherit;
	background: none;
	font-family: var(--font);
	color: var(--ink);
	cursor: pointer;
}

.tsg-zaslona__prezent {
	position: relative;
	display: grid;
	place-items: center;
	width: 68px;
	height: 68px;
	border-radius: 1098.9px;
	background: var(--ink);
	color: var(--yellow);
	box-shadow: 0 14px 30px rgba(16, 19, 25, .26);
	transition: transform .3s cubic-bezier(.32, .72, 0, 1);
}

/* Fala rozchodzi się w rytm stuknięcia palcem. */
.tsg-zaslona__prezent::after {
	content: "";
	position: absolute;
	inset: -7px;
	border-radius: inherit;
	border: 2px solid rgba(16, 19, 25, .38);
	opacity: 0;
	animation: tsg-fala 2.4s ease-out infinite;
}

.tsg-zaslona__palec {
	position: absolute;
	right: -19px;
	bottom: -21px;
	color: var(--ink);
	filter: drop-shadow(0 0 3px rgba(255, 251, 228, .95)) drop-shadow(0 4px 8px rgba(16, 19, 25, .18));
	pointer-events: none;
	animation: tsg-stuk 2.4s ease-in-out infinite;
	transition: opacity .2s ease;
}

/* Podpowiedź gaśnie dopiero przy kliknięciu - kursor spoczywający na karcie
   wcześniej zamrażał ją na dobre i na desktopie nikt jej nie widział. */
.tsg-zaslona.is-trzesie .tsg-zaslona__palec {
	opacity: 0;
	animation: none;
}

.tsg-zaslona.is-trzesie .tsg-zaslona__prezent::after {
	animation: none;
	opacity: 0;
}

@keyframes tsg-stuk {
	0%, 10%   { transform: translate(0, 0) scale(1); }
	18%       { transform: translate(-5px, -10px) scale(1.05); }
	26%       { transform: translate(0, 0) scale(.92); }
	34%       { transform: translate(-5px, -10px) scale(1.05); }
	42%       { transform: translate(0, 0) scale(.92); }
	52%, 100% { transform: translate(0, 0) scale(1); }
}

@keyframes tsg-fala {
	0%, 20%   { opacity: 0; transform: scale(.86); }
	28%       { opacity: .5; transform: scale(.92); }
	50%, 100% { opacity: 0; transform: scale(1.32); }
}

.tsg-zaslona__guzik:hover .tsg-zaslona__prezent {
	transform: translateY(-3px) rotate(-6deg) scale(1.07);
}

.tsg-zaslona__tekst {
	max-width: 15em;
	font-size: 17.6px;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.3;
	text-align: center;
}

.tsg-karta .tsg-zaslona__guzik {
	gap: 11px;
	padding: 15.4px;
}

.tsg-karta .tsg-zaslona__prezent {
	width: 52px;
	height: 52px;
}

.tsg-karta .tsg-zaslona__palec {
	right: -16px;
	bottom: -18px;
}

.tsg-karta .tsg-zaslona__tekst {
	font-size: 14.3px;
}

.tsg-zaslona.is-trzesie .tsg-zaslona__prezent {
	animation: tsg-trzesienie .43s ease;
}

@keyframes tsg-trzesienie {
	0%, 100% { transform: rotate(0) scale(1.07); }
	14%      { transform: rotate(-14deg) scale(1.07); }
	31%      { transform: rotate(12deg) scale(1.1); }
	48%      { transform: rotate(-10deg) scale(1.1); }
	65%      { transform: rotate(8deg) scale(1.07); }
	82%      { transform: rotate(-5deg) scale(1.07); }
}

@media (max-width: 640px) {
	.tsg-zaslona__tekst {
		font-size: 15.4px;
	}

	.tsg-zaslona__prezent {
		width: 58px;
		height: 58px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsg-zaslona {
		transition: none;
	}

	/* Zachęta przy prezencie zostaje nawet przy ograniczonym ruchu: bez niej
	   nikt nie wie, że kartę da się kliknąć, a ruch jest drobny i lokalny. */
	.tsg-slajd.is-aktywny,
	.tsg-slajd.is-odkryte .tsg-slajd__foto,
	.tsg-slajd.is-odkryte .tsg-slajd__tresc,
	.tsg-karta.is-odkryte .tsg-karta__foto,
	.tsg-karta.is-odkryte .tsg-karta__tresc {
		animation: none;
	}
}



/* Oddech przed stopka. Celujemy w sekcje karnetow po id, a nie w ostatnie
   dziecko .tsg — ostatnim dzieckiem bywa <script>, wiec :last-child
   przyklejal odstep do niczego.
   UWAGA: ta regula ginela juz dwukrotnie przy nadpisywaniu pliku. */

#karnety.tsg-sekcja {
	padding-bottom: 110px;
}

@media (max-width: 780px) {
	#karnety.tsg-sekcja {
		padding-bottom: 72px;
	}
}
