/* Crystal Car — Leasing Process Steps (ccls-) */

.ccls {
	--ccls-text: #1a1a1a;
	--ccls-muted: #6b7280;
	--ccls-line: #d1d5db;
	--ccls-accent: #1a73e8;
	padding: 4rem 0 5rem;
	color: var(--ccls-text);
}

.ccls__title {
	margin: 0 0 3.2rem;
	max-width: 72rem;
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.ccls__track {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ccls-step;
}

.ccls__step {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0 1.2rem 0 0;
	margin: 0;
}

.ccls__step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 1.4rem;
	left: 3.6rem;
	right: 0;
	height: 2px;
	background: var(--ccls-line);
	z-index: 0;
}

.ccls__marker {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.8rem;
	height: 2.8rem;
	margin: 0 0 1.6rem;
	flex: 0 0 auto;
}

.ccls__number {
	display: block;
	font-size: 1.6rem;
	line-height: 1;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--ccls-accent);
}

.ccls__text {
	margin: 0;
	font-size: 1.4rem;
	line-height: 1.4;
	font-weight: 400;
	color: var(--ccls-text);
}

@media (max-width: 1199px) {
	.ccls__track {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		row-gap: 2.4rem;
	}

	.ccls__step:nth-child(4)::after {
		display: none;
	}

	.ccls__step:nth-child(4) {
		padding-right: 0;
	}
}

@media (max-width: 767px) {
	.ccls {
		padding: 3rem 0 4rem;
	}

	.ccls__title {
		margin-bottom: 2.4rem;
		font-size: 1.8rem;
	}

	.ccls__track {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.ccls__step {
		flex-direction: row;
		align-items: flex-start;
		gap: 1.6rem;
		padding: 0 0 2.4rem 0;
	}

	.ccls__step:not(:last-child)::after {
		top: 2.8rem;
		left: 1.3rem;
		right: auto;
		bottom: 0;
		width: 2px;
		height: auto;
	}

	.ccls__marker {
		margin: 0;
	}

	.ccls__text {
		flex: 1 1 auto;
		padding-top: 0.4rem;
	}
}
