/* ==========================================================================
   Главная страница: [esync_hero], [esync_benefits], [esync_home_cats],
   [esync_home_products]. Палитра магазина, без фотографий — подложка
   и реальные товары из каталога.
   ========================================================================== */

.esync-hero,
.esync-benefits,
.esync-cats,
.esync-hp {
	--h-ink: #1A2733;
	--h-muted: #5A6B7A;
	--h-line: #DFE5EA;
	--h-panel: #F4F7F9;
	--h-blue: #0077A8;
	--h-blue-d: #005E85;
	--h-red: #D32718;
	--h-green: #3F7016;
	color: var(--h-ink);
}

.esync-hero svg,
.esync-benefits svg,
.esync-home__all svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* --- Общие заголовки секций --- */
.esync-home__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 0 22px;
}

body .esync-home__title {
	margin: 0 !important;
	font-size: 28px !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	color: #1A2733 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.esync-home__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #0077A8 !important;
	font-size: 15px;
	font-weight: 600;
	white-space: nowrap;
}

.esync-home__all svg {
	width: 16px;
	height: 16px;
	stroke-width: 2;
	transition: transform .15s ease;
}

.esync-home__all:hover {
	color: #005E85 !important;
}

.esync-home__all:hover svg {
	transform: translateX(3px);
}

/* ==========================================================================
   Первый экран
   ========================================================================== */

.esync-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: center;
	gap: 40px;
	padding: 56px 56px;
	border-radius: 20px;
	background:
		radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) 42%),
		linear-gradient(135deg, #E8F2F8 0%, #F4F7F9 55%, #FDF1EE 100%);
}

.esync-hero.is-cool {
	background:
		radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .9) 0, rgba(255, 255, 255, 0) 42%),
		linear-gradient(135deg, #E3F1F9 0%, #F1F7FA 55%, #E9F6F1 100%);
}

/* Крупный мягкий круг за товаром — даёт глубину без фото. */
.esync-hero::before {
	content: "";
	position: absolute;
	right: -80px;
	top: 50%;
	z-index: -1;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	transform: translateY(-50%);
	background: radial-gradient(circle, rgba(0, 119, 168, .14) 0%, rgba(0, 119, 168, 0) 68%);
}

.esync-hero.is-heat::before {
	background: radial-gradient(circle, rgba(211, 39, 24, .12) 0%, rgba(211, 39, 24, 0) 68%);
}

.esync-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 16px;
	background: #fff;
	color: #0077A8;
	font-size: 14px;
	font-weight: 600;
	box-shadow: 0 1px 2px rgba(26, 39, 51, .06);
}

.esync-hero__eyebrow::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
}

.esync-hero.is-heat .esync-hero__eyebrow {
	color: #D32718;
}

body .esync-hero__title {
	margin: 18px 0 14px !important;
	font-size: 44px !important;
	line-height: 1.12 !important;
	font-weight: 800 !important;
	color: #1A2733 !important;
	text-transform: none !important;
	letter-spacing: -.01em !important;
}

.esync-hero__text {
	max-width: 560px;
	margin: 0 !important;
	font-size: 18px;
	line-height: 1.55;
	color: #5A6B7A;
}

.esync-hero__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.esync-hero__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 0 26px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 600;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.esync-hero__btn svg {
	width: 18px;
	height: 18px;
	stroke-width: 2;
}

.esync-hero__btn--main {
	background: #0077A8;
	color: #fff !important;
}

.esync-hero__btn--main:hover {
	background: #005E85;
}

.esync-hero__btn--ghost {
	border: 1px solid #C9D3DB;
	background: #fff;
	color: #1A2733 !important;
}

.esync-hero__btn--ghost:hover {
	border-color: #0077A8;
	color: #0077A8 !important;
}

.esync-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 26px;
}

.esync-hero__chips a {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	padding: 0 14px;
	border-radius: 17px;
	background: rgba(255, 255, 255, .75);
	color: #1A2733 !important;
	font-size: 14px;
	font-weight: 500;
	transition: background-color .15s ease, color .15s ease;
}

.esync-hero__chips a:hover {
	background: #fff;
	color: #0077A8 !important;
}

/* «Хит сезона» — карточка товара справа */
.esync-hero__aside {
	display: flex;
	justify-content: center;
}

.esync-hero__pick {
	position: relative;
	display: block;
	width: 100%;
	max-width: 440px;
	color: inherit !important;
}

.esync-hero__pick-img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 36px;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(26, 39, 51, .12);
}

body .esync-hero__img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	transition: transform .35s ease;
}

.esync-hero__pick:hover .esync-hero__img {
	transform: scale(1.04);
}

.esync-hero__pick-card {
	position: absolute;
	left: -28px;
	bottom: 28px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 280px;
	padding: 14px 18px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(26, 39, 51, .14);
}

.esync-hero__pick-label {
	font-size: 12px;
	font-weight: 600;
	color: #3F7016;
}

.esync-hero__pick-name {
	font-size: 14px;
	line-height: 1.35;
	font-weight: 600;
	color: #1A2733;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.esync-hero__pick-price,
.esync-hero__pick-price .amount {
	font-size: 18px !important;
	font-weight: 800 !important;
	color: #1A2733 !important;
}

.esync-hero__pick-price del,
.esync-hero__pick-price del .amount {
	font-size: 13px !important;
	font-weight: 400 !important;
	color: #5A6B7A !important;
}

.esync-hero__pick-price ins,
.esync-hero__pick-price ins .amount {
	color: #D32718 !important;
	text-decoration: none;
}

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

.esync-benefits {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.esync-benefits__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	border: 1px solid #DFE5EA;
	border-radius: 14px;
	background: #fff;
}

.esync-benefits__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: #E8F1F7;
	color: #0077A8;
}

.esync-benefits__icon svg {
	width: 26px;
	height: 26px;
}

.esync-benefits__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.esync-benefits__text strong {
	font-size: 16px;
	line-height: 1.3;
	font-weight: 700;
	color: #1A2733;
}

.esync-benefits__text span {
	font-size: 14px;
	line-height: 1.4;
	color: #5A6B7A;
}

/* ==========================================================================
   Разделы каталога
   ========================================================================== */

.esync-cats__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.esync-cats__tile {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 18px;
	border: 1px solid #DFE5EA;
	border-radius: 14px;
	background: #fff;
	transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.esync-cats__tile:hover {
	border-color: #C9D3DB;
	box-shadow: 0 10px 28px rgba(26, 39, 51, .08);
	transform: translateY(-2px);
}

/* Сезонный раздел — первым и крупнее, на две колонки. */
.esync-cats__tile.is-season {
	grid-column: span 2;
	background: linear-gradient(135deg, #fff 40%, #F4F7F9 100%);
}

.esync-cats__media {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
}

.esync-cats__tile.is-season .esync-cats__media {
	width: 132px;
	height: 132px;
}

body .esync-cats__img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
}

.esync-cats__body {
	min-width: 0;
}

body .esync-cats__name {
	margin: 0 0 6px !important;
	font-size: 18px !important;
	line-height: 1.3 !important;
	font-weight: 700 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.esync-cats__tile.is-season .esync-cats__name {
	font-size: 22px !important;
}

body .esync-cats__name a {
	color: #1A2733 !important;
}

body .esync-cats__name a:hover {
	color: #0077A8 !important;
}

.esync-cats__subs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 12px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.esync-cats__subs li {
	margin: 0 !important;
}

.esync-cats__subs a {
	font-size: 14px;
	line-height: 1.5;
	color: #5A6B7A !important;
}

.esync-cats__subs a:hover {
	color: #0077A8 !important;
}

/* ==========================================================================
   Популярное с вкладками
   ========================================================================== */

.esync-hp__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body .esync-hp__tab {
	min-height: 38px;
	padding: 0 18px !important;
	border: 1px solid #DFE5EA !important;
	border-radius: 19px !important;
	background: #fff !important;
	color: #1A2733 !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
}

body .esync-hp__tab:hover {
	border-color: #0077A8 !important;
	color: #0077A8 !important;
}

body .esync-hp__tab.is-active {
	border-color: #0077A8 !important;
	background: #0077A8 !important;
	color: #fff !important;
}

.esync-hp__pane[hidden] {
	display: none !important;
}

.esync-hp__more {
	margin-top: 18px;
}

@media (min-width: 1025px) {
	.esync-hp .wd-grid-g,
	.esync-hp .products {
		--wd-col-lg: var(--esync-hp-cols, 5) !important;
		--wd-col: var(--esync-hp-cols, 5) !important;
	}
}

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

@media (max-width: 1199px) {
	.esync-hero {
		padding: 44px 40px;
	}

	body .esync-hero__title {
		font-size: 36px !important;
	}

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

	.esync-cats__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 1024px) {
	/* Планшет и телефон: колонкой, «Хит сезона» — карточкой-строкой
	   между текстом и кнопками (на компьютере он справа крупно).
	   Обёртку текста «растворяем», чтобы расставить всё одним списком. */
	.esync-hero {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.esync-hero__body {
		display: contents;
	}

	.esync-hero__eyebrow { order: 1; align-self: flex-start; }
	body .esync-hero__title { order: 2; }
	.esync-hero__text { order: 3; }
	.esync-hero__aside { order: 4; margin-top: 22px; }
	.esync-hero__btns { order: 5; margin-top: 18px; }
	.esync-hero__chips { order: 6; }

	.esync-hero::before {
		right: -140px;
		top: 58%;
		width: 360px;
		height: 360px;
	}

	.esync-hero__aside {
		display: block;
	}

	.esync-hero__pick {
		box-sizing: border-box;
		width: 100%;
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		align-items: center;
		gap: 16px;
		max-width: none;
		padding: 12px 16px 12px 12px;
		border-radius: 16px;
		background: #fff;
		box-shadow: 0 12px 32px rgba(26, 39, 51, .10);
	}

	.esync-hero__pick-img {
		padding: 8px;
		border-radius: 12px;
		box-shadow: none;
		background: #fff;
	}

	.esync-hero__pick-card {
		position: static;
		max-width: none;
		padding: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
	}

	/* Подразделы — одной строкой, листаются пальцем до края экрана. */
	.esync-hero__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-left: -20px;
		margin-right: -20px;
		padding: 2px 20px 4px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x proximity;
		scroll-padding-left: 20px;
		/* Правый край растворяется — видно, что строка листается,
		   а не обрезана по ошибке. */
		-webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent 100%);
		mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 56px), transparent 100%);
	}

	.esync-hero__chips a {
		scroll-snap-align: start;
	}

	/* Последняя «таблетка» не прилипает к краю при прокрутке до конца. */
	.esync-hero__chips::after {
		content: "";
		flex: none;
		width: 36px;
	}

	.esync-hero__chips::-webkit-scrollbar {
		display: none;
	}

	.esync-hero__chips a {
		flex: none;
		white-space: nowrap;
		background: #fff;
	}

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

@media (max-width: 767px) {
	.esync-hero {
		padding: 28px 20px;
		border-radius: 16px;
	}

	body .esync-hero__title {
		font-size: 28px !important;
	}

	.esync-hero__text {
		font-size: 16px;
	}

	.esync-hero__btn {
		width: 100%;
		font-size: 15px;
	}

	body .esync-hero__title {
		margin: 14px 0 10px !important;
	}

	.esync-hero__text {
		line-height: 1.5;
	}

	.esync-hero__pick {
		grid-template-columns: 92px minmax(0, 1fr);
		gap: 14px;
	}

	.esync-hero__pick-price,
	.esync-hero__pick-price .amount {
		font-size: 17px !important;
	}

	.esync-hero__btns {
		gap: 10px;
	}

	.esync-hero__btn {
		min-height: 50px;
	}

	body .esync-home__title {
		font-size: 22px !important;
	}

	.esync-benefits {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.esync-benefits__item {
		padding: 14px 16px;
	}

	.esync-cats__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.esync-cats__tile.is-season {
		grid-column: auto;
	}

	.esync-cats__media,
	.esync-cats__tile.is-season .esync-cats__media {
		width: 72px;
		height: 72px;
	}

	.esync-cats__tile.is-season .esync-cats__name {
		font-size: 18px !important;
	}
}

/* ==========================================================================
   Услуги
   ========================================================================== */

.esync-svc__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.esync-svc__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 24px;
	border: 1px solid #DFE5EA;
	border-radius: 14px;
	background: #fff;
	color: #1A2733 !important;
	transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

.esync-svc__card:hover {
	border-color: #C9D3DB;
	box-shadow: 0 10px 28px rgba(26, 39, 51, .08);
	transform: translateY(-2px);
}

.esync-svc__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 4px;
	border-radius: 14px;
	background: #E8F1F7;
	color: #0077A8;
}

.esync-svc__icon svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.esync-svc__name {
	font-size: 18px;
	line-height: 1.3;
	font-weight: 700;
}

.esync-svc__text {
	font-size: 15px;
	line-height: 1.5;
	color: #5A6B7A;
}

.esync-svc__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 6px;
	color: #0077A8;
	font-size: 15px;
	font-weight: 600;
}

.esync-svc__more svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform .15s ease;
}

.esync-svc__card:hover .esync-svc__more svg {
	transform: translateX(3px);
}

/* ==========================================================================
   Бренды
   ========================================================================== */

.esync-brands__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
}

/* Карточка как на странице «Бренды»: логотип, название, число товаров. */
.esync-brands__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 18px 16px 16px;
	border: 1px solid #DFE5EA;
	border-radius: 12px;
	background: #fff;
	color: #1A2733 !important;
	text-align: center;
	text-decoration: none !important;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.esync-brands__item:hover {
	border-color: #0077A8;
	box-shadow: 0 0 1.2rem rgba(0, 0, 0, .09);
	transform: translateY(-3px);
}

.esync-brands__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 72px;
	margin-bottom: 8px;
}

body .esync-brands__img {
	max-width: 80% !important;
	max-height: 56px !important;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .75;
	transition: filter .2s ease, opacity .2s ease;
}

.esync-brands__item:hover .esync-brands__img {
	filter: none;
	opacity: 1;
}

.esync-brands__name {
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.esync-brands__item:hover .esync-brands__name {
	color: #0077A8;
}

.esync-brands__count {
	color: #5A6B7A;
	font-size: 13px;
}

/* ==========================================================================
   Контакты
   ========================================================================== */

.esync-contacts {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	overflow: hidden;
	border: 1px solid #DFE5EA;
	border-radius: 20px;
	background: #fff;
}

.esync-contacts__card {
	display: flex;
	flex-direction: column;
	gap: 22px;
	padding: 40px;
}

.esync-contacts__list {
	display: flex;
	flex-direction: column;
	gap: 18px;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.esync-contacts__list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0 !important;
}

.esync-contacts__icon {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: #E8F1F7;
	color: #0077A8;
}

.esync-contacts__icon svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.esync-contacts__label {
	display: block;
	font-size: 13px;
	color: #5A6B7A;
}

.esync-contacts__value {
	display: block;
	font-size: 16px;
	line-height: 1.45;
	font-weight: 600;
	color: #1A2733;
}

.esync-contacts__value a {
	color: #1A2733 !important;
}

.esync-contacts__value a:hover {
	color: #0077A8 !important;
}

.esync-contacts__muted {
	font-size: 14px;
	font-weight: 400;
	color: #5A6B7A;
}

.esync-contacts__btns {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: auto;
}

.esync-contacts__btns .esync-hero__btn {
	min-height: 46px;
	padding: 0 20px;
	font-size: 15px;
}

.esync-contacts__btns svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.esync-contacts__map {
	min-height: 420px;
	background: #F4F7F9;
}

.esync-contacts__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 420px;
	border: 0;
}

/* ==========================================================================
   Текст о магазине (HTML-блок с H1)
   ========================================================================== */

.esync-about {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 48px;
	align-items: start;
	color: #1A2733;
}

body .esync-about h1 {
	margin: 0 0 16px !important;
	font-size: 28px !important;
	line-height: 1.25 !important;
	font-weight: 700 !important;
	color: #1A2733 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}

.esync-about p {
	margin: 0 0 12px !important;
	font-size: 16px;
	line-height: 1.65;
	color: #3D4D5C;
}

.esync-about__facts {
	display: grid;
	gap: 12px;
	margin: 0 !important;
	padding: 24px !important;
	list-style: none !important;
	border-radius: 14px;
	background: #F4F7F9;
}

.esync-about__facts li {
	position: relative;
	margin: 0 !important;
	padding-left: 28px;
	font-size: 15px;
	line-height: 1.5;
}

.esync-about__facts li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #0077A8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* --- Адаптив новых блоков --- */
@media (max-width: 1199px) {
	.esync-svc__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* Один ряд и на узких экранах — листается вбок. */
	.esync-brands__grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 180px;
		overflow-x: auto;
		padding: 4px 2px 8px;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: thin;
	}

	.esync-brands__item {
		scroll-snap-align: start;
	}
}

@media (max-width: 1024px) {
	.esync-contacts {
		grid-template-columns: minmax(0, 1fr);
	}

	.esync-contacts__map,
	.esync-contacts__map iframe {
		min-height: 320px;
	}

	.esync-about {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.esync-svc__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 10px;
	}

	.esync-svc__card {
		padding: 18px;
	}

	.esync-brands__grid {
		grid-auto-columns: 150px;
		gap: 10px;
	}

	.esync-brands__item {
		padding: 14px 12px 12px;
	}

	.esync-brands__logo {
		height: 56px;
	}

	.esync-contacts__card {
		padding: 24px 20px;
	}

	.esync-contacts__btns .esync-hero__btn {
		width: 100%;
	}

	body .esync-about h1 {
		font-size: 22px !important;
	}
}

/* Контакты без карты — одна карточка на всю ширину. */
.esync-contacts.is-nomap {
	grid-template-columns: minmax(0, 1fr);
}

/* Карта из шаблона Elementor (виджет Яндекс Карт) — во всю ячейку.
   Трогаем только обёртки Elementor; внутренности карты (ymaps) не
   задеваем, иначе растягиваются кнопки и ползунок масштаба. */
.esync-contacts__map.is-template {
	display: flex;
	min-height: 420px;
}

.esync-contacts__map.is-template > *,
.esync-contacts__map.is-template .elementor,
.esync-contacts__map.is-template .elementor-section,
.esync-contacts__map.is-template .elementor-container,
.esync-contacts__map.is-template .elementor-column,
.esync-contacts__map.is-template .elementor-widget-wrap,
.esync-contacts__map.is-template .e-con,
.esync-contacts__map.is-template .e-con-inner,
.esync-contacts__map.is-template .elementor-widget,
.esync-contacts__map.is-template .elementor-widget-container {
	flex: 1 1 auto;
	width: 100% !important;
	max-width: none !important;
	height: 100%;
	margin: 0 !important;
	padding: 0 !important;
	--padding-top: 0;
	--padding-bottom: 0;
	--padding-left: 0;
	--padding-right: 0;
	--width: 100%;
	--content-width: 100%;
}

/* Планшет и телефон: карта под карточкой, высоту задаёт сам шаблон. */
@media (max-width: 1024px) {
	.esync-contacts__map.is-template {
		min-height: 300px;
	}
}

/* ==========================================================================
   Контакты: рейтинг, соцсети, юрлицо ([esync_contacts] для страницы «Контакты»)
   ========================================================================== */

.esync-contacts__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

.esync-contacts__rating {
	flex: none;
	line-height: 0;
}

.esync-contacts__rating iframe {
	display: block;
	width: 150px;
	height: 50px;
	border: 0;
}

.esync-contacts__social {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 18px;
	border-top: 1px solid #DFE5EA;
}

/* Таблетки соцсетей (.esync-social) — в shop.css: нужны и в шапке на всех страницах. */

.esync-contacts__entity {
	margin: 0 !important;
	font-size: 13px;
	color: #8796A3;
}

/* На странице «Контакты» карточка выше — карта под стать. */
.esync-contacts-page .esync-contacts__map,
.esync-contacts-page .esync-contacts__map iframe {
	min-height: 520px;
}

@media (max-width: 1024px) {
	.esync-contacts-page .esync-contacts__map,
	.esync-contacts-page .esync-contacts__map iframe {
		min-height: 300px;
	}
}

/* Бренды на телефоне — лента до краёв экрана, как подразделы в первом
   экране: карточка справа не обрезается рамкой страницы, а уходит
   за край и растворяется — видно, что ряд листается. */
@media (max-width: 767px) {
	.esync-brands__grid {
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
		padding: 4px calc(50vw - 50%) 10px;
		/* Без прилипания: отступ прилипания в процентах Safari считает
		   от ширины самой ленты, и первая карточка уезжала к краю. */
		scroll-snap-type: none;
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent 100%);
		mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 48px), transparent 100%);
	}

	.esync-brands__grid::-webkit-scrollbar {
		display: none;
	}

	/* Отступ после последней карточки при прокрутке до конца. */
	.esync-brands__grid::after {
		content: "";
		width: 12px;
	}
}
