/* 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;
	}
}

/* Floating calculator widget (bottom-right), like evromarketug.ru */
.equipmentcalc-fab {
	position: fixed;
	right: 48px;
	bottom: 48px;
	z-index: 9998;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #abb910;
	color: #fff;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-sizing: border-box;
	line-height: 0;
	transition-property: background-color, transform, box-shadow;
	transition-duration: 0.2s;
	transition-timing-function: ease;
}

.equipmentcalc-fab:hover {
	background: #666f0f;
	transform: scale(1.05);
}

.equipmentcalc-fab:active {
	transform: scale(0.96);
}

.equipmentcalc-fab:focus {
	outline: none;
}

.equipmentcalc-fab:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 5px rgba(171, 185, 16, 0.45);
}

.equipmentcalc-fab__icon {
	display: block;
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.equipmentcalc-fab__tooltip {
	position: absolute;
	right: calc(100% + 12px);
	top: 50%;
	transform: translate(8px, -50%);
	padding: 8px 12px;
	border-radius: 8px;
	background: #020f19;
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition-property: opacity, transform, visibility;
	transition-duration: 0.18s;
	transition-timing-function: ease-out;
}

.equipmentcalc-fab__tooltip::after {
	content: "";
	position: absolute;
	left: 100%;
	top: 50%;
	margin-top: -5px;
	border: 5px solid transparent;
	border-left-color: #020f19;
}

@media (hover: hover) and (pointer: fine) {
	.equipmentcalc-fab:hover .equipmentcalc-fab__tooltip,
	.equipmentcalc-fab:focus-visible .equipmentcalc-fab__tooltip {
		opacity: 1;
		visibility: visible;
		transform: translate(0, -50%);
	}
}

.equipmentcalc-fab:focus-visible .equipmentcalc-fab__tooltip {
	opacity: 1;
	visibility: visible;
	transform: translate(0, -50%);
}

@keyframes equipmentcalc-fab-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(171, 185, 16, 0.6);
	}

	70% {
		box-shadow: 0 0 0 15px rgba(171, 185, 16, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(171, 185, 16, 0);
	}
}

@media (prefers-reduced-motion: no-preference) {
	.equipmentcalc-fab {
		animation: equipmentcalc-fab-pulse 2s infinite;
	}

	.equipmentcalc-fab:hover,
	.equipmentcalc-fab:focus-visible {
		animation: none;
	}
}

html.equipmentcalc-fs-open .equipmentcalc-fab,
html.equipmentcalc-host-modal-open .equipmentcalc-fab {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

@media (max-width: 768px) {
	.equipmentcalc-fab {
		right: 32px;
		bottom: 32px;
		width: 55px;
		height: 55px;
	}

	.equipmentcalc-fab__icon {
		width: 26px;
		height: 26px;
	}
}

@media print {
	.equipmentcalc-fab {
		display: none;
	}
}
