/*
Секция клиентов, которые нам доверяют.
Файл: sections-modules/trusted-clients/trusted-clients.css
*/

/* =========================
   Секция клиентов, которые нам доверяют
   ========================= */

.section-trusted-clients,
.section-trusted-clients * {
	box-sizing: border-box;
}

.section-trusted-clients {
	position: relative;
	overflow: hidden;
	padding: 76px 0 74px;
	color: #151b2a;
	background: linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
	content-visibility: auto;
	contain-intrinsic-size: 920px;
}

.section-trusted-clients__inner {
	position: relative;
	width: min(100% - 40px, 1540px);
	margin: 0 auto;
	padding: 46px 48px 38px;
	overflow: hidden;
	border: 1px solid rgba(11, 150, 198, 0.18);
	border-radius: 30px;
	background: linear-gradient(135deg, rgba(244, 251, 255, 0.98) 0%, #ffffff 52%, rgba(255, 250, 240, 0.92) 100%);
	box-shadow: 0 24px 58px rgba(7, 31, 99, 0.08);
}

/* =========================
   Верхняя часть
   ========================= */

.section-trusted-clients__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	gap: 28px;
	margin-bottom: 34px;
}

.section-trusted-clients__content {
	min-width: 0;
}

.section-trusted-clients__eyebrow {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	color: #0b78d0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.section-trusted-clients__eyebrow span:first-child {
	flex: 0 0 42px;
	width: 42px;
	height: 3px;
	border-radius: 999px;
	background: #0b78d0;
}

.section-trusted-clients__title {
	margin: 0;
	color: #071f63;
	font-size: clamp(56px, 5.6vw, 82px);
	font-weight: 700;
	line-height: 0.88;
	letter-spacing: -0.07em;
	text-transform: uppercase;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

.section-trusted-clients__lead {
	position: relative;
	max-width: 720px;
	margin: 24px 0 0;
	padding-left: 22px;
	border-left: 4px solid rgba(11, 150, 198, 0.58);
	color: rgba(21, 27, 42, 0.90);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: -0.005em;
}

.section-trusted-clients__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	justify-self: end;
	gap: 10px;
	margin-top: 4px;
	padding: 12px 18px;
	border: 1px solid rgba(11, 150, 198, 0.26);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 10px 24px rgba(7, 31, 99, 0.06);
	color: #0b78d0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	pointer-events: auto;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.section-trusted-clients__badge span {
	text-decoration: none;
	pointer-events: none;
}

.section-trusted-clients__badge:hover,
.section-trusted-clients__badge:focus,
.section-trusted-clients__badge:focus-visible {
	color: #0b78d0;
	background: rgba(234, 247, 253, 0.96);
	border-color: rgba(11, 150, 198, 0.36);
	text-decoration: none !important;
	transform: translateY(-2px);
}

.section-trusted-clients__badge:focus-visible {
	outline: 3px solid rgba(11, 150, 198, 0.22);
	outline-offset: 4px;
}

.section-trusted-clients__badge-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.section-trusted-clients__badge-icon img {
	display: block;
	width: 24px;
	height: 24px;
	max-width: 24px;
	max-height: 24px;
	object-fit: contain;
	object-position: center center;
}

/* =========================
   Лента логотипов
   ========================= */

.section-trusted-clients__marquee-wrap {
	position: relative;
	margin: 0 -18px;
	padding: 44px 0 48px;
	overflow: hidden;
	border-radius: 26px;
	background: linear-gradient(90deg, #e7edf2 0%, #dfe8ef 50%, #e7edf2 100%);
}

.section-trusted-clients__marquee-wrap::before,
.section-trusted-clients__marquee-wrap::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	z-index: 4;
	width: 130px;
	pointer-events: none;
}

.section-trusted-clients__marquee-wrap::before {
	left: 0;
	background: linear-gradient(90deg, rgba(231, 237, 242, 0.98) 0%, rgba(231, 237, 242, 0) 100%);
}

.section-trusted-clients__marquee-wrap::after {
	right: 0;
	background: linear-gradient(270deg, rgba(231, 237, 242, 0.98) 0%, rgba(231, 237, 242, 0) 100%);
}

.section-trusted-clients__marquee-veil {
	display: none;
}

.section-trusted-clients__marquee {
	position: relative;
	z-index: 1;
	width: 100%;
	overflow: hidden;
	touch-action: pan-y;
	cursor: grab;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0%, #000 9%, #000 91%, transparent 100%);
}

.section-trusted-clients__marquee:active {
	cursor: grabbing;
}

.section-trusted-clients__track {
	display: flex;
	align-items: center;
	width: max-content;
	transform: translate3d(0, 0, 0);
	will-change: transform;
}

.section-trusted-clients__group {
	display: flex;
	align-items: center;
	gap: 32px;
	padding-right: 32px;
	flex: 0 0 auto;
}

/* =========================
   Карточки логотипов
   ========================= */

.section-trusted-clients__logo-card {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 330px;
	height: 196px;
	flex: 0 0 330px;
	padding: 34px 36px;
	overflow: hidden;
	border: 1px solid rgba(11, 150, 198, 0.12);
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 14px 32px rgba(7, 31, 99, 0.07);
	user-select: none;
	-webkit-user-select: none;
	transition:
		transform 0.2s ease,
		border-color 0.2s ease,
		background 0.2s ease;
}

.section-trusted-clients__logo-card::after {
	display: none;
}

.section-trusted-clients__logo-card img {
	position: relative;
	z-index: 1;
	display: block;
	width: auto;
	height: auto;
	max-width: 84%;
	max-height: 112px;
	object-fit: contain;
	object-position: center center;
	pointer-events: none;
	-webkit-user-drag: none;
	user-select: none;
	opacity: 1;
	transform-origin: center center;
}

.section-trusted-clients__logo-card:hover {
	background: #ffffff;
	border-color: rgba(11, 150, 198, 0.26);
	transform: translateY(-3px);
}

/* Индивидуальная визуальная подгонка логотипов */
.section-trusted-clients__logo-card--als img {
	max-width: 62%;
	max-height: 118px;
}

.section-trusted-clients__logo-card--neighbors img {
	max-width: 88%;
	max-height: 92px;
}

.section-trusted-clients__logo-card--goldholod img {
	max-width: 86%;
	max-height: 96px;
}

.section-trusted-clients__logo-card--magdomir img {
	max-width: 86%;
	max-height: 100px;
}

.section-trusted-clients__logo-card--myata img {
	max-width: 72%;
	max-height: 124px;
}

.section-trusted-clients__logo-card--wayoff img {
	max-width: 78%;
	max-height: 86px;
}

/* Тёмные карточки логотипов: RaceOne */
.section-trusted-clients__logo-card--dark {
	background: #333333;
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow: 0 14px 32px rgba(7, 31, 99, 0.10);
}

.section-trusted-clients__logo-card--dark img {
	max-width: 84%;
	max-height: 100px;
}

.section-trusted-clients__logo-card--dark:hover {
	background: #333333;
	border-color: rgba(255, 255, 255, 0.18);
}

/* Мягкие тёмные карточки логотипов: IceBerg */
.section-trusted-clients__logo-card--dark-soft {
	background: #4a4a4a;
	border-color: rgba(255, 255, 255, 0.18);
	box-shadow: 0 14px 32px rgba(7, 31, 99, 0.10);
}

.section-trusted-clients__logo-card--dark-soft img {
	max-width: 84%;
	max-height: 92px;
}

.section-trusted-clients__logo-card--dark-soft:hover {
	background: #4a4a4a;
	border-color: rgba(255, 255, 255, 0.20);
}

/* Состояния JS */
.section-trusted-clients.is-dragging .section-trusted-clients__marquee {
	cursor: grabbing;
}

.section-trusted-clients.is-dragging .section-trusted-clients__logo-card {
	transition: none;
}

.section-trusted-clients.is-dragging .section-trusted-clients__logo-card:hover {
	transform: none;
}

/* =========================
   Преимущества
   ========================= */

.section-trusted-clients__benefits {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	margin: 50px auto 0;
	padding: 18px 24px;
	border: 1px solid rgba(11, 150, 198, 0.15);
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 14px 34px rgba(7, 31, 99, 0.055);
}

.section-trusted-clients__benefit {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	align-items: center;
	gap: 18px;
	min-width: 0;
	padding: 4px 24px;
}

.section-trusted-clients__benefit + .section-trusted-clients__benefit {
	border-left: 1px solid rgba(7, 31, 99, 0.10);
}

.section-trusted-clients__benefit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	border: 1px solid rgba(11, 150, 198, 0.16);
	border-radius: 50%;
	background: rgba(230, 246, 255, 0.95);
}

.section-trusted-clients__benefit-icon img {
	display: block;
	width: 44px;
	height: 44px;
	max-width: 44px;
	max-height: 44px;
	object-fit: contain;
	object-position: center center;
}

.section-trusted-clients__benefit-content {
	min-width: 0;
}

.section-trusted-clients__benefit-title {
	color: #071f63;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.section-trusted-clients__benefit-text {
	margin-top: 6px;
	color: rgba(21, 27, 42, 0.74);
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.45;
}

/* =========================
   Примечание о доверии
   ========================= */

.section-trusted-clients__trust-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: fit-content;
	max-width: 100%;
	margin: 22px auto 0;
	color: rgba(7, 31, 99, 0.72);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.section-trusted-clients__trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	flex: 0 0 24px;
}

.section-trusted-clients__trust-icon img {
	display: block;
	width: 24px;
	height: 24px;
	max-width: 24px;
	max-height: 24px;
	object-fit: contain;
	object-position: center center;
}

/* =========================
   Уменьшение анимации
   ========================= */

@media (prefers-reduced-motion: reduce) {
	.section-trusted-clients__logo-card,
	.section-trusted-clients__badge {
		transition: none;
	}
}

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

@media (max-width: 1280px) {
	.section-trusted-clients {
		padding: 66px 0 66px;
		contain-intrinsic-size: 980px;
	}

	.section-trusted-clients__inner {
		padding: 42px 34px 34px;
		border-radius: 28px;
	}

	.section-trusted-clients__head {
		margin-bottom: 30px;
	}

	.section-trusted-clients__title {
		font-size: clamp(50px, 6vw, 68px);
	}

	.section-trusted-clients__lead {
		max-width: 640px;
		font-size: 17px;
	}

	.section-trusted-clients__marquee-wrap {
		margin-left: -10px;
		margin-right: -10px;
	}

	.section-trusted-clients__logo-card {
		width: 292px;
		height: 174px;
		flex-basis: 292px;
		padding: 30px 32px;
	}

	.section-trusted-clients__group {
		gap: 28px;
		padding-right: 28px;
	}

	.section-trusted-clients__benefits {
		padding: 18px 20px;
	}

	.section-trusted-clients__benefit {
		grid-template-columns: 66px minmax(0, 1fr);
		gap: 16px;
		padding: 6px 18px;
	}

	.section-trusted-clients__benefit-icon {
		width: 66px;
		height: 66px;
	}

	.section-trusted-clients__benefit-icon img {
		width: 42px;
		height: 42px;
		max-width: 42px;
		max-height: 42px;
	}
}

@media (max-width: 1024px) {
	.section-trusted-clients {
		padding: 58px 0 58px;
		contain-intrinsic-size: 1100px;
	}

	.section-trusted-clients__head {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.section-trusted-clients__badge {
		justify-self: start;
		margin-top: 0;
	}

	.section-trusted-clients__lead {
		max-width: 700px;
	}

	.section-trusted-clients__marquee-wrap {
		padding: 24px 0 28px;
	}

	.section-trusted-clients__marquee-wrap::before,
	.section-trusted-clients__marquee-wrap::after {
		width: 90px;
	}

	.section-trusted-clients__benefits {
		grid-template-columns: 1fr;
		padding: 20px 22px;
	}

	.section-trusted-clients__benefit {
		padding: 16px 0;
	}

	.section-trusted-clients__benefit:first-child {
		padding-top: 0;
	}

	.section-trusted-clients__benefit:last-child {
		padding-bottom: 0;
	}

	.section-trusted-clients__benefit + .section-trusted-clients__benefit {
		border-left: 0;
		border-top: 1px solid rgba(7, 31, 99, 0.10);
	}
}

@media (max-width: 768px) {
	.section-trusted-clients {
		padding: 50px 0 52px;
		contain-intrinsic-size: 1180px;
	}

	.section-trusted-clients__inner {
		width: min(100% - 28px, 1540px);
		padding: 34px 18px 28px;
		border-radius: 22px;
	}

	.section-trusted-clients__eyebrow {
		margin-bottom: 16px;
		gap: 12px;
		font-size: 12px;
	}

	.section-trusted-clients__eyebrow span:first-child {
		flex-basis: 36px;
		width: 36px;
	}

	.section-trusted-clients__title {
		font-size: clamp(42px, 13vw, 58px);
		line-height: 0.92;
		letter-spacing: -0.055em;
	}

	.section-trusted-clients__lead {
		margin-top: 16px;
		padding-left: 14px;
		font-size: 15px;
		line-height: 1.5;
	}

	.section-trusted-clients__badge {
		padding: 10px 14px;
		font-size: 13px;
	}

	.section-trusted-clients__badge-icon,
	.section-trusted-clients__badge-icon svg {
		width: 20px;
		height: 20px;
	}

	.section-trusted-clients__marquee-wrap {
		margin-left: -18px;
		margin-right: -18px;
		padding: 22px 0 26px;
		border-radius: 18px;
	}

	.section-trusted-clients__marquee-wrap::before,
	.section-trusted-clients__marquee-wrap::after {
		width: 58px;
	}

	.section-trusted-clients__marquee {
		-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
		mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
	}

	.section-trusted-clients__logo-card {
		width: 204px;
		height: 124px;
		flex-basis: 204px;
		padding: 20px;
		border-radius: 16px;
	}

	.section-trusted-clients__logo-card img {
		max-height: 68px;
	}

	.section-trusted-clients__logo-card--als img {
		max-height: 66px;
	}

	.section-trusted-clients__logo-card--neighbors img,
	.section-trusted-clients__logo-card--goldholod img,
	.section-trusted-clients__logo-card--magdomir img {
		max-height: 52px;
	}

	.section-trusted-clients__logo-card--myata img {
		max-height: 68px;
	}

	.section-trusted-clients__logo-card--wayoff img {
		max-height: 48px;
	}

	.section-trusted-clients__logo-card--dark img {
		max-height: 54px;
	}

	.section-trusted-clients__logo-card--dark-soft img {
		max-height: 50px;
	}

	.section-trusted-clients__group {
		gap: 14px;
		padding-right: 14px;
	}

	.section-trusted-clients__benefits {
		margin-top: 36px;
		padding: 18px;
		border-radius: 18px;
	}

	.section-trusted-clients__benefit {
		grid-template-columns: 66px minmax(0, 1fr);
		gap: 16px;
	}

	.section-trusted-clients__benefit-icon {
		width: 66px;
		height: 66px;
	}

	.section-trusted-clients__benefit-icon img {
		width: 42px;
		height: 42px;
		max-width: 42px;
		max-height: 42px;
	}

	.section-trusted-clients__benefit-title {
		font-size: 15px;
	}

	.section-trusted-clients__benefit-text {
		font-size: 13.5px;
		line-height: 1.45;
	}

	.section-trusted-clients__trust-note {
		margin-top: 18px;
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.section-trusted-clients {
		contain-intrinsic-size: 1240px;
	}

	.section-trusted-clients__inner {
		width: min(100% - 24px, 1540px);
		padding: 30px 14px 24px;
		border-radius: 20px;
	}

	.section-trusted-clients__title {
		font-size: 42px;
	}

	.section-trusted-clients__lead {
		font-size: 15px;
	}

	.section-trusted-clients__badge {
		width: 100%;
		justify-content: center;
		white-space: normal;
		text-align: center;
	}

	.section-trusted-clients__marquee-wrap {
		margin-left: -14px;
		margin-right: -14px;
	}

	.section-trusted-clients__logo-card {
		width: 180px;
		height: 112px;
		flex-basis: 180px;
		padding: 18px;
	}

	.section-trusted-clients__logo-card img {
		max-width: 82%;
		max-height: 62px;
	}

	.section-trusted-clients__logo-card--als img {
		max-width: 62%;
		max-height: 60px;
	}

	.section-trusted-clients__logo-card--myata img {
		max-width: 68%;
		max-height: 62px;
	}

	.section-trusted-clients__benefits {
		padding: 16px;
	}

	.section-trusted-clients__benefit {
		grid-template-columns: 60px minmax(0, 1fr);
		gap: 14px;
	}

	.section-trusted-clients__benefit-icon {
		width: 60px;
		height: 60px;
	}

	.section-trusted-clients__benefit-icon img {
		width: 36px;
		height: 36px;
		max-width: 36px;
		max-height: 36px;
	}

	.section-trusted-clients__trust-note {
		font-size: 13.5px;
	}
}
