.npapw-header {
	position: relative;
	background-color: var(--npapw-color-bg);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.npapw-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	min-height: 84px;
	padding-left: 25px;
	padding-right: 25px;
}

.npapw-header__nav--left {
	justify-self: start;
}

.npapw-header__right {
	display: flex;
	align-items: center;
	gap: 24px;
	justify-self: end;
}

.npapw-header__nav--right {
	justify-self: end;
}

.npapw-header__brand {
	justify-self: center;
	text-align: center;
}

.npapw-header__brand img,
.npapw-mobile-panel__brand img {
	max-height: 60px;
	width: auto;
}

.npapw-brand__link {
	color: var(--npapw-color-primary);
	font-family: var(--npapw-font-heading);
	font-size: 1.4rem;
	font-weight: 700;
	text-decoration: none;
}

.npapw-menu {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.npapw-menu li {
	position: relative;
}

.npapw-menu a {
	color: var(--npapw-color-text);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.npapw-menu a:hover,
.npapw-menu a:focus,
.npapw-menu .current-menu-item > a {
	color: var(--npapw-color-primary);
}

.npapw-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	display: none;
	min-width: 200px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background-color: #fff;
	border-radius: var(--npapw-radius);
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.npapw-menu li:hover > .sub-menu,
.npapw-menu li:focus-within > .sub-menu {
	display: block;
}

.npapw-menu .sub-menu a {
	display: block;
	padding: 8px 18px;
}

.npapw-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: none;
	border: 0;
	cursor: pointer;
}

.npapw-burger {
	position: relative;
	display: block;
	width: 24px;
	height: 2px;
	background-color: var(--npapw-color-text);
}

.npapw-burger::before,
.npapw-burger::after {
	content: "";
	position: absolute;
	left: 0;
	width: 24px;
	height: 2px;
	background-color: var(--npapw-color-text);
}

.npapw-burger::before {
	top: -8px;
}

.npapw-burger::after {
	top: 8px;
}

.npapw-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.npapw-mobile-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.npapw-mobile-panel {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	width: min(85vw, 340px);
	padding: 20px;
	background-color: #fff;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform 0.35s ease;
}

.npapw-mobile-panel.is-open {
	transform: translateX(0);
}

.npapw-mobile-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 16px;
	margin-bottom: 8px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.npapw-mobile-panel__close {
	width: 40px;
	height: 40px;
	padding: 0;
	font-size: 1.8rem;
	line-height: 1;
	background: none;
	border: 0;
	color: var(--npapw-color-text);
	cursor: pointer;
}

.npapw-menu--mobile {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.npapw-menu--mobile li {
	width: 100%;
}

.npapw-menu--mobile a {
	display: block;
	padding: 14px 6px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.npapw-menu--mobile .sub-menu {
	position: static;
	display: block;
	box-shadow: none;
	padding-left: 14px;
}

body.npapw-menu-open {
	overflow: hidden;
}

.npapw-navbar-social,
.npapw-social {
	display: flex;
	align-items: center;
	gap: 14px;
}

.npapw-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--npapw-color-text);
	transition: color 0.2s ease;
}

.npapw-social__link:hover {
	color: var(--npapw-color-primary);
}

.npapw-social--panel {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media (max-width: 991px) {
	.npapw-header__inner {
		display: flex;
		justify-content: space-between;
	}

	.npapw-header__nav {
		display: none;
	}

	.npapw-header__right {
		display: none;
	}

	.npapw-header__brand {
		justify-self: auto;
		text-align: left;
	}

	.npapw-header__toggle {
		display: inline-flex;
	}
}
