/*
 * Service & support — split composition: pitch + CTA on the left, 4
 * vertical service directions on the right. Service-green (#4F8B6A,
 * tokens.css --ark-accent-service) used only as a local marker/number
 * accent per DESIGN.md §7 — no large green fills.
 */

.service-support {
	position: relative;
	background: var(--ark-bg-800);
	padding-block: var(--ark-space-section-lg);
}

.service-support__grid {
	display: grid;
	grid-template-columns: 0.85fr 1fr;
	column-gap: 80px;
	align-items: start;
}

.service-support__intro {
	position: sticky;
	top: 120px;
}

.service-support__overline {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--ark-text-secondary);
	margin: 0 0 16px;
}

.service-support__title {
	font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.7rem);
	font-weight: 600;
	line-height: 1.18;
	color: var(--ark-text-primary);
	margin: 0 0 18px;
	max-width: 420px;
}

.service-support__title-line {
	display: block;
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.service-support__title {
		max-width: none;
	}

	.service-support__title-line {
		white-space: normal;
	}
}

.service-support__lead {
	max-width: 480px;
	font-size: 1.05rem;
	color: var(--ark-text-secondary);
	margin: 0 0 32px;
	text-wrap: balance;
}

.service-support__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.service-support__link {
	font-size: 0.95rem;
	color: var(--ark-text-secondary);
	text-decoration: none;
	border-bottom: 1px solid var(--ark-border-medium);
	padding-bottom: 2px;
	transition: color 200ms var(--ark-ease), border-color 200ms var(--ark-ease);
}

.service-support__link:hover,
.service-support__link:focus-visible {
	color: var(--ark-accent-service);
	border-color: var(--ark-accent-service);
}

.service-support__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.service-support__item {
	position: relative;
	display: grid;
	grid-template-columns: 56px 1fr;
	column-gap: 20px;
	padding-block: 30px;
	border-top: 1px solid var(--ark-border-soft);
}

.service-support__item:last-child {
	border-bottom: 1px solid var(--ark-border-soft);
}

.service-support__number {
	font-family: var(--ark-font-display);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ark-accent-service);
}

.service-support__item-title {
	font-size: var(--ark-fs-card-title);
	font-weight: 600;
	color: var(--ark-text-primary);
	margin: 0 0 8px;
}

.service-support__item-desc {
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--ark-text-secondary);
	margin: 0;
}

@media (max-width: 1024px) {
	.service-support__grid {
		grid-template-columns: 1fr;
		row-gap: 48px;
	}

	/* fix(home): remove mobile horizontal overflow — same grid item
	   min-width:auto trap as .service-support__item-body below: as a
	   .service-support__grid item (now grid-template-columns: 1fr above),
	   .service-support__intro refused to shrink below its content's
	   min-content width, overflowing the viewport by 21px at 320px width
	   (confirmed via Playwright: hiding this element alone brought
	   scrollWidth back down to clientWidth; live-injecting min-width: 0
	   fixed it in-browser before this rule was written). */
	.service-support__intro {
		position: static;
		max-width: none;
		min-width: 0;
	}

	.service-support__lead {
		max-width: 620px;
	}
}

@media (max-width: 640px) {
	.service-support__item {
		grid-template-columns: 40px 1fr;
		padding-block: 24px;
	}

	/* fix(home): remove mobile horizontal overflow — a grid item's default
	   min-width is auto, not 0, so .service-support__item-body (the 1fr
	   column) refused to shrink below its title/description text's
	   intrinsic width and pushed past the viewport at 320px (confirmed via
	   Playwright: hiding .service-support alone accounted for most of the
	   remaining overflow there). min-width: 0 lets the column — and the
	   text wrapping inside it — actually respect the 1fr track's available
	   width, with no visual change at any width where it already fit. */
	.service-support__item-body {
		min-width: 0;
	}

	.service-support__actions {
		width: 100%;
	}

	.service-support__actions .ark-btn {
		width: 100%;
		text-align: center;
	}
}
