/**
 * Текстовые карточки (.stomarus-text-cards)
 * Мобильный: 1 колонка. ≥640px: 2 или 3 колонки (data-columns).
 */

.stomarus-text-cards {
	--stomarus-text-cards-gap: clamp(16px, 2.5vw, 24px);
	--stomarus-text-cards-pad: clamp(15px, 3vw, 20px);
	--stomarus-text-cards-border: #e8e8e8;
	width: 100%;
	box-sizing: border-box;
	font-family: 'Roboto', 'Arial', sans-serif;
}

.stomarus-text-cards__heading {
	margin: 0 0 var(--stomarus-text-cards-gap);
	font-weight: 500;
	font-size: clamp(1.25rem, 2.5vw, 1.75rem);
	color: #2b2b2b;
	line-height: 1.3;
}

.stomarus-text-cards__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--stomarus-text-cards-gap);
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stomarus-text-cards__item {
	margin: 0;
	padding: var(--stomarus-text-cards-pad);
	box-sizing: border-box;
	background: #fff;
	border: 1px solid var(--stomarus-text-cards-border);
	text-align: left;
	min-width: 0;
}

.stomarus-text-cards__step {
	margin: 0 0 0.2em;
	font-family: var(--font-montserrat);
	font-weight: 600;
	font-size: 48px;
	line-height: 1.25;
	color: var(--color-accent);
}

.stomarus-text-cards__title {
	margin: 0 0 0.65em;
	font-weight: 700;
	font-size: clamp(1rem, 1.8vw, 1.125rem);
	line-height: 1.35;
	color: #2b2b2b;
}

.stomarus-text-cards__body {
	margin: 0;
	font-size: clamp(0.9375rem, 2vw, 1rem);
	font-weight: 400;
	line-height: 1.55;
	color: #605c5c;
}

.stomarus-text-cards__body p {
	margin: 0 0 0.65em;
}

.stomarus-text-cards__body p:last-child {
	margin-bottom: 0;
}

.stomarus-text-cards__body strong,
.stomarus-text-cards__body b {
	font-weight: 700;
	color: #2b2b2b;
}

.stomarus-text-cards__body a {
	color: var(--color-text, #2b2b2b);
	text-decoration: underline;
}

.stomarus-text-cards__body a:hover,
.stomarus-text-cards__body a:active {
	color: var(--color-accent, #c4a27e);
}

@media (min-width: 640px) {
	.stomarus-text-cards[data-columns="2"] .stomarus-text-cards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stomarus-text-cards[data-columns="3"] .stomarus-text-cards__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.stomarus-text-cards__step {
		font-size: 36px;
	}
}
