/**
 * Recovery of Ukraine page.
 */

.recovery-page {
	padding-block: var(--space-section);
}

.recovery-page__shell {
	max-width: 100rem;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: var(--space-xl);
}

.recovery-page__header {
	text-align: center;
}

.recovery-page__title {
	margin: 0;
	font-weight: 800;
	line-height: 1.15;
	color: var(--text-title);
}

.recovery-page__section {
	display: flex;
	flex-direction: column;
	gap: var(--space-m);
}

.recovery-page__section-title {
	margin: 0;
	font-size: var(--text-2xl);
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	color: var(--text-title);
}

.recovery-page__lead,
.recovery-page__section-intro {
	margin: 0;
	max-width: 72ch;
	margin-inline: auto;
	font-size: var(--text-m);
	line-height: 1.65;
	text-align: center;
	color: var(--text-body);
}

.recovery-page__damages {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--space-m);
	margin: 0;
	padding: 0;
	list-style: none;
}

.recovery-page__damage {
	--recovery-icon-size: clamp(7rem, 11vw, 9.5rem);

	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 18rem;
	padding: var(--space-m);
	padding-top: calc(var(--recovery-icon-size) + var(--space-s));
	overflow: hidden;
}

.recovery-page__damage-icon {
	position: absolute;
	top: var(--space-xs);
	right: var(--space-xs);
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	width: var(--recovery-icon-size);
	height: var(--recovery-icon-size);
	pointer-events: none;
	line-height: 1;
}

.recovery-page__damage-icon i {
	font-size: var(--recovery-icon-size);
	line-height: 1;
	background: linear-gradient(
		180deg,
		hsla(359, 98%, 50%, 0.88) 0%,
		hsla(359, 98%, 46%, 0.62) 30%,
		hsla(359, 95%, 38%, 0.4) 55%,
		hsla(359, 85%, 28%, 0.22) 78%,
		hsla(359, 75%, 18%, 0.1) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	color: var(--primary);
	-webkit-text-fill-color: transparent;
}

.recovery-page__damage-text {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: var(--text-m);
	font-weight: 600;
	line-height: 1.45;
	color: var(--text-title);
}

.recovery-page__highlight {
	position: relative;
	padding-block: var(--space-xl);
	padding-inline: var(--space-inner);
	overflow: hidden;
	border-color: color-mix(in srgb, var(--primary) 35%, var(--border-primary));
	background:
		linear-gradient(135deg, var(--primary-10) 0%, transparent 55%),
		var(--bg-surface);
}

.recovery-page__highlight::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 4px;
	background: linear-gradient(180deg, var(--primary) 0%, var(--primary-d-2) 100%);
}

.recovery-page__highlight-text {
	margin: 0;
	padding-left: var(--space-s);
	font-size: var(--text-l);
	font-weight: 700;
	line-height: 1.5;
	color: var(--text-title);
}

.recovery-page__sources {
	display: flex;
	flex-direction: column;
	gap: var(--space-s);
	margin: 0;
	padding: var(--space-m);
	list-style: none;
	border: 1px solid var(--border-primary);
	border-radius: var(--radius-m);
	background: var(--bg-surface);
	box-shadow: var(--shadow-m);
}

.recovery-page__source {
	display: flex;
	align-items: flex-start;
	gap: var(--space-s);
}

.recovery-page__source-marker {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	margin-top: 0.55em;
	border-radius: 50%;
	background: var(--primary);
	box-shadow: 0 0 12px var(--primary-40);
}

.recovery-page__source-text {
	font-size: var(--text-m);
	line-height: 1.55;
	color: var(--text-body);
}

.recovery-page__steps {
	display: flex;
	flex-direction: column;
	gap: var(--space-m);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: recovery-step;
}

.recovery-page__step {
	position: relative;
	padding: var(--space-m);
	padding-left: calc(var(--space-m) + 4.8rem);
	counter-increment: recovery-step;
}

.recovery-page__step::before {
	content: counter(recovery-step);
	position: absolute;
	top: 50%;
	left: var(--space-m);
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.6rem;
	height: 3.6rem;
	border-radius: 50%;
	font-size: var(--text-l);
	font-weight: 800;
	line-height: 1;
	color: var(--text-title);
	background: linear-gradient(145deg, var(--primary) 0%, var(--primary-d-2) 100%);
	box-shadow: 0 4px 18px var(--primary-30);
}

.recovery-page__step-text {
	margin: 0;
	font-size: var(--text-m);
	line-height: 1.6;
	color: var(--text-body);
}

.recovery-page__cta {
	display: flex;
	justify-content: center;
	padding-top: var(--space-s);
}

.recovery-page__cta-btn {
	min-width: min(100%, 32rem);
	padding: 1.2rem 2.4rem;
	font-size: var(--text-m);
	font-weight: 600;
	text-transform: none;
}

@media (max-width: 768px) {
	.recovery-page__damages {
		grid-template-columns: 1fr;
	}

	.recovery-page__damage {
		min-height: 0;
	}

	.recovery-page__highlight {
		padding-block: var(--space-inner);
		padding-inline: var(--space-m);
	}

	.recovery-page__highlight-text {
		font-size: var(--text-m);
	}

	.recovery-page__step {
		padding-top: calc(var(--space-m) + 3.2rem);
		padding-left: var(--space-m);
	}

	.recovery-page__step::before {
		top: var(--space-m);
		left: var(--space-m);
		transform: none;
		width: 3rem;
		height: 3rem;
		font-size: var(--text-m);
	}
}
