/**
 * Druk kalkulator: strona produktowa (wizytówki/ulotki/banery)
 *
 * Zawiera stylowanie dla całej strony template-parts/tpl-druk-kalkulator.php:
 * - hero, opis, wymagania plików, składane
 * - kalkulator (zależy od components/kalkulator-druk.css)
 * - tabela cen, FAQ, CTA
 *
 * Ładowany przez inc/enqueue.php po kalkulator-druk-component
 * Zależność: kotler-kalkulator-druk-component (ładuje się przed tym plikiem)
 *
 * Uwaga: hub `/kalkulator/` (tpl-druk-kalkulator-hub.php, hub-cards.php) jest
 * poza zakresem — osobny template bez CSS enqueue.
 */

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Utility: scroll-reveal animation */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* scroll-reveal.js (ładowany site-wide, enqueue.php:57-60) dodaje .is-revealed
   gdy element wjedzie w viewport. Używamy tej klasy (nie .is-in-view, które
   jest bugiem w usluga.css). */

[data-reveal] {
	transition: opacity 600ms var(--ease-out-quart, cubic-bezier(0.165, 0.84, 0.44, 1)),
		transform 600ms var(--ease-out-quart, cubic-bezier(0.165, 0.84, 0.44, 1));
}

@media (prefers-reduced-motion: no-preference) {
	[data-reveal]:not(.is-revealed) {
		opacity: 0;
		transform: translateY(1.5rem);
	}

	[data-reveal].is-revealed {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Page wrapper */
/* ═══════════════════════════════════════════════════════════════════════════ */

.page-druk-kalkulator {
	background: var(--kotler-bg, #fafaf7);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Hero section */
/* ═══════════════════════════════════════════════════════════════════════════ */

.section-hero {
	padding-block: clamp(4rem, 10vw, 5.5rem) clamp(1.5rem, 3vw, 2.25rem);
	background: var(--kotler-paper, #ffffff);
}

@media (min-width: 1024px) {
	.section-hero {
		padding-block: clamp(5.5rem, 9vw, 7.5rem) clamp(1.75rem, 3vw, 2.5rem);
	}
}

.section-hero__container {
	max-width: min(820px, 100%);
	margin: 0 auto;
	padding: 0 var(--container-padding, clamp(1.25rem, 3vw, 2.5rem));
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.section-hero__kicker,
.section-faq__eyebrow,
.section-tabela-cen__eyebrow,
.section-kalkulator__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-size: var(--text-xs, clamp(0.75rem, 0.8vw, 0.875rem));
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--kotler-blue, #0080f6);
	margin: 0 0 0.75rem 0;
}

.section-hero__kicker::before,
.section-faq__eyebrow::before,
.section-tabela-cen__eyebrow::before,
.section-kalkulator__eyebrow::before {
	content: '';
	width: 6px;
	height: 6px;
	background: var(--kotler-blue, #0080f6);
	border-radius: 50%;
	flex-shrink: 0;
	animation: section-hero-kicker-pulse 2.4s ease-in-out infinite;
}

@keyframes section-hero-kicker-pulse {
	0%, 100% { opacity: 1;    transform: scale(1);    }
	50%      { opacity: 0.45; transform: scale(0.65); }
}

.section-hero__h1 {
	font-size: clamp(2rem, 4.5vw, 3.75rem);
	font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
	font-weight: 700;
	color: var(--kotler-ink, #0a1628);
	line-height: 1.1;
	margin: 0 0 1rem 0;
}

.hero-cennik__title-accent {
	color: var(--kotler-blue, #0080f6);
}

.section-hero__lead {
	font-size: var(--text-lg, clamp(0.9375rem, 1.1vw, 1.0625rem));
	color: var(--kotler-text-soft, #4a4a4a);
	line-height: 1.6;
	margin: 0;
}

.section-hero__price-anchor {
	font-size: var(--text-base, 1rem);
	color: var(--kotler-text, #1a1a1a);
	margin: 0.875rem 0 0 0;
}

.section-hero__price-anchor strong {
	color: var(--kotler-blue, #0080f6);
}

@media (prefers-reduced-motion: reduce) {
	.section-hero__kicker::before {
		animation: none !important;
	}
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Opis */
/* ═══════════════════════════════════════════════════════════════════════════ */

.section-opis {
	padding: var(--section-padding-y, clamp(3rem, 8vw, 5.5rem));
}

.section-opis__container {
	max-width: min(65ch, 100%);
	margin: 0 auto;
	padding: 0 var(--container-padding, clamp(1.25rem, 3vw, 2.5rem));
}

/* A: Ulotki/Wizytówki-scoped layout fix — puste kolumny opis/FAQ */
/* Ograniczone do tablet/mniejszych: od 1200px pisze się szerzej i wyrównuje z tabelą */
@media (max-width: 1199px) {
	.page-druk-kalkulator--ulotki .section-opis__container,
	.page-druk-kalkulator--ulotki .section-faq__container,
	.page-druk-kalkulator--wizytowki .section-opis__container,
	.page-druk-kalkulator--wizytowki .section-faq__container {
		max-width: min(760px, 100%);
	}
}

.page-druk-kalkulator--ulotki .section-opis__container p,
.page-druk-kalkulator--ulotki .section-opis__container li,
.page-druk-kalkulator--wizytowki .section-opis__container p,
.page-druk-kalkulator--wizytowki .section-opis__container li {
	max-width: 68ch;
}

/* Od 1200px: opis/FAQ wyrównane do lewej krawędzi kolumny tabeli cen (sidebar) */
@media (min-width: 1200px) {
	.page-druk-kalkulator--ulotki .section-opis__container,
	.page-druk-kalkulator--ulotki .section-faq__container,
	.page-druk-kalkulator--wizytowki .section-opis__container,
	.page-druk-kalkulator--wizytowki .section-faq__container {
		max-width: var(--container-max, 1400px);
		margin: 0;
	}
}

.section-opis__container h2 {
	font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
	font-size: var(--text-3xl, clamp(2rem, 1.7rem + 1.5vw, 2.75rem));
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--kotler-text, #1a1a1a);
	margin: 0 0 var(--space-6, 1.5rem) 0;
}

.section-opis__container p {
	font-size: var(--text-base, 1rem);
	color: var(--kotler-text-soft, #4a4a4a);
	line-height: 1.7;
	margin: 0 0 var(--space-5, 1.25rem) 0;
}

.section-opis__container p:last-child {
	margin-bottom: 0;
}

.section-opis__container h3 {
	font-size: var(--text-lg, clamp(1rem, 1.25vw, 1.125rem));
	font-weight: 700;
	color: var(--kotler-text, #1a1a1a);
	margin: var(--space-6, 1.5rem) 0 var(--space-4, 1rem) 0;
}

.section-opis__container ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-3, 0.75rem);
}

.section-opis__container li {
	font-size: var(--text-base, 1rem);
	color: var(--kotler-text-soft, #4a4a4a);
	line-height: 1.6;
	padding-left: var(--space-6, 1.5rem);
	position: relative;
}

.section-opis__container li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--kotler-blue, #0080f6);
	font-weight: 700;
	font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Tabela cen — grid layout na desktopie (z sidebarem) */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media (min-width: 1200px) {
	.section-tabela-cen__container:has(.section-tabela-cen__sidebar) {
		display: grid;
		grid-template-columns: minmax(0, 760px) 1fr;
		column-gap: var(--space-10, 2.5rem);
		align-items: start;
	}

	.section-tabela-cen__container:has(.section-tabela-cen__sidebar) > .section-tabela-cen__eyebrow,
	.section-tabela-cen__container:has(.section-tabela-cen__sidebar) > .section-tabela-cen__title,
	.section-tabela-cen__container:has(.section-tabela-cen__sidebar) > .section-tabela-cen__subtitle {
		grid-column: 1 / -1;
	}

	.section-tabela-cen__sidebar {
		position: sticky;
		top: calc(var(--header-height, 88px) + var(--space-6, 1.5rem));
	}
}

/* Ulotki: 1024–1199px (tablet/średni desktop) — sidebar pod tabelą (stacked) */
@media (min-width: 1024px) and (max-width: 1199px) {
	.page-druk-kalkulator--ulotki .section-tabela-cen__container:has(.section-tabela-cen__sidebar) {
		display: block;
	}

	.page-druk-kalkulator--ulotki .section-tabela-cen__sidebar {
		position: static;
		margin-top: var(--space-8, 2rem);
	}
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Sidebar "Ulotki/Wizytówki składane" (upsell callout) */
/* ═══════════════════════════════════════════════════════════════════════════ */

.section-skladane__container {
	background: var(--kotler-blue-faint, #e6f2fe);
	border: 1px solid rgba(0, 128, 246, 0.2);
	border-radius: var(--radius-lg, 1.5rem);
	padding: clamp(2rem, 4vw, 2.5rem);
}

/* Wzmocnić separację wizualną sekcji składane (ulotki + wizytówki) */
.section-skladane__container {
	border: 1px solid var(--kotler-blue-300, #66b1f9);
	box-shadow: 0 12px 32px rgba(0, 128, 246, 0.10);
}

.section-skladane__label {
	display: inline-block;
	font-size: var(--text-xs, clamp(0.75rem, 0.8vw, 0.875rem));
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--kotler-blue, #0080f6);
	margin: 0 0 0.5rem 0;
}

@media (max-width: 1023px) {
	.section-skladane__container {
		padding: 1.5rem;
		margin-top: var(--space-8, 2rem);
	}
}

.section-skladane__container h3 {
	font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
	font-size: var(--text-xl, clamp(1.25rem, 2vw, 1.375rem));
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--kotler-text, #1a1a1a);
	margin: 0 0 var(--space-4, 1rem) 0;
}

.section-skladane__container p {
	font-size: var(--text-sm, clamp(0.875rem, 1vw, 1rem));
	color: var(--kotler-text-soft, #4a4a4a);
	line-height: 1.6;
	margin: 0 0 var(--space-5, 1.25rem) 0;
}

.section-skladane__link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2, 0.5rem);
	padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
	background: var(--kotler-blue, #0080f6);
	color: #ffffff;
	border: none;
	border-radius: 999px;
	font-size: var(--text-sm, clamp(0.875rem, 1vw, 1rem));
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 200ms ease, transform 200ms ease;
}

.section-skladane__link:link {
	color: #ffffff;
}

.section-skladane__link:visited {
	color: #ffffff;
}

.section-skladane__link:hover {
	background: var(--kotler-blue-600, #0066c4);
	transform: translateY(-2px);
	color: #ffffff;
}

.section-skladane__link:focus-visible {
	outline: 2px solid var(--kotler-ink, #0a1628);
	outline-offset: 2px;
	color: #ffffff;
}

.section-skladane__link:active {
	background: var(--kotler-blue-700, #004d93);
	color: #ffffff;
}

.section-skladane__link--secondary {
	background: transparent;
	border: 1px solid var(--kotler-blue, #0080f6);
	color: var(--kotler-blue, #0080f6);
}

.section-skladane__link--secondary:link {
	color: var(--kotler-blue, #0080f6);
}

.section-skladane__link--secondary:visited {
	color: var(--kotler-blue-600, #0066c4);
}

.section-skladane__link--secondary:hover {
	background: rgba(0, 128, 246, 0.08);
	border-color: var(--kotler-blue-600, #0066c4);
	color: var(--kotler-blue-600, #0066c4);
}

.section-skladane__link--secondary:focus-visible {
	outline: 2px solid var(--kotler-ink, #0a1628);
	outline-offset: 2px;
	color: var(--kotler-blue, #0080f6);
}

.section-skladane__link--secondary:active {
	background: rgba(0, 128, 246, 0.12);
	border-color: var(--kotler-blue-700, #004d93);
	color: var(--kotler-blue-700, #004d93);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Tabela cen */
/* ═══════════════════════════════════════════════════════════════════════════ */

.section-tabela-cen {
	padding: var(--section-padding-y, clamp(3rem, 8vw, 5.5rem));
	background: var(--kotler-paper, #ffffff);
}

@media (min-width: 1024px) {
	/* B: Ulotki — zmniejsz padding między tabelą cen a FAQ */
	.page-druk-kalkulator--ulotki .section-tabela-cen {
		padding-bottom: clamp(2rem, 4vw, 3rem);
	}
	.page-druk-kalkulator--ulotki .section-faq {
		padding-top: clamp(2rem, 4vw, 3rem);
	}
}

@media (max-width: 1023px) {
	.page-druk-kalkulator--banery .section-tabela-cen {
		display: none;
	}

	.section-tabela-cen__table-wrapper {
		display: none;
	}

	.page-druk-kalkulator .section-opis,
	.page-druk-kalkulator .section-faq,
	.page-druk-kalkulator .section-tabela-cen {
		padding: 0;
		padding-block: var(--space-6, 1.5rem);
	}
}

.section-tabela-cen__cards {
	display: none;
	position: relative;
}

@media (max-width: 1023px) {
	.section-tabela-cen--ulotki .section-tabela-cen__cards,
	.section-tabela-cen--wizytowki .section-tabela-cen__cards {
		display: flex;
		flex-direction: row;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-ms-overflow-style: none;
		gap: 0;
	}
	.section-tabela-cen--ulotki .section-tabela-cen__cards::-webkit-scrollbar,
	.section-tabela-cen--wizytowki .section-tabela-cen__cards::-webkit-scrollbar {
		display: none;
	}
}

.section-tabela-cen__cards-group {
	flex: 0 0 100%;
	min-width: 0;
	scroll-snap-align: start;
}

.section-tabela-cen__cards-title {
	font-size: var(--text-base, 1rem);
	font-weight: 700;
	color: var(--kotler-text, #1a1a1a);
	margin: 0 0 var(--space-3, 0.75rem) 0;
}

.section-tabela-cen__card {
	display: flex;
	flex-direction: column;
	gap: var(--space-1, 0.25rem);
	padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
	background: var(--kotler-bg, #fafaf7);
	border: 1.5px solid var(--kotler-border, #e8e6e0);
	border-radius: var(--radius-md, 0.75rem);
	margin-bottom: var(--space-2, 0.5rem);
	transition: border-color 200ms ease, background-color 200ms ease;
}

.section-tabela-cen__card-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}

.section-tabela-cen__card-naklad {
	font-weight: 600;
	color: var(--kotler-text, #1a1a1a);
}

.section-tabela-cen__card-price {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--kotler-text, #1a1a1a);
}

.section-tabela-cen__card-unit {
	font-size: var(--text-xs, clamp(0.75rem, 0.8vw, 0.875rem));
	color: var(--kotler-text-mute, #707070);
}

.section-tabela-cen__card.is-active {
	border-width: 2px;
	border-color: var(--kotler-blue, #0080f6);
	background: rgba(0, 128, 246, 0.06);
}

.section-tabela-cen__card.is-active .section-tabela-cen__card-price {
	color: var(--kotler-blue-700, #004d93);
}

.section-tabela-cen__card.is-active-weak {
	border-color: var(--kotler-blue-200, #99cbfb);
	background: rgba(0, 128, 246, 0.03);
}

.section-tabela-cen__cards-tabs {
	display: none;
}

@media (max-width: 1023px) {
	.section-tabela-cen--ulotki .section-tabela-cen__cards-tabs,
	.section-tabela-cen--wizytowki .section-tabela-cen__cards-tabs {
		display: flex;
		gap: 0;
		border-bottom: 1px solid var(--kotler-border, #e8e6e0);
		margin-bottom: var(--space-4, 1rem);
	}

	.section-tabela-cen--ulotki .section-tabela-cen__cards-tabs,
	.section-tabela-cen--wizytowki .section-tabela-cen__cards-tabs {
		justify-content: center;
	}
}

.section-tabela-cen__cards-tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	min-height: 44px;
	padding: 0.75rem 1.25rem;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--kotler-text-mute, #888888);
	font-weight: 500;
	font-size: var(--text-sm, 0.875rem);
	white-space: nowrap;
	cursor: pointer;
	transition: color 220ms ease, border-color 220ms ease;
}

.section-tabela-cen__cards-tab:hover {
	color: var(--kotler-text, #1a1a1a);
}

.section-tabela-cen__cards-tab.is-active {
	color: var(--kotler-ink, #0a1628);
	font-weight: 600;
	border-bottom-color: var(--kotler-blue, #0080f6);
}

.section-tabela-cen__cards-tab:focus-visible {
	outline: 2px solid var(--kotler-blue, #0080f6);
	outline-offset: -2px;
}

.section-tabela-cen__cards-tab-shape {
	--tab-shape-ratio: 1 / 1;
	flex-shrink: 0;
	height: 1rem;
	aspect-ratio: var(--tab-shape-ratio);
	background: var(--kotler-blue-faint, #e6f2fe);
	border: 1.5px solid var(--kotler-blue-300, #66b1f9);
	border-radius: 2px;
}

.section-tabela-cen__container {
	max-width: var(--container-max, 1400px);
	margin: 0 auto;
	padding: 0 var(--container-padding, clamp(1.25rem, 3vw, 2.5rem));
}

/* Ulotki: wyśrodkuj cennik razem z opisem i FAQ (do 1199px, potem znów full-width) */
@media (max-width: 1199px) {
	.page-druk-kalkulator--ulotki .section-tabela-cen__container {
		max-width: min(760px, 100%);
	}
}

/* Od 1200px: tabela cen wraca do full-width, sidebar na boku */
@media (min-width: 1200px) {
	.page-druk-kalkulator--ulotki .section-tabela-cen__container {
		max-width: var(--container-max, 1400px);
	}
}

/* Banery: wyśrodkuj cennik razem z opisem i notem */
.page-druk-kalkulator--banery .section-tabela-cen__container {
	text-align: center;
}

.section-tabela-cen__title {
	font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
	font-size: var(--text-3xl, clamp(2rem, 1.7rem + 1.5vw, 2.75rem));
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--kotler-text, #1a1a1a);
	margin: 0 0 0.75rem 0;
}

.section-tabela-cen__subtitle {
	font-size: var(--text-lg, clamp(1rem, 1.25vw, 1.125rem));
	color: var(--kotler-text-soft, #4a4a4a);
	margin: 0 0 var(--space-8, 2rem) 0;
}

.section-tabela-cen__table-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-bottom: var(--space-8, 2rem);
}

.section-tabela-cen__table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: var(--text-sm, clamp(0.875rem, 1vw, 1rem));
}

.section-tabela-cen__table th:first-child,
.section-tabela-cen__table td:first-child {
	width: 11rem;
}

.section-tabela-cen__table thead {
	background: var(--kotler-bg, #fafaf7);
}

.section-tabela-cen__table th {
	padding: var(--space-4, 1rem);
	text-align: left;
	font-weight: 700;
	color: var(--kotler-text, #1a1a1a);
	border-bottom: 1px solid var(--kotler-border, #e8e6e0);
}

.section-tabela-cen__table td {
	padding: var(--space-4, 1rem);
	border-bottom: 1px solid var(--kotler-border, #e8e6e0);
	color: var(--kotler-text-soft, #4a4a4a);
}

.section-tabela-cen__table tr:last-child td {
	border-bottom: none;
}

.section-tabela-cen__cell-label {
	font-weight: 600;
	color: var(--kotler-text, #1a1a1a);
	text-align: left;
}

.section-tabela-cen__cell-number {
	text-align: center;
	font-variant-numeric: tabular-nums;
	color: var(--kotler-text, #1a1a1a);
	font-weight: 600;
}

.section-tabela-cen__table th.section-tabela-cen__cell-number {
	text-align: center;
}

/* Ulotki: wyrównaj kolumnę nakładu do centrum */
.page-druk-kalkulator--ulotki .section-tabela-cen__table th:first-child,
.page-druk-kalkulator--ulotki .section-tabela-cen__table td:first-child {
	text-align: center;
}

.section-tabela-cen__cell--unit-price {
	font-size: var(--text-xs, clamp(0.75rem, 0.8vw, 0.875rem));
	color: var(--kotler-text-mute, #707070);
	font-weight: 400;
}

.section-tabela-cen__cell-number.is-active {
	background-color: rgba(0, 128, 246, 0.08);
	color: var(--kotler-blue, #0080f6);
	font-weight: 700;
}

/* H: Słabe podświetlenie dla nakładu w nieaktywnych formatach */
.section-tabela-cen__cell-number.is-active-weak {
	background-color: rgba(0, 128, 246, 0.03);
}

/* G: Aktywny format/foliowanie — zamiast underline użyj lewej ramki + tła */
.page-druk-kalkulator--ulotki .section-tabela-cen__table-wrapper.is-active,
.page-druk-kalkulator--wizytowki .section-tabela-cen__table-wrapper.is-active {
	border-left: 3px solid var(--kotler-blue, #0080f6);
	background: var(--kotler-blue-50, #e6f2fe);
	padding: var(--space-4, 1rem) var(--space-4, 1rem) 0 calc(var(--space-4, 1rem) - 3px);
	border-radius: var(--radius-sm, 0.5rem) var(--radius-sm, 0.5rem) 0 0;
}

.page-druk-kalkulator--ulotki .section-tabela-cen__table-wrapper.is-active .section-tabela-cen__table-title,
.page-druk-kalkulator--wizytowki .section-tabela-cen__table-wrapper.is-active .section-tabela-cen__table-title {
	color: var(--kotler-text, #1a1a1a);
}

.section-tabela-cen__th-unit {
	display: block;
	font-size: var(--text-xs, clamp(0.75rem, 0.8vw, 0.875rem));
	font-weight: 400;
	color: var(--kotler-text-mute, #707070);
	margin-top: 0.125rem;
}

.section-tabela-cen__table--banery {
	table-layout: auto;
	max-width: 760px;
	margin-left: auto;
	margin-right: auto;
}

.section-tabela-cen__table--ulotki {
	table-layout: auto;
	max-width: 760px;
}

.section-tabela-cen__table--ulotki .section-tabela-cen__cell-number {
	font-size: clamp(0.75rem, 0.9vw, 0.875rem);
}

.section-tabela-cen__table--wizytowki {
	table-layout: auto;
	max-width: 760px;
}

.page-druk-kalkulator--banery .section-tabela-cen__table-wrapper {
	background: var(--kotler-paper, #ffffff);
	border: 1px solid rgba(0, 128, 246, 0.15);
	border-radius: var(--radius-lg, 1.5rem);
	box-shadow: 0 6px 18px rgba(0, 128, 246, 0.06);
	padding: clamp(1rem, 2vw, 1.5rem);
	width: fit-content;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.section-tabela-cen__cell-action {
	text-align: center;
}

.section-tabela-cen__use-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2, 0.5rem);
	padding: var(--space-3, 0.75rem) var(--space-4, 1rem);
	background: var(--kotler-blue, #0080f6);
	color: #ffffff;
	border: none;
	border-radius: 999px;
	font-size: var(--text-sm, clamp(0.875rem, 1vw, 1rem));
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease, transform 200ms ease;
	text-decoration: none;
}

.section-tabela-cen__use-btn:link {
	color: #ffffff;
}

.section-tabela-cen__use-btn:visited {
	color: #ffffff;
}

.section-tabela-cen__use-btn:hover {
	background: var(--kotler-blue-600, #0066c4);
	transform: translateY(-2px);
	color: #ffffff;
}

.section-tabela-cen__use-btn:focus-visible {
	outline: 2px solid var(--kotler-ink, #0a1628);
	outline-offset: 2px;
	color: #ffffff;
}

.section-tabela-cen__use-btn:active {
	background: var(--kotler-blue-700, #004d93);
	color: #ffffff;
}

.section-tabela-cen__table-title {
	font-size: var(--text-base, 1rem);
	font-weight: 700;
	color: var(--kotler-text, #1a1a1a);
	padding-top: var(--space-6, 1.5rem);
	padding-bottom: var(--space-3, 0.75rem);
	margin: 0;
}

.section-tabela-cen__note {
	font-size: var(--text-xs, clamp(0.75rem, 0.8vw, 0.875rem));
	color: var(--kotler-text-mute, #707070);
	margin: var(--space-6, 1.5rem) 0 0 0;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* FAQ */
/* ═══════════════════════════════════════════════════════════════════════════ */

.section-faq {
	padding: var(--section-padding-y, clamp(3rem, 8vw, 5.5rem));
}

.section-faq__container {
	max-width: min(65ch, 100%);
	margin: 0 auto;
	padding: 0 var(--container-padding, clamp(1.25rem, 3vw, 2.5rem));
}

.section-faq__container h2 {
	font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
	font-size: var(--text-3xl, clamp(2rem, 1.7rem + 1.5vw, 2.75rem));
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
	color: var(--kotler-text, #1a1a1a);
	margin: 0 0 0.75rem 0;
}

.section-faq__sub {
	font-size: clamp(1rem, 1.2vw, 1.125rem);
	color: var(--kotler-text-soft, #4a4a4a);
	margin: 0 0 var(--space-6, 1.5rem) 0;
}

/* FAQ section uses .cennik-accordion__* component from accordion.css — old rules removed */

/* ═══════════════════════════════════════════════════════════════════════════ */
/* CTA section */
/* ═══════════════════════════════════════════════════════════════════════════ */

.section-cta {
	padding: var(--section-padding-y, clamp(3rem, 8vw, 5.5rem));
	background: var(--kotler-ink, #0a1628);
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: 60vh;
	display: flex;
	align-items: center;
}

/* Grid pattern background */
.section-cta::before {
	content: '';
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
	background-size: 88px 88px;
	opacity: 0.22;
	pointer-events: none;
	z-index: 0;
}

/* Blue glow accent */
.section-cta::after {
	content: '';
	position: absolute;
	top: -10rem;
	right: -10rem;
	width: 42vw;
	min-width: 320px;
	aspect-ratio: 1;
	background: radial-gradient(circle, rgba(0, 128, 246, 0.10) 0%, transparent 70%);
	filter: blur(48px);
	pointer-events: none;
	z-index: 0;
}

/* Watermark KOTLER text */
.section-cta__watermark {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.section-cta__watermark span {
	font-family: 'Malking', Georgia, serif;
	font-size: clamp(11rem, 32vw, 26rem);
	line-height: 0.85;
	color: rgba(255, 255, 255, 0.04);
	white-space: nowrap;
	user-select: none;
	will-change: transform;
}

@media (max-width: 640px) {
	.section-cta__watermark span {
		font-size: clamp(8rem, 48vw, 14rem);
		color: rgba(255, 255, 255, 0.022);
	}
}

.section-cta__container {
	position: relative;
	z-index: 1;
	max-width: var(--container-max, 1400px);
	margin: 0 auto;
	padding: 0 var(--container-padding, clamp(1.25rem, 3vw, 2.5rem));
}

.section-cta__inner {
	max-width: 720px;
	margin-inline: auto;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.section-cta__container h2 {
	font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
	font-size: clamp(2.5rem, 6vw, 5rem);
	font-weight: 700;
	line-height: 1.0;
	letter-spacing: -0.05em;
	color: var(--kotler-paper, #ffffff);
	margin: 0 0 1.5rem;
}

.section-cta__sub {
	font-family: var(--font-body, 'Geist', system-ui, sans-serif);
	font-size: clamp(1rem, 1.3vw, 1.2rem);
	line-height: 1.5;
	color: var(--kotler-text-on-dark, rgba(255, 255, 255, 0.92));
	max-width: 46ch;
	margin: 0 0 clamp(2.25rem, 4vw, 3rem);
}

.section-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: clamp(0.75rem, 1.5vw, 1rem);
}

/* Primary button (wired to calculator submit) */
.cta-cennik__primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.65rem;
	padding: clamp(1rem, 1.5vw, 1.25rem) clamp(2rem, 3vw, 2.5rem);
	background: var(--kotler-blue, #0080f6);
	color: #ffffff;
	border: none;
	border-radius: 999px;
	font-family: var(--font-display, 'Plus Jakarta Sans', system-ui, sans-serif);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: -0.005em;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 16px 48px rgba(0, 128, 246, 0.32);
	position: relative;
	isolation: isolate;
	transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
		box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1),
		background 240ms ease;
	will-change: transform;
}

.cta-cennik__primary:link,
.cta-cennik__primary:visited {
	color: #ffffff !important;
}

.cta-cennik__primary:hover,
.cta-cennik__primary:focus-visible,
.cta-cennik__primary:active {
	color: #ffffff !important;
	background: var(--kotler-blue-light, #4da3f9);
	box-shadow: 0 24px 64px rgba(0, 128, 246, 0.42);
	outline: none;
}

.cta-cennik__primary:focus-visible {
	box-shadow: 0 24px 64px rgba(0, 128, 246, 0.42),
		0 0 0 3px rgba(0, 128, 246, 0.35),
		0 0 0 5px rgba(255, 255, 255, 0.9);
}

.cta-cennik__primary:disabled,
.cta-cennik__primary[aria-disabled='true'] {
	background: rgba(255, 255, 255, 0.10);
	color: rgba(255, 255, 255, 0.45);
	cursor: not-allowed;
	pointer-events: none;
	transform: none !important;
	box-shadow: none !important;
}

/* Secondary button (ghost style) */
.section-cta__secondary {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.85rem 1.5rem;
	background: transparent;
	border: 1px solid var(--kotler-border-on-dark, rgba(255, 255, 255, 0.16));
	border-radius: 999px;
	font-family: var(--font-body, 'Geist', system-ui, sans-serif);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: -0.005em;
	text-decoration: none;
	transition: background 240ms ease,
		border-color 240ms ease,
		color 240ms ease,
		transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.section-cta__secondary,
.section-cta__secondary:link,
.section-cta__secondary:visited {
	color: var(--kotler-text-on-dark, #ffffff);
}

.section-cta__secondary:hover,
.section-cta__secondary:focus-visible,
.section-cta__secondary:active {
	color: var(--kotler-blue-light, #4da3f9);
	background: rgba(0, 128, 246, 0.08);
	border-color: var(--kotler-blue, #0080f6);
	outline: none;
	transform: translateY(-2px);
}

.section-cta__secondary:focus-visible {
	box-shadow: 0 0 0 3px rgba(0, 128, 246, 0.35),
		0 0 0 5px rgba(255, 255, 255, 0.9);
}

@media (max-width: 640px) {
	.section-cta__actions {
		flex-direction: column;
		gap: 0.75rem;
		width: 100%;
		max-width: 320px;
		margin-inline: auto;
	}
	.cta-cennik__primary,
	.section-cta__secondary {
		width: 100%;
		justify-content: center;
	}
}

.section-cta__note {
	font-size: var(--text-sm, clamp(0.875rem, 1vw, 1rem));
	color: rgba(255, 255, 255, 0.8);
	margin-top: var(--space-4, 1rem);
}

.section-cta__note a {
	color: var(--kotler-blue-faint, #e6f2fe);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	transition: opacity 200ms ease;
}

.section-cta__note a:link {
	color: var(--kotler-blue-faint, #e6f2fe);
}

.section-cta__note a:visited {
	color: rgba(230, 242, 254, 0.8);
}

.section-cta__note a:hover {
	opacity: 0.85;
	color: var(--kotler-blue-faint, #e6f2fe);
}

.section-cta__note a:focus-visible {
	outline: 2px solid var(--kotler-paper, #ffffff);
	outline-offset: 2px;
}

.section-cta__note a:active {
	opacity: 0.7;
	color: var(--kotler-blue-faint, #e6f2fe);
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Mobile bar clearance: extend CTA section padding to reserve space */
/* ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
	.page-druk-kalkulator .section-cta {
		padding-top: var(--space-6, 1.5rem);
		padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0.75rem));
	}
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* Section rhythm: alternating backgrounds */
/* ═══════════════════════════════════════════════════════════════════════════ */

.section-hero {
	background: var(--kotler-paper, #ffffff);
}

.section-opis {
	background: var(--kotler-bg, #fafaf7);
}

.section-faq {
	background: var(--kotler-paper, #ffffff);
}

/* Color rhythm (all products): hero-light → kalkulator-beige → opis/wymagania/skladane-light → tabela-blue-tint → faq-light → cta-dark */
.page-druk-kalkulator .section-kalkulator {
	background: var(--kotler-bg-warm, #f5f1ea);
}

.page-druk-kalkulator .section-tabela-cen {
	background: linear-gradient(180deg, rgba(0, 128, 246, 0.05) 0%, rgba(0, 128, 246, 0.09) 100%);
}
