

/* Start:/local/templates/zerapy/components/bitrix/news.list/nam-doveryayut-list/style.css?17799509298326*/
/* «Нам доверяют» — карточки товаров: Figma 6045:28, 6045:51 (1400w light, node 6045:2) */

.nam-doveryayut {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	align-items: stretch;
	box-sizing: border-box;
}
.nam-doveryayut__header {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-bottom: 40px;
	padding-top: 150px;
}
.nam-doveryayut__title {
	color: #5a5b6c;
}

.nam-doveryayut__card {
	flex: 1 1 100%;
	max-width: 560px;
	display: flex;
	flex-direction: column;
	gap: 30px;
	padding: 40px;
	background: #e6e7ed;
	border-radius: 10px;
	box-sizing: border-box;
}

/* Десктоп ≥1200 — Figma 1920 / 6711 */
@media (min-width: 1200px) {
	.nam-doveryayut__card {
		flex: 1 1 calc(50% - 20px);
		max-width: 560px;
	}
}

/* Планшет 961–1199 — Figma 6805:8881 (960) */
@media (min-width: 961px) and (max-width: 1199px) {
	.nam-doveryayut {
		gap: 20px;
		padding: 0 20px;
	}

	.nam-doveryayut__card {
		flex: 1 1 calc(50% - 10px);
		min-width: 300px;
		max-width: none;
		padding: 40px;
	}

	.nam-doveryayut__product {
		gap: 10px;
	}

	.nam-doveryayut__products--many .nam-doveryayut__product-visual {
		width: 120px;
		height: 120px;
		justify-self: center;
	}
}

.nam-doveryayut__info {
	display: flex;
	flex-direction: column;
	gap: 15px;
	width: 100%;
}

.nam-doveryayut__title-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.nam-doveryayut__logo {
	flex-shrink: 0;
	width: 55px;
	height: 55px;
	border-radius: 5px;
	overflow: hidden;
	background: #fff;
}

.nam-doveryayut__logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nam-doveryayut__source-name {
	margin: 0;
	min-width: 0;
	flex: 1;
	font-family: "Cera Pro", sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 30px;
	color: #5a5b6c;
}

.nam-doveryayut__source-name--solo {
	margin-bottom: 0;
	flex: none;
}

.nam-doveryayut__description {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-family: "Cera Pro", sans-serif;
	font-size: 16px;
	line-height: 22px;
}

.nam-doveryayut__preview-text {
	color: #5a5b6c;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
}

.nam-doveryayut__preview-text--html {
	display: block;
	-webkit-line-clamp: unset;
	line-clamp: unset;
	max-height: 9em;
}

.nam-doveryayut__read-more {
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	font: inherit;
	color: #868bab;
	text-align: left;
	text-decoration: none;
	transition: opacity 0.2s;
}

.nam-doveryayut__read-more:hover,
.nam-doveryayut__read-more:focus-visible {
	opacity: 0.85;
	outline: none;
}

.nam-doveryayut__read-more:focus-visible {
	text-decoration: underline;
}

/* Товары: 1–2 шт. — колонки 230px, фото 228px; >2 — плитки 120px (та же типографика ссылки в моб. режиме) */

.nam-doveryayut__products {
	display: grid;
	grid-template-columns: repeat(auto-fill, 230px);
	justify-content: start;
	align-items: start;
	gap: 20px;
	width: 100%;
}

.nam-doveryayut__products--many {
	grid-template-columns: repeat(auto-fill, 120px);
}

.nam-doveryayut__product {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}

.nam-doveryayut__product-visual {
	position: relative;
	width: 100%;
	height: 228px;
	border-radius: 10px;
	overflow: hidden;
	background: #f5f5f5;
}

.nam-doveryayut__product-visual img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.nam-doveryayut__product-link {
	display: block;
	width: 100%;
	height: 100%;
}

.nam-doveryayut__product-name {
	box-sizing: border-box;
	align-self: flex-start;
	max-width: 100%;
	margin: 0;
	padding: 0 0 1px;
	border: none;
	border-bottom: 1px solid #656575;
	font-family: "Cera Pro", sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 22px;
	color: #656575;
	text-transform: uppercase;
	text-decoration: none;
	transition: opacity 0.2s;
	overflow-wrap: break-word;
}

a.nam-doveryayut__product-name:hover,
a.nam-doveryayut__product-name:focus-visible {
	opacity: 0.85;
}

/* >2 товаров: плитки 120×120; названия мелких — пока карточки раздела в 1 колонку (≤960px) */

.nam-doveryayut__product-name--many-tile {
	display: none;
}

.nam-doveryayut__products--many .nam-doveryayut__product-visual {
	width: 120px;
	height: 120px;
	background: #f5f5f5;
}

.nam-doveryayut__products--many .nam-doveryayut__product-visual img {
	object-fit: cover;
}

.nam-doveryayut__products--many .nam-doveryayut__product-link {
	border-radius: 10px;
	transition: opacity 0.2s;
}

.nam-doveryayut__products--many .nam-doveryayut__product-link:hover,
.nam-doveryayut__products--many .nam-doveryayut__product-link:focus-visible {
	opacity: 0.92;
	outline: none;
}

.nam-doveryayut__products--many .nam-doveryayut__product-link:focus-visible {
	box-shadow: 0 0 0 2px #e6e7ed, 0 0 0 4px #868bab;
}

/* ≤960 — Figma 6815:11102 (600) */
@media (max-width: 960px) {
	.nam-doveryayut {
		gap: 20px;
	}

	.nam-doveryayut__card {
		flex: 1 1 100%;
		max-width: 100%;
		padding: 30px;
	}

	.nam-doveryayut__header {
		padding-top: 70px;
		margin-bottom: 20px;
	}

	.nam-doveryayut__header .nam-doveryayut__title.title--1 {
		font-size: 58px;
		line-height: 58px;
	}

	.nam-doveryayut__products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nam-doveryayut__products .nam-doveryayut__product:only-child {
		grid-column: 1 / -1;
	}

	.nam-doveryayut__product {
		gap: 10px;
	}

	.nam-doveryayut__product-visual {
		height: auto;
		aspect-ratio: 230 / 228;
		min-height: 0;
	}

	/* «Много товаров» — 2 колонки, квадратные плитки */
	.nam-doveryayut__products--many {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.nam-doveryayut__products--many .nam-doveryayut__product {
		align-items: center;
		gap: 6px;
	}

	.nam-doveryayut__products--many .nam-doveryayut__product-visual {
		width: 100%;
		height: auto;
		aspect-ratio: 1;
	}

	.nam-doveryayut__product-name--many-tile {
		width: 100%;
		box-sizing: border-box;
		padding-bottom: 1px;
		border-bottom-width: 1px;
		text-align: center;
		font-size: 12px;
		line-height: 16px;
		font-weight: 400;
		color: #656575;
		text-transform: uppercase;
		overflow: hidden;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	.nam-doveryayut-modal {
		width: min(640px, calc(100vw - 32px));
		padding: 24px 20px 20px;
	}

	.nam-doveryayut-modal__title {
		font-size: 20px;
		line-height: 28px;
	}
}

/* ≤425 — Figma 6824:12504 */
@media (max-width: 424px) {
	.nam-doveryayut__product {
		min-width: 140px;
	}
}

.nam-doveryayut__pager {
	width: 100%;
	flex-basis: 100%;
}

.nam-doveryayut-modal-source {
	display: none;
}

/* Modal */

.nam-doveryayut-modal {
	position: fixed;
	z-index: 10050;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	margin: 0;
	box-sizing: border-box;
	width: min(640px, calc(100vw - 48px));
	max-height: min(80vh, 720px);
	padding: 32px 28px 28px;
	border: none;
	border-radius: 12px;
	background: #fff;
	color: #5a5b6c;
	box-shadow: 0 16px 48px rgba(34, 36, 56, 0.18);
}

.nam-doveryayut-modal::backdrop {
	background: rgba(34, 36, 56, 0.45);
}

.nam-doveryayut-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	color: #868bab;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.2s, color 0.2s;
}

.nam-doveryayut-modal__close:hover,
.nam-doveryayut-modal__close:focus-visible {
	background: #e6e7ed;
	color: #5a5b6c;
	outline: none;
}

.nam-doveryayut-modal__title {
	margin: 0 40px 16px 0;
	font-family: "Cera Pro", sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 30px;
	color: #5a5b6c;
}

.nam-doveryayut-modal__body {
	font-family: "Cera Pro", sans-serif;
	font-size: 16px;
	line-height: 22px;
	overflow: auto;
	max-height: min(56vh, 560px);
}

.nam-doveryayut-modal__body p {
	margin: 0 0 0.75em;
}

.nam-doveryayut-modal__body p:last-child {
	margin-bottom: 0;
}

html.nam-doveryayut-modal-open {
	overflow: hidden;
}

/* End */
/* /local/templates/zerapy/components/bitrix/news.list/nam-doveryayut-list/style.css?17799509298326 */
