/* Euromax site header — 1:1 from styles (5).css + mobile drawer */
:root {
	--brand: #1eb3aa;
	--brand-ink: #0f8f87;
	--brand-deep: #0c726c;
	--brand-soft: #e3f5f3;
	--brand-glow: rgba(30, 179, 170, 0.35);
	--coral: #ef8a3c;
	--ink: #14201f;
	--ink-2: #41514f;
	--ink-3: #76817f;
	--surface: #ffffff;
	--border: #e6edec;
	--chip-bg: #eef4f3;
	--shadow-pop: 0 12px 40px rgba(20, 32, 31, 0.16);
}

.header.hdr {
	min-height: 0;
	padding-bottom: 0;
	height: auto;
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	background-image: none;
	position: sticky;
	top: 0;
	z-index: 1000;
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--border);
	font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.header.hdr .hdr-util,
.header.hdr .hdr-main {
	position: relative;
	z-index: 1;
}

.header.hdr .wrap {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 28px;
	float: none;
}

/* Главная: слайдер под шапкой, не перекрывает mega-menu */
.home .header.hdr ~ .home-slider,
body.home .home-slider {
	position: relative;
	z-index: 0;
}

.home .home-slider h1,
.home .home-slider h2 {
	display: none !important;
}

.home .home-slider-container {
	top: 0 !important;
}

.home .home-slider > .wrap {
	position: relative;
	height: 525px;
}

.home .home-slider > .wrap > .control {
	z-index: 2;
}

.mobile .header.hdr {
	height: auto;
	padding-bottom: 0;
}

/* utility strip */
.header.hdr .hdr-util {
	background: color-mix(in srgb, var(--brand-soft) 55%, var(--surface));
	border-bottom: 1px solid var(--border);
	font-size: 13px;
}

.header.hdr .hdr-util-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 40px;
}

.header.hdr .hdr-util-left,
.header.hdr .hdr-util-right {
	display: flex;
	align-items: center;
	gap: 18px;
	color: var(--ink-2);
}

.header.hdr .hdr-util-left span,
.header.hdr .hdr-util-right a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-weight: 600;
	color: inherit;
	text-decoration: none;
}

.header.hdr .hdr-util-right a:hover {
	color: var(--brand-ink);
}

.header.hdr .hdr-util .ph {
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -0.01em;
}

.header.hdr .hdr-util .ph:hover {
	color: var(--brand-ink);
}

.header.hdr .hdr-util .dotsep {
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: var(--ink-3);
	opacity: 0.5;
	flex-shrink: 0;
}

/* main bar */
.header.hdr .hdr-main {
	display: flex;
	align-items: center;
	gap: 22px;
	height: 72px;
}

.header.hdr .logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	color: inherit;
	text-decoration: none;
	margin: 0;
	float: none;
}

.header.hdr .logo img {
	display: block;
	height: 55px;
	width: auto;
	max-width: 194px;
}

.header.hdr .site-nav-wrap {
	float: none;
	margin: 0;
	max-width: none;
}

.header.hdr .hdr-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0 auto 0 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.header.hdr .hdr-menu > a,
.header.hdr .hdr-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 15px;
	border-radius: 999px;
	font-size: 15px;
	font-weight: 600;
	color: var(--ink-2);
	transition: 0.15s;
	white-space: nowrap;
	cursor: pointer;
	background: none;
	border: none;
	font-family: inherit;
	text-decoration: none;
	flex-shrink: 0;
}

.header.hdr .hdr-menu > a:hover,
.header.hdr .hdr-trigger:hover {
	background: var(--chip-bg);
	color: var(--ink);
}

.header.hdr .hdr-menu > a.active,
.header.hdr .hdr-trigger.active {
	color: var(--brand-ink);
	background: var(--brand-soft);
}

.header.hdr .hdr-trigger .caret {
	transition: 0.2s;
}

.header.hdr .hdr-drop.open .hdr-trigger .caret {
	transform: rotate(180deg);
}

/* dropdown */
.header.hdr .hdr-drop {
	position: relative;
	z-index: 20;
}

.header.hdr .hdr-mega {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	width: 380px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: var(--shadow-pop);
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	transition: 0.18s;
	z-index: 1100;
	pointer-events: none;
}

.header.hdr .hdr-drop.open .hdr-mega {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0);
	pointer-events: auto;
}

.header.hdr .hdr-mega::before {
	content: "";
	position: absolute;
	top: -7px;
	left: 50%;
	transform: translateX(-50%) rotate(45deg);
	width: 13px;
	height: 13px;
	background: var(--surface);
	border-left: 1px solid var(--border);
	border-top: 1px solid var(--border);
	border-radius: 3px 0 0 0;
}

.header.hdr .mega-item {
	display: flex;
	gap: 13px;
	padding: 12px 13px;
	border-radius: 13px;
	transition: 0.13s;
	color: inherit;
	text-decoration: none;
}

.header.hdr .mega-item:hover {
	background: var(--chip-bg);
}

.header.hdr .mega-item .ic {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: var(--brand-soft);
	color: var(--brand-deep);
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.header.hdr .mega-item.coral .ic {
	background: #fff0e2;
	color: #b96322;
}

.header.hdr .mega-item .tt {
	display: block;
	font-weight: 700;
	font-size: 14.5px;
	letter-spacing: -0.01em;
	line-height: 1.2;
}

.header.hdr .mega-item .ds {
	display: block;
	font-size: 12.5px;
	color: var(--ink-3);
	margin-top: 3px;
	line-height: 1.3;
}

.header.hdr .mega-foot {
	margin-top: 4px;
	border-top: 1px solid var(--border);
}

.header.hdr .mega-foot a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 13px 14px 9px;
	font-weight: 700;
	font-size: 14px;
	color: var(--brand-ink);
	text-decoration: none;
}

.header.hdr .mega-foot a:hover {
	gap: 4px;
}

/* actions */
.header.hdr .hdr-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	margin-left: auto;
}

.header.hdr .hdr-shop {
	gap: 9px;
	padding: 13px 24px;
	text-decoration: none;
}

.header.hdr .icon-btn {
	position: relative;
	width: 46px;
	height: 46px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--surface);
	display: grid;
	place-items: center;
	color: var(--ink);
	transition: 0.15s;
	flex-shrink: 0;
	padding: 0;
	cursor: pointer;
	font: inherit;
	text-decoration: none;
}

.header.hdr .icon-btn:hover {
	border-color: var(--brand);
	color: var(--brand-ink);
}

.header.hdr .cart-count {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--coral);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: grid;
	place-items: center;
	box-shadow: 0 0 0 2px var(--surface);
}

.header.hdr .burger {
	display: none;
}

.header.hdr .site-nav-toggle.menu-icon {
	background: var(--surface) !important;
	background-image: none !important;
	float: none;
	margin: 0;
	width: 46px;
	height: 46px;
}

/* buttons */
.header.hdr .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	transition: 0.16s;
	white-space: nowrap;
	font-family: inherit;
	cursor: pointer;
}

.header.hdr .btn-primary {
	background: var(--brand);
	color: #fff;
	box-shadow: 0 6px 18px var(--brand-glow);
}

.header.hdr .btn-primary:hover {
	background: var(--brand-ink);
	transform: translateY(-1px);
	box-shadow: 0 10px 24px var(--brand-glow);
	color: #fff;
}

.header.hdr .btn-primary.active {
	background: var(--brand-ink);
}

/* mobile drawer */
.hdr-mobile-nav {
	display: none;
}

.hdr-mobile-nav.is-open {
	display: block;
}

.cart-scrim {
	position: fixed;
	inset: 0;
	background: rgba(10, 20, 19, 0.42);
	z-index: 280;
}

.hdr-nav-sheet.cart {
	position: fixed;
	top: 0;
	left: 0;
	right: auto;
	bottom: 0;
	width: min(330px, 90vw);
	background: var(--surface);
	z-index: 290;
	display: flex;
	flex-direction: column;
	box-shadow: var(--shadow-pop);
}

.hdr-nav-sheet .cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid var(--border);
}

.hdr-nav-sheet .cart-head h3 {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
}

.hdr-nav-sheet .cart-body {
	flex: 1;
	overflow-y: auto;
	padding: 12px 22px;
}

.hdr-mobile-link {
	display: block;
	padding: 13px 0;
	font-size: 16px;
	font-weight: 700;
	border-bottom: 1px solid var(--border);
	color: var(--ink);
	text-decoration: none;
}

.hdr-mobile-link:hover {
	color: var(--brand-ink);
}

.hdr-mobile-phone {
	margin-top: 22px;
	font-size: 22px;
	font-weight: 800;
	color: var(--ink);
	letter-spacing: -0.01em;
}

.hdr-mobile-phone a {
	color: inherit;
	text-decoration: none;
}

body.site-nav-open {
	overflow: hidden;
}

@media (max-width: 1240px) {
	.header.hdr .hdr-menu > a,
	.header.hdr .hdr-trigger {
		padding: 10px 11px;
		font-size: 14px;
	}

	.header.hdr .hdr-main {
		gap: 14px;
	}
}

@media (max-width: 1080px) {
	.header.hdr .wrap {
		padding: 0 16px;
	}

	.header.hdr .hdr-util {
		display: none;
	}

	.header.hdr .hdr-menu,
	.header.hdr .hdr-shop-label {
		display: none;
	}

	.header.hdr .burger {
		display: grid;
	}

	.header.hdr .logo img {
		height: 48px;
		max-width: 170px;
	}

	.header.hdr .icon-btn,
	.header.hdr .site-nav-toggle.menu-icon {
		width: 42px;
		height: 42px;
	}

	.header.hdr .hdr-shop {
		padding: 13px 16px;
	}
}

@media (max-width: 640px) {
	.header.hdr .wrap {
		padding: 0 16px;
	}
}
