header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: var(--primary);
  padding: 10px 20px;
  box-sizing: border-box;
}

header > article {
  height: 100%;
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-evenly;
  align-items: center;
}
#headerIconsBlock {
  justify-content: flex-end;
  gap: 20px;
}
#headerMenuButton {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.headerLink {
  height: 100%;
  text-decoration: none;
  font-family: var(--font-family);
  font-size: 20px;
  color: var(--secondary);
  transition: all 0.3s ease;
  position: relative;
}
header > article:nth-child(2n + 1) > a {
  height: auto;
}

.headerLink::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.headerLink:hover::after {
  width: 100%;
}
.headerLink:focus::after {
  width: 100%;
}

#svg-burger {
  width: 5rem;
  height: auto;
  cursor: pointer;
  -webkit-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.path-svg-burger {
  fill: none;
  stroke: var(--secondary);
  stroke-width: 40;
  stroke-linecap: round;
  stroke-linejoin: round;
  -webkit-transition: stroke-dashoffset 0.5s
      cubic-bezier(0.25, -0.25, 0.75, 1.25),
    stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  -o-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25),
    stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25),
    stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
}

#svg-burger path#top,
#svg-burger path#bottom {
  stroke-dasharray: 240px 950px;
}

#svg-burger path#middle {
  stroke-dasharray: 240px 240px;
}

#svg-burger.cross path#top,
#svg-burger.cross path#bottom {
  stroke-dashoffset: -650px;
}

#svg-burger.cross path#middle {
  stroke-dashoffset: -240px;
}
.logo {
  height: 70px;
  width: 75%;
  object-fit: contain;
  cursor: pointer;
}

header .desktopVersion {
  display: none;
}
#headerMenuButton {
  background-color: transparent;
  border: none;
  color: var(--secondary);
  font-size: 22px;
  width: 40px;
  overflow: hidden;
  z-index: 2001;
}

#svg-burger {
  width: 5rem;
  height: auto;
  cursor: pointer;
  -webkit-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.path-svg-burger {
  fill: none;
  -webkit-transition: stroke-dashoffset 0.5s
      cubic-bezier(0.25, -0.25, 0.75, 1.25),
    stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  -o-transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25),
    stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  -webkit-transition: stroke-dashoffset 0.5s
      cubic-bezier(0.25, -0.25, 0.75, 1.25),
    stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  transition: stroke-dashoffset 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25),
    stroke-dasharray 0.5s cubic-bezier(0.25, -0.25, 0.75, 1.25);
  stroke-width: 2rem;
  stroke-linecap: round;
  stroke: var(--secondary);
  stroke-dashoffset: 0;
}
#svg-burger.cross .path-svg-burger {
  stroke: var(--primary);
}
.mobileMenu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100vh;
  background-color: var(--secondary);
  transition: right 0.3s ease-in-out;
  z-index: 2000;
  padding-top: 115px;
}

.mobileMenu.active {
  right: 0;
}

.mobileMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  height: 100%;
  position: relative;
}

.mobileMenu ul li {
  padding: 15px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mobileMenu ul li.mobileLogout {
  position: absolute;
  top: 70vh;
  left: 0;
}
.mobileMenu ul li .headerLink {
  color: var(--primary);
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}
.mobileMenu ul li .headerLink > span {
  height: 24px;
  margin-bottom: 10px;
}
.mobileMenu ul li .headerLink::after {
  background-color: var(--primary);
}
.invertedButtonLink {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
.invertedButtonLink:hover {
  background-color: var(--primary);
  color: var(--neutral);
}
.headerIcon {
  color: var(--secondary);
  transition: all 0.3s ease;
}
.mobileIcon {
  color: var(--primary);
}
.headerIcon:hover {
  color: var(--tertiary);
}
.iconWrapper {
  position: relative;
  display: inline-flex;
}

.iconWrapper.loggedIn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: var(--logged-in);
  border-radius: 50%;
  border: 2px solid var(--primary);
}
@media screen and (min-width: 1300px) {
  header {
    justify-content: space-between;
    gap: 170px;
  }
  #headerLeftBlock {
    justify-content: space-evenly;
  }
  .mobileMenu {
    display: none;
  }
  header > article {
    flex-grow: 1;
    min-width: 40%;
  }
  header .desktopVersion {
    display: unset;
  }
  .logo {
    width: 300px;
    object-fit: cover;
    height: 300px;
    position: fixed;
    top: -130px;
    left: 50%;
    transform: translateX(-50%);
  }
  header > article .mobileVersion,
  #headerMenuButton {
    display: none;
  }
}
