/**
 * Секция «Почему мне доверяют».
 * Шаблон: template-parts/sections/trust.php
 */

.trust {
	--tr-navy: #133b50;
	--tr-navy-soft: #5a6e7b;
	--tr-accent: #a51e24;

	padding: 46px 0 52px;
	background-color: #fff;
}

.trust .trust__title {
	position: relative;
	margin: 0 0 44px;
	padding: 0 0 18px;
	font-size: 32px;
	line-height: 1.2;
	font-weight: bold;
	text-align: center;
	text-transform: none;
	color: var(--tr-navy);
}

/* Короткая красная черта под заголовком */
.trust .trust__title:after {
	content: '';
	display: block;
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 44px;
	height: 3px;
	margin-left: -22px;
	border-radius: 2px;
	background-color: var(--tr-accent);
}

.trust__items {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 22px;
	align-items: start;
}

/* Меньше четырёх пунктов — раскладываем по факту, не растягивая на всю ширину */
.trust__items--1 { grid-template-columns: minmax(0, 1fr); }
.trust__items--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trust__items--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.trust__item {
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: flex-start;
	align-items: flex-start;
	min-width: 0;
}

.trust__icon {
	-webkit-flex: 0 0 auto;
	flex: 0 0 auto;
	width: 50px;
	margin-right: 14px;
}

.trust__icon img {
	display: block;
	width: 50px;
	height: 50px;
}

.trust__body {
	min-width: 0;
	padding-top: 2px;
}

.trust__value {
	display: block;
	font-size: 17px;
	line-height: 1.3;
	font-weight: bold;
	color: var(--tr-navy);
}

.trust__label {
	display: block;
	margin-top: 5px;
	font-size: 15px;
	line-height: 1.35;
	color: var(--tr-navy-soft);
}

/* --- Адаптив --- */

@media (max-width: 1199px) {
	.trust__items {
		gap: 22px;
	}

	.trust__value {
		font-size: 17px;
	}

	.trust__label {
		font-size: 14px;
	}
}

@media (max-width: 991px) {
	.trust {
		padding: 36px 0 40px;
	}

	.trust .trust__title {
		margin-bottom: 34px;
		font-size: 26px;
	}

	.trust__items,
	.trust__items--3,
	.trust__items--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 26px 22px;
	}
}

@media (max-width: 575px) {
	.trust {
		padding: 28px 0 32px;
	}

	.trust .trust__title {
		margin-bottom: 26px;
		font-size: 22px;
	}

	.trust__items,
	.trust__items--2,
	.trust__items--3,
	.trust__items--4 {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.trust__icon {
		width: 44px;
		margin-right: 14px;
	}

	.trust__icon img {
		width: 44px;
		height: 44px;
	}
}
