/*
 * Services / «Наши направления» — DESIGN.md §7 §14.
 * One technical panel (shared borders, no card gaps) rather than 6 separate
 * floating tiles — reads as a single engineering module, same language as
 * the Trust Bar strip above it.
 */

.services {
	position: relative;
	/* Soft graphite step down from Trust Bar's --ark-bg-850 rather than a
	   hard color cut (item 9 of the Services brief). */
	background: linear-gradient(180deg, var(--ark-bg-850) 0px, var(--ark-bg-800) 160px, var(--ark-bg-800) 100%);
	padding-block: var(--ark-space-section-lg);
}

.services__header {
	margin-bottom: 48px;
}

.services__overline {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--ark-text-secondary);
	margin: 0 0 16px;
}

.services__header-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin-bottom: 18px;
}

.services__title {
	font-size: var(--ark-fs-h2);
	font-weight: 600;
	line-height: 1.15;
	color: var(--ark-text-primary);
	margin: 0;
}

.services__all-link {
	display: inline-flex;
	align-items: center;
	font-size: 0.92rem;
	color: var(--ark-text-secondary);
	white-space: nowrap;
	padding-bottom: 6px;
	border-bottom: 1px solid transparent;
	transition:
		color 150ms var(--ark-ease),
		border-color 150ms var(--ark-ease);
}

.services__all-link:hover,
.services__all-link:focus-visible {
	color: var(--ark-text-primary);
	border-color: var(--ark-border-titanium);
}

.services__lead {
	max-width: 640px;
	font-size: 1.05rem;
	color: var(--ark-text-secondary);
	margin: 0;
}

/*
 * Grid — card visuals (photography, overlay, accent, geometry) live in
 * assets/css/service-cards.css, shared with the /services/ archive via
 * template-parts/shared/service-card.php. Only column/gap layout here.
 */
.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* Tablet: 2 columns. */
@media (min-width: 601px) and (max-width: 900px) {
	.services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Mobile: 1 column. */
@media (max-width: 600px) {
	.services__grid {
		grid-template-columns: 1fr;
	}
}
