.wegot-modern-header-body {
	--wegot-header-bg: #050505;
	--wegot-header-panel: #111111;
	--wegot-header-line: #2a2a2a;
	--wegot-header-soft: #191919;
	--wegot-header-text: #ffffff;
	--wegot-header-muted: #b8c0cc;
	--wegot-header-accent: #fec395;
	--wegot-header-accent-hover: #ffd5b5;
}

.wegot-site-header {
	position: relative;
	z-index: 999;
	background: var(--wegot-header-bg);
	border-bottom: 1px solid var(--wegot-header-line);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.wegot-header-shell {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(170px, max-content) minmax(320px, 600px) auto auto minmax(0, 1fr);
	grid-template-areas:
		". logo search actions account ."
		"nav nav nav nav nav nav";
	align-items: center;
	row-gap: 8px;
	column-gap: 18px;
	width: min(100%, 1800px);
	margin: 0 auto;
	padding: 7px 24px 0;
}

.wegot-header-logo {
	grid-area: logo;
	min-width: 0;
	line-height: 0;
}

.wegot-header-logo a {
	display: inline-flex;
	align-items: center;
	color: var(--wegot-header-text);
	text-decoration: none;
}

.wegot-header-logo img {
	display: block;
	width: auto;
	max-width: 245px;
	max-height: 58px;
	object-fit: contain;
}

.wegot-header-logo-text {
	gap: 8px;
	font-size: 28px;
	font-weight: 900;
	line-height: 1;
}

.wegot-header-search {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
}

.wegot-header-desktop-search {
	grid-area: search;
	width: min(100%, 600px);
}

.wegot-header-search input[type="search"] {
	width: 100%;
	height: 44px;
	padding: 0 50px 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 8px;
	background: #050505;
	color: var(--wegot-header-text);
	font-size: 16px;
	font-weight: 700;
}

.wegot-header-search input[type="search"]::placeholder {
	color: rgba(255, 255, 255, 0.76);
}

.wegot-header-search input[type="search"]:focus {
	border-color: var(--wegot-header-accent);
	box-shadow: 0 0 0 3px rgba(254, 195, 149, 0.18);
}

.wegot-header-search button {
	position: absolute;
	top: 4px;
	right: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--wegot-header-text);
	font-size: 23px;
	cursor: pointer;
}

.wegot-header-search button:hover {
	color: var(--wegot-header-accent);
}

.wegot-desktop-nav {
	grid-area: nav;
	min-width: 0;
	width: calc(100% + 48px);
	margin: 0 -24px;
	padding: 0 24px;
	border-top: 1px solid var(--wegot-header-line);
	background: #080808;
	overflow: visible;
}

.wegot-header-menu,
.wegot-header-menu ul,
.wegot-mobile-menu,
.wegot-mobile-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wegot-header-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
}

.wegot-header-menu li {
	position: relative;
	margin: 0;
}

.wegot-header-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 0 12px;
	border-radius: 8px;
	color: var(--wegot-header-text);
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
}

.wegot-header-menu > li.current-menu-item > a,
.wegot-header-menu a:hover {
	color: var(--wegot-header-accent);
	background: rgba(254, 195, 149, 0.09);
}

.wegot-header-menu .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	display: none;
	min-width: 210px;
	padding: 8px;
	border: 1px solid var(--wegot-header-line);
	border-radius: 8px;
	background: var(--wegot-header-panel);
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.wegot-header-menu li:hover > .sub-menu,
.wegot-header-menu li:focus-within > .sub-menu {
	display: grid;
	gap: 3px;
}

.wegot-header-menu .sub-menu a {
	width: 100%;
	justify-content: flex-start;
}

.wegot-header-actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 8px;
	max-width: 560px;
}

.wegot-header-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 38px;
	padding: 0 12px;
	border: 1px solid var(--wegot-header-line);
	border-radius: 999px;
	background: var(--wegot-header-soft);
	color: var(--wegot-header-text);
	font-size: 14px;
	font-weight: 900;
	text-decoration: none;
	white-space: nowrap;
}

.wegot-header-action:hover {
	border-color: var(--wegot-header-accent);
	color: var(--wegot-header-accent);
	background: rgba(254, 195, 149, 0.08);
}

.wegot-header-action.is-premium {
	border-color: var(--wegot-header-accent);
	background: var(--wegot-header-accent);
	color: #111111;
}

.wegot-header-action.is-premium:hover {
	background: var(--wegot-header-accent-hover);
	color: #111111;
}

.wegot-header-account {
	grid-area: account;
	position: relative;
}

.wegot-profile-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 40px;
	padding: 3px 9px;
	border: 1px solid var(--wegot-header-line);
	border-radius: 999px;
	background: var(--wegot-header-panel);
	color: var(--wegot-header-text);
	font-size: 14px;
	font-weight: 900;
	cursor: pointer;
}

.wegot-profile-toggle:hover,
.wegot-header-account.is-open .wegot-profile-toggle {
	border-color: var(--wegot-header-accent);
	color: var(--wegot-header-accent);
}

.wegot-profile-toggle img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #242424;
	object-fit: cover;
}

.wegot-profile-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	display: grid;
	gap: 4px;
	width: 230px;
	padding: 9px;
	border: 1px solid var(--wegot-header-line);
	border-radius: 8px;
	background: var(--wegot-header-panel);
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
	opacity: 0;
	pointer-events: none;
	transform: translateY(-4px);
	transition: opacity 160ms ease, transform 160ms ease;
}

.wegot-header-account.is-open .wegot-profile-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.wegot-profile-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	padding: 0 10px;
	border-radius: 8px;
	color: var(--wegot-header-text);
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
}

.wegot-profile-menu a:hover {
	background: rgba(254, 195, 149, 0.1);
	color: var(--wegot-header-accent);
}

.wegot-mobile-menu-toggle,
.wegot-drawer-backdrop,
.wegot-mobile-drawer {
	display: none;
}

@media (max-width: 1380px) {
	.wegot-header-shell {
		grid-template-columns: minmax(0, 1fr) minmax(160px, max-content) minmax(280px, 520px) auto auto minmax(0, 1fr);
		column-gap: 14px;
	}

	.wegot-header-desktop-search {
		width: min(100%, 520px);
	}

	.wegot-header-action span {
		display: none;
	}

	.wegot-header-action {
		width: 40px;
		padding: 0;
	}
}

@media (max-width: 1100px) {
	.wegot-header-shell {
		grid-template-columns: 48px minmax(140px, 210px) minmax(220px, 1fr) 48px;
		grid-template-areas: "burger logo search account";
		min-height: 72px;
		padding: 10px 16px;
	}

	.wegot-desktop-nav,
	.wegot-header-actions-desktop {
		display: none;
	}

	.wegot-header-logo {
		padding-left: 0;
	}

	.wegot-mobile-menu-toggle {
		grid-area: burger;
		display: inline-flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: 6px;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 1px solid var(--wegot-header-line);
		border-radius: 12px;
		background: var(--wegot-header-panel);
		cursor: pointer;
	}

	.wegot-mobile-menu-toggle span {
		display: block;
		width: 22px;
		height: 3px;
		border-radius: 999px;
		background: var(--wegot-header-text);
	}

	.wegot-profile-toggle span,
	.wegot-profile-toggle .fa-chevron-down {
		display: none;
	}

	.wegot-profile-toggle {
		width: 44px;
		height: 44px;
		min-height: 44px;
		padding: 0;
		border-radius: 12px;
	}

	.wegot-profile-toggle img {
		width: 32px;
		height: 32px;
	}

	.wegot-header-account {
		justify-self: end;
	}

	.wegot-mobile-drawer {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1002;
		display: flex;
		flex-direction: column;
		gap: 16px;
		width: min(390px, 88vw);
		height: 100vh;
		padding: 18px;
		background: #090909;
		border-right: 1px solid var(--wegot-header-line);
		box-shadow: 24px 0 50px rgba(0, 0, 0, 0.45);
		overflow-y: auto;
		transform: translateX(-105%);
		transition: transform 220ms ease;
	}

	body.admin-bar .wegot-mobile-drawer {
		padding-top: 64px;
	}

	body.wegot-drawer-open .wegot-mobile-drawer {
		transform: translateX(0);
	}

	.wegot-drawer-backdrop {
		position: fixed;
		inset: 0;
		z-index: 1001;
		display: block;
		border: 0;
		background: rgba(0, 0, 0, 0.58);
		opacity: 0;
		pointer-events: none;
		transition: opacity 220ms ease;
	}

	body.wegot-drawer-open .wegot-drawer-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	.wegot-drawer-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		color: var(--wegot-header-text);
	}

	.wegot-drawer-top strong {
		font-size: 22px;
		font-weight: 900;
	}

	.wegot-drawer-top button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		border: 1px solid var(--wegot-header-line);
		border-radius: 12px;
		background: var(--wegot-header-panel);
		color: var(--wegot-header-text);
		cursor: pointer;
	}

	.wegot-header-search-mobile input[type="search"] {
		height: 52px;
	}

	.wegot-mobile-menu {
		display: grid;
		gap: 6px;
	}

	.wegot-mobile-menu a {
		display: flex;
		align-items: center;
		min-height: 46px;
		padding: 0 12px;
		border: 1px solid var(--wegot-header-line);
		border-radius: 8px;
		background: var(--wegot-header-panel);
		color: var(--wegot-header-text);
		font-size: 16px;
		font-weight: 900;
		text-decoration: none;
	}

	.wegot-mobile-menu a:hover {
		border-color: var(--wegot-header-accent);
		color: var(--wegot-header-accent);
	}

	.wegot-mobile-menu .sub-menu {
		display: grid;
		gap: 5px;
		margin: 6px 0 2px 14px;
	}

	.wegot-mobile-menu .sub-menu a {
		min-height: 40px;
		background: #0f0f0f;
		font-size: 14px;
	}

	.wegot-header-actions-mobile {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		max-width: none;
	}

	.wegot-header-actions-mobile .wegot-header-action {
		width: auto;
		min-height: 46px;
		border-radius: 8px;
		padding: 0 10px;
	}

	.wegot-header-actions-mobile .wegot-header-action span {
		display: inline;
	}
}

@media (max-width: 760px) {
	.wegot-header-shell {
		grid-template-columns: 48px minmax(0, 1fr) 48px;
		grid-template-areas: "burger logo account";
		gap: 8px;
		min-height: 82px;
		padding: 12px 16px;
	}

	.wegot-header-logo {
		justify-self: center;
	}

	.wegot-header-logo img {
		max-width: min(58vw, 235px);
		max-height: 64px;
	}

	.wegot-header-logo-text {
		max-width: 58vw;
		font-size: 24px;
		text-align: center;
		white-space: nowrap;
	}

	.wegot-header-desktop-search {
		display: none;
	}

	.wegot-header-account {
		justify-self: end;
	}

	.wegot-profile-toggle {
		width: 46px;
		height: 46px;
		min-height: 46px;
		padding: 0;
		border-radius: 12px;
	}

	.wegot-profile-toggle span,
	.wegot-profile-toggle .fa-chevron-down {
		display: none;
	}

	.wegot-profile-toggle img {
		width: 34px;
		height: 34px;
	}

	.wegot-profile-menu {
		position: fixed;
		top: 78px;
		right: 12px;
		width: min(280px, calc(100vw - 24px));
		z-index: 1003;
	}

	body.admin-bar .wegot-profile-menu {
		top: 124px;
	}

	.wegot-mobile-drawer {
		position: fixed;
		top: 0;
		left: 0;
		z-index: 1002;
		display: flex;
		flex-direction: column;
		gap: 16px;
		width: min(390px, 88vw);
		height: 100vh;
		padding: 18px;
		background: #090909;
		border-right: 1px solid var(--wegot-header-line);
		box-shadow: 24px 0 50px rgba(0, 0, 0, 0.45);
		overflow-y: auto;
		transform: translateX(-105%);
		transition: transform 220ms ease;
	}

	body.admin-bar .wegot-mobile-drawer {
		padding-top: 64px;
	}

	body.wegot-drawer-open .wegot-mobile-drawer {
		transform: translateX(0);
	}

	.wegot-drawer-backdrop {
		position: fixed;
		inset: 0;
		z-index: 1001;
		display: block;
		border: 0;
		background: rgba(0, 0, 0, 0.58);
		opacity: 0;
		pointer-events: none;
		transition: opacity 220ms ease;
	}

	body.wegot-drawer-open .wegot-drawer-backdrop {
		opacity: 1;
		pointer-events: auto;
	}

	.wegot-drawer-top {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		color: var(--wegot-header-text);
	}

	.wegot-drawer-top strong {
		font-size: 22px;
		font-weight: 900;
	}

	.wegot-drawer-top button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		border: 1px solid var(--wegot-header-line);
		border-radius: 12px;
		background: var(--wegot-header-panel);
		color: var(--wegot-header-text);
		cursor: pointer;
	}

	.wegot-header-search-mobile input[type="search"] {
		height: 52px;
	}

	.wegot-mobile-menu {
		display: grid;
		gap: 6px;
	}

	.wegot-mobile-menu a {
		display: flex;
		align-items: center;
		min-height: 46px;
		padding: 0 12px;
		border: 1px solid var(--wegot-header-line);
		border-radius: 8px;
		background: var(--wegot-header-panel);
		color: var(--wegot-header-text);
		font-size: 16px;
		font-weight: 900;
		text-decoration: none;
	}

	.wegot-mobile-menu a:hover {
		border-color: var(--wegot-header-accent);
		color: var(--wegot-header-accent);
	}

	.wegot-mobile-menu .sub-menu {
		display: grid;
		gap: 5px;
		margin: 6px 0 2px 14px;
	}

	.wegot-mobile-menu .sub-menu a {
		min-height: 40px;
		background: #0f0f0f;
		font-size: 14px;
	}

	.wegot-header-actions-mobile {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.wegot-header-actions-mobile .wegot-header-action {
		width: auto;
		min-height: 46px;
		border-radius: 8px;
		padding: 0 10px;
	}

	.wegot-header-actions-mobile .wegot-header-action span {
		display: inline;
	}
}

@media (max-width: 390px) {
	.wegot-header-shell {
		padding-inline: 10px;
	}

	.wegot-header-actions-mobile {
		grid-template-columns: 1fr;
	}
}
