/* ==========================================================================
   Blok 08: Pasek CTA
   ========================================================================== */

.final-cta {
	background: var(--espresso);
	color: var(--cream-50);
	padding: var(--section-y) 0;
	position: relative;
	overflow: hidden;
}

/* Decorative gradients */
.final-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60% 70% at 90% 10%, rgba(201, 162, 74, 0.14), transparent 60%),
		radial-gradient(50% 60% at 0% 100%, rgba(122, 42, 46, 0.18), transparent 60%);
	pointer-events: none;
}

.final-cta .wrap {
	position: relative;
	z-index: 1;
}

/* Head */
.final-cta-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: clamp(40px, 5vw, 72px);
	gap: var(--space-3);
}

.final-cta h2 {
	font-family: var(--display);
	font-weight: 350;
	font-variation-settings: "opsz" 144;
	font-size: var(--text-display);
	line-height: 1;
	letter-spacing: -0.025em;
	margin: 0;
	color: var(--cream-50);
	max-width: 16ch;
}

.final-cta h2 em {
	font-style: italic;
	color: var(--gold);
	font-weight: 300;
}

/* Aside (chapter + subtitle) */
.final-cta-aside {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: var(--space-2);
	padding-top: 8px;
	flex-shrink: 0;
}

.final-cta-sub {
	font-size: 16px;
	line-height: 1.55;
	color: color-mix(in srgb, var(--cream-50) 70%, transparent);
	max-width: 28ch;
	text-align: right;
	margin: 0;
}

/* Chapter on dark */
.chapter.on-dark .chapter__num,
.chapter.on-dark .chapter__label {
	color: color-mix(in srgb, var(--gold) 70%, transparent);
}

/* Actions */
.final-cta-actions {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
	margin-top: 0;
}

/* removed — unified button system */

/* Phone */
.final-cta .phone {
	font-family: var(--display);
	font-style: italic;
	font-weight: 300;
	font-size: clamp(28px, 3vw, 42px);
	color: var(--cream-50);
	letter-spacing: -0.01em;
	text-decoration: none;
}

.final-cta .phone span {
	display: block;
	font-family: var(--body);
	font-style: normal;
	font-size: var(--text-caption);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--gold);
	margin-bottom: 6px;
}

.final-cta .phone a {
	color: inherit;
	text-decoration: none;
}

.final-cta .phone a:hover {
	color: var(--gold);
}

/* Responsive */
@media (max-width: 860px) {
	.final-cta-head {
		flex-direction: column;
	}

	.final-cta-aside {
		align-items: flex-start;
	}

	.final-cta-sub {
		text-align: left;
	}
}

@media (max-width: 480px) {
	.final-cta-actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}

/* Reveal animation — globalne `.reveal`/`.reveal.in` z dl-system.css.
 * Wcześniej tu była klasa `.is-visible` której JS nie dodaje,
 * sekcje zostawały opacity:0. Usunięte — niech globalne zarządza.
 */

.final-cta .reveal:nth-child(2) {
	transition-delay: 0.1s;
}

.final-cta .reveal:nth-child(3) {
	transition-delay: 0.2s;
}
