/**
 * Alygio reklama — white service card grid (`ar-service-cards`).
 *
 * Reference: the7.io/fse-company/services-2/ (measured Task 05,
 * docs/SERVICES-OVERVIEW-SPECIFICATION.md §4):
 * - grid: 2 columns (649.5px at 1300), gap 0; hairlines neutral-200: the
 *   grid draws the left line (+1px top padding), each card draws top, right
 *   and bottom and overlaps the previous row by 1px;
 * - card: white, flex row, space-between, centred, gap and padding bbe-90,
 *   min-height 240px (649.5 × 303.3px at 1920 with a 2-line description);
 * - text: light tag 16/20.8 → 20px → title-3 36/45 −0.01em neutral-900 →
 *   16px → body 17/28.9 → 20px → button 14px, padding 10px 16px (35.4px);
 * - icon: 80 × 80px line icon, primary-500, right column;
 * - ≤1100px: 1 column (card stays a row); ≤600px: column-reverse, icon box
 *   80px tall above the text, stretched (the SVG stays 80px, left).
 * Radius 0, no shadows.
 */

.ar-service-cards__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0;
	padding: var(--ar-border-width) 0 0;
	border-left: var(--ar-border-width) solid var(--ar-color-border);
	list-style: none;
}

.ar-service-cards__item {
	display: flex;
	margin: calc(-1 * var(--ar-border-width)) 0 0;
	padding: 0;
}

.ar-service-card {
	display: flex;
	box-sizing: border-box;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	gap: var(--ar-space-90);
	min-width: 0;
	min-height: 240px;
	padding: var(--ar-space-90);
	border: var(--ar-border-width) solid var(--ar-color-border);
	border-left: 0;
	border-radius: var(--ar-radius);
	background-color: var(--ar-neutral-000);
	color: var(--ar-color-text);
}

.ar-service-card__body {
	flex: 1 1 auto;
	min-width: 0;
}

.ar-service-card__body .ar-tag {
	display: block;
	box-sizing: border-box;
	width: fit-content;
	max-width: 100%;
}

.ar-service-card .ar-service-card__title {
	margin: 20px 0 0;
	color: var(--ar-color-heading);
	letter-spacing: var(--ar-letter-spacing-tight);
	overflow-wrap: break-word;
}

.ar-service-card__body > .ar-service-card__title:first-child {
	margin-top: 0;
}

/* Hello styles `a` and underlines `.page-content a`: three classes win. */
.ar-service-card .ar-service-card__title-link.ar-service-card__title-link,
.ar-service-card .ar-service-card__title-link.ar-service-card__title-link:hover,
.ar-service-card .ar-service-card__title-link.ar-service-card__title-link:visited {
	color: inherit;
	text-decoration: none;
}

.ar-service-card .ar-service-card__text {
	margin: 16px 0 0;
}

.ar-service-card .ar-service-card__action {
	display: flex;
	margin: 20px 0 0;
}

.ar-service-card__icon {
	flex: 0 0 auto;
	width: 80px;
	height: 80px;
	color: var(--ar-color-accent);
}

.ar-service-card__icon a {
	display: block;
	color: inherit;
}

.ar-service-card .ar-service-card__svg {
	display: block;
	width: 80px;
	height: 80px;
}

@media (max-width: 1100px) {

	.ar-service-cards__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 600px) {

	.ar-service-card {
		flex-direction: column-reverse;
		align-items: stretch;
		justify-content: flex-end;
	}

	.ar-service-card__icon {
		width: auto;
	}
}
