/* ==========================================================================
   Sekcja: CTA (Figma 1:488) — tło zawsze granatowe, zdjęcie przyciemnione
   ========================================================================== */
.section--cta {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding-block: clamp(4rem, 6vw, 5rem); /* 80px */
	background: var(--color-navy);
	color: #fff;
}

.cta__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	opacity: 0.2;
	pointer-events: none;
}

.cta__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	text-align: center;
}

.cta__heading {
	margin: 0;
	font-size: clamp(2rem, 3vw + 1rem, 3rem); /* 48px */
	line-height: 1;
	letter-spacing: -0.0225em;
	color: #fff;
}

.cta__text {
	max-width: 590px;
	margin: 0;
	font-size: 1.125rem;
	line-height: 1.4;
	color: #d1d5db;
}

.cta__buttons {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
	width: 100%;
	padding-top: 24px;
}

.cta__btn {
	padding: 1.25rem 1.5rem;
	font-size: 1rem;
	font-weight: 900;
	line-height: 1.75;
	letter-spacing: -0.01em;
}

.section--cta .cta__btn.btn--primary {
	box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.2);
}

@media (min-width: 640px) {
	.cta__text {
		font-size: 1.25rem; /* 20/28 */
	}

	.cta__buttons {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 24px;
		width: auto;
	}

	.cta__btn {
		padding: 1.25rem 3rem;
		font-size: 1.125rem;
	}
}

/* ==========================================================================
   Animacje (silnik: assets/js/reveal.js)
   Tło: paralaksa na desktopie (warstwa wyższa od sekcji, nadmiar ucina overflow
   sekcji) + przy wejściu zdjęcie wyostrza się i oddala 1.15→1 (1.6s).
   Treść: nagłówek wyjeżdża zza maski → opis z rozmyciem → przyciski kaskadowo.
   ========================================================================== */
.cta__bg-layer {
	position: absolute;
	inset: 0;
}

@media (min-width: 1024px) {
	/* Zapas > maks. przesunięcia (0.08 × ~(½ ekranu + ½ sekcji)), by nie odsłonić krawędzi. */
	.cta__bg-layer {
		inset: -80px 0;
	}
}

.has-reveal .cta__bg img[data-reveal] {
	transform: scale(1.15);
	transition:
		opacity 1s var(--ease-soft),
		filter 1.1s var(--ease-soft),
		transform 1.6s var(--ease-out);
}

.has-reveal .cta__bg img[data-reveal].is-revealed {
	transform: none;
}

.cta__btn-wrap {
	display: flex;
}

.cta__btn-wrap > .cta__btn {
	flex: 1 1 auto;
}

/* Przyciski: miękki „pop” z rozmyciem (od 0.85 zamiast 0.5). */
.has-reveal .cta__btn-wrap[data-reveal="pop"]:not(.is-revealed) {
	transform: scale(0.88) translate3d(0, 20px, 0);
	filter: blur(var(--reveal-blur));
}

@media (prefers-reduced-motion: reduce) {
	.has-reveal .cta__bg img[data-reveal] {
		transform: none !important;
		transition: none !important;
	}
}
