/* Section ap_cards: title and a grid of cards. */

.ap-cards {
	max-width: var(--ap-container);
	margin: 0 auto;
	padding: 80px var(--ap-gutter) 0;
}

.ap-cards__head {
	border-top: 0;
}

.ap-cards__head .ap-section-head__title {
	line-height: normal;
}

.ap-cards__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: var(--ap-color-line);
	border: 1px solid var(--ap-color-line);
	border-radius: var(--ap-radius-card-md);
	overflow: hidden;
}

.ap-cards__item {
	background: var(--ap-color-paper);
	padding: 30px 26px;
	min-height: 170px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ap-cards__item:hover {
	background: var(--ap-color-white);
}

.ap-cards__title {
	font-family: var(--ap-font-heading);
	font-weight: 600;
	font-size: 23px;
	line-height: 1.1;
}

.ap-cards__text {
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--ap-color-ink-soft);
}

@media (max-width: 1024px) {
	.ap-cards__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 760px) {
	.ap-cards__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.ap-cards {
		padding-left: 20px;
		padding-right: 20px;
	}
}
