/* Десктопная шапка сайта (без SVG — только HTML/CSS) */

.ls-site-header {
  position: relative;
  z-index: 200;
  width: 100%;
  background: var(--ls-blue, #004170);
  overflow: visible;
}

.ls-site-header__desktop {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
}

.ls-site-header__inner {
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.ls-site-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: clamp(56px, 4.17vw, 80px);
  padding: 0 clamp(1rem, 6.25%, 120px);
  background: var(--ls-blue, #004170);
  box-sizing: border-box;
}

.ls-site-header__brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.ls-site-header__logo {
  display: block;
  height: clamp(28px, 2.2vw, 40px);
  width: auto;
}

.ls-site-header .ls-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.5rem, 0.75vw, 0.85rem);
  flex: 1 1 auto;
  min-width: 0;
}

.ls-site-header__auth {
  display: flex;
  align-items: center;
  gap: clamp(0.45rem, 0.65vw, 0.75rem);
  flex-shrink: 1;
  min-width: 0;
}

.ls-site-header__auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.72rem, 0.82vw, 0.95rem);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  box-sizing: border-box;
}

.ls-site-header__auth .ls-site-header__auth-link {
  color: #fff;
}

.ls-site-header__auth-link--outline {
  padding: 0.38rem 0.75rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  background: transparent;
}

.ls-site-header__auth-link--outline:hover,
.ls-site-header__auth-link--outline:focus-visible {
  color: #fff;
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.ls-site-header__auth-link--primary {
  padding: 0.38rem 0.85rem;
  color: #fff;
  border: 1px solid var(--ls-orange, #ffa629);
  border-radius: 4px;
  background: var(--ls-orange, #ffa629);
}

.ls-site-header__auth-link--primary:hover,
.ls-site-header__auth-link--primary:focus-visible {
  color: #fff;
  border-color: #ffb84d;
  background: #ffb84d;
  outline: none;
}

.ls-site-header__profile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: min(42vw, 320px);
  flex-shrink: 1;
  min-width: 0;
}

.ls-site-header__profile .ls-user-menu {
  position: relative;
  max-width: 100%;
}

.ls-site-header__profile .ls-user-dropdown {
  z-index: 10000;
}

.ls-site-header__profile .ls-user-chip {
  max-width: 100%;
  padding: 0.18rem 0.65rem 0.18rem 0.18rem;
  gap: 0.5rem;
  font-size: clamp(0.72rem, 0.82vw, 0.92rem);
}

.ls-site-header__profile .ls-user-chip__avatar {
  width: clamp(24px, 1.5vw, 34px);
  height: clamp(24px, 1.5vw, 34px);
  flex-shrink: 0;
}

.ls-site-header__profile .ls-user-chip__chevron {
  width: clamp(16px, 1.05vw, 20px);
  height: clamp(16px, 1.05vw, 20px);
}

.ls-site-header__profile .ls-user-chip__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(10vw, 155px);
  font-size: clamp(0.72rem, 0.82vw, 0.92rem);
}

.ls-site-header .ls-site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(12px, 1.8vw, 28px);
  min-height: clamp(32px, 2.92vw, 56px);
  margin: 0;
  padding: 0 clamp(1rem, 6.25%, 120px);
  box-sizing: border-box;
  background: var(--ls-blue-next, #004a80);
}

.ls-site-header .ls-site-nav__link {
  flex: 0 1 auto;
  min-width: 0;
  color: #fff;
  font-size: clamp(11px, 0.82vw, 15px);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.ls-site-header .ls-site-nav__link:hover,
.ls-site-header .ls-site-nav__link:focus,
.ls-site-header .ls-site-nav__link:focus-visible,
.ls-site-header .ls-site-nav__link:active {
  color: #fff;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 2px;
  outline: none;
  box-shadow: none;
}

@media (min-width: 1024px) {
  .ls-site-header__profile .ls-user-chip {
    padding: 0.22rem 0.75rem 0.22rem 0.22rem;
    gap: 0.55rem;
    font-size: clamp(0.78rem, 0.88vw, 0.98rem);
  }

  .ls-site-header__profile .ls-user-chip__avatar {
    width: clamp(28px, 1.65vw, 38px);
    height: clamp(28px, 1.65vw, 38px);
  }

  .ls-site-header__profile .ls-user-chip__name {
    font-size: clamp(0.78rem, 0.88vw, 0.98rem);
  }
}

@media (max-width: 1100px) {
  .ls-site-header .ls-site-nav {
    gap: clamp(6px, 1.2vw, 12px);
    padding: 0 clamp(0.65rem, 6.25%, 120px);
  }

  .ls-site-header .ls-site-nav__link {
    font-size: clamp(9px, 1.05vw, 12px);
  }

  .ls-site-header__profile .ls-user-chip__name {
    max-width: min(18vw, 120px);
  }
}
