/* ============================================================
   Block 07 — Этапы работы (vertical timeline)
   Uses --cf-* tokens, .section__title from theme.
============================================================ */

.cfk-steps {
	background: var(--cf-bg);
	padding: var(--cf-s-16) 0;
	font-family: var(--cf-font);
}
.cfk-steps__inner {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 var(--cf-s-6);
}

/* ---- Timeline ---- */
.cfk-steps__timeline {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* Each step = marker column + content */
.cfk-steps__item {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: 0 var(--cf-s-5);

	opacity: 0;
	transform: translateY(12px);
	animation: cfk-step-in 0.4s var(--cf-ease) forwards;
	animation-delay: var(--d, 0ms);
}
@keyframes cfk-step-in { to { opacity: 1; transform: none; } }

/* ---- Marker (number + vertical line) ---- */
.cfk-steps__marker {
	display: flex;
	flex-direction: column;
	align-items: center;
}
.cfk-steps__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--cf-primary);
	color: #fff;
	font-size: var(--cf-text-14);
	font-weight: var(--cf-w-black);
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}
/* Last step — green checkmark style */
.cfk-steps__item:last-child .cfk-steps__num {
	background: var(--cf-green);
}
.cfk-steps__line {
	width: 2px;
	flex: 1;
	background: linear-gradient(180deg, var(--cf-primary), var(--cf-border-light));
	min-height: 24px;
}
.cfk-steps__item:nth-last-child(2) .cfk-steps__line {
	background: linear-gradient(180deg, var(--cf-primary), var(--cf-green));
}

/* ---- Content ---- */
.cfk-steps__content {
	padding-bottom: var(--cf-s-8);
}
.cfk-steps__item:last-child .cfk-steps__content { padding-bottom: 0; }

.cfk-steps__head {
	display: flex;
	align-items: center;
	gap: var(--cf-s-3);
	margin-bottom: var(--cf-s-2);
	padding-top: var(--cf-s-2);
}
.cfk-steps__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	color: var(--cf-accent-dark);
	flex-shrink: 0;
}
.cfk-steps__icon svg { width: 20px; height: 20px; }

.cfk-steps__title {
	font-size: var(--cf-text-16);
	font-weight: var(--cf-w-bold);
	color: var(--cf-primary);
	margin: 0;
	line-height: 1.25;
	flex: 1;
}
.cfk-steps__time {
	font-size: var(--cf-text-11);
	font-weight: var(--cf-w-bold);
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: var(--cf-text-light);
	background: var(--cf-bg-alt);
	border: 1px solid var(--cf-border-light);
	padding: 3px 8px;
	border-radius: 100px;
	white-space: nowrap;
}
/* Last step time badge — green */
.cfk-steps__item:last-child .cfk-steps__time {
	background: rgba(34, 201, 122, 0.1);
	border-color: rgba(34, 201, 122, 0.25);
	color: #0A7B3E;
}

.cfk-steps__text {
	font-size: var(--cf-text-14);
	font-weight: var(--cf-w-regular);
	color: var(--cf-text-muted);
	line-height: 1.55;
	margin: 0;
}

/* ---- Responsive ---- */
@media (max-width: 575px) {
	.cfk-steps { padding: var(--cf-s-10) 0; }
	.cfk-steps__inner { padding: 0 var(--cf-s-5); }
	.cfk-steps__item { grid-template-columns: 36px 1fr; gap: 0 var(--cf-s-3); }
	.cfk-steps__num { width: 32px; height: 32px; font-size: var(--cf-text-12); }
	.cfk-steps__content { padding-bottom: var(--cf-s-6); }
	.cfk-steps__head { flex-wrap: wrap; gap: var(--cf-s-2); }
	.cfk-steps__icon { width: 22px; height: 22px; }
	.cfk-steps__icon svg { width: 16px; height: 16px; }
	.cfk-steps__title { font-size: var(--cf-text-15); }
	.cfk-steps__time { font-size: var(--cf-text-10); }
	.cfk-steps__text { font-size: var(--cf-text-13); }
}
