/**
 * «Как заказать» — таймлайн 1×6 / 2×3 / 3×2, CTA.
 * Токены, оболочка, типографика и ссылки — horeca-content-block.css
 */

.horeca-order:has(.horeca-order__timeline) .horeca-order__title,
.horeca-order:has(.horeca-order__timeline) .horeca-order__lead,
#kak-zakazat-brelki .horeca-order__title,
#kak-zakazat-brelki .horeca-order__lead {
	text-align: center;
}

.horeca-order:has(.horeca-order__timeline) .horeca-order__lead,
#kak-zakazat-brelki .horeca-order__lead {
	margin-bottom: 1.75rem;
}

.horeca-order__timeline {
	list-style: none;
	margin: 0 auto;
	padding: 0;
	position: relative;
	width: 100%;
	max-width: 100%;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-auto-rows: auto;
	align-items: stretch;
	gap: 1rem;
}

.horeca-order__timeline > meta {
	display: none !important;
}

.horeca-order__timeline::before {
	display: none;
}

.horeca-order__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.horeca-order__item:not(.horeca-order__item--last)::after {
	display: none;
}

.horeca-order__marker {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 0.45rem;
	padding: 0 0 0.5rem;
}

.horeca-order__dot {
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--ho-accent);
	border: 3px solid var(--ho-surface);
	box-shadow: 0 0 0 2px var(--ho-accent);
}

.horeca-order__step-num {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--ho-muted);
	letter-spacing: 0.04em;
}

.horeca-order__card {
	margin-top: 0;
	padding: 1rem 1.1rem 1.15rem;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	overflow-wrap: break-word;
	word-wrap: break-word;
	text-align: left;
}

.horeca-order__icon {
	width: 2.25rem;
	height: 2.25rem;
	margin-bottom: 0.45rem;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: var(--ho-accent);
	color: var(--ho-text);
}

.horeca-order__icon svg {
	width: 1.2rem;
	height: 1.2rem;
}

#kak-zakazat-brelki h3.horeca-order__name,
.horeca-order .horeca-order__card h3.horeca-order__name {
	margin: 0 0 0.5rem;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: var(--ho-text) !important;
	text-decoration: none !important;
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

#kak-zakazat-brelki h3.horeca-order__name::before,
.horeca-order .horeca-order__card h3.horeca-order__name::before {
	content: "[";
	color: var(--ho-accent);
	font-weight: 700;
	margin-right: 0.12em;
}

#kak-zakazat-brelki h3.horeca-order__name::after,
.horeca-order .horeca-order__card h3.horeca-order__name::after {
	content: "]";
	color: var(--ho-accent);
	font-weight: 700;
	margin-left: 0.12em;
}

.horeca-order__timeline .horeca-order__text,
.horeca-order__card .horeca-order__text {
	overflow-wrap: break-word;
	word-wrap: break-word;
	hyphens: auto;
	width: 100%;
	max-width: 100%;
}

.horeca-order__email {
	white-space: nowrap;
	display: inline-block;
	max-width: 100%;
}

@media (min-width: 768px) {
	.horeca-order__timeline {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem;
		row-gap: 1.75rem;
		padding-top: 2.75rem;
	}

	.horeca-order__timeline::before {
		display: block;
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		top: 1.35rem;
		height: 4px;
		background: linear-gradient(90deg, var(--ho-accent) 0%, #e8e8e8 50%, var(--ho-accent) 100%);
		border-radius: 2px;
		z-index: 0;
	}

	.horeca-order__item {
		position: relative;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		align-self: stretch;
		height: 100%;
		min-width: 0;
		text-align: center;
		padding: 0 0.35rem;
	}

	.horeca-order__marker {
		position: absolute;
		top: 0;
		left: 50%;
		transform: translateX(-50%);
		flex-direction: column;
		align-items: center;
		justify-content: flex-start;
		gap: 0;
		padding-top: 0;
	}

	.horeca-order__step-num {
		position: absolute;
		top: -1.6rem;
		left: 50%;
		transform: translateX(-50%);
		margin: 0;
		white-space: nowrap;
	}

	.horeca-order__card {
		margin-top: 1.75rem;
		width: 100%;
		max-width: 100%;
		flex: 1 1 auto;
		min-height: 0;
		align-items: stretch;
		text-align: center;
		padding: 0.9rem 0.75rem 1rem;
	}

	.horeca-order__card .horeca-order__text,
	.horeca-order__card .horeca-order__name {
		width: 100%;
		max-width: 100%;
		align-self: stretch;
	}

	.horeca-order__card .horeca-order__icon {
		align-self: center;
		margin-left: auto;
		margin-right: auto;
	}

	.horeca-order__text {
		flex: 1 1 auto;
		font-size: 13px;
	}

	#kak-zakazat-brelki h3.horeca-order__name,
	.horeca-order .horeca-order__card h3.horeca-order__name {
		font-size: 18px !important;
	}

	.horeca-order__email {
		white-space: normal;
		word-break: break-word;
	}
}

@media (min-width: 1024px) {
	.horeca-order__timeline {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 0.75rem;
		row-gap: 1.85rem;
	}

	.horeca-order__item {
		padding: 0 0.25rem;
	}

	.horeca-order__email {
		white-space: nowrap;
	}
}

@media (min-width: 1100px) {
	.horeca-order__card {
		padding: 1rem 0.75rem 1.1rem;
	}

	.horeca-order__timeline .horeca-order__text,
	.horeca-order__card .horeca-order__text {
		font-size: 13.5px;
	}
}

.horeca-order__footer {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--ho-line);
	text-align: center;
}

.horeca-order__cta-text {
	margin: 0 0 0.85rem;
	font-size: 15px;
	color: var(--ho-text);
	text-align: center;
}

.horeca-order__cta-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.horeca-order__cta-btn {
	display: inline-block;
	padding: 0.45rem 1.1rem;
	font-size: 14px;
	font-weight: 700;
	font-family: inherit;
	color: var(--ho-text) !important;
	text-decoration: none !important;
	background: var(--ho-accent);
	border: 2px solid var(--ho-accent);
	border-radius: 6px !important;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.horeca-order__cta-btn:hover {
	background: var(--ho-accent-hover);
	border-color: var(--ho-accent-hover);
	color: var(--ho-text) !important;
}

.horeca-order__cta-btn--ghost {
	background: var(--ho-surface);
	border-color: var(--ho-line);
}

.horeca-order__cta-btn--ghost:hover {
	background: #fafafa;
	border-color: #ccc;
}

@media (max-width: 479px) {
	.horeca-order__cta-actions {
		flex-direction: column;
		width: 100%;
	}

	.horeca-order__cta-btn {
		width: 100%;
		max-width: 280px;
		text-align: center;
	}
}
