.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 76px;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  border-bottom: 1px solid #e1e9f3;
  background: rgba(248, 251, 255, 0.95);
  backdrop-filter: blur(14px);
  font-family: Manrope, system-ui, sans-serif;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.logo > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px 11px 11px 4px;
  background: var(--green);
  color: #fff;
  font-size: 20px;
}

.header-session {
  display: flex;
  flex: 0 0 390px;
  align-items: center;
  justify-content: flex-end;
  width: 390px;
  min-height: 49px;
  margin-left: auto;
  gap: 4px;
  visibility: hidden;
}

.header.session-ready .header-session {
  visibility: visible;
}

.nav-link {
  border: 0;
  background: transparent;
  padding: 11px 13px;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--green);
}

.nav-link i {
  padding: 2px 5px;
  border-radius: 20px;
  background: var(--coral);
  color: #fff;
  font-size: 9px;
  font-style: normal;
  vertical-align: top;
}

.heart-nav {
  font-size: 21px;
}

.heart-nav i {
  vertical-align: middle;
}

.account {
  display: flex;
  align-items: center;
  gap: 7px;
}

.account > span:last-child {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-avatar {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.nav-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .header {
    height: 66px;
    padding: 0 14px;
  }

  .logo {
    font-size: 19px;
  }

  .logo > span {
    width: 31px;
    height: 31px;
  }

  .header-session {
    flex-basis: 190px;
    width: 190px;
    min-height: 50px;
  }

  .nav-link {
    padding-right: 9px;
    padding-left: 9px;
  }

  .offer-nav {
    font-size: 0;
  }

  .offer-nav::before {
    content: "Оферти";
    font-size: 11px;
  }

  .account {
    font-size: 11px;
  }

  .account > span:last-child {
    display: none;
  }

  .nav-avatar {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 380px) {
  .header-session {
    flex-basis: 176px;
    width: 176px;
  }

  .nav-link {
    padding-right: 7px;
    padding-left: 7px;
  }
}
