/**
 * ACF block: Принципи — numbered grid. Big pale-pink numerals sit behind the
 * text, which is nudged right so the digit peeks out on the left.
 */

.principles__title {
	margin-bottom: 30px;
	overflow-wrap: break-word;
}

.principles__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.principles__item {
	position: relative;
	/* Allow the grid track to shrink below the content's intrinsic width so a
	   long unbreakable word can't stretch the column. */
	min-width: 0;
}

.principles__num {
	position: absolute;
	top: 0;
	left: 0;
	font-family: var(--font-family-display);
	font-size: 77px;
	font-weight: var(--font-weight-bold);
	line-height: 1;
	color: var(--color-pink-light);
}

.principles__text {
	position: relative;
	z-index: 1;
	padding-top: 25px;
	padding-left: 25px;
	line-height: 1.4;
	overflow-wrap: break-word;
}

/* Override the shared entry-content paragraph rhythm inside items. */
.principles .principles__text p {
	margin: 0;
}

.principles .principles__text p + p {
	margin-top: 8px;
}

@media (min-width: 768px) {
	.principles__title {
		margin-bottom: 35px;
	}

	.principles__grid {
		grid-template-columns: 1.1fr 1.1fr 0.8fr;
		column-gap: 50px;
		row-gap: 20px;
	}
}
