.nh-flow {
	margin: 0 auto;
	padding: 80px 0;
	background: #F8F4F3;
	border-radius: var(--nh-radius);
	max-width: 1092px;
}

.nh-flow__inner {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 var(--nh-gutter);
}

.nh-flow__header {
	text-align: center;
	max-width: 800px;
	margin: 0 auto 120px;
}

.nh-flow__title {
	margin: 0;
	font-family: var(--nh-serif);
	font-size: var(--nh-flow-title-size, 42px);
	line-height: 1.1;
	letter-spacing: -2.5px;
	text-align: center;
	width: 100%;
	display: flex;
	justify-content: center;
	color: #000000;
}

.nh-flow__subtitle {
	margin: 22px 0 0;
	font-family: var(--nh-serif);
	font-size: var(--nh-flow-subtitle-size, 22px);
	line-height: 1.1;
	letter-spacing: -0.5px;
	color: #000000;
}

.nh-flow__steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(var(--nh-flow-steps, 5), 1fr);
	gap: 0;
	position: relative;
	align-items: start;
}

.nh-flow__steps::before {
	content: "";
	position: absolute;
	left: calc(50% / var(--nh-flow-steps, 5));
	right: calc(50% / var(--nh-flow-steps, 5));
	top: 70px;
	height: 1px;
	background: #000000;
	z-index: 0;
	opacity: 0;
	transition: opacity 500ms ease-out;
}

.newhome.nh-anim .nh-flow.is-visible .nh-flow__steps::before {
	opacity: 1;
	transition-delay: 300ms;
}

.nh-flow__step {
	position: relative;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	z-index: 1;
}

.nh-flow__step-title {
	margin: 0 0 4px;
	min-height: 50px;
	font-family: var(--nh-serif);
	font-size: var(--nh-flow-item-title-size, 22px);
	line-height: 1.1;
	letter-spacing: -0.5px;
	font-weight: 400;
	color: #000000;
}

.nh-flow__dot {
	box-sizing: border-box;
	width: 33px;
	height: 33px;
	border-radius: 50%;
	background: var(--nh-card-bg);
	border: 1px solid var(--nh-flow-dot-outer, var(--nh-flow-accent, #000000));
	display: block;
	margin: 0 auto 32px;
	position: relative;
	z-index: 1;
}

.nh-flow__dot::before {
	content: "";
	box-sizing: border-box;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 19px;
	height: 19px;
	transform: translate(-50%, -50%);
	border: 1px solid var(--nh-flow-dot-inner, #000000);
	border-radius: 50%;
	background: var(--nh-card-bg);
}

.nh-flow__step-body {
	margin: 0;
	font-family: var(--nh-sans);
	font-weight: 300;
	font-size: var(--nh-flow-item-subtitle-size, 16px);
	line-height: 1.1;
	letter-spacing: -0.3px;
	max-width: 157px;
	color: #000000;
}

.nh-flow__aida {
	margin: 48px auto 0;
	text-align: center;
	font-family: var(--nh-serif);
	font-size: 20px;
	line-height: 1.4;
	letter-spacing: -0.5px;
	color: var(--nh-flow-aida-prefix, #000000);
}

.nh-flow__aida::before {
	content: "";
	display: inline-block;
	vertical-align: middle;
	box-sizing: border-box;
	width: 22px;
	height: 22px;
	margin-right: 14px;
	border-radius: 50%;
	border: 1px solid var(--nh-flow-aida-ring, #ff3cfe);
	background: transparent;
	position: relative;
	top: -1px;
}

.nh-flow__aida--no-ring::before {
	content: none;
	display: none;
}

.nh-flow__aida-name {
	color: var(--nh-flow-aida-name, #ff3cfe);
	font-style: italic;
}

.nh-flow__footer {
	margin: 48px auto 0;
	max-width: 700px;
	text-align: center;
	font-family: var(--nh-serif);
	font-size: 20px;
	line-height: 1.4;
	letter-spacing: -0.5px;
}

@media (max-width: 900px) {
	.nh-flow {
		padding: 56px 96px;
		margin: 0 auto;
	}

	.nh-flow__inner {
		padding: 0;
	}

	.nh-flow__header {
		margin-bottom: 48px;
		max-width: none;
	}

	.nh-flow__title {
		font-size: var(--nh-flow-title-size, 32px);
	}

	.nh-flow__subtitle {
		font-size: var(--nh-flow-subtitle-size, 16px);
		margin-top: 16px;
	}

	.nh-flow__steps {
		grid-template-columns: 1fr;
		gap: 56px;
		position: relative;
	}

	.nh-flow__steps::before {
		display: none;
	}

	.nh-flow__step::after {
		content: "";
		position: absolute;
		top: 16.5px;
		bottom: calc(-56px - 16.5px);
		left: 16.5px;
		width: 1px;
		background: #000000;
		z-index: 0;
		opacity: 0;
		transition: opacity 500ms ease-out;
	}

	.nh-flow__step:last-child::after {
		content: none;
	}

	.newhome.nh-anim .nh-flow.is-visible .nh-flow__step::after {
		opacity: 1;
		transition-delay: 300ms;
	}

	.nh-flow__step {
		display: grid;
		grid-template-columns: 33px 1fr;
		grid-template-areas:
			"dot title"
			"dot body";
		column-gap: 20px;
		row-gap: 8px;
		text-align: left;
		align-items: start;
	}

	.nh-flow__dot {
		grid-area: dot;
		margin: 0;
		align-self: start;
	}

	.nh-flow__step-title {
		grid-area: title;
		min-height: 0;
		margin: 0;
		font-size: var(--nh-flow-item-title-size, 22px);
		line-height: 1;
	}

	.nh-flow__step-body {
		grid-area: body;
		font-size: var(--nh-flow-item-subtitle-size, 16px);
		max-width: none;
	}

	.nh-flow__aida {
		margin-top: 56px;
		text-align: left;
		font-size: 18px;
	}

	.nh-flow__footer {
		margin-top: 56px;
		text-align: left;
		font-size: 18px;
	}

	.nh-flow__aida::before {
		display: none;
	}
}

@media (max-width: 600px) {
	.nh-flow {
		padding: 70px 24px 56px;
		margin: 0 auto;
		border-radius: 0;
	}

	.nh-flow__title {
		font-size: var(--nh-flow-title-size, 26px);
	}

	.nh-flow__subtitle {
		font-size: var(--nh-flow-subtitle-size, 16px);
		margin-top: 25px;
		margin-bottom: 20px;
	}

	.nh-flow__step {
		column-gap: 16px;
	}

	.nh-flow__step-title {
		font-size: var(--nh-flow-item-title-size, 18px);
	}

	.nh-flow__step-body {
		font-size: var(--nh-flow-item-subtitle-size, 14px);
	}

	.nh-flow__aida {
		font-size: 16px;
	}

	.nh-flow__aida::before {
		width: 18px;
		height: 18px;
	}
}
