@charset "UTF-8";

/* Strona główna — układ kafelków (inspiracja dlalejdis, kwadratowe boksy, pasek tytułu KM) */

.pmpCHome.pmpC {
	width: 1200px;
	max-width: 100%;
	box-sizing: border-box;
}

/* ≤1023: jedna kolumna — treść na całą szerokość, reklamy pod spodem (mobile-first) */
.pmpCHome .pmpN {
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	row-gap: 8px;
	align-items: stretch;
}

.pmpCHome .pmpNBanner {
	order: 1;
	width: 100%;
	margin: 0;
	padding: 10px 0 6px;
	min-height: 0;
	box-sizing: border-box;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pmpCHome-main {
	order: 3;
	width: 100%;
	box-sizing: border-box;
}

.pmpCHome .pmpHLatest {
	order: 2;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.pmpCHome .pmpNBanner {
	order: 1;
}

.pmpCHome .pmpAU {
	order: 1;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	float: none;
	box-sizing: border-box;
}

.pmpCHome .pmpAX {
	order: 2;
	width: 100%;
	max-width: 100%;
	float: none;
	box-sizing: border-box;
	padding: 12px 0;
	margin-top: 8px;
	overflow: hidden;
}

.pmpCHome .pmpNBanner p {
	margin: 0;
}

.pmpCHome .pmpNBanner a {
	display: inline-block;
	max-width: 100%;
}

.pmpCHome .pmpNBanner img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

@media (max-width: 1023px) {
	.pmpCHome.pmpC {
		contain: none;
		overflow-x: hidden;
	}

	.pmpCHome .pmpAU {
		padding-left: 0;
		padding-right: 0;
	}

	.pmpCHome .pmpHLatest,
	.pmpCHome .pmpHBox.pmpAW,
	.pmpCHome .pmpEventsBox {
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}
}

/* Reklamy w naturalnej szerokości kolumny (300px), bez wychodzenia poza boks */
.pmpCHome .pmpAX img,
.pmpCHome .pmpAX iframe,
.pmpCHome .pmpAX object,
.pmpCHome .pmpAX embed {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	box-sizing: border-box;
	margin-left: auto;
	margin-right: auto;
}

.pmpCHome .pmpAX > * {
	max-width: 100%;
	box-sizing: border-box;
}

.pmpCHome .pmpAX table {
	max-width: 100%;
	table-layout: fixed;
}

/* ── Wspólny kafel ze zdjęciem ─────────────────────────────────────────── */

.pmpTile-visual {
	position: relative;
	overflow: hidden;
	background: #111;
	aspect-ratio: 730 / 360;
}

.pmpTile-visual--hero,
.pmpTile-visual--sm {
	aspect-ratio: 730 / 360;
}

.pmpTile-hit {
	display: block;
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
	padding: 0;
	line-height: 0;
	font-size: 0;
	text-decoration: none;
	color: #fff;
}

.pmpTile-hit img {
	position: absolute;
	inset: 0;
	z-index: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.pmpTile-tag {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	padding: 0.2rem 0.5rem;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.3;
	color: #fff;
	background: #9d1238;
	text-decoration: none;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pmpTile-tag:hover {
	background: #be073f;
	color: #fff;
}

.pmpTile-capBar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 0;
	pointer-events: none;
	background: rgba(190, 7, 63, 0.55);
}

.pmpTile-capBar--sm {
	background: rgba(190, 7, 63, 0.55);
}

.pmpTile-cap {
	margin: 0;
	padding: 8px 10px;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	font-size: 1.05rem;
}

.pmpTile-cap--sm {
	font-size: 0.82rem;
	padding: 6px 8px;
}

.pmpHLatest-main .pmpTile-cap {
	font-size: 1.2rem;
}

/* ── Sekcja Najnowsze (ramka jak pmpAW / kategorie) ─────────────────────── */

.pmpHLatest.pmpHBox.pmpAW {
	margin: 0 0 12px;
	background: #fff;
	border: 1px solid #50c6e2;
	box-sizing: border-box;
}

.pmpHLatest .pmpHBox-main.pmpAW1 {
	float: none;
	background: #fff;
}

.pmpHLatest-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 10px;
	box-sizing: border-box;
	background: #fff;
}

.pmpHLatest-mosaic {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.pmpHLatest-card {
	margin: 0;
	min-width: 0;
}

.pmpHLatest-left {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.pmpHLatest-under {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.pmpHLatest-side {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.pmpHLatest-list--text {
	min-width: 0;
	text-align: left;
}

.pmpHLatest-list--text .pmpHBox-list {
	overflow: hidden;
}

/* ── Box kategorii na SG ───────────────────────────────────────────────── */

.pmpCHome .pmpEventsBox {
	float: none;
	width: 100%;
	clear: both;
	box-sizing: border-box;
}

.pmpHBox.pmpAW {
	float: none;
	width: 100%;
	clear: both;
	box-sizing: border-box;
}

.pmpHBox-main {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.pmpHBox-main.pmpAW1 {
	float: none;
}

.pmpHBox-media {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.pmpHBox-pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	min-width: 0;
}

.pmpHBox-thumb {
	margin: 0;
	min-width: 0;
}

.pmpHBox-list-wrap {
	min-width: 0;
	overflow: hidden;
}

.pmpHBox-list {
	list-style: none;
	margin: 0;
	padding: 0 0 0 0;
	text-align: left;
}

.pmpHBox-li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e8e8e8;
}

.pmpHBox-list-link {
	display: block;
	padding: 6px 4px 6px 14px;
	font-size: 0.95rem;
	line-height: 1.35;
	color: #2f727f;
	text-decoration: none;
	position: relative;
}

.pmpHBox-list-link::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 0.65em;
	width: 6px;
	height: 6px;
	background: #50c6e2;
}

.pmpHBox-list-link:hover {
	color: #b5013a;
	text-decoration: underline;
}

/* ── Tablet 600–1023px: 6 kafli w siatce 2×3, lista pod spodem ─────────── */

@media (min-width: 600px) and (max-width: 1023px) {
	.pmpHLatest-mosaic {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.pmpHLatest-left,
	.pmpHLatest-side,
	.pmpHLatest-under {
		display: contents;
	}

	.pmpHLatest-card .pmpTile-visual {
		aspect-ratio: 730 / 360;
		height: auto;
	}

	.pmpHLatest-main .pmpTile-cap {
		font-size: 1rem;
	}

	.pmpHBox:not(.pmpHLatest) .pmpHBox-main.pmpAW1 {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}

	.pmpHBox:not(.pmpHLatest) .pmpHBox-media {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 6px;
	}

	.pmpHBox:not(.pmpHLatest) .pmpHBox-hero {
		grid-column: 1 / -1;
	}

	.pmpHBox:not(.pmpHLatest) .pmpHBox-pair {
		display: contents;
	}
}

/* ── Wąski ekran ≤599px: jeden kafel w linii ─────────────────────────── */

@media (max-width: 599px) {
	.pmpHLatest-under {
		grid-template-columns: 1fr;
	}

	.pmpHBox-pair {
		grid-template-columns: 1fr;
	}
}

/* ── Desktop ≥ 1024px ──────────────────────────────────────────────────── */

@media (min-width: 1024px) {
	.pmpCHome .pmpN {
		display: flex;
		flex-direction: column;
		row-gap: 10px;
		align-items: stretch;
	}

	.pmpCHome .pmpNBanner {
		order: unset;
		min-height: 200px;
	}

	.pmpCHome .pmpHLatest {
		order: unset;
		width: 100%;
	}

	.pmpCHome-main {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		column-gap: 10px;
		row-gap: 8px;
		align-items: start;
		width: 100%;
	}

	.pmpCHome .pmpAU {
		grid-column: 1;
		order: unset;
		width: auto;
		padding-left: inherit;
		padding-right: inherit;
	}

	.pmpCHome .pmpAX {
		grid-column: 2;
		order: unset;
		width: 300px;
		max-width: 100%;
		padding: 8px 10px;
		margin-top: 0;
	}

	.pmpHLatest .pmpHBox-main.pmpAW1 {
		display: block;
		width: 100%;
		float: none;
	}

	.pmpHLatest-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
		gap: 14px;
		align-items: start;
	}

	/* Mozaika 3×3: główny 2×2, rząd 3 = 3 kafle, kolumna 3 = 3 kafle */
	.pmpHLatest-mosaic {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-template-rows: minmax(0, auto) minmax(0, auto) minmax(0, auto);
		gap: 10px;
		align-items: stretch;
		min-width: 0;
	}

	.pmpHLatest-left,
	.pmpHLatest-side,
	.pmpHLatest-under {
		display: contents;
	}

	.pmpHLatest-main {
		grid-column: 1 / 3;
		grid-row: 1 / 3;
		min-width: 0;
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	.pmpHLatest-main .pmpTile-visual {
		flex: 1 1 auto;
		width: 100%;
		min-height: 0;
		aspect-ratio: unset;
		height: 100%;
	}

	.pmpHLatest-main .pmpTile-cap {
		font-size: 1.35rem;
	}

	.pmpHLatest-card--side1 {
		grid-column: 3;
		grid-row: 1;
	}

	.pmpHLatest-card--side2 {
		grid-column: 3;
		grid-row: 2;
	}

	.pmpHLatest-card--side3 {
		grid-column: 3;
		grid-row: 3;
	}

	.pmpHLatest-card--under1 {
		grid-column: 1;
		grid-row: 3;
	}

	.pmpHLatest-card--under2 {
		grid-column: 2;
		grid-row: 3;
	}

	.pmpHLatest-card--side,
	.pmpHLatest-card--under {
		min-width: 0;
		min-height: 0;
		display: flex;
		flex-direction: column;
	}

	.pmpHLatest-card--side .pmpTile-visual,
	.pmpHLatest-card--under .pmpTile-visual {
		width: 100%;
		flex: 0 0 auto;
		aspect-ratio: 730 / 360;
		height: auto;
		position: relative;
	}

	.pmpHLatest-card--side .pmpTile-cap {
		font-size: 0.9rem;
		padding: 6px 8px;
	}

	.pmpHLatest-list--text {
		align-self: stretch;
		background: #fff;
		max-height: none;
		overflow: visible;
	}

	.pmpHBox:not(.pmpHLatest) .pmpHBox-main {
		display: grid;
		grid-template-columns: minmax(0, 6fr) minmax(0, 4fr);
		grid-template-rows: auto auto;
		column-gap: 12px;
		row-gap: 6px;
		align-items: start;
	}

	.pmpHBox:not(.pmpHLatest) .pmpHBox-media {
		display: contents;
	}

	.pmpHBox-hero {
		grid-column: 1;
		grid-row: 1;
	}

	.pmpHBox-pair {
		grid-column: 1;
		grid-row: 2;
	}

	.pmpHBox:not(.pmpHLatest) .pmpHBox-list-wrap {
		grid-column: 2;
		grid-row: 1 / span 2;
		align-self: stretch;
		display: flex;
		flex-direction: column;
		overflow: hidden;
	}
}
