/* Polish Beef – bloki danych
 * Kolorystyka przejęta z prezentacji: zieleń #35AF94 i grafit #34535A.
 * Wszystkie selektory są zawężone do .pbd, żeby nie kolidowały z Divi. */

.pbd {
	--pbd-teal: #35af94;
	--pbd-teal-ink: #1f7f68;
	--pbd-teal-soft: #a9ddd0;
	--pbd-mint: #eef6f3;
	--pbd-slate: #34535a;
	--pbd-slate-soft: #cfe1dc;
	--pbd-ink: #22363b;
	--pbd-muted: #52686d;
	--pbd-line: #d4e3df;
	--pbd-sand: #efd3ae;
	--pbd-wine: #5c1923;
	--pbd-wine-soft: #ecd5d8;

	box-sizing: border-box;
	color: var(--pbd-ink);
	font-size: 16px;
	line-height: 1.55;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}
.pbd *, .pbd *::before, .pbd *::after { box-sizing: inherit; }

/* Reset typowych stylów Divi wewnątrz bloku */
.pbd h2, .pbd h3, .pbd h4 { margin: 0; padding: 0; font-family: inherit; color: inherit; letter-spacing: 0; }
.pbd p { margin: 0; padding: 0; }
.pbd .pbd-items, .pbd .pbd-icons, .pbd .pbd-points, .pbd .pbd-legend, .pbd .pbd-req, .pbd .pbd-stats {
	list-style: none; margin: 0; padding: 0;
}
.pbd .pbd-items > li, .pbd .pbd-points > li, .pbd .pbd-legend > li, .pbd .pbd-req > li { list-style: none; margin: 0; }
.pbd dd { margin: 0; }
.pbd figure { margin: 0; }

/* ---------- Typografia ---------- */

.pbd .pbd__title {
	color: var(--pbd-teal-ink);
	font-size: clamp(28px, 3.4vw, 42px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.015em;
	margin-bottom: 24px;
}

.pbd .pbd-h3 {
	color: var(--pbd-teal-ink);
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.005em;
	margin-bottom: 10px;
}

.pbd .pbd-sub {
	color: var(--pbd-slate);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.5;
	max-width: 62em;
	margin-bottom: 26px;
}
.pbd .pbd-sub--lead { margin-top: -12px; margin-bottom: 32px; }

.pbd .pbd-minor {
	color: var(--pbd-slate);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.02em;
	margin-bottom: 14px;
}

.pbd .pbd-source {
	color: var(--pbd-muted);
	font-size: 12.5px;
	margin-top: 22px;
}

/* ---------- Pas z liczbami (slajd 2) ---------- */

.pbd .pbd-band {
	display: grid;
	grid-template-columns: minmax(200px, 1fr) 3fr;
	gap: 32px;
	background: var(--pbd-wine);
	color: #fff;
	border-radius: 6px;
	padding: 34px 36px;
	position: relative;
	overflow: hidden;
}
.pbd .pbd-band::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 6px;
	background: #8c3a47;
}
.pbd .pbd-band__title {
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.3;
	margin-bottom: 10px;
}
.pbd .pbd-band__lead {
	color: var(--pbd-wine-soft);
	font-size: 13px;
	letter-spacing: 0.03em;
	line-height: 1.55;
}
.pbd .pbd-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 28px;
	row-gap: 26px;
}
.pbd .pbd-stat {
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	gap: 6px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	padding-top: 14px;
}
.pbd .pbd-stat__value {
	color: #fff;
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
}
.pbd .pbd-stat__label {
	color: var(--pbd-wine-soft);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

/* ---------- Zakładki ---------- */

.pbd .pbd-tabs { margin-top: 30px; }

.pbd .pbd-tabs__nav {
	display: flex;
	gap: 2px 22px;
	flex-wrap: wrap;
	justify-content: center;
	border-bottom: 1px solid var(--pbd-line);
	margin-bottom: 26px;
}
.pbd .pbd-tab {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: 0;
	border-bottom: 3px solid transparent;
	margin: 0 0 -1px;
	padding: 10px 0 11px;
	color: var(--pbd-muted);
	font: inherit;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.3;
	text-align: center;
	cursor: pointer;
	transition: color .15s ease, border-color .15s ease;
}
.pbd .pbd-tab:hover { color: var(--pbd-slate); }
.pbd .pbd-tab[aria-selected="true"] {
	color: var(--pbd-teal-ink);
	border-bottom-color: var(--pbd-teal);
}
.pbd .pbd-tab:focus-visible,
.pbd .pbd-panel:focus-visible {
	outline: 2px solid var(--pbd-teal);
	outline-offset: 3px;
}
.pbd .pbd-panel:focus { outline: none; }
.pbd .pbd-panel:focus-visible { outline: 2px solid var(--pbd-teal); }

.pbd .pbd-panel[hidden] { display: none; }
.pbd .pbd-panel__title {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
	color: var(--pbd-teal-ink); font-size: 20px; font-weight: 700; margin-bottom: 6px;
}
@media (prefers-reduced-motion: no-preference) {
	.pbd .pbd-panel.is-active { animation: pbd-fade .25s ease-out; }
}
@keyframes pbd-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Układy ---------- */

.pbd .pbd-split {
	display: grid;
	grid-template-columns: 1.45fr 1fr;
	gap: 44px;
	align-items: start;
}
.pbd .pbd-split--chart { grid-template-columns: 1.6fr 1fr; align-items: end; }
.pbd .pbd-split--even { grid-template-columns: 1fr 1fr; }
.pbd .pbd-split--qmp { grid-template-columns: 1.35fr 1fr; gap: 40px; }

.pbd .pbd-aside { min-width: 0; }
.pbd .pbd-aside--stack { display: grid; gap: 14px; }

/* ---------- Punkty ---------- */

.pbd .pbd-points > li {
	position: relative;
	padding: 0 0 12px 22px;
	color: var(--pbd-ink);
	font-size: 15.5px;
	line-height: 1.55;
}
.pbd .pbd-points > li:last-child { padding-bottom: 0; }
.pbd .pbd-points > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.62em;
	width: 8px;
	height: 8px;
	background: var(--pbd-teal);
}

/* ---------- Duże liczby ---------- */

.pbd .pbd-figures { display: grid; gap: 18px; margin-bottom: 24px; }
.pbd .pbd-figure { display: grid; gap: 4px; }
.pbd .pbd-figure__value {
	font-size: 42px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}
.pbd .pbd-figure.is-up .pbd-figure__value { color: var(--pbd-teal-ink); }
.pbd .pbd-figure.is-down .pbd-figure__value { color: var(--pbd-slate); }
.pbd .pbd-figure__label { color: var(--pbd-muted); font-size: 15px; line-height: 1.45; }
.pbd .pbd-figure--xl .pbd-figure__value { font-size: clamp(54px, 6vw, 76px); }
.pbd .pbd-figure--xl .pbd-figure__label { font-size: 16px; max-width: 22em; }

/* ---------- Ramki ---------- */

.pbd .pbd-callout {
	background: var(--pbd-teal-ink);
	color: #fff;
	border-radius: 4px;
	padding: 22px 24px;
	font-size: 15.5px;
	line-height: 1.55;
}
.pbd .pbd-callout__title {
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	margin-bottom: 8px;
}
.pbd .pbd-callout--inset { margin-top: 26px; background: var(--pbd-wine); }

.pbd .pbd-dark {
	display: grid;
	gap: 8px;
	background: var(--pbd-slate);
	color: #fff;
	border-radius: 4px;
	padding: 24px;
}
.pbd .pbd-dark__value {
	font-size: clamp(48px, 5vw, 64px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.02em;
}
.pbd .pbd-dark__label { color: var(--pbd-slate-soft); font-size: 15.5px; line-height: 1.45; }

/* ---------- Elementy numerowane ---------- */

.pbd .pbd-items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 32px;
	row-gap: 30px;
}
.pbd .pbd-items--2 { grid-template-columns: repeat(2, 1fr); }
.pbd .pbd-items--4 { grid-template-columns: repeat(4, 1fr); column-gap: 24px; }

.pbd .pbd-item {
	border-top: 2px solid var(--pbd-line);
	padding-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.pbd .pbd-item__nr {
	color: var(--pbd-teal-ink);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	font-variant-numeric: tabular-nums;
}
.pbd .pbd-item__title {
	color: var(--pbd-slate);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
}
.pbd .pbd-item__text { color: var(--pbd-muted); font-size: 15px; line-height: 1.55; }

.pbd .pbd-item.is-key {
	background: var(--pbd-teal-ink);
	border-top-color: var(--pbd-teal);
	border-radius: 0 0 4px 4px;
	padding: 16px 18px 20px;
}
.pbd .pbd-item.is-key .pbd-item__nr,
.pbd .pbd-item.is-key .pbd-item__title { color: #fff; }
.pbd .pbd-item.is-key .pbd-item__text { color: #e3f3ee; }
.pbd .pbd-item__note {
	margin-top: auto;
	padding-top: 12px;
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.45;
	border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---------- Elementy z ikonami (slajd 17) ---------- */

.pbd .pbd-icons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.pbd .pbd-icons > li { list-style: none; margin: 0; }
.pbd .pbd-icon-item {
	display: grid;
	grid-template-columns: 52px 1fr;
	gap: 16px;
	align-items: start;
}
.pbd .pbd-icon-item__icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--pbd-teal);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pbd .pbd-icon-item__icon svg { width: 24px; height: 24px; fill: currentColor; }
.pbd .pbd-icon-item__nr { font-size: 14px; font-weight: 700; }
.pbd .pbd-icon-item .pbd-item__title { margin-bottom: 6px; }

/* ---------- Wykres słupkowy ---------- */

.pbd .pbd-chart { min-width: 0; }
.pbd .pbd-chart__unit {
	color: var(--pbd-muted);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.04em;
	margin: -16px 0 14px;
}
.pbd .pbd-bars {
	display: grid;
	grid-template-columns: repeat(var(--pbd-n, 4), 1fr);
	grid-template-rows: auto auto;
	column-gap: clamp(10px, 3vw, 28px);
}
.pbd .pbd-bar { display: contents; }
.pbd .pbd-bar__track {
	height: 230px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	gap: 6px;
	grid-row: 1;
}
.pbd .pbd-bar__value {
	color: var(--pbd-slate);
	font-size: 15px;
	font-weight: 700;
	text-align: center;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}
.pbd .pbd-bar__col {
	display: block;
	height: calc(var(--pbd-h) * 0.82);
	min-height: 2px;
	background: var(--pbd-teal-soft);
	border-radius: 3px 3px 0 0;
	transform-origin: bottom;
}
.pbd .pbd-bar.is-latest .pbd-bar__col { background: var(--pbd-teal); }
.pbd .pbd-bar__label {
	grid-row: 2;
	padding-top: 8px;
	color: var(--pbd-muted);
	font-size: 13.5px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.pbd .pbd-bar__track { border-bottom: 1px solid var(--pbd-slate); }

/* Wzrost słupków przy pierwszym pokazaniu (tylko z JS i bez ograniczenia ruchu) */
@media (prefers-reduced-motion: no-preference) {
	.pbd-js .pbd [data-pbd-reveal] .pbd-bar__col { transform: scaleY(0); }
	.pbd-js .pbd [data-pbd-reveal].is-in .pbd-bar__col {
		transform: scaleY(1);
		transition: transform .7s cubic-bezier(.2, .7, .2, 1);
	}
	.pbd-js .pbd [data-pbd-reveal].is-in .pbd-bar:nth-child(2) .pbd-bar__col { transition-delay: .06s; }
	.pbd-js .pbd [data-pbd-reveal].is-in .pbd-bar:nth-child(3) .pbd-bar__col { transition-delay: .12s; }
	.pbd-js .pbd [data-pbd-reveal].is-in .pbd-bar:nth-child(4) .pbd-bar__col { transition-delay: .18s; }
	.pbd-js .pbd [data-pbd-reveal].is-in .pbd-bar:nth-child(5) .pbd-bar__col { transition-delay: .24s; }
}

/* ---------- Wykres pierścieniowy ---------- */

.pbd .pbd-donut-wrap {
	display: grid;
	grid-template-columns: 190px 1fr;
	gap: 28px;
	align-items: center;
}
.pbd .pbd-donut {
	width: 190px;
	aspect-ratio: 1;
	border-radius: 50%;
	-webkit-mask: radial-gradient(closest-side, transparent 56%, #000 57%);
	mask: radial-gradient(closest-side, transparent 56%, #000 57%);
}
.pbd .pbd-legend > li {
	display: grid;
	grid-template-columns: 12px 1fr auto;
	gap: 10px;
	align-items: center;
	padding: 7px 0;
	border-bottom: 1px solid var(--pbd-line);
	font-size: 15px;
}
.pbd .pbd-legend > li:last-child { border-bottom: 0; }
.pbd .pbd-legend__swatch { width: 12px; height: 12px; border-radius: 2px; }
.pbd .pbd-legend__label { color: var(--pbd-ink); }
.pbd .pbd-legend__value { color: var(--pbd-slate); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- QMP ---------- */

.pbd .pbd-sheet {
	background: var(--pbd-mint);
	border-top: 4px solid var(--pbd-teal);
	border-radius: 0 0 6px 6px;
	padding: 26px 28px 28px;
}
.pbd .pbd-sheet__title {
	color: var(--pbd-slate);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin-bottom: 14px;
}
.pbd .pbd-req > li {
	padding: 11px 0;
	border-bottom: 1px solid var(--pbd-line);
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--pbd-ink);
}
.pbd .pbd-req > li:first-child { padding-top: 0; }
.pbd .pbd-req > li:last-child { border-bottom: 0; padding-bottom: 0; }
.pbd .pbd-req strong { color: var(--pbd-slate); font-weight: 700; }

/* ---------- Strategia marki ---------- */

.pbd .pbd-part { padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--pbd-line); }
.pbd .pbd__title + .pbd-part { padding-top: 0; margin-top: 0; border-top: 0; }

.pbd .pbd-origin {
	display: grid;
	grid-template-columns: 1.3fr 1fr;
	gap: 44px;
	align-items: stretch;
}
.pbd .pbd-body { color: var(--pbd-ink); font-size: 16px; line-height: 1.6; margin-bottom: 16px; max-width: 38em; }
.pbd .pbd-goal { color: var(--pbd-slate); font-size: 16px; font-weight: 700; line-height: 1.5; max-width: 38em; }

.pbd .pbd-plate {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 8px;
	min-height: 220px;
	background: var(--pbd-wine);
	color: #fff;
	border-radius: 6px;
	padding: 30px;
	position: relative;
	overflow: hidden;
}
.pbd .pbd-plate::before {
	content: "";
	position: absolute;
	top: 0; left: 30px; right: 30px;
	height: 6px;
	background: #8c3a47;
}
.pbd .pbd-plate__line1 { color: var(--pbd-wine-soft); font-size: 16px; }
.pbd .pbd-plate__line2 {
	color: #fff;
	font-size: clamp(28px, 3vw, 38px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.01em;
}

/* ---------- Responsywność (progi Divi) ---------- */

@media (max-width: 980px) {
	.pbd .pbd-band { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
	.pbd .pbd-split,
	.pbd .pbd-split--chart,
	.pbd .pbd-split--even,
	.pbd .pbd-split--qmp,
	.pbd .pbd-origin { grid-template-columns: 1fr; gap: 30px; }
	.pbd .pbd-items,
	.pbd .pbd-items--4 { grid-template-columns: repeat(2, 1fr); }
	.pbd .pbd-icons { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 767px) {
	.pbd { font-size: 15px; }
	.pbd .pbd-band { padding: 24px 20px 24px 24px; }
	.pbd .pbd-stats { grid-template-columns: repeat(2, 1fr); column-gap: 18px; row-gap: 20px; }
	.pbd .pbd-tabs__nav {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		gap: 22px;
		margin-left: -2px;
		padding-left: 2px;
	}
	.pbd .pbd-tabs__nav::-webkit-scrollbar { display: none; }
	.pbd .pbd-tabs__nav {
		-webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
		mask-image: linear-gradient(90deg, #000 82%, transparent);
		padding-right: 40px;
	}
	.pbd .pbd-tab { white-space: nowrap; flex: 0 0 auto; }
	.pbd .pbd-items,
	.pbd .pbd-items--2,
	.pbd .pbd-items--4 { grid-template-columns: 1fr; row-gap: 22px; }
	.pbd .pbd-donut-wrap { grid-template-columns: 1fr; justify-items: start; }
	.pbd .pbd-donut { width: 170px; }
	.pbd .pbd-donut-wrap .pbd-legend { width: 100%; }
	.pbd .pbd-bar__track { height: 190px; }
	.pbd .pbd-bar__value { font-size: 13px; }
	.pbd .pbd-sheet { padding: 22px 20px; }
	.pbd .pbd-plate { min-height: 170px; padding: 26px 22px; }
}
