/**
 * Сетка карточек «иконка + текст» (.stomarus-icon-cards)
 * <640px: 1 колонка сетки; внутри карточки — иконка слева, текст справа (ряд).
 * ≥640px: 2–3 колонки сетки; внутри карточки — иконка сверху, текст снизу.
 */

.stomarus-icon-cards {
	--stomarus-icon-cards-border: rgba(186, 167, 140, 0.45);
	--stomarus-icon-cards-pad: clamp(15px, 3vw, 20px);
	--stomarus-icon-cards-gap: clamp(15px, 3vw, 22px);
	width: 100%;
	box-sizing: border-box;
}

.stomarus-icon-cards__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--stomarus-icon-cards-gap);
	width: 100%;
	box-sizing: border-box;
}

.stomarus-icon-cards__item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: clamp(14px, 4vw, 20px);
	margin: 0;
	padding: var(--stomarus-icon-cards-pad);
	border: 1px solid var(--stomarus-icon-cards-border);
	box-sizing: border-box;
	background: #fff;
}

@media (min-width: 640px) {
	.stomarus-icon-cards__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.stomarus-icon-cards__item {
		flex-direction: column;
		align-items: flex-start;
		gap: clamp(14px, 2vw, 20px);
	}

	.stomarus-icon-cards__text {
		flex: none;
		width: 100%;
	}
}

@media (min-width: 1024px) {
	.stomarus-icon-cards__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.stomarus-icon-cards__icon-wrap {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--stomarus-icon-cards-border);
	box-sizing: border-box;
}

.stomarus-icon-cards__icon-wrap img,
.stomarus-icon-cards__icon-wrap svg {
	display: block;
	max-width: 32px;
	max-height: 32px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.stomarus-icon-cards__icon {
	display: block;
	max-width: 32px;
	max-height: 32px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.stomarus-icon-cards__text {
	margin: 0;
	flex: 1 1 0%;
	min-width: 0;
	width: auto;
	font-family: 'Roboto', 'Arial', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.5;
	color: #605c5c;
}

.stomarus-icon-cards__text p {
	margin: 0;
}

.stomarus-icon-cards__text p + p {
	margin-top: 0.65em;
}
