.irm-roadmap {
	--irm-accent: #c40000;
	--irm-ink: #07111f;
	--irm-muted: #202b37;
	--irm-road: #28323b;
	--irm-road-edge: #111922;
	--irm-card: #ffffff;
	--irm-shadow: 0 8px 22px rgba(17, 28, 43, 0.11);
	box-sizing: border-box;
	color: var(--irm-ink);
	font-family: inherit;
	margin: 0 auto;
	max-width: 820px;
	padding: clamp(18px, 3vw, 34px) clamp(10px, 2.4vw, 24px);
	position: relative;
}

.irm-roadmap *,
.irm-roadmap *::before,
.irm-roadmap *::after {
	box-sizing: inherit;
}

.irm-roadmap::before {
	background:
		radial-gradient(circle at 50% 0%, rgba(196, 0, 0, 0.08), transparent 28%),
		linear-gradient(180deg, #ffffff 0%, #fafafa 48%, #ffffff 100%);
	border-radius: 18px;
	content: "";
	inset: 0;
	position: absolute;
	z-index: -2;
}

.irm-roadmap__header {
	margin: 0 auto clamp(28px, 5vw, 54px);
	text-align: center;
}

.irm-roadmap__heading {
	align-items: center;
	color: var(--irm-ink);
	display: flex;
	flex-wrap: wrap;
	font-size: clamp(38px, 7vw, 72px);
	font-weight: 950;
	gap: 0.18em;
	justify-content: center;
	letter-spacing: 0;
	line-height: 0.96;
	margin: 0;
	text-transform: uppercase;
}

.irm-roadmap__heading-accent {
	color: var(--irm-accent);
}

.irm-roadmap__heading-rule {
	background: var(--irm-accent);
	border-radius: 999px;
	display: block;
	height: 4px;
	margin: clamp(18px, 2.2vw, 26px) auto 0;
	width: 86px;
}

.irm-roadmap__canvas {
	position: relative;
}

.irm-roadmap__rail {
	background:
		repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0 10px, transparent 10px 23px),
		linear-gradient(90deg, var(--irm-road-edge) 0 10%, var(--irm-road) 10% 90%, var(--irm-road-edge) 90% 100%);
	background-position: center, center;
	background-repeat: repeat-y, no-repeat;
	background-size: 3px 100%, 100% 100%;
	border-radius: 999px;
	bottom: 24px;
	filter: drop-shadow(0 8px 10px rgba(4, 11, 19, 0.18));
	left: 50%;
	pointer-events: none;
	position: absolute;
	top: 22px;
	transform: translateX(-50%);
	width: 46px;
	z-index: 1;
}

.irm-roadmap__road-svg {
	display: none;
	height: 100%;
	overflow: visible;
	width: 100%;
}

.irm-roadmap__road-edge,
.irm-roadmap__road-fill,
.irm-roadmap__road-dash {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.irm-roadmap__road-edge {
	stroke: var(--irm-road-edge);
	stroke-width: 72;
}

.irm-roadmap__road-fill {
	stroke: var(--irm-road);
	stroke-width: 60;
}

.irm-roadmap__road-dash {
	opacity: 0.9;
	stroke: #ffffff;
	stroke-dasharray: 13 15;
	stroke-width: 3;
}

.irm-roadmap__rail::before,
.irm-roadmap__rail::after {
	background: radial-gradient(circle, #ffffff 0 36%, var(--irm-road) 37% 58%, var(--irm-road-edge) 59% 100%);
	border-radius: 999px;
	box-shadow: 0 6px 14px rgba(4, 11, 19, 0.24);
	content: "";
	height: 42px;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	width: 42px;
}

.irm-roadmap__rail::before {
	top: -10px;
}

.irm-roadmap__rail::after {
	bottom: -10px;
}

.irm-roadmap__steps {
	display: grid;
	gap: clamp(14px, 2.8vw, 30px);
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 2;
}

.irm-step {
	align-items: center;
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(70px, 10vw, 112px) minmax(0, 1fr);
	min-height: clamp(104px, 12vw, 132px);
	position: relative;
}

.irm-step::after {
	background: #ffffff;
	border: 4px solid var(--irm-accent);
	border-radius: 999px;
	box-shadow: 0 0 0 5px rgba(196, 0, 0, 0.08);
	content: "";
	height: 18px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 18px;
	z-index: 4;
}

.irm-step__content {
	background: var(--irm-card);
	border: 1px solid rgba(7, 17, 31, 0.07);
	border-radius: 10px;
	box-shadow: var(--irm-shadow);
	cursor: pointer;
	min-height: 94px;
	padding: clamp(12px, 1.6vw, 17px) clamp(14px, 1.9vw, 20px);
	position: relative;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
	z-index: 3;
}

.irm-step__content::after {
	background: #ffffff;
	border-bottom: 1px solid rgba(7, 17, 31, 0.07);
	border-right: 1px solid rgba(7, 17, 31, 0.07);
	box-shadow: 8px 8px 18px rgba(17, 28, 43, 0.05);
	content: "";
	height: 16px;
	position: absolute;
	top: 50%;
	transform: translateY(-50%) rotate(-45deg);
	width: 16px;
	z-index: -1;
}

.irm-step--left .irm-step__content {
	grid-column: 1;
	justify-self: stretch;
	margin-right: clamp(4px, 1vw, 18px);
	padding-left: clamp(48px, 6vw, 68px);
}

.irm-step--left .irm-step__content::after {
	right: -8px;
}

.irm-step--right .irm-step__content {
	grid-column: 3;
	justify-self: stretch;
	margin-left: clamp(4px, 1vw, 18px);
	padding-right: clamp(48px, 6vw, 68px);
}

.irm-step--right .irm-step__content::after {
	left: -8px;
	transform: translateY(-50%) rotate(135deg);
}

.irm-step.is-active .irm-step__content {
	border-color: rgba(196, 0, 0, 0.2);
	box-shadow: 0 10px 26px rgba(17, 28, 43, 0.14);
	transform: translateY(-2px);
}

.irm-step__badge {
	align-items: center;
	background:
		radial-gradient(circle at 34% 28%, #ff3d3d 0, var(--irm-accent) 48%, #8f0000 100%);
	border: 3px solid #ffffff;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(196, 0, 0, 0.24), 0 0 0 2px rgba(196, 0, 0, 0.12);
	color: #ffffff;
	display: inline-flex;
	font-size: clamp(16px, 2.2vw, 24px) !important;
	font-weight: 900;
	height: clamp(38px, 4.8vw, 50px);
	justify-content: center;
	letter-spacing: 0;
	line-height: 1;
	position: absolute;
	top: 14px;
	width: clamp(38px, 4.8vw, 50px);
	z-index: 5;
}

.irm-step--left .irm-step__badge {
	left: calc(clamp(38px, 4.8vw, 50px) / -2);
}

.irm-step--right .irm-step__badge {
	right: calc(clamp(38px, 4.8vw, 50px) / -2);
}

.irm-step__title {
	color: var(--irm-ink);
	font-size: clamp(15px, 1.7vw, 20px) !important;
	font-weight: 850;
	letter-spacing: 0;
	line-height: 1.08;
	margin: 0;
	padding-top: 4px;
}

.irm-step__title::after {
	background: var(--irm-accent);
	border-radius: 999px;
	content: "";
	display: block;
	height: 2px;
	margin: 10px 0 0;
	width: 32px;
}

.irm-step__body,
.irm-step__detail p {
	color: var(--irm-muted);
	font-size: clamp(11px, 1.1vw, 13.5px) !important;
	font-weight: 500;
	line-height: 1.42;
	margin: 10px 0 0;
	max-width: 34ch;
}

.irm-step__detail {
	display: grid;
	grid-template-rows: 0fr;
	opacity: 0;
	overflow: hidden;
	transition: grid-template-rows 180ms ease, opacity 180ms ease;
}

.irm-step__detail p {
	background: rgba(196, 0, 0, 0.06);
	border-left: 4px solid var(--irm-accent);
	border-radius: 0 9px 9px 0;
	margin-top: 12px;
	padding: 10px 12px;
}

.irm-step.is-active .irm-step__detail {
	grid-template-rows: 1fr;
	opacity: 1;
}

.irm-step__marker {
	align-items: center;
	appearance: none;
	background: #ffffff;
	border: 1px solid rgba(7, 17, 31, 0.08);
	border-radius: 999px;
	box-shadow: 0 9px 22px rgba(17, 28, 43, 0.15);
	color: var(--irm-accent);
	cursor: pointer;
	display: flex;
	grid-column: 2;
	grid-row: 1;
	height: clamp(50px, 5.8vw, 70px);
	justify-content: center;
	justify-self: center;
	padding: 0;
	position: relative;
	transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
	width: clamp(50px, 5.8vw, 70px);
	z-index: 6;
}

.irm-step--left .irm-step__marker {
	transform: translateX(-36%);
}

.irm-step--right .irm-step__marker {
	transform: translateX(36%);
}

.irm-step__marker:hover,
.irm-step__marker:focus-visible,
.irm-step.is-active .irm-step__marker {
	background: var(--irm-accent);
	border-color: var(--irm-accent);
	box-shadow: 0 12px 28px rgba(196, 0, 0, 0.22);
	color: #ffffff;
}

.irm-step--left .irm-step__marker:hover,
.irm-step--left .irm-step__marker:focus-visible,
.irm-step--left.is-active .irm-step__marker {
	transform: translateX(-36%) translateY(-2px);
}

.irm-step--right .irm-step__marker:hover,
.irm-step--right .irm-step__marker:focus-visible,
.irm-step--right.is-active .irm-step__marker {
	transform: translateX(36%) translateY(-2px);
}

.irm-step__marker:focus-visible {
	outline: 3px solid rgba(196, 0, 0, 0.22);
	outline-offset: 5px;
}

.irm-step__icon {
	fill: none;
	height: 45%;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 45%;
}

.irm-roadmap .screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal;
}

@media (max-width: 860px) {
	.irm-roadmap {
		padding-inline: 10px;
	}

	.irm-roadmap__heading {
		font-size: clamp(34px, 12vw, 56px);
	}

	.irm-roadmap__rail {
		border-radius: 999px;
		bottom: 28px;
		left: 34px;
		top: 28px;
		width: 14px;
	}

	.irm-roadmap__road-svg,
	.irm-roadmap__rail::before,
	.irm-roadmap__rail::after {
		display: none;
	}

	.irm-roadmap__rail {
		background:
			repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0 12px, transparent 12px 24px),
			linear-gradient(180deg, var(--irm-road-edge), var(--irm-road));
		background-position: center, center;
		background-repeat: repeat-y, no-repeat;
		background-size: 3px 100%, 100% 100%;
	}

	.irm-roadmap__steps {
		gap: 16px;
	}

	.irm-step,
	.irm-step--left,
	.irm-step--right {
		align-items: start;
		grid-template-columns: 68px minmax(0, 1fr);
		min-height: 0;
	}

	.irm-step::after {
		height: 14px;
		left: 34px;
		top: 34px;
		width: 14px;
	}

	.irm-step__marker,
	.irm-step--left .irm-step__marker,
	.irm-step--right .irm-step__marker {
		grid-column: 1;
		grid-row: 1;
		height: 52px;
		justify-self: start;
		margin-left: 8px;
		margin-top: 8px;
		transform: none;
		width: 52px;
	}

	.irm-step__marker:hover,
	.irm-step__marker:focus-visible,
	.irm-step.is-active .irm-step__marker,
	.irm-step--left .irm-step__marker:hover,
	.irm-step--left .irm-step__marker:focus-visible,
	.irm-step--left.is-active .irm-step__marker,
	.irm-step--right .irm-step__marker:hover,
	.irm-step--right .irm-step__marker:focus-visible,
	.irm-step--right.is-active .irm-step__marker {
		transform: translateY(-2px);
	}

	.irm-step__content,
	.irm-step--left .irm-step__content,
	.irm-step--right .irm-step__content {
		grid-column: 2;
		margin: 0;
		min-height: 0;
		padding: 16px 60px 16px 14px;
	}

	.irm-step__content::after {
		display: none;
	}

	.irm-step__badge,
	.irm-step--left .irm-step__badge,
	.irm-step--right .irm-step__badge {
		font-size: 16px;
		height: 40px;
		left: auto;
		right: 12px;
		top: 12px;
		width: 40px;
	}

	.irm-step__title {
		font-size: 18px;
		max-width: calc(100% - 48px);
	}

	.irm-step__body,
	.irm-step__detail p {
		font-size: 13px;
		max-width: none;
	}
}

@media (max-width: 520px) {
	.irm-roadmap {
		padding: 16px 8px;
	}

	.irm-step,
	.irm-step--left,
	.irm-step--right {
		grid-template-columns: 54px minmax(0, 1fr);
	}

	.irm-roadmap__rail {
		left: 26px;
		width: 12px;
	}

	.irm-step::after {
		left: 26px;
	}

	.irm-step__marker,
	.irm-step--left .irm-step__marker,
	.irm-step--right .irm-step__marker {
		height: 44px;
		margin-left: 4px;
		width: 44px;
	}

	.irm-step__badge,
	.irm-step--left .irm-step__badge,
	.irm-step--right .irm-step__badge {
		font-size: 14px;
		height: 36px;
		right: 10px;
		width: 36px;
	}

	.irm-step__content,
	.irm-step--left .irm-step__content,
	.irm-step--right .irm-step__content {
		border-radius: 10px;
		padding: 14px 50px 14px 12px;
	}

	.irm-step__title {
		font-size: 17px;
		max-width: calc(100% - 42px);
	}
}
