/* Full-width header shell */
.nx-header-shell {
    width: 100%;
    overflow: visible;
    position: relative;
    z-index: 1000;
}

.nx-header-shell,
.nx-header-shell * {
    box-sizing: border-box;
}

/* CSS chevrons (no Font Awesome) */
.nx-chev {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #8a8a8a;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-top-color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-nav > li:hover > a .nx-chev {
    transform: rotate(180deg);
    border-top-color: #ff4e00;
}

.nx-mob-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: auto;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #8a8a8a;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-user-initial {
    font-family: "Oswald", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.nx-drop:not(.nx-drop--kb) {
    max-height: min(70vh, 480px);
    overflow-y: auto;
}

/* Шапка home/top: сброс старых правил .wapper .header (высота 70px, фон) */
.wapper .header.nx-home-header-reset {
	position: relative;
	background: transparent !important;
	border-bottom: none !important;
	height: auto !important;
	min-height: 0 !important;
}

@media (min-width: 992px) {
	.wapper .header.nx-home-header-reset,
	.wapper .header.nx-home-header-reset .collapsible-menu {
		height: auto !important;
		background: transparent !important;
		border-bottom: none !important;
		overflow: visible !important;
		float: none !important;
		width: 100% !important;
	}
}

.nx-header,
.nx-header *,
.nx-mobile,
.nx-mobile *,
.nx-overlay {
	box-sizing: border-box;
}

.nx-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	width: 100%;
	height: 60px;
	background: #1a1c22 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
	transition: box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: visible !important;
}

.nx-header.scrolled {
	background: rgba(26, 28, 34, 0.98) !important;
	box-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.nx-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
	height: 100%;
	display: flex;
	align-items: center;
	gap: 0;
	overflow: visible !important;
}

.nx-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	flex-shrink: 0;
	margin-right: 32px;
}

.nx-logo img {
	height: 36px;
	display: block;
}

.nx-logo-text {
	font-family: "Oswald", sans-serif;
	font-weight: 600;
	font-size: 20px;
	color: #ffffff;
	letter-spacing: 0.5px;
}

.nx-logo-text span {
	color: #ff4e00;
}

.nx-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	flex: 1;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow: visible;
}

.nx-nav > li {
	position: relative;
}

.nx-nav > li.nx-nav-has-drop::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 14px;
	z-index: 9998;
}

.nx-nav > li > a {
	display: flex !important;
	align-items: center !important;
	gap: 7px !important;
	padding: 0 14px !important;
	height: 60px !important;
	color: #e8e8e8 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: 0.3px !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
	position: relative !important;
	background: transparent !important;
}

.nx-nav > li > a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 14px;
	right: 14px;
	height: 2px;
	background: rgba(255, 78, 0, 0.5);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 2px 2px 0 0;
}

.nx-nav > li > a:hover {
	color: #ffffff !important;
}

.nx-nav > li > a:hover::after,
.nx-nav > li.active > a::after {
	transform: scaleX(1);
}

.nx-nav > li.active > a {
	color: #ffffff !important;
}

.nx-nav > li > a img {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex-shrink: 0;
	opacity: 0.85;
	transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-nav > li > a:hover img {
	opacity: 1;
}

.nx-nav > li > a .nx-chev {
    font-size: 10px;
    color: #8a8a8a;
    margin-left: 2px;
}

.nx-nav > li:hover > a .nx-chev {
    transform: rotate(180deg);
    color: #ff4e00;
}

.nx-drop {
	position: absolute !important;
	top: calc(100% + 1px) !important;
	left: 0 !important;
	min-width: 220px !important;
	background: #16181d !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	border-top: 2px solid #ff4e00 !important;
	border-radius: 0 0 8px 8px !important;
	padding: 6px 0 !important;
	list-style: none !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55) !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
	z-index: 9999 !important;
	margin: 0;
}

.nx-nav > li:hover .nx-drop {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
	pointer-events: auto;
}

.nx-nav > li.nx-nav-has-drop:hover .nx-drop,
.nx-nav > li.nx-nav-has-drop:focus-within .nx-drop {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
	pointer-events: auto;
}

.nx-drop li {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
	list-style: none !important;
}

.nx-drop li a {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px 18px !important;
	color: #c8c8c8 !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	background: transparent !important;
	border: none !important;
	transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s cubic-bezier(0.4, 0, 0.2, 1), padding-left 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-drop li a::before {
	content: "";
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #8a8a8a;
	flex-shrink: 0;
	transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-drop li a:hover {
	color: #ffffff !important;
	background: #2a2d38 !important;
	padding-left: 22px !important;
}

.nx-drop li a:hover::before {
	background: #ff4e00;
	transform: scale(1.5);
}

.nx-nav > li.nx-nav-has-drop--kb .nx-drop.nx-drop--kb,
.nx-drop--kb {
	min-width: 260px !important;
	max-height: none !important;
	height: auto !important;
	overflow: visible !important;
	overflow-y: visible !important;
	overflow-x: visible !important;
	padding: 6px 0 8px !important;
	background: #10131a !important;
	border: 1px solid #252b38 !important;
	border-top: 2px solid #e44c01 !important;
	border-radius: 0 0 12px 12px !important;
	box-shadow: 0 14px 40px rgba(0, 0, 0, .6) !important;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.nx-nav > li.nx-nav-has-drop--kb .nx-drop.nx-drop--kb::-webkit-scrollbar,
.nx-drop--kb::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.nx-drop-kb-section {
	padding: 8px 16px 4px !important;
	font-family: 'Exo 2', sans-serif !important;
	font-size: 9px !important;
	font-weight: 900 !important;
	color: #3b4354 !important;
	text-transform: uppercase !important;
	letter-spacing: .6px !important;
	list-style: none !important;
	background: transparent !important;
	border: none !important;
	margin-top: 4px !important;
	line-height: 1.2 !important;
}

.nx-drop-kb-section:first-child {
	margin-top: 0 !important;
}

.nx-drop-kb-div {
	height: 1px !important;
	background: #1e2330 !important;
	margin: 4px 12px !important;
	list-style: none !important;
	padding: 0 !important;
}

.nx-drop--kb > li > a {
	padding: 9px 16px !important;
	color: #9aa4b2 !important;
	font-family: 'Manrope', sans-serif !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	white-space: nowrap !important;
}

.nx-drop--kb > li > a::before {
	background: #3b4354 !important;
}

.nx-drop--kb > li > a:hover {
	color: #f4f6fb !important;
	background: #171b24 !important;
	padding-left: 20px !important;
}

.nx-drop--kb > li > a:hover::before {
	background: #e44c01 !important;
	transform: scale(1.5);
}

.nx-nav-has-drop--kb {
	position: relative;
}

.nx-mob-sub-sect {
	padding: 10px 16px 4px;
	font-family: 'Exo 2', sans-serif;
	font-size: 9px;
	font-weight: 900;
	color: #3b4354;
	text-transform: uppercase;
	letter-spacing: .6px;
	list-style: none;
}

.nx-right {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	flex-shrink: 0;
}

.nx-user-wrap {
	position: relative;
}

/* «Мост» между кнопкой и выпадашкой: без него курсор на мгновение не на .nx-user-wrap — :hover срывается */
.nx-user-wrap::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 16px;
	z-index: 10001;
}

.nx-user-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #2a2d38;
	border: 1px solid rgba(255, 255, 255, 0.07);
	color: #e8e8e8;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

button.nx-user-btn {
	padding: 0;
	font: inherit;
	appearance: none;
	-webkit-appearance: none;
}

.nx-user-wrap.open > .nx-user-btn {
	background: #ff4e00;
	border-color: #ff4e00;
	color: #ffffff;
}

.nx-user-btn.nx-user-btn--avatar {
	padding: 0;
	overflow: hidden;
}

.nx-user-btn.nx-user-btn--avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nx-user-btn:hover {
	background: #ff4e00;
	border-color: #ff4e00;
	color: #ffffff;
}

.nx-user-drop {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	width: 240px;
	background: #16181d;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-top: 2px solid #ff4e00;
	border-radius: 0 0 8px 8px;
	padding: 0;
	list-style: none;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	pointer-events: none;
	overflow: hidden;
	margin: 0;
	z-index: 10002;
}

.nx-user-wrap:hover .nx-user-drop,
.nx-user-wrap.open .nx-user-drop {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

.nx-user-avatar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #2a2d38;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	text-decoration: none;
}

.nx-user-avatar img {
	width: 44px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	border: 2px solid #ff4e00;
	flex-shrink: 0;
}

.nx-user-name {
	font-family: "Oswald", sans-serif;
	font-size: 14px;
	color: #8a8a8a;
	font-weight: 500;
}

.nx-user-role {
	font-size: 11px;
	color: #8a8a8a;
	margin-top: 2px;
}

.nx-user-drop li a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 16px;
	color: #c8c8c8;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-user-drop li:last-child a {
	border-bottom: none;
}

.nx-user-drop li a i {
	width: 16px;
	text-align: center;
	color: #8a8a8a;
	font-size: 13px;
	transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-user-drop li a:hover {
	color: #ffffff;
	background: #2a2d38;
}

.nx-user-drop li a:hover i {
	color: #ff4e00;
}

.nx-user-drop li a.nx-logout {
	color: #e57373;
}

.nx-user-drop li a.nx-logout:hover {
	background: rgba(197, 57, 52, 0.15);
	color: #ef9a9a;
}

.nx-user-drop li a.nx-logout i {
	color: #e57373;
}

.nx-burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	cursor: pointer;
	border-radius: 8px;
	background: #2a2d38;
	border: 1px solid rgba(255, 255, 255, 0.07);
	flex-shrink: 0;
	transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-burger:hover {
	background: #16181d;
}

.nx-burger span {
	display: block;
	width: 20px;
	height: 2px;
	background: #e8e8e8;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
	transform-origin: center;
}

.nx-burger.is-open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.nx-burger.is-open span:nth-child(2) {
	opacity: 0;
	width: 0;
}

.nx-burger.is-open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.nx-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
	z-index: 998;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.nx-overlay.visible {
	display: block;
	opacity: 1;
	pointer-events: auto;
}

.nx-mobile {
	position: fixed;
	top: 0;
	right: 0;
	width: 300px;
	height: 100dvh;
	background: #16181d;
	border-left: 1px solid rgba(255, 255, 255, 0.07);
	z-index: 999;
	overflow-y: auto;
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	pointer-events: none;
	visibility: hidden;
}

.nx-mobile.is-open {
	transform: translateX(0);
	pointer-events: auto;
	visibility: visible;
}

.nx-mob-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	height: 60px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	flex-shrink: 0;
}

.nx-mob-logo {
	font-family: "Oswald", sans-serif;
	font-size: 18px;
	color: #ffffff;
	text-decoration: none;
}

.nx-mob-logo span {
	color: #ff4e00;
}

.nx-mob-close {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8a8a8a;
	font-size: 20px;
	cursor: pointer;
	border-radius: 6px;
	transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	background: none;
	border: none;
}

.nx-mob-close:hover {
	color: #ffffff;
	background: #2a2d38;
}

.nx-mob-nav {
	flex: 1;
	padding: 8px 0;
}

.nx-mob-nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nx-mob-item > a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 20px;
	color: #e8e8e8;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	cursor: pointer;
}

.nx-mob-item > a img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
	opacity: 0.8;
}

.nx-mob-item > a .nx-mob-arrow {
	margin-left: auto;
	font-size: 11px;
	color: #8a8a8a;
	transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-mob-item.open > a .nx-mob-arrow {
	transform: rotate(90deg);
}

.nx-mob-item > a:hover {
	color: #ffffff;
	background: #2a2d38;
}

.nx-mob-sub {
	list-style: none;
	display: none;
	background: #1a1c22;
	margin: 0;
	padding: 0;
}

.nx-mob-item.open .nx-mob-sub {
	display: block;
}

.nx-mob-sub li a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px 11px 36px;
	color: #aaa;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	transition: color 0.22s cubic-bezier(0.4, 0, 0.2, 1), background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-mob-sub li a::before {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: #8a8a8a;
	flex-shrink: 0;
	transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-mob-sub li a:hover {
	color: #ffffff;
	background: #2a2d38;
}

.nx-mob-sub li a:hover::before {
	background: #ff4e00;
}

.nx-mob-footer {
	padding: 16px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.07);
	flex-shrink: 0;
}

.nx-mob-login-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px;
	background: #ff4e00;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-decoration: none;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: background 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-mob-login-btn:hover {
	background: #ff6a1f;
}

@media (max-width: 1100px) {
	.nx-nav > li > a {
		padding: 0 10px !important;
		font-size: 12px !important;
	}

	.nx-logo {
		margin-right: 20px;
	}
}

@media (max-width: 900px) {
	.nx-nav,
	.nx-nav-desktop {
		display: none !important;
	}

	.nx-burger {
		display: flex;
	}
}

@media (max-width: 480px) {
	.nx-logo-text {
		display: none;
	}

	.nx-inner {
		padding: 0 16px;
	}

	.nx-mobile {
		width: 280px;
	}
}

/* Если движок всё ещё подставляет старый user-menu внутрь .header вместе с nx */
.wapper .header.nx-home-header-reset ul.collapsible-menu.user-menu {
	display: none !important;
}
