/* Services */

.services__title {
	max-width: 631px;
	margin: 0 auto 40px;
	text-align: center;
}

.services__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
}

.service-card {
	display: flex;
	flex-direction: column;
	padding: 21px 24px 24px;
	border-radius: var(--radius-lg);
	background: var(--color-white);
}

.service-card__top {
	display: flex;
	align-items: center;
	gap: 18px;
	padding-bottom: 21px;
	padding-left: 17px;
	border-bottom: 1px solid #eaedf3;
}

/*
 * Figma frames every service icon in a 26px box with the artwork inset, so the
 * art keeps its own proportions. The exports all carry preserveAspectRatio="none",
 * which without this would stretch each one to a square — barely visible on the
 * near-square icons, but Bělení zubů (16.9x24) came out 54% too wide and its
 * strokes with it. object-fit gives the SVG a correctly-proportioned box to
 * fill, so "none" has nothing left to distort.
 */
.service-card__icon {
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	object-fit: contain;
}

.service-card__divider {
	width: 1px;
	height: 46px;
	flex: 0 0 1px;
	background: #eaedf3;
}

.service-card__title {
	color: var(--color-primary);
	font-size: var(--h6-size);
	font-weight: var(--h6-weight);
	line-height: var(--h6-lh);
	letter-spacing: var(--h6-ls);
}

.service-card__text {
	margin-top: 25px;
	color: var(--color-primary);
	font-size: var(--body-main-size);
	line-height: var(--body-main-lh);
}

.service-card__action {
	margin-top: 25px;
	align-self: flex-end;
}

@media (min-width: 768px) {
	.services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.services__title { margin-bottom: 60px; }
	.services__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Whole card is clickable — the arrow anchor is stretched over it. */
.service-card {
	position: relative;
	transition: transform .25s ease, box-shadow .25s ease;
}

.service-card__action::after {
	content: "";
	position: absolute;
	inset: 0;
	/* Card radius, not the button's pill — see the note in team-grid.css. */
	border-radius: var(--radius-lg);
}

.service-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(16, 33, 71, .08);
}

.service-card:hover .icon-btn { background: var(--color-neutral-4); }

@media (prefers-reduced-motion: reduce) {
	.service-card { transition: none; }
	.service-card:hover { transform: none; }
}
