.user__password-icon{display:none}

.lang-switch__icon{
  display:none;
  line-height:1;
}

.nav-icon-sprite{
  position:absolute;
  width:0;
  height:0;
  overflow:hidden;
}

.nav{
  gap:6px;
}

.nav__link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:7px 9px;
  line-height:1.15;
  white-space:nowrap;
}

.nav__icon{
  width:15px;
  height:15px;
  flex:0 0 15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  color:#8297b4;
  transition:color .2s ease, transform .2s ease;
}

.nav__label{
  min-width:0;
}

.nav__link:hover .nav__icon{
  color:#67e8f9;
  transform:translateY(-1px);
}

.nav__link.is-active .nav__icon{
  color:#5eead4;
}

.topbar__cabinet-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
}

.topbar__cabinet-icon{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

@media (max-width:980px){
  .topbar__inner{
    display:grid;
    align-items:center;
    padding:6px 10px;
    gap:6px;
    grid-template-columns:minmax(0,1fr) auto auto auto;
  }
  .brand__mark{font-size:17px}
  .brand__meta{font-size:9px;letter-spacing:.04em;max-width:28ch;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .nav-toggle{
    display:inline-flex;
    grid-column:2;
    grid-row:1;
    width:34px;
    min-width:34px;
    height:34px;
    padding:0;
  }
  .nav-toggle > span:last-child{
    display:none;
  }
  .lang-switch{
    grid-column:3;
    grid-row:1;
    gap:2px;
    padding:2px;
  }
  .lang-switch__link{
    min-width:27px;
    min-height:30px;
    padding:2px 4px;
    font-size:16px;
    letter-spacing:0;
  }
  .lang-switch__label{
    display:none;
  }
  .lang-switch__icon{
    display:inline-flex;
  }
  .auth{
    grid-column:4;
    grid-row:1;
    gap:4px;
    justify-content:flex-end;
  }
  .auth .btn{margin:0;padding:7px 9px;border-radius:9px;font-size:12px}
  .auth > .btn--ghost:not(.topbar__cabinet-link){display:none}
  .user{gap:4px}
  .user__name,.user__ava{display:none}
  .auth .user__logout,.auth .user__password{width:34px;min-width:34px;height:34px;padding:0}
  .user__password-label{display:none}
  .user__password-icon{display:block;width:16px;height:16px}
  .topbar .nav{
    grid-column:1 / -1;
    grid-row:2;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px;
    min-width:0;
    max-height:0;
    overflow:hidden;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
  }
  .topbar.is-nav-open .nav{
    max-height:min(360px,calc(100vh - 90px));
    max-height:min(360px,calc(100dvh - 90px));
    overflow-y:auto;
    overflow-x:hidden;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    visibility:visible;
    opacity:1;
    pointer-events:auto;
    padding-top:4px;
    padding-bottom:4px;
  }
  .auth > .topbar__cabinet-link{
    display:inline-flex;
    width:34px;
    min-width:34px;
    height:34px;
    padding:0;
  }
  .topbar__cabinet-link > span{
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
  }
  .topbar .nav__link{
    min-width:0;
    min-height:36px;
    padding:6px 8px;
    font-size:12px;
    white-space:normal;
    overflow-wrap:anywhere;
    justify-content:flex-start;
    text-align:left;
  }
  .nav__icon{
    width:16px;
    height:16px;
    flex-basis:16px;
  }
}
