header.main-header {
  position: relative;
  transition: none;
  z-index: 1000;
  width: 100%;
  box-shadow: none;
}

.main-header--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: none;
}

.header-hidden {
  transform: translateY(-100%);
}

.main-header__container {
  max-width: 1200px;
  margin: 5px auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  flex-wrap: wrap;
  box-shadow: none;
}

.main-header__logo--desktop,
.main-header__profile--desktop,
.main-header__nav--desktop {
  display: flex;
  align-items: center;
}

.main-header__logo-link {
  display: flex;
  align-items: center;
}
.main-header__logo-img {
  height: 48px;
  object-fit: contain;
  display: block;
  max-width: 100%;
  box-shadow: none;
  filter: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.main-header__logo-link--mobile,
.main-header__logo-img--mobile,
.main-header__mobile-top,
.main-header__nav--mobile {
  display: none;
}

/* Навигация (ul > li > a) */
.main-header__menu-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: visible;
  box-shadow: none;
}

.main-header__menu-link {
  text-decoration: none;
  color: #333;
  font-size: 1rem;
  font-weight: normal;
  transition: none;
  padding: 4px 0;
  outline: none;
  box-shadow: none;
  text-shadow: none;
  filter: none;
  background: none;
  transform: none;

  /* Отключаем выделение текста */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.main-header__menu-link * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.main-header__menu-link[aria-current="page"],
.main-header__menu-link.active {
  color: #0070f3;
  font-weight: 500;
  box-shadow: none;
  text-shadow: none;
}

.main-header__menu-link:focus {
  outline: none;
  box-shadow: none;
}

/* Кнопка профиля */
.main-header__profile-link {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #333;
  font-weight: normal;
  font-size: 1rem;
  transition: none;
  box-shadow: none;
  filter: none;
  text-shadow: none;
  background: none;
  transform: none;

  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.main-header__profile-link * {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.main-header__profile-link i {
  font-size: 1.2rem;
  filter: none;
  box-shadow: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* --- Мобильное премиум меню --- */
@media (max-width: 768px) {
  .main-header__logo--desktop,
  .main-header__profile--desktop,
  .main-header__nav--desktop {
    display: none;
  }
  .main-header__mobile-top,
  .main-header__nav--mobile {
    display: flex;
    width: 100%;
    align-items: center;
  }
  .main-header__mobile-top {
    justify-content: space-between;
    padding: 15px 0;
  }
  .main-header__logo-link--mobile,
  .main-header__logo-img--mobile {
    display: flex;
    align-items: center;
  }
  .main-header__logo-img--mobile {
    height: 32px;
    box-shadow: none;
    filter: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .main-header__profile-link--mobile {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    box-shadow: none;
    filter: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .main-header__nav--mobile {
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    padding: 0 0 18px 0;
    background: none;
    box-shadow: none;
    margin-top: 10px;
    overflow-x: hidden;
  }
  .main-header__menu-list--mobile-premium {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    max-width: 440px;
    gap: 0.6rem;
    margin: 0 auto;
    padding: 13px 12px 12px 12px;
    border-radius: 24px;
    background: none;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
  }
  .main-header__menu-item {
    flex: 1 1 0;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    transform: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .main-header__menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    min-width: 0;
    transition: none;
    transform: none;
    filter: none;
    text-shadow: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  .main-header__menu-link:active,
  .main-header__menu-link:focus {
    outline: none;
  }
  .main-header__menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 32px;
    height: 32px;
    margin-bottom: 6px;
    border-radius: 10px;
    font-size: 1.09rem;
    background: #f0f4fa;
    border: 1.2px solid #e4eaf5;
    box-shadow: none;
    background-clip: padding-box;
    overflow: visible;
    z-index: 1;
    transition: none;
    filter: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .main-header__menu-icon::before,
  .main-header__menu-icon::after {
    display: none;
  }
  .main-header__menu-item.active .main-header__menu-icon,
  .main-header__menu-item:focus-within .main-header__menu-icon {
    background: #e9f3fa;
    box-shadow: none;

    transform: none;
  }
  .main-header__menu-item:active .main-header__menu-icon {
    background: #f6fafd;
    box-shadow: none;

    transform: none;
  }
  .main-header__menu-icon i {
    z-index: 2;
    font-size: 1.09em;
    filter: none;

    transition: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .main-header__menu-item.active .main-header__menu-icon i,
  .main-header__menu-item:focus-within .main-header__menu-icon i {
    filter: none;
  }
  .main-header__menu-text {
    font-size: 0.97rem;
    color: #4c5870;
    margin-top: 0;
    font-weight: 500;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    letter-spacing: 0.01em;
    width: 100%;
    line-height: 1.18;
    user-select: none;
    background: none;
    box-shadow: none;
    border-radius: 0;
    transition: none;
    padding: 0 0 1.5px 0;
    text-shadow: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }
  .main-header__menu-item.active .main-header__menu-text,
  .main-header__menu-item:focus-within .main-header__menu-text {
    color: #19427d;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: none;
  }
}

/* max-width: 480px — компактнее шрифт */
@media (max-width: 480px) {
  .main-header__container {
    padding: 5 15px;
  }
  .main-header__menu-link {
    font-size: 0.95rem;
  }
  .main-header__nav--mobile {
    gap: 0.8rem;
  }
  .main-header__menu-list--mobile-premium {
    padding: 8px 1vw;
    gap: 0.09rem;
  }
  .main-header__menu-icon {
    width: 28px;
    height: 28px;
    font-size: 0.98em;
  }
  .main-header__menu-text {
    font-size: 0.92rem;
  }
}

/* max-width: 320px — минимальный шрифт */
@media (max-width: 320px) {
  .main-header__menu-link {
    font-size: 0.88rem;
  }
  .main-header__menu-text {
    font-size: 0.85rem;
  }
}
/* Отключаем выделение и подсветку на логотипе */
.main-header__logo-link,
.main-header__logo-img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.main-header__logo-link:focus,
.main-header__logo-link:active,
.main-header__logo-img:focus,
.main-header__logo-img:active {
  outline: none;
  box-shadow: none;
}

.main-header__logo-link * {
  user-select: none;
}
@media (max-width: 480px) {
  .main-header__menu-text {
    white-space: nowrap; /* Запрет переноса */
    overflow: visible; /* Позволяем тексту не обрезаться */
    text-overflow: clip; /* Отключаем троеточие */
    font-size: 0.75rem; /* Уменьшаем шрифт для влезания */
    max-width: none; /* Убираем ограничение по ширине */
    padding: 0 2px; /* Немного отступов по бокам */
    letter-spacing: 0.01em; /* Для читаемости */
  }
  .main-header__menu-item {
    max-width: none; /* Убираем ограничение */
    flex: 1 1 auto; /* Даем пунктам растягиваться */
  }
  .main-header__menu-list--mobile-premium {
    gap: 0.3rem; /* Можно чуть увеличить отступы */
  }
}
@media (max-width: 320px) {
  .main-header__menu-text {
    font-size: 0.65rem;
    padding: 0 1px;
  }
}
@media (max-width: 480px) {
  .main-header__menu-list--mobile-premium {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 0; /* убираем боковые отступы */
    margin: 0;
  }

  .main-header__menu-item {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  .main-header__menu-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .main-header__menu-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .main-header__menu-text {
    font-size: 0.8rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;

    max-width: 100%;
  }
}
.main-header__menu-icon {
  background: #fff; /* Белый фон вокруг иконки */
  width: 50px;
  height: 50px;
  border-radius: 15px; /* Округляем углы */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1); /* Легкая тень */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* Плавная анимация */
  background-image: url("путь_к_изображению.png"); /* Путь к изображению для иконки */
  background-size: contain; /* Обеспечиваем, чтобы изображение не выходило за пределы */
  background-repeat: no-repeat;
}

.main-header__menu-icon i {
  background: linear-gradient(
    145deg,
    #4d8bf0,
    #133670
  ); /* Градиент для самой иконки */
  -webkit-background-clip: text; /* Применение градиента к тексту */
  color: transparent; /* Делаем текст прозрачным */
  font-size: 1.5rem; /* Размер шрифта иконки */
}

.main-header__menu-icon:hover {
  transform: scale(1.05); /* Легкое увеличение при наведении */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Усиленная тень при наведении */
}
