[data-component="numbered-blocks"] {
	display: flex;
	flex-direction: column;
	gap: 0;
}

[data-component="numbered-blocks-item"] {
	display: flex;
	align-items: start;
	flex-direction: row;
	gap: clamp(0.5rem, 2vw, 1rem);
	padding: clamp(0.75rem, 2.5vw, 1.25rem);
	border: 1px solid;
	border-color: var(--gw-color-blue, #0d1c37);
	font-family: AnybodyVariable, sans-serif;
	flex: 1;

	&:nth-child(even) {
		background-color: var(--gw-color-blue, #0d1c37);
		color: var(--gw-color-green, #0c9847);
		--text-color: var(--gw-color-green, #0c9847);
	}
	&:nth-child(odd) {
		background-color: var(--gw-color-green, #0c9847);
		color: var(--gw-color-blue, #0d1c37);
		--text-color: var(--gw-color-blue, #0d1c37);
	}

	.numbered-blocks__number {
		flex-shrink: 0;
		line-height: 1;
		font-size: clamp(3rem, 8vw, 5.5rem);
		font-family: Tomorrow, sans-serif !important;
		font-weight: 400;
		letter-spacing: -0.02em;
		display: flex;
		width: 1em;
		justify-content: center;

		color: var(--text-color);
	}

	.numbered-blocks__content {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
		gap: clamp(0.5rem, 2vw, 1rem);
	}

	.numbered-blocks__title {
		font-weight: 700;
		font-size: clamp(14px, 2vw, 24px);
		line-height: 1;
		/* letter-spacing: 0.3em; */
		text-transform: uppercase;
		display: flex;
		color: var(--text-color);
		margin-top: 1em;
	}

	.numbered-blocks__text {
		position: relative;

		p {
			margin: 0;
			line-height: 1.2;
			font-size: 14px;
			color: var(--text-color);
		}
	}
}

@media (min-width: 960px) {
	[data-component="numbered-blocks"] {
		flex-direction: row;
	}
	[data-component="numbered-blocks-item"] {
		flex-direction: column;
		min-height: 500px;
		gap: 0;

		.numbered-blocks__number {
			width: 90%;
			justify-content: flex-end;
		}

		.numbered-blocks__content {
			min-height: 260px;
			justify-content: flex-start;
			min-height: 300px;
			margin-top: auto;
			margin-bottom: auto;
		}

		.numbered-blocks__title {
			max-width: 10ch;
			min-height: 3.2em;
			align-items: flex-end;
			margin-top: 0;
		}

		.numbered-blocks__text {
			padding-top: clamp(0.75rem, 2vw, 1.5rem);

			&::after {
				content: "";
				display: block;
				width: calc(100% + clamp(0.75rem, 2.5vw, 1.25rem) * 2);
				height: 1px;
				background-color: var(--text-color);
				position: absolute;
				left: 50%;
				top: 0;
				transform: translateX(-50%);
			}
		}
	}
}
