/* ================================================================
   INZL HEADER — CSS
   ================================================================

   НАСТРОЙКИ:
   --inzl-navbar-padding-y : высота хедера
   --inzl-navbar-mb        : отступ под хедером
   --inzl-max-width        : ширина внутреннего блока
   ================================================================ */

:root {
	--inzl-navbar-padding-y : 16px;
	--inzl-navbar-mb        : 0;
	--inzl-max-width        : 1300px;
	--inzl-accent           : #83bbff;
	--inzl-accent-hover     : #5a9de8;
}


/* ================================================================
   ДЕСКТОП (>= 769px)
   ================================================================ */

.inzl-navbar {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--inzl-navbar-padding-y) 0;
	background: #ffffff;
	box-shadow: 0 1px 6px rgba(131, 187, 255, 0.08);
	position: sticky;
	top: 0;
	z-index: 1000;
	margin-bottom: var(--inzl-navbar-mb);
	transition: background 0.3s ease, box-shadow 0.3s ease;
}

.inzl-navbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--inzl-max-width);
	width: 100%;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

/* --- Логотип --- */
.inzl-nav-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
	line-height: 0;
	flex-shrink: 0;
}

.inzl-nav-logo img,
.inzl-nav-logo .custom-logo {
	max-height: 30px;
	width: auto;
	display: block;
	transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
	            opacity  0.3s ease;
}

.inzl-nav-logo:hover img,
.inzl-nav-logo:hover .custom-logo {
	transform: scale(1.06) rotate(-2deg);
	opacity: 0.8;
}

/* --- Навигация --- */
.inzl-nav-center {
	display: flex;
	align-items: center;
	gap: 24px;
}


.inzl-nav-link {
	text-decoration: none;
	    color: #868a9a;

	font-weight: 500;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transition: color 0.2s ease;
	white-space: nowrap;
}

.inzl-nav-link:hover,
.inzl-nav-link--active {
	color: var(--inzl-accent-hover);
}

/* --- Кнопки-иконки --- */
.inzl-icon-btn {
	background: #eef4ff;
	border: none;
	border-radius: 12px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #83bbff;
	transition: background 0.2s ease;
	flex-shrink: 0;
}

.inzl-icon-btn svg {
	width: 20px;
	height: 20px;
}

.inzl-icon-btn:hover {
	background: #ddeeff;
}

/* --- Правая группа --- */
.inzl-nav-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* --- Иконки темы --- */
.inzl-theme-btn .inzl-icon-sun  { display: none; }
.inzl-theme-btn .inzl-icon-moon { display: block; }

/* --- Мобильный скрыт на десктопе --- */
.inzl-mobile-header { display: none; }


/* ================================================================
   ТЁМНАЯ ТЕМА — Десктоп
   ================================================================ */

html.dark .inzl-navbar {
	background: #0f1117;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

html.dark .inzl-nav-link {
	color: var(--inzl-accent);
}

html.dark .inzl-nav-link:hover,
html.dark .inzl-nav-link--active {
	color: #ffffff;
}

html.dark .inzl-icon-btn {
	background: #1e2240;
	color: #83bbff;
}

html.dark .inzl-icon-btn:hover {
	background: #263060;
}

html.dark .inzl-theme-btn .inzl-icon-sun  { display: block; }
html.dark .inzl-theme-btn .inzl-icon-moon { display: none; }


/* ================================================================
   МОБИЛЬНЫЙ ХЕДЕР (<= 768px)
   ================================================================ */

@media (max-width: 768px) {

	.inzl-navbar { display: none; }

	.inzl-mobile-header {
		display: block;
		position: sticky;
		top: 0;
		background: #ffffff;
		z-index: 1000;
		border-bottom: 1px solid #ddeeff;
		transition: background 0.3s ease;
	}

	.inzl-header-container {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 20px;
		height: 64px;
		box-sizing: border-box;
	}

	/* Логотип */
	.inzl-mobile-logo {
		display: flex;
		align-items: center;
		text-decoration: none;
		line-height: 0;
	}

	.inzl-mobile-logo img,
	.inzl-mobile-logo .custom-logo {
		max-height: 22px;
		width: auto;
		display: block;
		transition: opacity 0.3s ease;
	}

	.inzl-mobile-logo:hover img,
	.inzl-mobile-logo:hover .custom-logo {
		opacity: 0.75;
	}

	/* Кнопки справа */
	.inzl-header-actions {
		display: flex;
		align-items: center;
		gap: 4px;
	}

	.inzl-mobile-header .inzl-icon-btn {
		background: none;
		width: 40px;
		height: 40px;
		border-radius: 10px;
		color: #83bbff;
	}

	.inzl-mobile-header .inzl-icon-btn svg {
		width: 24px;
		height: 24px;
	}

	/* --- Бургер → крестик --- */
	.inzl-burger-icon {
		width: 22px;
		height: 16px;
		position: relative;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.inzl-burger-icon span {
		display: block;
		height: 2px;
		width: 100%;
		background: currentColor;
		border-radius: 2px;
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
		            opacity  0.3s cubic-bezier(0.4, 0, 0.2, 1);
		transform-origin: center;
	}

	.inzl-burger-btn.is-active .inzl-burger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.inzl-burger-btn.is-active .inzl-burger-icon span:nth-child(2) { opacity: 0; transform: scaleX(0); }
	.inzl-burger-btn.is-active .inzl-burger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	/* --- Панель меню --- */
	.inzl-mobile-nav {
		position: fixed;
		top: 64px;
		left: 0;
		width: 100%;
		height: calc(100dvh - 64px);
		background: #ffffff;
		padding: 28px 24px 40px;
		display: flex;
		flex-direction: column;
		transform: translateX(100%);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		box-sizing: border-box;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.inzl-mobile-nav.is-open { transform: translateX(0); }

	/* --- Список --- */
	.inzl-nav-list {
		list-style: none;
		padding: 0;
		margin: 0;
	}

	.inzl-nav-list > li { margin-bottom: 20px; }

	.inzl-nav-list a {
		text-decoration: none;
		color: var(--inzl-accent);
		font-size: 20px;
		font-weight: 500;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		transition: color 0.2s ease;
	}

	.inzl-nav-list a:hover { color: var(--inzl-accent-hover); }

	/* --- Аккордеон --- */
	.inzl-dropdown-trigger {
		display: flex;
		justify-content: space-between;
		align-items: center;
		cursor: pointer;
	}

	.inzl-chevron {
		display: block;
		width: 10px;
		height: 10px;
		border-right: 2px solid var(--inzl-accent);
		border-bottom: 2px solid var(--inzl-accent);
		transform: rotate(45deg);
		transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
		margin-right: 6px;
		flex-shrink: 0;
	}

	.inzl-submenu {
		list-style: none;
		padding-left: 16px;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease-out;
	}

	.inzl-submenu li { margin-top: 14px; }

	.inzl-submenu a {
		font-size: 15px !important;
		font-weight: 400 !important;
		opacity: 0.6;
	}

	.inzl-has-dropdown.is-active .inzl-submenu {
		max-height: 500px;
		margin-top: 10px;
	}

	.inzl-has-dropdown.is-active .inzl-chevron { transform: rotate(-135deg); }

	/* --- Кнопка CTA --- */
}


/* ================================================================
   ТЁМНАЯ ТЕМА — Мобильный
   ================================================================ */

@media (max-width: 768px) {

	html.dark .inzl-mobile-header {
		background: #0f1117;
		border-bottom-color: #1e2240;
	}

	html.dark .inzl-mobile-header .inzl-icon-btn {
		color: #83bbff;
	}

	html.dark .inzl-mobile-nav {
		background: #0f1117;
	}

	html.dark .inzl-nav-list a {
		color: var(--inzl-accent);
	}

	html.dark .inzl-nav-list a:hover {
		color: #ffffff;
	}

	html.dark .inzl-chevron {
		border-color: #83bbff;
	}
}

