@charset "UTF-8";
header {
  padding: 20px 0;
  background: #fafafa;
}

.logo {
  max-width: 300px;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.nav-user {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0 0 0 auto;
}
.nav-user__btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  padding: 0 16px;
  margin: 0 8px 0 0;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  color: rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.nav-user__btn-val {
  position: absolute;
  top: -1px;
  right: -9px;
  padding: 4px 7px;
  line-height: 8px;
  background: #F23139;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  border-radius: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.nav-user__btn.dropdown-toggle {
  margin: 0;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  border-radius: 10px;
}
.nav-user__btn.dropdown-toggle span {
  margin: 0 0 0 10px;
}
.nav-user__btn.dropdown-toggle:after {
  margin: 0 0 0 10px;
  width: 8px;
  height: 8px;
  min-width: 8px;
  border: none;
  background: url("../img/arrow-bottom.svg") no-repeat center;
  background-size: 100%;
}
.nav-user__btn.dropdown-toggle:hover::after {
  -webkit-filter: invert(1);
          filter: invert(1);
}
.nav-user__btn img {
  width: 16px;
  height: 16px;
}
.nav-user__btn:hover {
  background: #383E40;
  color: #fff;
}
.nav-user__btn:hover img {
  -webkit-filter: invert(1);
          filter: invert(1);
}
.nav-user__btn:last-child {
  margin: 0;
}

.header {
  padding: 0;
  background: #f6f6f6;
  position: relative;
  z-index: 10;
}
.header::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  opacity: 0.05;
  background: #000;
}

.nav-menu {
  margin: 0 0 0 20px;
}

.menu {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  font-size: 16px;
  font-weight: 600;
  line-height: 18px;
  position: relative;
  z-index: 2;
}
.menu li {
  padding: 8px 0 0;
  margin: 0 -2px 0 0;
}
.menu li:last-child {
  margin: 0;
}
.menu .nav-link {
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.05);
  border-top-color: #f6f6f6;
  width: 236px;
  height: 80px;
  border-radius: 12px 12px 0 0;
  color: rgba(0, 0, 0, 0.7);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.menu li a:hover, .menu li a:focus {
  background: #fafafa;
}
.menu li .active {
  color: #000;
  border-top: 2px solid rgba(0, 0, 0, 0.05);
  border-bottom-color: #fff;
}

.user-menu {
  width: 370px;
  padding: 32px;
  border-radius: 12px;
  border: none;
  -webkit-box-shadow: 0 20px 80px -5px rgba(0, 0, 0, 0.4);
          box-shadow: 0 20px 80px -5px rgba(0, 0, 0, 0.4);
  top: -60px !important;
  z-index: 999;
}
.user-menu__header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 16px;
}
.user-menu__avatar {
  width: 32px;
  height: 32px;
  margin: 0 16px 0 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.user-menu__avatar img {
  width: 100%;
}
.user-menu__info {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
.user-menu__name {
  font-weight: 600;
}
.user-menu__email {
  font-size: 14px;
  font-weight: 500;
  color: #000;
}
.user-menu__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 20px;
}
.user-menu__action {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.05);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  font-size: 14px;
  line-height: 16px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  -webkit-transition: background 0.2s ease;
  transition: background 0.2s ease;
  margin: 0 4px 0 0;
}
.user-menu__action:last-child {
  margin: 0;
}

.user-menu__action img {
  width: 16px;
  margin: 0 10px 0 0;
}
.user-menu__divider {
  width: 100%;
  height: 10px;
  background: url("../img/line-decor.png") no-repeat center;
  background-size: cover;
}
.user-menu__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  width: 100%;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  color: rgba(0, 0, 0, 0.48);
}
.user-menu__title::after {
  content: "";
  width: 100%;
  height: 10px;
  background: url("../img/line-decor.png") no-repeat center;
  background-size: cover;
  margin: 0 0 0 16px;
}
.user-menu__link {
  width: 100%;
  font-weight: 600;
  font-size: 14px;
  line-height: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  color: #000;
}
.user-menu__link:hover {
  color: #383E40;
}
.user-menu__link:last-child {
  border: none;
}
.user-menu__footer {
  margin: 16px 0 0;
}
.user-menu__mobile-head {
  display: none;
}

/* overlay */
.header::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.2s ease;
  transition: opacity 0.2s ease;
  z-index: 998;
}

/* когда dropdown открыт */
.header:has(.dropdown-menu.show)::after {
  opacity: 1;
  pointer-events: auto;
}

/* dropdown выше подложки */
.dropdown-menu {
  z-index: 999;
}
