/**
 * Inner pages header — compact floating bar, max 768px centered.
 */

.header-section--inner {
	--wr-inner-header-max: 768px;
	--wr-inner-header-bg: #f2f1f7;
	--wr-inner-header-border: rgba(149, 117, 248, 0.42);
	--wr-inner-header-text: #2b2542;
	--wr-inner-header-text-hover: #5e43fe;
	z-index: 777;
	position: absolute;
	width: 100%;
	padding: 0 16px;
	box-sizing: border-box;
}

.header-section--inner .header-inner-nav {
	background-color: transparent;
}

.header-section--inner .header-inner-container {
	width: 100%;
	max-width: var(--wr-inner-header-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 0;
	padding-right: 0;
}

.header-inner-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 58px;
	padding: 7px 10px 7px 16px;
	background-color: var(--wr-inner-header-bg);
	border: 1px solid var(--wr-inner-header-border);
	border-top: none;
	border-radius: 0 0 22px 22px;
	box-shadow: 0 10px 28px rgba(43, 37, 66, 0.07);
	box-sizing: border-box;
}

.header-inner-logo {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
}

.header-section--inner .header-inner-logo.nav-logo-link {
	margin-top: 0;
}

.header-inner-logo__img,
.header-inner-logo .nav-logo {
	width: auto;
	height: 36px;
	max-height: 38px;
	object-fit: contain;
	display: block;
}

.header-inner-nav-shell {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.header-inner-menu {
	position: static;
}

.header-inner-menu-panel {
	display: flex;
	align-items: center;
	justify-content: center;
}

.header-section--inner .nav-menu.wr-nav-menu-root {
	flex-flow: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	gap: 0;
}

.header-section--inner .nav-menu.wr-nav-menu-root > .nav-link,
.header-section--inner .nav-menu.wr-nav-menu-root > .nav-dropdown > .dropdown-head {
	color: var(--wr-inner-header-text);
	font-family: var(--text-small--font-family, Fustat, sans-serif);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: -0.02em;
	padding: 8px 11px;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.header-section--inner .nav-menu.wr-nav-menu-root > .nav-dropdown > .dropdown-head {
	width: auto;
	cursor: pointer;
}

.header-section--inner .nav-menu.wr-nav-menu-root > .nav-link:hover,
.header-section--inner .nav-menu.wr-nav-menu-root > .nav-dropdown > .dropdown-head:hover {
	color: var(--wr-inner-header-text-hover);
	background-color: transparent;
}

.header-section--inner .nav-menu.wr-nav-menu-root > .nav-link.w--current {
	color: var(--wr-inner-header-text-hover);
	font-weight: 600;
}

.header-section--inner .nav-dropdown {
	position: static;
}

.header-inner-actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

.header-inner-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 20px;
	background: linear-gradient(180deg, #1c1c1c 0%, #0a0a0a 55%, #000 100%);
	color: #fff;
	border-radius: 999px;
	text-decoration: none;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.14),
		0 2px 6px rgba(0, 0, 0, 0.18);
	transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-inner-cta:hover {
	background: linear-gradient(180deg, #2a2a2a 0%, #111 55%, #0a0a0a 100%);
	color: #fff;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.18),
		0 4px 12px rgba(0, 0, 0, 0.22);
}

.header-inner-cta__text {
	font-family: var(--text-small--font-family, Fustat, sans-serif);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

.header-section--inner .hamburger-trigger-wrap {
	display: none;
}

@media (min-width: 992px) {
	.header-inner-nav .nav-dropdown-menu-arcive {
		width: 100%;
		align-items: flex-start;
	}

	.header-inner-nav .nav-dropdown.megamenu .nav-dropdown-menu-arcive > .nav-dropdown-menu-inner {
		flex: 1 1 0;
		min-width: 0;
	}

	.header-inner-nav .nav-dropdown-menu-arcive > .nav-dropdown-vr {
		flex: 0 0 auto;
		align-self: stretch;
	}
}

@media screen and (max-width: 991px) {
	.header-section--inner {
		padding: 0 12px;
	}

	.header-inner-bar {
		min-height: 52px;
		padding: 6px 8px 6px 12px;
		border-radius: 0 0 16px 16px;
	}

	.header-inner-logo__img,
	.header-inner-logo .nav-logo {
		height: 32px;
		max-height: 34px;
	}

	.header-inner-nav-shell {
		position: static;
		flex: 0 0 auto;
	}

	.header-inner-menu {
		display: none;
	}

	.header-inner-menu.w--open,
	.header-inner-menu[data-nav-menu-open] {
		display: block;
		position: fixed;
		left: 50%;
		right: auto;
		width: min(calc(100vw - 24px), var(--wr-inner-header-max));
		max-width: var(--wr-inner-header-max);
		transform: translateX(-50%);
		top: 64px;
		z-index: 1000;
		max-height: calc(100vh - 88px);
		overflow: auto;
		background: var(--wr-inner-header-bg);
		border: 1px solid var(--wr-inner-header-border);
		border-radius: 16px;
		box-shadow: 0 16px 48px rgba(43, 37, 66, 0.16);
	}

	.header-inner-menu-panel {
		flex-flow: column;
		align-items: stretch;
		padding: 14px;
	}

	.header-section--inner .nav-menu.wr-nav-menu-root {
		flex-flow: column;
		align-items: stretch;
		width: 100%;
	}

	.header-section--inner .nav-menu.wr-nav-menu-root > .nav-link,
	.header-section--inner .nav-menu.wr-nav-menu-root > .nav-dropdown > .dropdown-head {
		width: 100%;
		justify-content: space-between;
		white-space: normal;
	}

	.header-inner-menu-cta {
		margin-top: 10px;
	}

	.header-inner-menu-cta .header-inner-cta {
		width: 100%;
	}

	.header-inner-actions > .header-inner-cta {
		display: none;
	}

	.header-section--inner .hamburger-trigger-wrap {
		display: flex;
		align-items: center;
		flex-shrink: 0;
		min-width: 40px;
	}

	.header-inner-nav .hamburger-trigger.w-nav-button {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px;
		height: 40px;
		padding: 0;
		visibility: hidden;
		pointer-events: none;
	}

	.header-inner-nav .hamburger-remix-icon {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		font-size: 22px;
		line-height: 1;
		color: var(--wr-inner-header-text);
	}

	.header-inner-nav .hamburger-remix-icon > i.hamburger-remix-icon__menu {
		display: flex;
		align-items: center;
		justify-content: center;
		font-style: normal;
	}

	.header-inner-nav .hamburger-remix-icon > i.hamburger-remix-icon__close {
		display: none;
		position: absolute;
		inset: 0;
		align-items: center;
		justify-content: center;
		font-style: normal;
	}

	.header-inner-nav .hamburger-trigger.w--open .hamburger-remix-icon > i.hamburger-remix-icon__menu {
		display: none;
	}

	.header-inner-nav .hamburger-trigger.w--open .hamburger-remix-icon > i.hamburger-remix-icon__close {
		display: flex;
	}
}

@media screen and (max-width: 767px) {
	.header-section--inner .nav-menu.wr-nav-menu-root > .nav-link,
	.header-section--inner .nav-menu.wr-nav-menu-root > .nav-dropdown > .dropdown-head {
		font-size: 14px;
		padding: 8px 10px;
	}
}
