/* ===== ОСНОВА ХЕДЕРА ===== */
.header-modern {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height-desktop);
	background-color: var(--color-white);
	box-shadow: var(--shadow-card);
	z-index: var(--z-fixed);
	transition: all var(--duration-standard) var(--ease-out);
}

.contact-item {
	position: relative;
	margin-bottom: 0;
	width: 100%;
}


.mobile-nav>ul>li.active>a,
.mobile-nav>ul>li>a:hover {
	color: var(--color-orange-primary);
}

.mobile-nav>ul>li>a i {
	transition: transform var(--duration-standard) var(--ease-out);
}

.mobile-nav>ul>li.active>a i {
	transform: rotate(180deg);
}

.mobile-nav a[aria-expanded="true"] {
	color: var(--color-orange-primary);
}

.mobile-nav a[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Улучшенное мобильное подменю */
.mobile-submenu {
	display: none;
	list-style: none;
	padding: 0 0 10px 15px;
	margin: 0;
	border-left: 2px solid var(--color-orange-primary);
	background: var(--color-orange-ultra-light);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.has-dropdown.active .mobile-submenu {
	display: block;
	animation: fadeInDown var(--duration-standard) var(--ease-out);
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mobile-submenu li {
	margin-bottom: 8px;
}

.mobile-submenu li a {
	display: flex;
	align-items: center;
	padding: 6px 8px;
	color: var(--color-gray);
	font-size: 14px;
	text-decoration: none;
	transition: all var(--duration-standard) var(--ease-out);
	border-radius: var(--radius-sm);
}

.mobile-submenu li a:hover {
	color: var(--color-orange-primary);
	background-color: var(--color-white);
	transform: translateX(5px);
}

.mobile-submenu li a i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	margin-right: 10px;
	color: var(--color-white);
	background: var(--gradient-orange);
	border-radius: var(--radius-sm);
	font-size: 12px;
	transition: all var(--duration-standard) var(--ease-in-out);
}

.mobile-submenu li a:hover i {
	transform: scale(1.1);
	box-shadow: 0 3px 6px rgba(var(--color-orange-primary-rgb), 0.2);
}

/* Стильная секция контактов в мобильном меню */
.mobile-contacts {
	margin-bottom: 20px;
	padding: 15px;
	background-color: var(--color-lighter-gray-alt);
	border-radius: var(--radius-md);
	border-left: 3px solid var(--color-orange-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-contact-item {
	display: flex;
	align-items: center;
	margin-bottom: clamp(0.5rem, 3vh, 0.75rem);
}

.mobile-contact-item:last-child {
	margin-bottom: 0;
}

.mobile-contact-item i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(2rem, 10vw, 2.5rem);
	height: clamp(2rem, 10vw, 2.5rem);
	margin-right: clamp(0.5rem, 3vw, 0.75rem);
	color: var(--color-white);
	background: var(--gradient-orange);
	border-radius: 50%;
	box-shadow:
		0 calc(2px * var(--shadow-multiplier)) calc(5px * var(--shadow-multiplier)) rgba(var(--color-orange-primary-rgb), 0.2);
	aspect-ratio: 1/1;
	flex-shrink: 0;
}

.mobile-contact-item a,
.mobile-contact-item address {
	color: var(--color-dark-gray);
	font-size: clamp(0.875rem, 4vw, 1rem);
	text-decoration: none;
	font-style: normal;
	transition:
		color var(--duration-standard) var(--ease-out),
		transform 0.2s ease;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mobile-contact-item a:active,
.mobile-contact-item address:active {
	transform: scale(0.98);
}

.mobile-contact-item a:hover {
	color: var(--color-orange-primary);
}

/* Кнопки в мобильном меню */
.mobile-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mobile-actions .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	height: 44px;
	font-size: 14px;
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	border-radius: var(--radius-md);
	transition: all var(--duration-standard) var(--ease-in-out);
	text-decoration: none;
	position: relative;
	overflow: hidden;
}

.mobile-actions .btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 300%;
	height: 300%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
	transition: transform var(--duration-slow) cubic-bezier(0.19, 1, 0.22, 1),
		opacity var(--duration-slow) cubic-bezier(0.19, 1, 0.22, 1);
	z-index: 0;
}

.mobile-actions .btn:hover::before {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

.mobile-actions .btn span,
.mobile-actions .btn i {
	position: relative;
	z-index: 1;
}

.mobile-actions .btn i {
	margin-right: 8px;
	font-size: 16px;
	transition: transform var(--duration-quick) var(--ease-out);
}

.mobile-actions .btn-primary {
	background: var(--gradient-orange);
	color: var(--color-white);
	box-shadow: var(--shadow-button);
}

.mobile-actions .btn-primary:hover {
	box-shadow: var(--shadow-button-hover);
}

.mobile-actions .btn-outline {
	background: transparent;
	color: var(--color-orange-primary);
	box-shadow: inset 0 0 0 1.5px var(--color-orange-primary);
}

.mobile-actions .btn-outline:hover {
	background-color: var(--color-orange-ultra-light);
	transform: translateY(-2px);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
	.header-wrapper {
		padding: 0 var(--header-padding-small-x);
	}

	.main-menu>li>a {
		padding: 0 calc(var(--nav-padding-x) * 0.8);
		font-size: calc(var(--nav-font-size) * 0.95);
	}

	.header-actions .btn {
		padding: 0 calc(var(--btn-padding-x) * 0.8);
		font-size: calc(var(--btn-font-size) * 0.95);
	}


}

@media (max-width: 992px) {
	.header-modern {
		height: var(--header-height-tablet);
	}

	.header-modern.scrolled {
		height: calc(var(--header-height-tablet) * 0.9);
	}

	.logo-link img {
		height: calc(var(--header-height-tablet) * 0.5);
		max-height: 35px;
	}

	.scrolled .logo-link img {
		height: calc(var(--header-height-tablet) * 0.45);
		max-height: 32px;
	}

	.main-menu>li>a {
		padding: 0 calc(var(--nav-padding-x) * 0.7);
		font-size: calc(var(--nav-font-size) * 0.9);
	}

	@media (max-width: 1050px) {
		.contact-item [class*="fa-"] {
			font-size: 1em !important;
		}
	}

	.header-actions.vertical {
		gap: 6px;
	}

	.header-actions .btn {
		height: calc(var(--btn-height) * 0.85);
		padding: 0 calc(var(--btn-padding-x) * 0.7);
		font-size: calc(var(--btn-font-size) * 0.9);
	}
}

@media (max-width: 1050px) {
	.header-modern {
		height: var(--header-height-mobile);
	}

	.header-modern.scrolled {
		height: var(--header-height-mobile);
	}

	.header-wrapper {
		padding: 0 var(--header-padding-mobile-x);
	}

	.logo-link img,
	.scrolled .logo-link img {
		height: calc(var(--header-height-mobile) * 0.6);
		max-height: 30px;
	}

	.desktop-nav {
		display: none;
	}


	.header-actions.vertical {
		flex-direction: row;
		gap: 8px;
	}

	.mobile-menu-toggle {
		display: flex;
	}

	.header-actions .btn {
		width: 40px;
		height: 40px;
		padding: 0;
		justify-content: center;
		border-radius: var(--radius-md);
	}

	.header-actions .btn span {
		display: none;
	}

	.header-actions .btn i {
		margin-right: 0;
		font-size: 16px;
	}
}

@media (max-width: 576px) {
	.header-wrapper {
		padding: 0 10px;
	}

	.logo-link img,
	.scrolled .logo-link img {
		height: calc(var(--header-height-mobile) * 0.55);
		max-height: 26px;
	}

	/* Оставляем только одну кнопку на мобильных устройствах */
	.header-actions .btn-primary {
		display: none;
	}

	.mobile-menu {
		width: 100%;
		max-width: 100%;
		border-radius: 0;
	}
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ АНИМАЦИИ И ЭФФЕКТЫ ===== */

/* Плавное появление хедера при загрузке страницы */
@keyframes headerFadeIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.header-modern {
	animation: headerFadeIn 0.6s var(--ease-out) forwards;
}



/* Промежуточный размер перед мобильным - последняя попытка сохранить контакты */
@media (max-width: 830px) and (min-width: 769px) {
	.main-menu>li>a {
		padding: 0 calc(var(--nav-padding-x) * 0.6);
		/* Уменьшаем отступы в меню */
		font-size: calc(var(--nav-font-size) * 0.85);
		/* Уменьшаем шрифт в меню */
	}

	.header-actions .btn {
		padding: 0 calc(var(--btn-padding-x) * 0.6);
		/* Уменьшаем кнопки */
		font-size: calc(var(--btn-font-size) * 0.85);
	}




}





/* 
   * Добавляем технику наведения для просмотра полного адреса
   * Это опциональная функция, которая может быть полезна, если адрес обрезается
   */
.header-address a:hover span {
	white-space: normal;
	/* При наведении разрешаем перенос */
	position: relative;
	z-index: 10;
	background-color: var(--color-white);
	box-shadow: var(--shadow-dropdown);
	border-radius: var(--radius-sm);
	padding: 5px 8px;
}

/* Плавное изменение цвета при скролле */
.header-modern {
	transition: height var(--duration-standard) var(--ease-in-out),
		background-color var(--duration-standard) var(--ease-in-out),
		box-shadow var(--duration-standard) var(--ease-in-out);
}

/* Улучшенные стили для focus-состояний (доступность) */
.main-menu>li>a:focus,
.header-address a:focus,
.header-phone a:focus,
.header-actions .btn:focus,
.mobile-menu-toggle:focus {
	outline: none;
	box-shadow: 0 0 0 3px var(--trans-orange-light);
	border-radius: var(--radius-sm);
}

/* Добавляем поддержку для темной темы, если она будет использоваться в будущем */
@media (prefers-color-scheme: dark) {
	:root.dark-theme {
		--header-bg-color: var(--color-dark-gray);
		--header-bg-color-scrolled: var(--color-dark-gray-soft);
	}

	.dark-theme .header-modern {
		background-color: var(--header-bg-color);
	}

	.dark-theme .main-menu>li>a,
	.dark-theme .header-address a,
	.dark-theme .header-phone a {
		color: var(--color-white-soft);
	}

	.dark-theme .main-menu>li:hover>a,
	.dark-theme .main-menu>li.active>a,
	.dark-theme .header-address a:hover,
	.dark-theme .header-phone a:hover {
		color: var(--color-orange-light);
	}

	.dark-theme .mobile-menu,
	.dark-theme {
		background-color: var(--color-dark-gray-soft);
		box-shadow: var(--shadow-xl);
	}

	.dark-theme ul li a,
	.dark-theme .mobile-nav>ul>li>a,
	.dark-theme .mobile-submenu li a {
		color: var(--color-white-soft);
	}

	.dark-theme ul li a:hover,
	.dark-theme .mobile-nav>ul>li>a:hover,
	.dark-theme .mobile-submenu li a:hover {
		color: var(--color-orange-light);
	}
}

/* Улучшение для высокоточных дисплеев */
@media only screen and (-webkit-min-device-pixel-ratio: 2),
only screen and (min--moz-device-pixel-ratio: 2),
only screen and (-o-min-device-pixel-ratio: 2/1),
only screen and (min-device-pixel-ratio: 2),
only screen and (min-resolution: 192dpi),
only screen and (min-resolution: 2dppx) {

	.header-modern {
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
}

.header-modern::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--gradient-orange);
	opacity: 0.9;
}

/* Эффект при скролле - хедер становится компактнее */
.header-modern.scrolled {
	height: calc(var(--header-height-desktop) * 0.92);
	/* Уменьшение всего на 8% */
	background-color: var(--color-white);
	box-shadow: var(--shadow-dropdown);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.header-wrapper {
	max-width: var(--container-max-width);
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--header-padding-x);
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}

/* ===== ЛОГОТИП С УЛУЧШЕННЫМ HOVER-ЭФФЕКТОМ ===== */
.logo-box {
	flex: 0 0 auto;
	height: 100%;
	display: flex;
	align-items: center;
	margin-right: 20px;
	position: relative;
}

.logo-link {
	display: block;
	transition: all var(--duration-standard) var(--ease-out);
	position: relative;
	padding: 5px;
}

.logo-link::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--trans-orange-light);
	border-radius: var(--radius-md);
	opacity: 0;
	transform: scale(0.9);
	transition: all var(--duration-standard) var(--ease-out);
	z-index: -1;
}

.logo-link:hover::before {
	opacity: 1;
	transform: scale(1.05);
}

.logo-link:hover {
	transform: translateY(-2px);
}

.logo-link img {
	height: calc(var(--header-height-desktop) * 0.5);
	max-height: 40px;
	width: auto;
	transition: all var(--duration-standard) var(--ease-out);
}

.scrolled .logo-link img {
	height: calc(var(--header-height-desktop) * 0.6);
	/* Уменьшение логотипа до 60% */
	max-height: 40px;
}

/* ===== СОВРЕМЕННАЯ ДЕСКТОПНАЯ НАВИГАЦИЯ ===== */
.desktop-nav {
	height: 100%;
	margin-right: auto;
}

.main-menu {
	display: flex;
	height: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
}

.main-menu>li {
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
	margin: 0 2px;
}

.main-menu>li>a {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 var(--nav-padding-x);
	color: var(--color-dark-gray);
	font-size: var(--nav-font-size);
	font-weight: var(--font-weight-medium);
	text-decoration: none;
	transition: all var(--duration-standard) var(--ease-in-out);
}

/* Стильный индикатор активного пункта меню и hover-эффект */
.main-menu>li>a::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--trans-orange-light);
	opacity: 0;
	transition: opacity var(--duration-quick) var(--ease-out);
	z-index: -1;
}

.main-menu>li>a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: var(--nav-padding-x);
	width: calc(100% - (var(--nav-padding-x) * 2));
	height: 3px;
	background: var(--gradient-orange);
	transform-origin: right center;
	transform: scaleX(0);
	transition: transform var(--duration-standard) var(--ease-out);
}

.main-menu>li:hover>a::before {
	opacity: 1;
}

.main-menu>li:hover>a::after,
.main-menu>li.active>a::after {
	transform-origin: left center;
	transform: scaleX(1);
}

.main-menu>li:hover>a,
.main-menu>li.active>a {
	color: var(--color-orange-primary);
}

.main-menu>li>a i {
	margin-left: 6px;
	font-size: 0.75em;
	transition: transform var(--duration-standard) var(--ease-out);
}

/* ===== УЛУЧШЕННОЕ МЕГА-МЕНЮ ===== */
.menu-item-has-children {
	position: static !important;
}



/* ===== ОБНОВЛЕННАЯ КОНТАКТНАЯ ИНФОРМАЦИЯ ===== */


/* ===== ВЕРТИКАЛЬНЫЕ CTA КНОПКИ ===== */
.header-actions {
	display: flex;
	gap: 10px;
}

/* Вертикальное расположение кнопок */
.header-actions.vertical {
	flex-direction: column;
	gap: 8px;
}

.header-actions .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 var(--btn-padding-x);
	height: calc(var(--btn-height) * 0.9);
	/* Немного меньше высота для компактности */
	font-size: var(--btn-font-size);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: var(--radius-md);
	transition: all var(--duration-standard) var(--ease-out);
	text-decoration: none;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
}

/* Улучшенный ripple-эффект для кнопок */
.header-actions .btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 300%;
	height: 300%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
	transition: transform var(--duration-slow) cubic-bezier(0.19, 1, 0.22, 1),
		opacity var(--duration-slow) cubic-bezier(0.19, 1, 0.22, 1);
	z-index: 0;
}

.header-actions .btn:hover::before {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

.header-actions .btn span,
.header-actions .btn i {
	position: relative;
	z-index: 1;
}

.header-actions .btn i {
	margin-right: var(--btn-icon-gap);
	font-size: 1.1em;
	transition: transform var(--duration-quick) var(--ease-out);
}

/* Стилизация первичной кнопки */
.header-actions .btn-primary {
	background: var(--gradient-orange);
	color: var(--color-white);
	box-shadow: var(--shadow-button);
}

.header-actions .btn-primary:hover {
	box-shadow: var(--shadow-button-hover);
}

/* Стилизация контурной кнопки */
.header-actions .btn-outline {
	background: transparent;
	color: var(--color-orange-primary);
	box-shadow: inset 0 0 0 1.5px var(--color-orange-primary);
}

.header-actions .btn-outline:hover {
	background-color: var(--color-orange-ultra-light);
	transform: translateY(-2px);
}

/* ===== ПЕРЕРАБОТАННОЕ МОБИЛЬНОЕ МЕНЮ ===== */
.mobile-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: var(--burger-width);
	height: var(--burger-height);
	cursor: pointer;
	margin-left: 15px;
	z-index: 101;
}

.hamburger {
	position: relative;
	width: 100%;
	height: 100%;
}

.hamburger span {
	position: absolute;
	left: 0;
	width: 100%;
	height: var(--burger-line-height);
	background-color: var(--color-orange-primary);
	border-radius: var(--radius-full);
	transition: all var(--duration-standard) var(--ease-in-out);
}

.hamburger span:nth-child(1) {
	top: 0;
	width: 70%;
	left: auto;
	right: 0;
}

.hamburger span:nth-child(2) {
	top: calc(50% - var(--burger-line-height) / 2);
}

.hamburger span:nth-child(3) {
	bottom: 0;
	width: 70%;
}

/* Анимация бургер-меню при активации */
.mobile-menu-toggle.active .hamburger span:nth-child(1) {
	top: calc(50% - var(--burger-line-height) / 2);
	width: 100%;
	transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
	opacity: 0;
}

.mobile-menu-toggle.active .hamburger span:nth-child(3) {
	bottom: calc(50% - var(--burger-line-height) / 2);
	width: 100%;
	transform: rotate(-45deg);
}

.mobile-menu {
	position: fixed;
	top: var(--header-height-mobile);
	right: -100%;
	width: 300px;
	max-width: 85%;
	height: calc(100vh - var(--header-height-mobile));
	background-color: var(--color-white);
	box-shadow: var(--shadow-mobile-menu);
	z-index: 100;
	overflow-y: auto;
	transition: right var(--duration-standard) var(--ease-in-out);
	padding: 0;
	visibility: hidden;
	border-radius: 0 0 0 var(--radius-md);
}

.mobile-menu.active {
	right: 0;
	visibility: visible;
}

.mobile-menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	border-bottom: 1px solid var(--color-lighter-gray);
}

.mobile-logo {
	flex: 1;
}

.mobile-logo img {
	height: 35px;
	width: auto;
}

.mobile-menu-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	color: var(--color-gray);
	background-color: var(--color-lighter-gray-alt);
	border-radius: 50%;
	cursor: pointer;
	transition: all var(--duration-quick) var(--ease-out);
}

.mobile-menu-close:hover {
	background-color: var(--color-orange-primary);
	color: var(--color-white);
}

.mobile-menu-content {
	padding: 15px;
}

.mobile-search {
	margin-bottom: 20px;
}

.mobile-search form {
	position: relative;
}

.mobile-search input[type="text"] {
	width: 100%;
	height: 40px;
	padding: 0 40px 0 15px;
	border: 1px solid var(--color-lighter-gray);
	border-radius: var(--radius-md);
	font-size: 14px;
	transition: all var(--duration-quick) var(--ease-out);
}

.mobile-search input[type="text"]:focus {
	border-color: var(--color-orange-primary);
	outline: none;
	box-shadow: 0 0 0 3px var(--trans-orange-light);
}

.mobile-search button {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: var(--color-gray);
	cursor: pointer;
	transition: color var(--duration-quick) var(--ease-out);
}

.mobile-search button:hover {
	color: var(--color-orange-primary);
}

.mobile-nav {
	margin-bottom: 20px;
}

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

.mobile-nav>ul>li {
	border-bottom: 1px solid var(--color-lighter-gray);
}

.mobile-nav>ul>li>a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	color: var(--color-dark-gray);
	font-size: 16px;
	font-weight: var(--font-weight-medium);
	text-decoration: none;
	transition: all var(--duration-standard) var(--ease-out);
}

.mobile-nav>ul>li.active>a,
.mobile-nav>ul>li>a:hover {
	color: var(--color-orange-primary);
}

.mobile-nav>ul>li>a i {
	transition: transform var(--duration-standard) var(--ease-out);
}

.mobile-nav>ul>li.active>a i {
	transform: rotate(180deg);
}

/* Улучшенное мобильное подменю */
.mobile-submenu {
	display: none;
	list-style: none;
	padding: 0 0 10px 15px;
	margin: 0;
	border-left: 2px solid var(--color-orange-primary);
	background: var(--color-orange-ultra-light);
	border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.has-dropdown.active .mobile-submenu {
	display: block;
	animation: fadeInDown var(--duration-standard) var(--ease-out);
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.mobile-submenu li {
	margin-bottom: 8px;
}

.mobile-submenu li a {
	display: flex;
	align-items: center;
	padding: 6px 8px;
	color: var(--color-gray);
	font-size: 14px;
	text-decoration: none;
	transition: all var(--duration-standard) var(--ease-out);
	border-radius: var(--radius-sm);
}

.mobile-submenu li a:hover {
	color: var(--color-orange-primary);
	background-color: var(--color-white);
	transform: translateX(5px);
}

.mobile-submenu li a i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	margin-right: 10px;
	color: var(--color-white);
	background: var(--gradient-orange);
	border-radius: var(--radius-sm);
	font-size: 12px;
	transition: all var(--duration-standard) var(--ease-in-out);
}

.mobile-submenu li a:hover i {
	transform: scale(1.1);
	box-shadow: 0 3px 6px rgba(var(--color-orange-primary-rgb), 0.2);
}

/* Стильная секция контактов в мобильном меню */
.mobile-contacts {
	margin-bottom: 20px;
	padding: 15px;
	background-color: var(--color-lighter-gray-alt);
	border-radius: var(--radius-md);
	border-left: 3px solid var(--color-orange-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-contact-item {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}

.mobile-contact-item:last-child {
	margin-bottom: 0;
}

.mobile-contact-item i {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin-right: 12px;
	color: var(--color-white);
	background: var(--gradient-orange);
	border-radius: 50%;
	box-shadow: 0 2px 5px rgba(var(--color-orange-primary-rgb), 0.2);
}

.mobile-contact-item a,
.mobile-contact-item address {
	color: var(--color-dark-gray);
	font-size: 14px;
	text-decoration: none;
	font-style: normal;
	transition: color var(--duration-standard) var(--ease-out);
}

.mobile-contact-item a:hover {
	color: var(--color-orange-primary);
}

/* Кнопки в мобильном меню */
.mobile-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.mobile-actions .btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 20px;
	height: 44px;
	font-size: 14px;
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
	border-radius: var(--radius-md);
	transition: all var(--duration-standard) var(--ease-in-out);
	text-decoration: none;
	position: relative;
	overflow: hidden;
}

.mobile-actions .btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 300%;
	height: 300%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
	transform: translate(-50%, -50%) scale(0);
	opacity: 0;
	transition: transform var(--duration-slow) cubic-bezier(0.19, 1, 0.22, 1),
		opacity var(--duration-slow) cubic-bezier(0.19, 1, 0.22, 1);
	z-index: 0;
}

.mobile-actions .btn:hover::before {
	transform: translate(-50%, -50%) scale(1);
	opacity: 1;
}

.mobile-actions .btn span,
.mobile-actions .btn i {
	position: relative;
	z-index: 1;
}

.mobile-actions .btn i {
	margin-right: 8px;
	font-size: 16px;
	transition: transform var(--duration-quick) var(--ease-out);
}

.mobile-actions .btn-primary {
	background: var(--gradient-orange);
	color: var(--color-white);
	box-shadow: var(--shadow-button);
}

.mobile-actions .btn-primary:hover {
	box-shadow: var(--shadow-button-hover);
}

.mobile-actions .btn-outline {
	background: transparent;
	color: var(--color-orange-primary);
	box-shadow: inset 0 0 0 1.5px var(--color-orange-primary);
}

/* .mobile-actions .btn-outline:hover {
	background-color: var(--color-orange-ultra-light);
	transform: translateY(-2px);
} */

/* Улучшенная анимация мобильного меню */
.mobile-menu {
	transform: translateX(100%);
	transition: transform var(--duration-standard) var(--ease-in-out),
		visibility var(--duration-standard) var(--ease-in-out);
}

.mobile-menu.active {
	transform: translateX(0);
}

/* Улучшенный затемнённый фон при открытом мобильном меню */
.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 99;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--duration-standard) var(--ease-in-out),
		visibility var(--duration-standard) var(--ease-in-out);
}

.mobile-menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Улучшенная прокрутка мобильного меню */
.mobile-menu-content {
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--color-orange-primary) var(--color-lighter-gray);
}

.mobile-menu-content::-webkit-scrollbar {
	width: 5px;
}

.mobile-menu-content::-webkit-scrollbar-track {
	background: var(--color-lighter-gray);
	border-radius: var(--radius-full);
}

.mobile-menu-content::-webkit-scrollbar-thumb {
	background-color: var(--color-orange-primary);
	border-radius: var(--radius-full);
}

/* Улучшенные состояния фокуса для доступности */
.mobile-nav>ul>li>a:focus,
.mobile-submenu li a:focus,
.mobile-contact-item a:focus,
.mobile-search input:focus,
.mobile-search button:focus,
.mobile-actions .btn:focus,
.mobile-menu-close:focus {
	outline: none;
	box-shadow: 0 0 0 2px var(--trans-orange-light);
}

/* Анимированные иконки в мобильном меню */
.mobile-nav>ul>li>a i,
.mobile-submenu li a i,
.mobile-contact-item i,
.mobile-actions .btn i {
	transition: all var(--duration-standard) var(--ease-in-out);
}

.mobile-nav>ul>li>a:hover i,
.mobile-contact-item a:hover i {
	transform: rotate(5deg) scale(1.1);
}

/* Улучшенная обратная связь при нажатии на элементы мобильного меню */
.mobile-nav>ul>li>a:active,
.mobile-submenu li a:active,
.mobile-contact-item a:active,
.mobile-actions .btn:active {
	transform: scale(0.98);
}

/* Адаптивность мобильной навигации */
@media (max-width: 576px) {
	.mobile-nav>ul>li>a {
		font-size: 15px;
		padding: 10px 0;
	}

	.mobile-submenu li a {
		font-size: 13px;
	}

	.mobile-contact-item {
		margin-bottom: 10px;
	}

	.mobile-contact-item i {
		width: 28px;
		height: 28px;
	}

	.mobile-contact-item a,
	.mobile-contact-item address {
		font-size: 13px;
	}
}

/* Состояние загрузки мобильного меню */
.mobile-menu.loading::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: var(--gradient-orange);
	animation: loadingProgress 1s ease-in-out infinite;
}

@keyframes loadingProgress {
	0% {
		transform: translateX(-100%);
	}

	100% {
		transform: translateX(100%);
	}
}

/* Режим высокой контрастности для повышения доступности */
@media (forced-colors: active) {

	.mobile-nav>ul>li>a,
	.mobile-submenu li a,
	.mobile-contact-item a,
	.mobile-actions .btn {
		border: 1px solid currentColor;
	}

	.mobile-nav>ul>li.active>a,
	.mobile-submenu li a:hover,
	.mobile-contact-item a:hover {
		text-decoration: underline;
	}
}

/* Оптимизация для устройств, предпочитающих уменьшенное движение */
@media (prefers-reduced-motion: reduce) {

	.mobile-submenu,
	.mobile-menu,
	.mobile-actions .btn,
	.mobile-menu.loading::after {
		animation: none;
		transition-duration: 0.01ms;
	}
}

/* Поддержка тёмной темы */
@media (prefers-color-scheme: dark) {
	.dark-theme .mobile-menu {
		background-color: var(--color-dark-gray-soft);
	}

	.dark-theme .mobile-nav>ul>li>a,
	.dark-theme .mobile-contact-item a,
	.dark-theme .mobile-contact-item address {
		color: var(--color-white-soft);
	}

	.dark-theme .mobile-submenu {
		background-color: rgba(var(--color-orange-primary-rgb), 0.1);
	}

	.dark-theme .mobile-contacts {
		background-color: var(--color-dark-gray);
	}

	.dark-theme .mobile-nav>ul>li,
	.dark-theme .mobile-menu-header {
		border-bottom-color: var(--color-dark-gray-alt);
	}
}

/* Бургер меню - изначально скрыто на десктопе и показывается на мобильных */
.mobile-menu-toggle {
	display: none;
	/* Скрыто по умолчанию на десктопе */
}

/* Контрольные точки адаптивности */
@media (max-width: 992px) {

	/* На планшетах компактнее */
	.header-modern {
		height: var(--header-height-tablet);
	}

	.header-modern.scrolled {
		height: var(--header-height-tablet);
	}

	.header-contacts {
		margin: 0 10px;
		display: flex;
		align-items: center;
		/* Вертикальное центрирование всех элементов */
	}

	.header-contacts i {
		width: 28px;
		height: 28px;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 18px;
		/* Размер иконки для лучшего отображения */
	}

	.header-address span,
	.header-phone span {
		font-size: 12px;
		max-width: 160px;
		line-height: 1.2;
		margin-left: 6px;
		/* Отступ от иконки */
		display: inline-block;
		vertical-align: middle;
	}

}

/* Ключевая точка для мобильных устройств - ЗДЕСЬ ДОЛЖЕН ПОЯВЛЯТЬСЯ БУРГЕР МЕНЮ */
@media (max-width: 1050px) {

	/* Фиксированная высота на мобильных */
	.header-modern {
		height: var(--header-height-mobile);
	}

	.header-wrapper {
		padding: 0 var(--header-padding-mobile-x);
	}

	/* ПОКАЗЫВАЕМ БУРГЕР-МЕНЮ на мобильных */
	.mobile-menu-toggle {
		display: flex;
		order: 3;
		/* Убедимся, что бургер находится справа */
	}

	/* Скрываем десктопную навигацию */
	.desktop-nav {
		display: none;
	}

	/* Скрываем контактную информацию */
	.header-contacts {
		display: none;
	}

	/* Кнопки становятся иконками без текста */
	.header-actions {
		order: 2;
		/* Размещаем кнопки перед бургером */
	}

	.header-actions.vertical {
		flex-direction: row;
		gap: 8px;
	}

	.header-actions .btn {
		width: 30px;
		height: 30px;
		padding: 0;
		border-radius: 8px;
	}

	.header-actions .btn span {
		display: none;
	}

	.header-actions .btn i {
		margin-right: 0;
		font-size: 16px;
	}

	/* Логотип корректируем */
	.logo-box {
		order: 1;
		align-self: center;
	}

	.logo-link img {
		height: calc(var(--header-height-mobile) * 0.6);
		max-height: 30px;
	}
}

/* Маленькие мобильные устройства */
@media (max-width: 576px) {
	.header-wrapper {
		padding: 0 10px;
	}

	/* Скрываем одну из кнопок на очень маленьких экранах */
	.header-actions .btn-primary {
		display: none;
	}

	.logo-link img {
		height: calc(var(--header-height-mobile) * 0.55);
		max-height: 25px;
	}

	/* Мобильное меню на всю ширину экрана */
	.mobile-menu {
		width: 100%;
		max-width: 100%;
	}
}

/* Дополнительные важные фиксы для корректной работы адаптива */
.header-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	/* Предотвращаем переносы */
}

/* Убедимся, что бургер отображается правильно */
.hamburger {
	width: var(--burger-width);
	height: var(--burger-height);
	cursor: pointer;
	display: block;
	position: relative;
}

/* ========================================================================
   МЕГА-МЕНЮ
   ======================================================================== */

/* Стилизация основной кнопки-переключателя меню */
.services-toggle {
	display: flex;
	align-items: center;
	padding: var(--nav-padding-y) var(--nav-padding-x);
	font-size: var(--nav-font-size);
	font-weight: var(--font-weight-medium);
	color: var(--color-dark-gray);
	border-radius: var(--radius-md);
	transition: var(--transition-standard);
}


.toggle-icon {
	margin-right: 0.5rem;
	font-size: 1.05em;
	color: orange;
}

.toggle-arrow {
	margin-left: 0.5rem;
	font-size: 0.75em;
	transition: transform var(--duration-standard) var(--ease-out);
}

.services-toggle[aria-expanded="true"] .toggle-arrow i {
	transform: rotate(180deg);
}

/* ========================================================================
   ОПТИМИЗИРОВАННЫЙ CSS ДЛЯ МЕГА-МЕНЮ
   ======================================================================== */
/* 
 * СУПЕР-РАСШИРЕННЫЙ АДАПТИВНЫЙ CSS ДЛЯ МЕГА-МЕНЮ
 * - Без использования CSS-переменных
 * - Без использования :root селектора
 * - 10x больше адаптивных правил
 */

/* Мега-меню контейнер - улучшенная версия */
.mega-menu {
	/* Сброс всех конфликтующих правил */
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	right: 0 !important;
	margin: 0 auto !important;

	/* Размеры */
	width: min(90vw, 75rem) !important;
	max-width: 75rem !important;

	/* Центрирование через margin */
	margin-left: auto !important;
	margin-right: auto !important;

	/* Остальные стили */
	background-color: #fff;
	border-radius: 1rem;
	box-shadow: 0 0.5rem 1.875rem rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transition: opacity 300ms ease, visibility 300ms ease;
	z-index: 80987;
	border: 0.0625rem solid rgba(0, 0, 0, 0.05);
}

/* Активное состояние */
.mega-menu.active {
	opacity: 1;
	visibility: visible;
}


/* Расширенные анимации для меню с несколькими вариантами */
@keyframes fadeInMenuDefault {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(1rem) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}
}

@keyframes fadeInMenuFromTop {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(-1rem) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}
}

@keyframes fadeInMenuFromRight {
	from {
		opacity: 0;
		transform: translateX(1rem) translateY(0) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}
}

@keyframes fadeInMenuFromLeft {
	from {
		opacity: 0;
		transform: translateX(-100%) translateY(0) scale(0.98);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}
}

@keyframes fadeOutMenuDefault {
	from {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}

	to {
		opacity: 0;
		transform: translateX(-50%) translateY(1rem) scale(0.98);
	}
}

@keyframes fadeOutMenuToSide {
	from {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}

	to {
		opacity: 0;
		transform: translateX(100%) translateY(0) scale(0.98);
	}
}

@keyframes scaleMenuIn {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(0) scale(0.8);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}
}

@keyframes scaleMenuOut {
	from {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
	}

	to {
		opacity: 0;
		transform: translateX(-50%) translateY(0) scale(0.8);
	}
}

/* Мобильная кнопка закрытия - оптимизированная для всех устройств */
.mega-menu-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	color: #666;
	background-color: #fff;
	border-radius: 9999px;
	transition: all 0.25s cubic-bezier(0.65, 0, 0.35, 1);
	z-index: 99999;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(0, 0, 0, 0.05);
	/* Улучшенное визуальное взаимодействие */
	transform: scale(1);
	overflow: hidden;
}

.mega-menu-close:hover {
	background-color: #ff6b35;
	color: #fff;
	transform: scale(1.05);
}

/* Эффект нажатия для мобильных */
.mega-menu-close:active {
	transform: scale(0.95);
	box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

/* Эффект пульсации для привлечения внимания */
@keyframes pulseClose {
	0% {
		transform: scale(1);
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	}

	50% {
		transform: scale(1.1);
		box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
	}

	100% {
		transform: scale(1);
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	}
}

/* Верхняя навигация по меню - улучшенное центрирование для всех устройств */
.mega-menu-header {
	background-color: #f9f9f9;
	border-bottom: 0.0625rem solid rgba(0, 0, 0, 0.05);
	/* 1px -> 0.0625rem */
	position: relative;
	z-index: 2;
	/* Тонкая тень для разделения */
	box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.02);
	/* 2px 4px -> 0.125rem 0.25rem */
	padding: 0.25rem 0;
	/* Для липкого поведения на телефонах */
	position: sticky;
	top: 0;
	width: 100%;
	/* Гарантирует полную ширину */
	box-sizing: border-box;
}

.menu-categories {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 0;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	gap: 0.5rem;
	/* Для скролла сразу видно все категории */
	scroll-padding: 0.5rem;
	max-width: 100%;
	/* Для центрирования на всех устройствах */
	margin: 0 auto;
	/* Улучшенный скролл */
	scroll-behavior: smooth;
	flex-wrap: nowrap;
	/* Предотвращает перенос строки */
	width: 100%;
	box-sizing: border-box;
}

.menu-categories::-webkit-scrollbar {
	display: none;
}

/* Индикатор скролла для категорий */
.menu-categories::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 0.125rem;
	/* 2px -> 0.125rem */
	background: linear-gradient(90deg,
			transparent,
			#ff6b35 50%,
			transparent);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.menu-categories.scrollable::after {
	opacity: 0.3;
}

.menu-category {
	padding: 0.625rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #666;
	background-color: transparent;
	border-radius: 9999px;
	transition: all 0.25s cubic-bezier(0.65, 0, 0.35, 1);
	white-space: nowrap;
	cursor: pointer;
	/* Четкая обводка для улучшения UI */
	border: 0.0625rem solid transparent;
	/* 1px -> 0.0625rem */
	position: relative;
	/* Для аксессибилити */
	min-height: 2.5rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	/* Предотвращает сжатие элементов */
}


/* Ховер только для эффектов, не для активации */
.menu-category:hover {
	color: #333;
	background-color: #f5f5f5;
	/* Легкий эффект поднятия */
	transform: translateY(-1px);
}

.menu-category.active {
	color: #fff;
	background-color: #ff6b35;
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
	/* Подтверждение активного состояния */
	transform: translateY(-1px);
}

/* Эффект волны при нажатии на категорию */
.menu-category::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	background-color: rgba(255, 255, 255, 0.7);
	border-radius: 50%;
	opacity: 0;
	transform: translate(-50%, -50%) scale(1);
	transition: opacity 0.5s, transform 0.5s;
	pointer-events: none;
}

.menu-category:active::after {
	transform: translate(-50%, -50%) scale(30);
	opacity: 0;
	transition: transform 0.4s, opacity 0.4s;
}

/* Эффект нажатия для категорий */
.menu-category:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Индикатор активной категории */
.menu-category.active::before {
	content: '';
	position: absolute;
	bottom: -0.5rem;
	left: 50%;
	transform: translateX(-50%);
	width: 0.5rem;
	height: 0.5rem;
	background-color: #ff6b35;
	border-radius: 50%;
	display: none;
}

/* Основной контент меню - адаптивные отступы */
.mega-menu-content {
	position: relative;
	padding: 2rem 1.5rem;
	z-index: 1;
	/* Для плавного скролла */
	overflow-y: auto;
	overflow-x: hidden;
	/* Предотвращение горизонтального скролла */
	-webkit-overflow-scrolling: touch;
	/* Оптимизированная производительность скролла */
	will-change: scroll-position;
	/* Фиксированная высота для адаптивных устройств */
	max-height: calc(80vh - 7.5rem);
	/* 120px -> 7.5rem */
	width: 100%;
	/* Гарантирует полную ширину */
	box-sizing: border-box;
	/* Учитывает padding в общей ширине */
}

.menu-panel {
	display: none;
	animation: fadePanel 300ms cubic-bezier(0.16, 1, 0.3, 1);
	width: 100%;
	/* Гарантирует, что контент останется в пределах контейнера */
}

.menu-panel.active {
	display: block;
}


/* Множественные анимации для панелей */
@keyframes fadePanel {
	from {
		opacity: 0;
		transform: translateY(0.75rem) translateX(0.25rem);
	}

	to {
		opacity: 1;
		transform: translateY(0) translateX(0);
	}
}

@keyframes slidePanelFromRight {
	from {
		opacity: 0;
		transform: translateX(10%);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slidePanelFromLeft {
	from {
		opacity: 0;
		transform: translateX(-10%);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slidePanelFromTop {
	from {
		opacity: 0;
		transform: translateY(-10%);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slidePanelFromBottom {
	from {
		opacity: 0;
		transform: translateY(10%);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.menu-panel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 1rem;
	/* Единый отступ вместо конфликтующих значений */
	padding: 0 0.5rem;
	margin: 0 auto;
	width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
}


.menu-panel-grid>* {
	min-width: 0;
	max-width: 100%;
}

/* Для элемента highlight, чтобы он занимал всю строку на маленьких экранах */
@media (max-width: 991px) {
	.menu-panel-highlight {
		grid-column: 1 / -1;
		/* Растягивает на всю ширину */
	}
}

/* Дополнительное правило для хорошего отображения на широких экранах */
@media (min-width: 75rem) {

	/* 1200px и выше */
	.menu-panel-grid {
		grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	}
}

/* Для очень широких экранов */
@media (min-width: 100rem) {

	/* 1600px и выше */
	.menu-panel-grid {
		grid-template-columns: repeat(3, 1fr);
		/* Фиксированное число колонок */
		max-width: 1400px;
		/* Предотвращаем чрезмерное растягивание */
		margin: 0 auto;
	}
}

.menu-column {
	display: flex;
	flex-direction: column;
}

.menu-group {
	margin-bottom: 2rem;
	/* Для лучшего разделения группы визуально */
	position: relative;
}

.menu-group:last-child {
	margin-bottom: 0;
}

/* Линия разделения групп */
.menu-group::after {
	content: '';
	position: absolute;
	bottom: -1rem;
	left: 0;
	width: 100%;
	height: 1px;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), transparent);
	display: none;
}

.menu-group:last-child::after {
	display: none;
}

.menu-group-title {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	padding-left: 1.3rem;
	font-size: 1rem;
	font-weight: 600;
	color: #444;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
	/* Улучшенный контраст */
	letter-spacing: 0.01em;
	position: relative;
}

/* Индикатор активной группы */
.menu-group-title::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 2rem;
	height: 2px;
	background-color: #ff6b35;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.3s ease-out;
}

.menu-group:hover .menu-group-title::after {
	transform: scaleX(1);
}

.menu-group-title i {
	margin-right: 0.5rem;
	font-size: 1.1em;
	color: #ff6b35;
	/* Небольшая анимация при наведении на группу */
	transition: transform 0.3s ease;
}

.menu-group:hover .menu-group-title i {
	transform: translateY(-1px);
}

.menu-list {
	display: flex;
	flex-direction: column;
	text-align: left;

	/* Расстояние между элементами списка для всех устройств */
	gap: 0.75rem;
	position: relative;
}

.menu-list li {
	position: relative;
	/* Будем использовать свойство gap вместо margin */
	margin-bottom: 0;
}

.menu-list a {
	display: flex;
	align-items: center;
	padding: 0.75rem;
	border-radius: 0.5rem;
	transition: all 0.25s cubic-bezier(0.65, 0, 0.35, 1);
	/* Улучшенная обратная связь */
	position: relative;
	overflow: hidden;
	/* Для аксессибилити */
	outline: none;
}

.menu-list a:hover {
	background-color: #f5f5f5;
	transform: translateX(4px);
}

/* Улучшенный фокус для клавиатурной навигации */
.menu-list a:focus-visible {
	box-shadow: 0 0 0 2px #ff6b35;
	background-color: #f5f5f5;
}

/* Улучшенная волна при нажатии */
.menu-list a::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
	border-radius: 50%;
	opacity: 0;
	transform: translate(-50%, -50%) scale(1);
	transition: opacity 0.3s, transform 0.3s;
	pointer-events: none;
}

.menu-list a:active::after {
	transform: translate(-50%, -50%) scale(50);
	opacity: 1;
	transition: transform 0.5s ease-out, opacity 0.3s;
}

.link-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	margin-right: 1rem;
	font-size: 1.125rem;
	color: #ff6b35;
	background-color: rgba(255, 107, 53, 0.1);
	border-radius: 0.5rem;
	transition: all 0.25s cubic-bezier(0.65, 0, 0.35, 1);
	position: relative;
	overflow: hidden;
}

/* Диагональный градиент для иконок */
.link-icon::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg,
			rgba(255, 255, 255, 0.1) 0%,
			rgba(255, 255, 255, 0) 50%,
			rgba(0, 0, 0, 0.05) 100%);
	opacity: 0.5;
}

.menu-list a:hover .link-icon {
	background-color: #ff6b35;
	color: #fff;
	transform: scale(1.05);
}

.menu-list a:active .link-icon {
	transform: scale(0.98);
}

.link-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	/* Для предотвращения переполнения текста */
}

.link-title {
	font-weight: 500;
	color: #333;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	/* Для обрезания длинных строк */
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 100%;
}

.menu-list a:hover .link-title {
	color: #ff6b35;
}

.link-desc {
	margin-top: 0.25rem;
	font-size: 0.75rem;
	color: #666;
	/* Для обрезания длинного описания */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	white-space: normal;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.3;
	max-height: 2.6em;
}

.menu-panel-highlight {
	position: relative;
	background: linear-gradient(-45deg, #ff6b35, #ff9166);
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 0.5rem 1.875rem -0.3125rem rgba(255, 107, 53, 0.4);
	min-height: clamp(150px, 30vw, 200px);
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;

	/* Исправление для корректного отображения внутри grid */
	grid-column: auto;
	justify-self: stretch;
	align-self: start;
	margin: 0;
}

.menu-panel-highlight::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E") center/cover;
	opacity: 0.2;
}

@keyframes panBackground {
	0% {
		background-position: 0% 0%;
	}

	25% {
		background-position: 100% 0%;
	}

	50% {
		background-position: 100% 100%;
	}

	75% {
		background-position: 0% 100%;
	}

	100% {
		background-position: 0% 0%;
	}
}

.menu-panel-highlight:hover::before {
	animation: panBackground 30s infinite linear;
	background-size: 200% 200%;
}

.highlight-content {
	padding: clamp(1rem, 3vw, 2rem);
	z-index: 1;
	flex: 1;
	display: flex;
	flex-direction: column;
	width: 100%;
	box-sizing: border-box;
	overflow: hidden;
	/* Предотвращает выход контента за пределы */
}

.highlight-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	margin-bottom: 1rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: #ff6b35;
	background-color: #fff;
	border-radius: 9999px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	align-self: flex-start;
	position: relative;
	overflow: hidden;
	max-width: 100%;
	/* Ограничивает ширину бейджа */
}

.highlight-badge::after {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(to right,
			rgba(255, 255, 255, 0) 0%,
			rgba(255, 255, 255, 0.3) 50%,
			rgba(255, 255, 255, 0) 100%);
	transform: rotate(30deg);
	animation: badgeShine 3s infinite linear;
	pointer-events: none;
}

@keyframes badgeShine {
	from {
		transform: translateX(-100%) rotate(30deg);
	}

	to {
		transform: translateX(100%) rotate(30deg);
	}
}

.menu-panel-highlight h3 {
	margin-bottom: 0.75rem;
	font-size: 1.125rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
	line-height: 1.3;
	white-space: normal;
	/* Изменено с nowrap для переноса строк */
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	/* Показывает максимум 2 строки */
	-webkit-box-orient: vertical;
	max-width: 100%;
}

.menu-panel-highlight p {
	margin-bottom: 1.5rem;
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.875rem;
	line-height: 1.5;
	flex: 1;
	white-space: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	/* Показывает максимум 3 строки */
	-webkit-box-orient: vertical;
	word-wrap: break-word;
	/* Обеспечивает разрыв длинных слов */
}

.highlight-btn {
	display: inline-flex;
	align-items: center;
	padding: 0.625rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #333;
	background-color: #fff;
	border-radius: 9999px;
	transition: all 0.25s cubic-bezier(0.65, 0, 0.35, 1);
	position: relative;
	overflow: hidden;
	align-self: flex-start;
	margin-top: auto;
	max-width: 100%;
	/* Ограничивает ширину кнопки */
}

.highlight-btn i {
	margin-left: 0.5rem;
	transition: transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.highlight-btn:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
	color: #ff6b35;
}

.highlight-btn:hover i {
	transform: translateX(4px);
}

.highlight-btn::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	background-color: rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	opacity: 0;
	transform: translate(-50%, -50%) scale(1);
	transition: opacity 0.5s, transform 0.5s;
	pointer-events: none;
}

.highlight-btn:active::after {
	transform: translate(-50%, -50%) scale(50);
	opacity: 1;
	transition: transform 0.8s ease-out, opacity 0.5s;
}

.highlight-btn:active,
.highlight-btn.btn-pressed {
	transform: translateY(1px);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Цветовые вариации */
.infra-highlight {
	background: linear-gradient(-45deg, #3858f9, #65a9ff);
	box-shadow: 0 0.5rem 1.875rem -0.3125rem rgba(56, 88, 249, 0.4);
}

.security-highlight {
	background: linear-gradient(-45deg, #0a7c43, #34c17c);
	box-shadow: 0 0.5rem 1.875rem -0.3125rem rgba(10, 124, 67, 0.4);
}

.software-highlight {
	background: linear-gradient(-45deg, #ff9900, #ff9166);
	box-shadow: 0 0.5rem 1.875rem -0.3125rem rgba(255, 153, 0, 0.4);
}

/* Футер меню - адаптивный интерфейс */
.mega-menu-footer {
	padding: 1.5rem 0;
	background-color: #f9f9f9;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	position: relative;
}

/* Добавляем тень сверху для визуального разделения */
.mega-menu-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.02), transparent);
	pointer-events: none;
}

.mm-footer-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.mm-footer-cta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	/* Для хорошего распределения элементов */
	gap: 1rem;
}

.mm-footer-cta p {
	margin: 0;
	font-weight: 500;
	color: #444;
	/* Оптимизация для всех экранов */
	flex: 0 1 auto;
	text-align: center;
}

.mm-cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #fff;
	background-color: #ff6b35;
	border-radius: 9999px;
	transition: all 0.25s cubic-bezier(0.65, 0, 0.35, 1);
	/* Улучшенный эффект нажатия */
	position: relative;
	overflow: hidden;
	white-space: nowrap;
	/* Для аксессибилити */
	min-height: 2.5rem;
}

.mm-cta-btn i {
	margin-right: 0.5rem;
}

.mm-cta-btn:hover {
	background-color: #e85927;
	box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
	transform: translateY(-3px);
}

/* Эффект волны при нажатии на кнопку */
.mm-cta-btn::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	background-color: rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	opacity: 0;
	transform: translate(-50%, -50%) scale(1);
	transition: opacity 0.5s, transform 0.5s;
	pointer-events: none;
}

.mm-cta-btn:active::after {
	transform: translate(-50%, -50%) scale(50);
	opacity: 1;
	transition: transform 0.5s ease-out, opacity 0.3s;
}

/* Анимация нажатия */
.mm-cta-btn:active,
.mm-cta-btn.btn-pressed {
	transform: translateY(1px);
	box-shadow: 0 2px 4px rgba(255, 107, 53, 0.15);
}

.mm-footer-links {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.mm-footer-links a {
	font-size: 0.875rem;
	color: #666;
	transition: all 0.25s cubic-bezier(0.65, 0, 0.35, 1);
	position: relative;
	padding: 0.25rem 0;
}

/* Подчеркивание для ссылок в футере */
.mm-footer-links a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: #ff6b35;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.3s ease-out;
}

.mm-footer-links a:hover {
	color: #ff6b35;
}

.mm-footer-links a:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* Разблокировка скролла при открытом меню */
body.mega-menu-open,
body.menu-open {
	overflow: hidden;
	/* Предотвращаем сдвиг контента при блокировке скролла */
	padding-right: 0;
}

/* Экспериментальная фиксация размера страницы при открытом меню */
@supports (height: 100svh) {

	body.mega-menu-open .mega-menu,
	body.menu-open .mega-menu {
		/* Используем современный viewport units */
		max-height: 95svh;
	}
}

/* Управление скроллбаром для лучшего юзабилити */
.mega-menu {
	scrollbar-width: thin;
	scrollbar-color: #ff6b35 #f9f9f9;
}

.mega-menu::-webkit-scrollbar {
	width: 6px;
}

.mega-menu::-webkit-scrollbar-track {
	background: #f9f9f9;
}

.mega-menu::-webkit-scrollbar-thumb {
	background-color: #ff6b35;
	border-radius: 6px;
}

/* ========================================================================
	 СВЕРХ-РАСШИРЕННЫЕ МЕДИА-ЗАПРОСЫ ДЛЯ ВСЕХ УСТРОЙСТВ И ФОРМАТОВ
	 ======================================================================== */

/* Огромные экраны (2560px+) */
@media (min-width: 160em) {
	.mega-menu {
		width: min(1800px, 70vw);
	}

	.mega-menu-content {
		padding: 3rem 2.5rem;
	}

	.menu-panel-grid {
		grid-template-columns: repeat(4, 1fr) minmax(25rem, 1fr);
		grid-gap: 3rem;
	}

	.menu-panel-highlight {
		grid-column: 5 / 6;
		grid-row: span 2;
		min-height: 350px;
	}

	.highlight-content {
		padding: 3rem;
	}

	.menu-group-title {
		font-size: 1.3rem;
		padding-bottom: 0.75rem;
		margin-bottom: 1.5rem;
	}

	.link-icon {
		width: 3.5rem;
		height: 3.5rem;
		font-size: 1.5rem;
		margin-right: 1.5rem;
	}

	.link-title {
		font-size: 1.2rem;
	}

	.link-desc {
		font-size: 0.95rem;
		margin-top: 0.4rem;
	}

	.menu-list a {
		padding: 1.25rem;
		border-radius: 0.75rem;
	}

	.menu-category {
		padding: 0.875rem 1.75rem;
		font-size: 1.1rem;
		min-height: 3.5rem;
	}

	.menu-panel-highlight h3 {
		font-size: 1.75rem;
		margin-bottom: 1.25rem;
	}

	.menu-panel-highlight p {
		font-size: 1.1rem;
		margin-bottom: 2rem;
	}

	.highlight-btn {
		padding: 0.875rem 2rem;
		font-size: 1.1rem;
	}

	.mega-menu-close {
		top: 1.5rem;
		right: 1.5rem;
		width: 3.5rem;
		height: 3.5rem;
		font-size: 1.75rem;
	}

	.mm-footer-content {
		max-width: 1600px;
		padding: 0 2rem;
	}
}

/* Очень большие экраны (1920px - 2559px) */
@media (min-width: 120em) and (max-width: 159.99em) {
	.mega-menu {
		width: min(1600px, 75vw);
	}

	.mega-menu-content {
		padding: 2.5rem 2rem;
	}

	.menu-panel-grid {
		grid-template-columns: repeat(3, 1fr) minmax(22rem, 1fr);
		grid-gap: 2.5rem;
	}

	.menu-panel-highlight {
		grid-column: 4 / 5;
		grid-row: span 2;
		min-height: 300px;
	}

	.highlight-content {
		padding: 2.5rem;
	}

	.menu-group-title {
		font-size: 1.2rem;
	}

	.link-icon {
		width: 3rem;
		height: 3rem;
		font-size: 1.3rem;
	}

	.link-title {
		font-size: 1.1rem;
	}

	.link-desc {
		font-size: 0.9rem;
	}

	.menu-list a {
		padding: 1rem;
	}

	.menu-category {
		padding: 0.75rem 1.5rem;
		font-size: 1rem;
	}

	.menu-panel-highlight h3 {
		font-size: 1.5rem;
	}

	.menu-panel-highlight p {
		font-size: 1rem;
	}

	.highlight-btn {
		padding: 0.75rem 1.75rem;
		font-size: 1rem;
	}
}

/* Большие экраны (1600px - 1919px) */
@media (min-width: 100em) and (max-width: 130.99em) {
	.mega-menu {
		width: min(1400px, 80vw);
	}

	.mega-menu-content {
		padding: 2rem 1.75rem;
	}

	.menu-panel-grid {
		grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
		grid-gap: 2rem;
	}

	.menu-panel-highlight {
		grid-column: 4 / 5;
		grid-row: span 2;
	}

	.menu-group-title {
		font-size: 1.1rem;
	}

	.link-icon {
		width: 2.75rem;
		height: 2.75rem;
	}

	.link-title {
		font-size: 1.05rem;
	}

	.link-desc {
		font-size: 0.875rem;
	}

	.highlight-content {
		padding: 2.5rem;
	}

	.menu-panel-highlight h3 {
		font-size: 1.35rem;
	}
}

/* Большие экраны (1440px - 1599px) */
@media (min-width: 90em) and (max-width: 99.99em) {
	.mega-menu {
		width: min(1300px, 85vw);
	}

	.menu-panel-grid {
		grid-template-columns: repeat(3, 1fr) minmax(18rem, 1fr);
		padding: 0 1.5rem;
	}

	.menu-panel-highlight {
		grid-column: 4 / 5;
		grid-row: span 2;
	}

	.highlight-badge {
		font-size: 0.8rem;
	}

	/* Тонкая адаптация отступов */
	.mega-menu-content {
		padding: 2rem 1.5rem;
	}
}

/* Средне-большие экраны (1280px - 1439px) */
@media (min-width: 80em) and (max-width: 89.99em) {
	.mega-menu {
		width: min(1200px, 85vw);
	}

	.menu-panel-grid {
		grid-template-columns: repeat(3, 1fr) minmax(18rem, 1fr);
		padding: 0 1rem;
	}

	.menu-panel-highlight {
		grid-column: 4 / 5;
		grid-row: span 2;
	}

	/* Сокращение интервалов сетки */
	.menu-panel-grid {
		grid-gap: 1.75rem;
	}
}

/* Средние экраны (1200px - 1279px) */
@media (min-width: 75em) and (max-width: 79.99em) {
	.mega-menu {
		width: min(1100px, 90vw);
	}

	.mega-menu-content {
		padding: 2rem 1.25rem;
	}

	.menu-panel-grid {
		grid-template-columns: repeat(3, 1fr) minmax(17rem, 1fr);
		grid-gap: 1.5rem;
	}

	.menu-panel-highlight {
		grid-column: 4 / 5;
		grid-row: span 2;
	}

	/* Уменьшение некоторых размеров для лучшего размещения */
	.link-icon {
		width: 2.5rem;
		height: 2.5rem;
		margin-right: 0.875rem;
	}

	.menu-list a {
		padding: 0.7rem;
	}
}

/* Средне-малые экраны (1024px - 1199px) */
@media (min-width: 64em) and (max-width: 74.99em) {
	.mega-menu {
		width: min(960px, 90vw);
	}

	.mega-menu-content {
		padding: 1.75rem 1rem;
	}

	.menu-panel-grid {
		grid-template-columns: repeat(2, 1fr) minmax(16rem, 1fr);
		grid-gap: 1.5rem;
	}

	.menu-panel-highlight {
		grid-column: 3 / 4;
		grid-row: span 2;
	}

	.menu-group {
		margin-bottom: 1.75rem;
	}

	/* Корректировка размеров текста */
	.menu-category {
		padding: 0.625rem 1.125rem;
	}

	.link-title {
		font-size: 1rem;
	}

	.highlight-content {
		padding: 1.75rem;
	}
}

/* Планшеты (992px - 1023px) */
@media (min-width: 62em) and (max-width: 63.99em) {
	.mega-menu {
		width: min(920px, 90vw);
	}

	.menu-panel-grid {
		grid-template-columns: repeat(2, 1fr) minmax(15rem, 1fr);
		grid-gap: 1.25rem;
	}

	.menu-panel-highlight {
		grid-column: 3 / 4;
		grid-row: span 2;
	}

	.menu-category {
		padding: 0.5rem 1rem;
	}

	/* Уменьшаем размеры для большей компактности */
	.menu-list a {
		padding: 0.675rem;
	}

	.link-icon {
		width: 2.25rem;
		height: 2.25rem;
		font-size: 1rem;
	}

	.highlight-content {
		padding: 1.5rem;
	}
}

/* Малые планшеты и низкие экраны (896px - 991px) */
@media (min-width: 56em) and (max-width: 61.99em) {
	.mega-menu {
		width: min(850px, 92vw);
	}

	.mega-menu-content {
		padding: 1.5rem 1rem;
	}

	.menu-panel-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 1.25rem;
	}

	.menu-panel-highlight {
		grid-column: 1 / 3;
		margin-top: 1rem;
		min-height: 180px;
	}

	.mega-menu-close {
		top: 0.75rem;
		right: 0.75rem;
		width: 2.5rem;
		height: 2.5rem;
		font-size: 1.125rem;
	}

	/* Специальная настройка для горизонтальной ориентации */
	@media (orientation: landscape) {
		.menu-panel-grid {
			grid-template-columns: repeat(3, 1fr);
		}

		.menu-panel-highlight {
			grid-column: 1 / 4;
			margin-top: 0.5rem;
		}

		.menu-list {
			display: grid;
			grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
			gap: 0.5rem;
		}
	}
}

/* Планшеты и большие мобильные (768px - 895px) */
@media (min-width: 48em) and (max-width: 55.99em) {
	.mega-menu {
		width: min(720px, 95vw);
	}

	.mega-menu-content {
		padding: 1.5rem 1rem;
	}

	.menu-panel-grid {
		grid-template-columns: repeat(2, 1fr);
		grid-gap: 1.25rem;
	}

	.menu-panel-highlight {
		grid-column: 1 / 3;
		margin-top: 1rem;
	}

	.highlight-content {
		padding: 1.5rem;
	}

	.menu-category {
		scroll-snap-align: start;
		padding: 0.5rem 1rem;
		font-size: 0.8125rem;
	}

	/* Улучшенная боковая навигация на планшетах */
	.mega-menu-header {
		height: auto;
	}

	.menu-categories {
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		scroll-snap-type: x mandatory;
		padding: 0.75rem;
		gap: 0.5rem;
	}

	/* Оптимизация для различных панелей */
	.menu-panel-highlight h3 {
		font-size: 1.1rem;
	}

	.menu-panel-highlight p {
		font-size: 0.85rem;
		margin-bottom: 1.25rem;
	}

	/* Специальная адаптация для узкого экрана */
	@media (max-height: 670px) {
		.mega-menu-content {
			max-height: 60vh;
		}

		.menu-panel-highlight {
			min-height: 160px;
		}

		.highlight-btn {
			padding: 0.5rem 1rem;
		}
	}

	@media (orientation: landscape) {
		.menu-panel-grid {
			grid-template-columns: repeat(3, 1fr);
		}

		.menu-panel-highlight {
			grid-column: 1 / 4;
		}
	}
}

/* Большие мобильные устройства (640px - 767px) */
@media (min-width: 40em) and (max-width: 47.99em) {
	.mega-menu {
		width: 100%;
		position: fixed;
		height: 100%;
		top: 0;
		left: 0;
		transform: none !important;
		border-radius: 0;
	}

	.mega-menu-content {
		padding: 1.25rem 1rem;
	}

	.menu-panel-grid {
		grid-template-columns: 1fr;
		grid-gap: 1rem;
	}

	.menu-categories {
		justify-content: flex-start;
		padding: 0.75rem 0.5rem;
		gap: 0.375rem;
	}

	.menu-category {
		padding: 0.5rem 0.875rem;
		font-size: 0.8125rem;
	}

	.menu-group-title {
		margin-bottom: 0.75rem;
		font-size: 0.9375rem;
	}

	/* Сетка для ссылок на больших мобильных - 2 колонки */
	.menu-list {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
		gap: 0.5rem;
	}

	.menu-list li {
		margin-bottom: 0;
	}

	/* Уменьшение размеров элементов для оптимального отображения */
	.link-title {
		font-size: 0.875rem;
	}

	.link-desc {
		font-size: 0.75rem;
	}

	.mega-menu-close {
		position: fixed;
		width: 2.75rem;
		height: 2.75rem;
		font-size: 1.25rem;
		top: 1rem;
		right: 1rem;
	}

	/* Высота контента для скролла */
	.mega-menu-content {
		max-height: calc(100vh - 130px);
		overflow-y: auto;
	}

	/* Улучшенное центрирование контента */
	.mega-menu-content .container {
		max-width: 95%;
		margin: 0 auto;
		padding: 0 0.5rem;
	}

	@media (orientation: landscape) {
		.menu-list {
			grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
		}

		.mega-menu-content {
			max-height: calc(100vh - 120px);
			padding: 1rem 0.5rem;
		}

		.mega-menu-footer {
			padding: 0.75rem 0;
		}
	}
}

/* Средние мобильные устройства (480px - 639px) */
@media (min-width: 30em) and (max-width: 39.99em) {
	.mega-menu {
		width: 100%;
		position: fixed;
		height: 100%;
		top: 0;
		left: 0;
		transform: none !important;
		border-radius: 0;
	}

	.mega-menu-content {
		padding: 1rem 0.75rem;
		max-height: calc(100vh - 130px);
	}

	.menu-panel-grid {
		grid-template-columns: 1fr;
		grid-gap: 0.75rem;
		padding: 0 0.5rem;
	}

	.menu-group-title {
		font-size: 0.875rem;
		margin-bottom: 0.75rem;
		padding-bottom: 0.375rem;
	}

	.link-title {
		font-size: 0.875rem;
	}

	.link-desc {
		font-size: 0.75rem;
		margin-top: 0.125rem;
	}

	.menu-list a {
		padding: 0.625rem;
		border-radius: 0.375rem;
	}

	.link-icon {
		width: 2.25rem;
		height: 2.25rem;
		margin-right: 0.75rem;
		font-size: 1rem;
	}

	.highlight-content {
		padding: 1.25rem;
	}

	.highlight-badge {
		padding: 0.1875rem 0.625rem;
		margin-bottom: 0.75rem;
	}

	.menu-panel-highlight h3 {
		font-size: 1.0625rem;
		margin-bottom: 0.5rem;
	}

	.menu-panel-highlight p {
		font-size: 0.75rem;
		margin-bottom: 1rem;
	}

	.highlight-btn {
		width: 100%;
		justify-content: center;
		padding: 0.5rem 1rem;
	}

	.mega-menu-close {
		top: 0.625rem;
		right: 0.625rem;
		width: 2.5rem;
		height: 2.5rem;
		font-size: 1rem;
		position: fixed;
	}

	.menu-categories {
		justify-content: flex-start;
		padding: 0.625rem 0.5rem;
		gap: 0.25rem;
	}

	.menu-category {
		padding: 0.4375rem 0.75rem;
		font-size: 0.8125rem;
		min-width: auto;
	}

	.mm-footer-cta p {
		font-size: 0.875rem;
	}

	.mm-cta-btn {
		font-size: 0.8125rem;
		padding: 0.5rem 1rem;
		width: 100%;
	}

	/* Полноэкранное мега-меню */
	.mega-menu::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background-color: rgba(0, 0, 0, 0.5);
		z-index: -1;
	}

	/* Улучшенное отображение групп на мобильных */
	.menu-group {
		margin-bottom: 1rem;
		background: #fff;
		border-radius: 0.5rem;
		padding: 0.75rem;
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
	}

	/* Оптимизация для альбомной ориентации */
	@media (orientation: landscape) {
		.menu-list {
			grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
			gap: 0.5rem;
		}

		.menu-panel-highlight {
			min-height: 150px;
		}

		.mega-menu-content {
			max-height: calc(100vh - 110px);
			padding: 0.75rem 0.5rem;
		}

		.mega-menu-footer {
			padding: 0.5rem 0;
		}

		.menu-group {
			margin-bottom: 0.75rem;
		}
	}
}

/* Малые мобильные устройства (360px - 479px) */
@media (min-width: 22.5em) and (max-width: 29.99em) {
	.mega-menu {
		width: 100%;
		position: fixed;
		height: 100%;
		top: 0;
		left: 0;
		transform: none !important;
		border-radius: 0;
	}

	.mega-menu-content {
		padding: 0.75rem 0.5rem;
		max-height: calc(100vh - 120px);
	}

	.menu-panel-grid {
		grid-template-columns: 1fr;
		grid-gap: 0.625rem;
	}

	.menu-categories {
		justify-content: flex-start;
		padding: 0.5rem 0.375rem;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.menu-category {
		scroll-snap-align: start;
		padding: 0.375rem 0.625rem;
		font-size: 0.75rem;
		min-width: auto;
	}

	.menu-group-title {
		font-size: 0.8125rem;
		margin-bottom: 0.5rem;
		padding-bottom: 0.25rem;
	}

	.link-title {
		font-size: 0.75rem;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.link-desc {
		font-size: 0.6875rem;
		-webkit-line-clamp: 1;
		max-height: 1.3em;
	}

	.link-icon {
		width: 2rem;
		height: 2rem;
		margin-right: 0.5rem;
		font-size: 0.875rem;
	}

	.menu-list a {
		padding: 0.5rem;
	}

	.menu-panel-highlight h3 {
		font-size: 1rem;
		margin-bottom: 0.375rem;
	}

	.menu-panel-highlight p {
		font-size: 0.6875rem;
		margin-bottom: 0.75rem;
	}

	.highlight-content {
		padding: 1rem;
	}

	.highlight-btn {
		width: 100%;
		padding: 0.4375rem 0.875rem;
		font-size: 0.75rem;
		justify-content: center;
	}

	.mm-footer-cta p {
		font-size: 0.8125rem;
		margin-bottom: 0.5rem;
	}

	.mega-menu-footer {
		padding: 0.75rem 0;
	}

	.mm-cta-btn {
		padding: 0.4375rem 0.875rem;
		font-size: 0.75rem;
		width: 100%;
	}

	.mega-menu-close {
		top: 0.5rem;
		right: 0.5rem;
		width: 2.25rem;
		height: 2.25rem;
		font-size: 0.875rem;
		position: fixed;
	}

	/* Компактное отображение групп меню */
	.menu-group {
		margin-bottom: 0.75rem;
		border-radius: 0.25rem;
		padding: 0.625rem;
		background: #fff;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	}

	/* Специальная компактная сетка для альбомной ориентации */
	@media (orientation: landscape) {
		.menu-panel-grid {
			display: grid;
			grid-template-columns: repeat(2, 1fr);
			grid-gap: 0.5rem;
		}

		.menu-list {
			display: block;
		}

		.menu-group {
			padding: 0.5rem;
		}

		.menu-panel-highlight {
			min-height: 120px;
			grid-column: 1 / 3;
		}

		.mega-menu-content {
			padding: 0.5rem 0.5rem;
			max-height: calc(100vh - 100px);
		}

		.mega-menu-footer {
			padding: 0.5rem 0;
		}
	}
}

/* Очень малые мобильные устройства (320px - 359px) */
@media (max-width: 22.4375em) {
	.mega-menu {
		width: 100%;
		position: fixed;
		height: 100%;
		top: 0;
		left: 0;
		transform: none !important;
		border-radius: 0;
	}

	.mega-menu-content {
		padding: 0.625rem 0.375rem;
		max-height: calc(100vh - 110px);
	}

	.menu-panel-grid {
		grid-template-columns: 1fr;
		grid-gap: 0.5rem;
		padding: 0;
	}

	.menu-categories {
		justify-content: flex-start;
		padding: 0.5rem 0.25rem;
		flex-wrap: nowrap;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		gap: 0.2rem;
	}

	.menu-category {
		scroll-snap-align: start;
		padding: 0.3125rem 0.5rem;
		font-size: 0.75rem;
		min-width: auto;
	}

	.menu-group-title {
		font-size: 0.6875rem;
		padding-bottom: 0.25rem;
		margin-bottom: 0.5rem;
	}

	.link-title {
		font-size: 0.6875rem;
	}

	.link-desc {
		display: none;
		/* Скрываем на очень маленьких экранах */
	}

	.link-icon {
		width: 1.75rem;
		height: 1.75rem;
		margin-right: 0.375rem;
		font-size: 0.75rem;
	}

	.menu-list a {
		padding: 0.375rem;
	}

	.menu-panel-highlight h3 {
		font-size: 0.9375rem;
		margin-bottom: 0.375rem;
	}

	.menu-panel-highlight p {
		font-size: 0.625rem;
		margin-bottom: 0.625rem;
		line-height: 1.3;
	}

	.highlight-content {
		padding: 0.75rem;
	}

	.highlight-badge {
		padding: 0.125rem 0.5rem;
		margin-bottom: 0.5rem;
		font-size: 0.625rem;
	}

	.highlight-btn {
		width: 100%;
		padding: 0.375rem 0.75rem;
		font-size: 0.6875rem;
		justify-content: center;
	}

	.mm-footer-cta p {
		font-size: 0.6875rem;
		margin-bottom: 0.5rem;
	}

	.mega-menu-footer {
		padding: 0.625rem 0;
	}

	.mm-cta-btn {
		padding: 0.375rem 0.75rem;
		font-size: 0.6875rem;
		width: 100%;
	}

	.mega-menu-close {
		top: 0.375rem;
		right: 0.375rem;
		width: 2rem;
		height: 2rem;
		font-size: 0.75rem;
		position: fixed;
	}

	/* Компактное отображение для ультрамалых экранов */
	.menu-group {
		margin-bottom: 0.5rem;
		border-radius: 0.25rem;
		padding: 0.5rem;
		background: #fff;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	}

	/* Дополнительное улучшение центрирования для малых экранов */
	.mega-menu-content,
	.mega-menu-header,
	.mega-menu-footer {
		padding-left: 0.25rem;
		padding-right: 0.25rem;
	}

	/* Сжатие кнопок для лучшего отображения */
	.highlight-btn i,
	.mm-cta-btn i {
		margin-left: 0.25rem;
		margin-right: 0.25rem;
	}

	/* Специальная компактная сетка для альбомной ориентации */
	@media (orientation: landscape) {
		.menu-panel-grid {
			display: grid;
			grid-template-columns: repeat(2, 1fr);
			grid-gap: 0.375rem;
		}

		.menu-list {
			display: block;
		}

		.menu-group {
			padding: 0.375rem;
			margin-bottom: 0.375rem;
		}

		.menu-panel-highlight {
			min-height: 100px;
			grid-column: 1 / 3;
		}

		.mega-menu-content {
			padding: 0.375rem;
			max-height: calc(100vh - 80px);
		}

		.mega-menu-footer {
			padding: 0.375rem 0;
		}
	}
}

/* Особые адаптации для сверхмалых устройств (<320px) */
@media (max-width: 20em) {
	.mega-menu-content {
		padding: 0.5rem 0.25rem;
	}

	.menu-category {
		padding: 0.25rem 0.375rem;
		font-size: 0.625rem;
	}

	.menu-group-title {
		font-size: 0.625rem;
	}

	.link-title {
		font-size: 0.625rem;
	}

	.menu-list a {
		padding: 0.3125rem;
	}

	.link-icon {
		width: 1.5rem;
		height: 1.5rem;
		margin-right: 0.3125rem;
		font-size: 0.625rem;
	}

	.mega-menu-close {
		width: 1.75rem;
		height: 1.75rem;
		font-size: 0.675rem;
	}

	.menu-panel-highlight h3 {
		font-size: 0.875rem;
	}

	.highlight-btn,
	.mm-cta-btn {
		padding: 0.3125rem 0.5rem;
		font-size: 0.625rem;
	}
}

/* Устройства с высоким соотношением сторон (длинные и узкие) */
@media (max-aspect-ratio: 2/3) and (max-width: 48em) {
	.menu-panel-grid {
		grid-gap: 0.75rem;
	}

	.mega-menu-content {
		max-height: 70vh;
	}

	.menu-panel-highlight {
		min-height: 150px;
	}

	/* Сокращаем вертикальные отступы */
	.menu-group {
		margin-bottom: 0.75rem;
	}

	.mega-menu-footer {
		padding: 0.75rem 0;
	}
}

/* Устройства с низким соотношением сторон (широкие и короткие) */
@media (min-aspect-ratio: 16/9) and (max-width: 64em) {
	.mega-menu-content {
		max-height: 75vh;
	}

	.menu-panel-grid {
		grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	}

	.menu-panel-highlight {
		grid-column: 1 / -1;
		min-height: 120px;
	}

	.menu-list {
		display: block;
	}

	.menu-list li {
		margin-bottom: 0.375rem;
	}

	.mega-menu-footer {
		padding: 0.625rem 0;
	}
}

/* Адаптивные градиенты и визуальные эффекты для разных размеров экранов */
@media (max-width: 48em) {

	/* Упрощенные градиенты для повышения производительности на мобильных */
	.menu-panel-highlight {
		background: #ff6b35;
	}

	.infra-highlight {
		background: #3858f9;
	}

	.security-highlight {
		background: #0a7c43;
	}

	.software-highlight {
		background: #ff9900;
	}

	/* Упрощенные эффекты наведения и нажатия */
	.menu-list a:hover {
		transform: none;
	}

	.menu-list a:active {
		background-color: #f5f5f5;
		transform: translateX(4px);
	}
}

/* Поддержка устройств с низким разрешением */
@media screen and (max-width: 62em) and (max-resolution: 150dpi) {
	.menu-category {
		padding: 0.5rem 0.75rem;
	}

	.menu-group-title {
		font-size: 0.8125rem;
	}

	.link-title {
		font-size: 0.8125rem;
	}

	.link-desc {
		font-size: 0.6875rem;
	}

	/* Упрощенные тени */
	.menu-panel-highlight {
		box-shadow: 0 4px 15px -2px rgba(0, 0, 0, 0.2);
	}

	.menu-category.active {
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	}
}

/* Высокое разрешение (Retina и выше) */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
	.menu-panel-highlight::before {
		background-size: 75px 75px;
	}

	.menu-category.active {
		box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	}

	/* Улучшения для Retina-дисплеев */
	.link-icon {
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	}

	.highlight-badge {
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	}

	/* Более тонкие детали для высокого разрешения */
	.menu-group-title::after {
		height: 1.5px;
	}

	.mm-footer-links a::after {
		height: 0.75px;
	}
}

/* Адаптация для устройств с поддержкой жестов (тачскрин) и настольных ПК */
@media (hover: hover) and (pointer: fine) {

	/* На устройствах с точным указателем сохраняем все эффекты наведения */
	.menu-category:hover {
		transform: translateY(-1px);
	}

	.menu-list a:hover {
		background-color: #f5f5f5;
		transform: translateX(4px);
	}

	.highlight-btn:hover,
	.mm-cta-btn:hover {
		transform: translateY(-3px);
	}

	/* Дополнительные эффекты для настольных компьютеров */
	.menu-group-title i {
		transition: transform 0.3s ease;
	}

	.menu-group:hover .menu-group-title i {
		transform: translateY(-1px) scale(1.1);
	}
}

@media (hover: none) {

	/* На сенсорных устройствах убираем эффекты наведения, сохраняем только активные состояния */
	.menu-list a:hover,
	.menu-category:hover,
	.highlight-btn:hover,
	.mm-cta-btn:hover,
	.menu-list a:hover .link-icon,
	.menu-list a:hover .link-title,
	.mm-footer-links a:hover {
		transform: none;
		box-shadow: none;
		background-color: inherit;
		color: inherit;
	}

	.menu-list a:active {
		background-color: #f5f5f5;
		transform: translateX(4px);
	}

	.menu-list a:active .link-icon {
		background-color: #ff6b35;
		color: #fff;
		transform: scale(1.05);
	}

	.menu-list a:active .link-title {
		color: #ff6b35;
	}

	.highlight-btn:active {
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
		transform: translateY(1px);
		color: #ff6b35;
	}

	.highlight-btn:active i {
		transform: translateX(4px);
	}

	.mm-cta-btn:active {
		background-color: #e85927;
		transform: translateY(1px);
	}

	.mm-footer-links a:active {
		color: #ff6b35;
	}

	/* Улучшенный отклик на сенсорные экраны */
	.menu-category {
		padding: 0.75rem 1rem;
		/* Увеличиваем для лучшего касания */
	}

	.mega-menu-close,
	.mm-cta-btn,
	.highlight-btn {
		min-height: 2.75rem;
		/* Минимальная высота кнопок для удобства касания */
	}
}

/* Поддержка фокуса на сенсорных устройствах */
@media (hover: none) and (pointer: coarse) {

	.menu-list a:focus,
	.menu-category:focus,
	.highlight-btn:focus,
	.mm-cta-btn:focus {
		outline: none;
	}

	.menu-list a:active,
	.menu-category:active,
	.highlight-btn:active,
	.mm-cta-btn:active {
		outline: none;
	}
}

/* Адаптация под устройства с особыми возможностями */
@media screen and (prefers-reduced-motion: reduce) {

	.mega-menu,
	.menu-list a,
	.menu-category,
	.highlight-btn,
	.mm-cta-btn,
	.link-icon,
	.link-title,
	.mega-menu-close,
	.mm-footer-links a {
		transition: none !important;
		animation: none !important;
	}

	.highlight-badge::after,
	.menu-panel-highlight:hover::before {
		animation: none !important;
	}
}

/* Экраны с большой плотностью пикселей - улучшенные визуальные эффекты */
@media (-webkit-min-device-pixel-ratio: 3),
(min-resolution: 288dpi) {
	.menu-category.active::before {
		display: block;
	}

	.menu-group-title::after {
		height: 1px;
	}

	/* Более тонкие линии */
	.menu-group-title {
		border-bottom-width: 0.5px;
	}

	.mega-menu-header,
	.mega-menu-footer {
		border-width: 0.5px;
	}
}

/* Оптимизация для специфических сценариев */
/* Очень широкие мониторы с ограниченной высотой (ультраширокие) */
@media (min-width: 120em) and (max-height: 50em) {
	.mega-menu {
		max-height: 85vh;
	}

	.menu-panel-grid {
		grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
	}

	.menu-panel-highlight {
		grid-column: auto;
		grid-row: auto;
	}
}

/* Подсказки при скролле для визуальной ориентации */
.mega-menu-content::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 20px;
	background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mega-menu-content.scrollable::after {
	opacity: 1;
}

/* Фиксация шапки при скролле только на больших экранах */
@media (min-width: 62em) {
	.mega-menu-header {
		position: sticky;
		top: 0;
	}

	.mega-menu-content {
		overflow-y: auto;
	}
}

/* Print styles - скрываем меню при печати */
@media print {
	.mega-menu {
		display: none !important;
	}
}

/* Улучшенная доступность - видимость фокуса для клавиатурной навигации */
.menu-category:focus-visible,
.menu-list a:focus-visible,
.highlight-btn:focus-visible,
.mm-cta-btn:focus-visible,
.mega-menu-close:focus-visible {
	outline: 2px solid #ff6b35;
	outline-offset: 2px;
}

/* CSS-решение для стабилизации сетки при разной высоте элементов */
@supports (grid-template-rows: masonry) {
	.menu-panel-grid {
		grid-template-rows: masonry;
	}
}

/* Резервное решение для браузеров, не поддерживающих grid-template-rows: masonry */
@supports not (grid-template-rows: masonry) {
	.menu-column {
		height: 100%;
	}

	.menu-group:last-child {
		margin-bottom: auto;
	}
}

@media (max-width: 1050px) {
	.mega-menu {
		width: clamp(18rem, 95vw, 95vw);
		border-radius: 0.5rem;
	}
}

@media (max-width: 480px) {
	.mega-menu {
		width: 98vw;
		border-radius: 0.25rem;
		box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.15);
	}
}

/* Большие экраны */
@media (min-width: 1400px) {
	.mega-menu {
		width: clamp(75rem, 70vw, 87.5rem);
		/* 1400px max */
	}
}

@media (min-width: 1920px) {
	.mega-menu {
		width: clamp(87.5rem, 65vw, 100rem);
		/* 1600px max */
	}
}

/* ========================================================================
   СТИЛИ ДЛЯ БЛОКА КОНТАКТНОЙ ИНФОРМАЦИИ - ИКОНКИ СЛЕВА
   ======================================================================== */

.header-contacts {
	display: flex;
	flex-direction: row;
	gap: 15px;
	padding: 8px 0;
	margin-right: auto;
	/* Смещаем блок влево */
	margin-left: 30px;
	/* Добавляем отступ слева */
}

.contact-item {
	position: relative;
}

.contact-link {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: transform 0.25s ease;
}

.contact-link:hover {
	transform: translateY(-2px);
}

.contact-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	/* Делаем иконки круглыми */
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--color-orange-primary);
	color: white;
	font-size: 1rem;
	transition: all 0.25s ease;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

@media (max-width: 1050px) {
	.contact-icon {
		width: 25px;
		height: 25px;
		font-size: 14px;
	}
}


.contact-link:hover .contact-icon {
	background-color: white;
	color: var(--color-orange-primary);
	box-shadow: 0 4px 8px rgba(255, 108, 54, 0.3);
}

.contact-text {
	display: none;
}

/* Медиа-запросы */
@media (min-width: 992px) {
	.header-contacts {
		display: flex;
	}
}

@media (max-width: 992px) {
	.header-contacts {
		display: flex;
		margin-left: 15px;
	}
}

/* Мобильное меню */
.mobile-menu-active .header-contacts,
.mobile-menu .header-contacts {
	display: flex;
	justify-content: flex-start;
	margin-left: 15px;
	width: auto;
	padding: 15px;
	background: transparent;
	border: none;
}