/**
 * Блок «Полезные статьи» (acf/home-articles).
 * Сетка карточек блога; сама карточка — общая, из assets/css/cards.css.
 */

.articles {
	padding: clamp(72px, 9vh, 116px) 0;
	background: var(--t-bg);
}

.articles__inner {
	width: 100%;
	padding: 0 var(--t-pad-x);
}

.articles__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 44px;
}

.articles__title {
	margin: 0;
	font-family: var(--t-font-display);
	font-weight: 800;
	font-size: clamp(30px, 3.6vw, 52px);
	line-height: 1.02;
	letter-spacing: -.025em;
}

.articles__lead {
	max-width: 60ch;
	margin: 12px 0 0;
	font-size: 18px;
	color: #4C463F;
}

.articles__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.articles__footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 30px;
}

@media (max-width: 980px) {
	.articles__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.articles__grid {
		grid-template-columns: 1fr;
	}

	.articles__footer {
		justify-content: stretch;
	}

	.articles__footer .t-btn {
		width: 100%;
	}
}
