.site-header {
	--mobile-topbar-height: 48px;
	--mobile-nav-height: 76px;
	--mobile-toggle-size: 42px;
	--mobile-side-padding: 1rem;
	--drawer-close-offset: 0.8rem;
	width: 100%;
	position: relative;
	z-index: 50;
}

.header-wrapper {
	width: 100%;
	padding-left: 4rem;
	padding-right: 4rem;
}

.header-topbar {
	width: 100%;
	background: var(--primary);
	color: #fff;
}

.header-topbar__inner {
	min-height: 52px;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 1rem;
}

.header-topbar__phone {
	justify-self: start;
	color: #fff;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.header-topbar__phone:hover,
.header-topbar__phone:focus-visible {
	opacity: 0.82;
}

.header-topbar__social {
	justify-self: end;
	width: 30px;
	height: 30px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.header-topbar__social:hover,
.header-topbar__social:focus-visible {
	opacity: 0.82;
}

.header-topbar__social-icon {
	width: 100%;
	height: 100%;
	color: #fff;
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.header-main-nav {
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #ececec;
}

.header-main-nav__inner {
	min-height: 86px;
	display: flex;
	align-items: center;
	gap: 2rem;
}

.header-logo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
}

.header-logo img {
	display: block;
	width: auto;
	height: 60px;
}

.header-menu {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	flex: 1 1 auto;
}

.header-menu a {
	color: #111;
	text-decoration: none;
	font-size: 0.86rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: color 0.2s ease;
}

.header-menu a:hover,
.header-menu a:focus-visible {
	color: var(--primary);
}

.header-search-toggle {
	width: 36px;
	height: 36px;
	padding: 0;
	margin-left: 0.1rem;
	border: 0;
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #111;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.header-search-toggle svg {
	width: 24px;
	height: 24px;
	display: block;
}

.header-search-toggle:hover,
.header-search-toggle:focus-visible {
	color: var(--primary);
	opacity: 0.9;
}

.header-cta {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0.55rem 1rem;
	border-radius: 6px;
	background: var(--primary);
	color: #fff;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	transition: filter 0.2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
	color: #fff;
	filter: brightness(1.1);
}

.header-mobile-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	margin-left: auto;
}

.header-mobile-toggle img {
	width: 100%;
	height: 100%;
	display: block;
}

.header-mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 999;
	pointer-events: none;
}

.header-mobile-drawer__panel {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 75vw;
	max-width: 420px;
	height: 100%;
	background: #fff;
	opacity: 0;
	transform: translate3d(-108%, 0, 0);
	transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease !important;
	will-change: transform, opacity;
	position: relative;
	padding: calc(var(--drawer-close-offset) + var(--mobile-toggle-size) + 10px) 1.2rem 1.5rem;
}

.header-mobile-drawer__overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	z-index: 1;
	border: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease !important;
	cursor: pointer;
}

.header-mobile-drawer__close {
	position: absolute;
	top: var(--drawer-close-offset);
	right: var(--drawer-close-offset);
	width: var(--mobile-toggle-size);
	height: var(--mobile-toggle-size);
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.header-mobile-drawer__close img {
	width: 100%;
	height: 100%;
	display: block;
}

.header-mobile-menu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.1rem;
	width: 100%;
}

.header-mobile-menu a {
	color: #111;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.header-mobile-menu a:hover,
.header-mobile-menu a:focus-visible {
	color: var(--primary);
}

.header-mobile-menu a.header-mobile-menu__cta {
	margin-top: 0.25rem;
	background: var(--primary);
	color: #fff;
	border-radius: 6px;
	padding: 0.85rem 1rem;
	transition: filter 0.2s ease;
}

.header-mobile-menu a.header-mobile-menu__cta:link,
.header-mobile-menu a.header-mobile-menu__cta:visited,
.header-mobile-menu a.header-mobile-menu__cta:active {
	color: #fff;
}

.header-mobile-menu a.header-mobile-menu__cta:hover,
.header-mobile-menu a.header-mobile-menu__cta:focus-visible {
	color: #fff;
	filter: brightness(1.1);
}

.header-mobile-menu__search-icon {
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: #111;
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.45rem;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.1;
}

.header-mobile-menu__search-icon svg {
	width: 20px;
	height: 20px;
	display: block;
	flex: 0 0 auto;
}

.header-mobile-menu__search-icon:hover,
.header-mobile-menu__search-icon:focus-visible {
	color: var(--primary);
}

.header-mobile-menu__search-label {
	display: inline-block;
}

.header-search-modal {
	position: fixed;
	inset: 0;
	z-index: 1100;
	pointer-events: none;
}

.header-search-modal__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	border: 0;
	background: rgba(0, 0, 0, 0.68);
	opacity: 0;
	transition: opacity 0.3s ease;
	cursor: pointer;
}

.header-search-modal__panel {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 5.6rem 2rem 2.4rem;
	transform: translateY(-18px);
	opacity: 0;
	transition: transform 0.32s ease, opacity 0.28s ease;
	overflow: hidden;
	background: transparent;
	color: #fff;
}

.header-search-modal.is-open {
	pointer-events: auto;
}

.header-search-modal.is-open .header-search-modal__overlay {
	opacity: 1;
}

.header-search-modal.is-open .header-search-modal__panel {
	transform: translateY(0);
	opacity: 1;
}

.header-search-modal__close {
	position: absolute;
	top: 1.05rem;
	right: 1.05rem;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.header-search-modal__close img {
	width: 100%;
	height: 100%;
	display: block;
	filter: invert(1);
}

.header-search-modal__title {
	font-size: clamp(1.5rem, 2.8vw, 2.3rem);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 1.2rem;
	text-align: center;
}

.header-search-modal__form {
	width: min(980px, 100%);
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.6rem;
}

.header-search-modal__input {
	flex: 1;
	min-height: 62px;
	border: 1px solid #ffffff;
	border-radius: 8px;
	padding: 0 1rem;
	font-size: 1.08rem;
	font-weight: 600;
	background: #fff;
	color: #111;
}

.header-search-modal__input:focus,
.header-search-modal__input:focus-visible {
	outline: none;
	border-color: #ffffff;
	box-shadow: none;
}

.header-search-modal__submit {
	min-height: 62px;
	padding: 0 1.35rem;
	border: 1px solid var(--primary);
	border-radius: 8px;
	background: var(--primary);
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.header-search-modal__submit:hover,
.header-search-modal__submit:focus-visible {
	background: #a91015;
	border-color: #a91015;
}

.header-search-modal__results {
	width: min(980px, 100%);
	flex: 1;
	overflow: auto;
	padding-right: 0.25rem;
}

.header-search-results__loading,
.header-search-results__empty {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: #ffffff;
}

.header-search-results__section .header-search-results__empty {
	color: #666;
}

.header-search-results__grid {
	display: grid;
	gap: 1rem;
}

.header-search-results__section {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 1rem;
}

.header-search-results__section h3 {
	margin: 0 0 0.7rem;
	font-size: 1rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #111;
}

.header-search-results__section ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 0.45rem;
}

.header-search-results__section li a {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	text-decoration: none;
	padding: 0.45rem 0.5rem;
	border-radius: 8px;
	color: #111;
	transition: background-color 0.2s ease;
}

.header-search-results__section li a:hover,
.header-search-results__section li a:focus-visible {
	background: #f5f5f5;
}

.header-search-results__section li img {
	width: 44px;
	height: 44px;
	object-fit: cover;
	border-radius: 6px;
	flex: 0 0 auto;
}

.header-search-results__section li strong {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.35;
	display: block;
}

.header-search-results__section li span {
	display: block;
	font-size: 0.78rem;
	line-height: 1.45;
	color: #6b6b6b;
	margin-top: 0.05rem;
}

.header-mobile-drawer.is-open {
	pointer-events: auto;
}

.header-mobile-drawer.is-open .header-mobile-drawer__panel {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.header-mobile-drawer.is-open .header-mobile-drawer__overlay {
	opacity: 1;
}

body.header-drawer-open,
body.header-search-open {
	overflow: hidden;
}

@media (max-width: 1200px) {
	.header-menu {
		gap: 0.75rem;
	}

	.header-menu a {
		font-size: 0.78rem;
	}
}

@media (max-width: 1024px) {
	.header-main-nav__inner {
		min-height: var(--mobile-nav-height);
	}

	.header-menu,
	.header-cta {
		display: none;
	}

	.header-mobile-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.header-logo img {
		height: 50px;
	}
}

@media (max-width: 768px) {
	.header-wrapper {
		padding-left: var(--mobile-side-padding);
		padding-right: var(--mobile-side-padding);
	}

	.header-topbar__inner {
		min-height: var(--mobile-topbar-height);
		gap: 0.45rem;
		grid-template-columns: 1fr auto;
	}

	.header-topbar__phone {
		font-size: 0.82rem;
	}

	.header-topbar__social {
		width: 18px;
		height: 18px;
	}

	.header-topbar__social-icon {
		font-size: 1.18rem;
	}

	.header-mobile-drawer__panel {
		padding-top: calc(var(--drawer-close-offset) + var(--mobile-toggle-size) + 10px);
	}

	.header-mobile-menu a {
		font-size: 1.14rem;
	}

	.header-mobile-menu__search-icon {
		font-size: 1.14rem;
	}

	.header-mobile-menu__cta {
		font-size: 1.04rem;
		padding: 0.95rem 1.15rem;
	}

	.header-search-modal__panel {
		padding: 4.8rem 0.6rem 1.2rem;
	}

	.header-search-modal__form {
		flex-direction: column;
		align-items: stretch;
		gap: 0.55rem;
		margin-bottom: 1.1rem;
	}

	.header-search-modal__input,
	.header-search-modal__submit {
		min-height: 54px;
	}

	.header-search-modal__submit {
		width: 100%;
	}

	.header-search-results__section {
		padding: 0.8rem;
	}
}
