/* UA-HEADER-OVERLAP-FIX-20261023
 * Keep the primary navigation inside its flex box and reserve a bounded account action.
 */
.header-inner { min-width: 0; }
nav.main-nav {
  min-width: 0;
  overflow: hidden;
  justify-content: stretch;
}
nav.main-nav a.nav-item {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}
nav.main-nav a.nav-item.nav-gold { flex: 0 0 auto; }
/* Current portal markup has no nav-gold class on the last Program item. */
@media (max-width: 1450px) {
  nav.main-nav a.nav-item:last-child {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    justify-content: center;
    font-size: 0 !important;
    color: #f5d77a;
    background: linear-gradient(135deg, rgba(212, 165, 60, .18), rgba(180, 130, 40, .12));
    border-color: rgba(212, 165, 60, .38);
    box-shadow: 0 0 0 1px rgba(245, 215, 122, .08) inset;
    overflow: visible;
  }
  nav.main-nav a.nav-item:last-child::after {
    content: "КБ";
    display: inline-block;
    margin-left: 3px;
    font-size: 11px;
    font-weight: 700;
    position: static;
    width: auto;
    height: auto;
    background: none;
    transform: none !important;
  }
}
.header-actions {
  position: relative;
  z-index: 3;
  min-width: 0;
  flex: 0 0 auto;
  background: rgba(17, 24, 22, .96);
}
.auth-header-btn {
  min-width: 0;
  max-width: 148px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-header-btn .auth-ico { flex: 0 0 auto; }

@media (max-width: 1450px) {
  nav.main-nav a.nav-item.nav-gold {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    justify-content: center;
    overflow: visible;
  }
  nav.main-nav a.nav-item.nav-gold .nav-gold-text { display: none !important; }
  nav.main-nav a.nav-item.nav-gold::after {
    content: "КБ" !important;
    display: inline-block;
    margin-left: 3px;
    font-weight: 700;
  }
}

@media (max-width: 1450px) {
  .auth-header-btn {
    max-width: 44px;
    padding-left: 10px !important;
    padding-right: 10px !important;
    justify-content: center;
  }
  .auth-header-btn .auth-txt { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  nav.main-nav a.nav-item { transition: none !important; }
}
