.pw-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	border-bottom: 1px solid rgba(75, 9, 131, 0.16);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 2px 12px rgba(31, 35, 48, 0.06);
	backdrop-filter: blur(16px);
}

.pw-site-header.is-scrolled {
	box-shadow: 0 10px 28px rgba(31, 35, 48, 0.12);
}

.pw-topbar {
	border-bottom: 1px solid var(--pw-purple-100);
}

.pw-topbar__inner {
	display: flex;
	min-height: 54px;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.pw-brand {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	gap: 0.65rem;
	color: var(--pw-ink);
	font-size: 1.2rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	text-decoration: none;
}

.pw-brand:hover {
	color: var(--pw-ink);
}

.pw-brand__mark {
	width: 34px;
	height: 34px;
}

.pw-brand__name span {
	color: var(--pw-purple);
}

.pw-brand__custom-logo,
.pw-brand__custom-logo .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.pw-brand__custom-logo .custom-logo {
	width: auto;
	max-width: 190px;
	height: 34px;
	object-fit: contain;
}

.pw-header-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.pw-header-actions__login {
	color: var(--pw-purple);
	font-size: 0.8rem;
	font-weight: 750;
	text-decoration: none;
	text-transform: uppercase;
}

.pw-header-actions__divider {
	width: 1px;
	height: 20px;
	background: var(--pw-purple-100);
}

.pw-navigation-row .pw-container {
	position: relative;
}

.pw-primary-navigation {
	display: flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
}

.pw-menu {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pw-menu__item {
	position: relative;
	margin: 0;
	list-style: none;
}

.pw-menu__link {
	position: relative;
	display: flex;
	min-height: 50px;
	align-items: center;
	padding: 0 1rem;
	color: var(--pw-purple);
	font-size: 0.81rem;
	font-weight: 680;
	text-decoration: none;
}

.pw-menu__link::after {
	position: absolute;
	right: 1rem;
	bottom: 0;
	left: 1rem;
	height: 3px;
	background: var(--pw-purple);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--pw-transition);
}

.pw-menu__item:hover > .pw-menu__link::after,
.pw-menu__item:focus-within > .pw-menu__link::after,
.pw-menu__item.is-current > .pw-menu__link::after {
	transform: scaleX(1);
}

.pw-menu__item--has-children > .pw-menu__link {
	padding-right: 2rem;
}

.pw-menu__item--has-children > .pw-menu__link::before {
	position: absolute;
	top: 50%;
	right: 0.85rem;
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	transform: translateY(-70%) rotate(45deg);
	transition: transform var(--pw-transition);
}

.pw-menu__item--has-children:hover > .pw-menu__link::before,
.pw-menu__item--has-children:focus-within > .pw-menu__link::before {
	transform: translateY(-30%) rotate(225deg);
}

.pw-mega-menu {
	position: absolute;
	top: calc(100% - 1px);
	left: 50%;
	z-index: 20;
	display: grid;
	width: min(470px, calc(100vw - 40px));
	grid-template-columns: 1fr;
	gap: 0.35rem;
	margin: 0;
	padding: 0.75rem;
	border: 1px solid var(--pw-line);
	border-radius: 0 0 var(--pw-radius-md) var(--pw-radius-md);
	background: #fff;
	box-shadow: var(--pw-shadow-md);
	list-style: none;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 12px);
	transition: opacity var(--pw-transition), transform var(--pw-transition);
}

.pw-menu__item--wide > .pw-mega-menu {
	width: min(760px, calc(100vw - 40px));
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pw-menu__item--align-right > .pw-mega-menu {
	right: 0;
	left: auto;
	transform: translateY(12px);
}

.pw-menu__item:hover > .pw-mega-menu,
.pw-menu__item:focus-within > .pw-mega-menu {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.pw-menu__item--align-right:hover > .pw-mega-menu,
.pw-menu__item--align-right:focus-within > .pw-mega-menu {
	transform: translateY(0);
}

.pw-mega-menu__item {
	min-width: 0;
	margin: 0;
	list-style: none;
}

.pw-mega-menu__link {
	display: grid;
	min-height: 88px;
	grid-template-columns: 42px minmax(0, 1fr);
	gap: 0.85rem;
	align-items: start;
	padding: 0.85rem;
	border: 1px solid transparent;
	border-radius: var(--pw-radius-sm);
	color: var(--pw-ink-soft);
	text-decoration: none;
	transition: border-color var(--pw-transition), background var(--pw-transition), transform var(--pw-transition);
}

.pw-mega-menu__link:hover,
.pw-mega-menu__link:focus-visible,
.pw-mega-menu__item.current-menu-item > .pw-mega-menu__link {
	transform: translateY(-1px);
	border-color: var(--pw-purple-100);
	background: var(--pw-purple-50);
	color: var(--pw-purple);
}

.pw-mega-menu__icon {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 10px;
	background: var(--pw-purple-50);
	color: var(--pw-purple);
}

.pw-mega-menu__icon svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.pw-mega-menu__copy {
	display: block;
	min-width: 0;
}

.pw-mega-menu__copy strong {
	display: block;
	margin-bottom: 0.2rem;
	color: var(--pw-ink);
	font-size: 0.88rem;
	line-height: 1.35;
}

.pw-mega-menu__copy small {
	display: block;
	color: var(--pw-muted);
	font-size: 0.74rem;
	line-height: 1.45;
}

.pw-menu-toggle,
.pw-navigation__mobile-head,
.pw-navigation__mobile-actions,
.pw-submenu-toggle {
	display: none;
}

.pw-navigation-overlay {
	position: fixed;
	inset: 0;
	z-index: 990;
	background: rgba(20, 12, 26, 0.58);
	backdrop-filter: blur(3px);
}

.pw-site-footer {
	margin-top: clamp(4rem, 8vw, 7rem);
	padding-top: 3rem;
	background: var(--pw-purple);
	color: #fff;
}

.pw-footer-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.5rem, 4vw, 4rem);
}

.pw-footer-column h2 {
	position: relative;
	margin-bottom: 1.5rem;
	padding-bottom: 0.8rem;
	color: #fff;
	font-size: 1.05rem;
	letter-spacing: 0;
}

.pw-footer-column h2::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 48px;
	height: 2px;
	background: #fff;
	content: "";
}

.pw-footer-column ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pw-footer-column li {
	margin-bottom: 0.62rem;
}

.pw-footer-column a {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.87rem;
	font-weight: 550;
	text-decoration: none;
	transition: color var(--pw-transition), transform var(--pw-transition);
}

.pw-footer-column a:hover {
	display: inline-block;
	transform: translateX(4px);
	color: #fff;
}

.pw-footer-social {
	display: flex;
	justify-content: flex-end;
	gap: 0.65rem;
	margin-top: 2.5rem;
	padding-bottom: 1.4rem;
}

.pw-footer-social a {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.26);
	border-radius: var(--pw-radius-xs);
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 800;
	text-decoration: none;
}

.pw-footer-social a:hover {
	border-color: #fff;
	background: #fff;
	color: var(--pw-purple);
}

.pw-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	padding: 1.2rem 0 2.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.pw-brand--footer,
.pw-brand--footer:hover {
	color: #fff;
}

.pw-brand--footer .pw-brand__name span {
	color: #fff;
}

.pw-brand--footer .pw-brand__mark {
	filter: brightness(0) invert(1);
}

.pw-footer-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.8rem;
}

.pw-footer-legal nav {
	display: flex;
	gap: 0.8rem;
}

.pw-footer-legal a {
	color: #fff;
	text-decoration: none;
}

body.admin-bar .pw-site-header {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .pw-site-header {
		top: 46px;
	}
}
