/* Header extras: social circles + calc button + search width */

.header__middle .search-cat {
	flex: 1 1 auto;
	min-width: 220px;
	max-width: none;
	margin-right: 1rem;
}

.header__control .heaw {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin-left: 0.75rem;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	line-height: 0;
	box-sizing: border-box;
}

.header__control .heaw img {
	display: block;
	width: 16px;
	height: 16px;
	object-fit: contain;
}

/* Telegram SVG already is a round badge — fill the circle */
.header__control .heaw_telegram {
	background: transparent;
}

.header__control .heaw_telegram img {
	width: 32px;
	height: 32px;
}

.header__control .heaw_whatsapp {
	background: #25D366;
}

.header__control .heaw_max {
	background: linear-gradient(45deg, #44CCFE 0%, #4C58E8 50%, #9933DD 100%);
}

/* Product card: Быстрый заказ в MAX */
a.max-id,
a.telegram-id,
a.whatsapp-id {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 10px;
	padding: 12px 16px;
	box-sizing: border-box;
	border-radius: 8px;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	line-height: 1.2;
	background: linear-gradient(45deg, #44CCFE 0%, #4C58E8 50%, #9933DD 100%);
}

a.max-id img,
a.telegram-id img,
a.whatsapp-id img {
	width: 20px;
	height: 20px;
	display: block;
	object-fit: contain;
	flex-shrink: 0;
}

.header__calc {
	margin-left: 1.25rem;
	margin-right: 0;
	white-space: nowrap;
	flex-shrink: 0;
	padding: 11px 18px;
	font-size: 1em;
	border: none;
	cursor: pointer;
}

.header__control .header__call {
	margin-left: 0.75rem;
	margin-right: 1.5rem;
}

@media (max-width: 1300px) {
	.header__control .heaw {
		margin-left: 0.5rem;
	}

	.header__calc {
		margin-left: 0.75rem;
		padding: 11px 14px;
	}

	.header__control .header__call {
		margin-left: 0.5rem;
		margin-right: 1rem;
	}
}

/* Mobile/tablet: 3 socials in the same header-mobile row (do not switch layout) */
.header-mobile__right > .heaw {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin-left: 0;
	margin-right: 2.5vw;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	line-height: 0;
	box-sizing: border-box;
}

.header-mobile__right > .heaw img {
	display: block;
	width: 14px;
	height: 14px;
	object-fit: contain;
}

.header-mobile__right > .heaw_telegram {
	background: transparent;
}

.header-mobile__right > .heaw_telegram img {
	width: 24px;
	height: 24px;
}

.header-mobile__right > .heaw_whatsapp {
	background: #25D366;
}

.header-mobile__right > .heaw_max {
	background: linear-gradient(45deg, #44CCFE 0%, #4C58E8 50%, #9933DD 100%);
}

@media screen and (max-width: 400px) {
	.header-mobile__right > .heaw {
		width: 22px;
		height: 22px;
		margin-right: 1.5vw;
	}

	.header-mobile__right > .heaw_telegram img {
		width: 22px;
		height: 22px;
	}

	.header-mobile__right > .heaw img {
		width: 12px;
		height: 12px;
	}

	.header-mobile__search,
	.header-mobile__phone {
		margin-right: 2vw !important;
	}
}

/* Phone: calc only inside hamburger menu */
.header-mobile__calc {
	display: none;
}

.header-mobile-menu__calc {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 1.5rem;
	padding: 12px 16px;
	border: none;
	cursor: pointer;
	text-align: center;
}

/* Tablet (768–1200): calc in mobile header bar; hide duplicate in menu */
@media screen and (min-width: 768px) and (max-width: 1200px) {
	.header-mobile__calc {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex-shrink: 0;
		margin-left: 0;
		margin-right: 2vw;
		padding: 8px 12px;
		font-size: 0.8125em;
		line-height: 1.2;
		white-space: nowrap;
		border: none;
		cursor: pointer;
	}

	.header-mobile-menu__calc {
		display: none;
	}

	.header-mobile__right > .heaw {
		margin-right: 1.5vw;
	}

	.header-mobile__search,
	.header-mobile__phone {
		margin-right: 2vw !important;
	}
}

@media screen and (min-width: 768px) and (max-width: 900px) {
	.header-mobile__calc {
		padding: 7px 9px;
		font-size: 0.75em;
	}
}
