/* Systical — Project Results (figures row on a single project) */

.sys-fig {
	--fig-accent: #9afd0d;
	--fig-max: 1240px;
	--fig-rule: #242424;
	--fig-value: #fff;
	--fig-label: #9a9a9a;
	display: block;
	padding: 40px;
	background-color: #070707;
}

.sys-fig__inner {
	max-width: var(--fig-max);
	margin: 0 auto;
}

.sys-fig__heading {
	margin: 0 0 24px;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: clamp(24px, 2.4vw, 32px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.025em;
	color: #fff;
}

/* auto-fit, so five figures and eight figures both fill the row without a
   column-count setting on the widget. */
.sys-fig__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 16px;
}

.sys-fig__item {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	padding: 26px 24px;
	border: 1px solid var(--fig-rule);
	border-radius: 16px;
	background-color: #0d0d0d;
}

.sys-fig__value {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: clamp(34px, 3.4vw, 46px);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--fig-value);
}

.sys-fig__label {
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--fig-label);
}

@media (max-width: 767px) {
	.sys-fig {
		padding: 22px 18px;
	}

	.sys-fig__heading {
		margin-bottom: 16px;
	}

	/* Two columns rather than auto-fit: a 190px minimum collapses to one
	   column at 354px wide and makes the block very tall. */
	.sys-fig__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.sys-fig__item {
		gap: 8px;
		padding: 18px 16px;
		border-radius: 13px;
	}

	.sys-fig__value {
		font-size: 30px;
	}

	.sys-fig__label {
		font-size: 13px;
	}
}
