body.content-header-drawer-is-open {
  overflow: hidden;
}

.content-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 1000;
  width: 100%;
  min-width: 1280px;
  padding-block: 40px 0;
  padding-inline: 40px;
  -webkit-font-smoothing: auto;
  letter-spacing: .56px;
}

.content-header__inner {
  display: flex;
  height: 60px;
  align-items: center;
  gap: 15px;
  margin-inline: auto;
  padding-block: 5px 7px;
  padding-inline: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.content-header__logo {
  display: block;
  flex: 0 0 auto;
  transition: opacity 0.3s ease;
}

.content-header__logo img {
  display: block;
  width: 175px;
  height: auto;
  margin-inline-start: 4px;
}

.content-header__toggle {
  display: none;
}

.content-header__nav {
  margin-inline-start: auto;
}

.content-header__menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-header__menu-item {
  display: flex;
  align-items: center;
}

.content-header__menu-item--login {
  margin-block-start: 1px;
  margin-inline-start: 3px;
}

.content-header__menu a,
.content-header__login,
.content-header__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
  .content-header__menu a:hover,
  .content-header__login:hover {
    color: var(--blue);
  }

  .content-header__button:hover {
    opacity: 0.6;
  }

  .content-header__logo:hover {
    opacity: 0.6;
  }

  .content-header__login:hover img {
    filter: brightness(0) saturate(100%) invert(44%) sepia(93%) saturate(1982%)
      hue-rotate(188deg) brightness(98%) contrast(93%);
  }
}

.content-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.content-header__login {
  gap: 7px;
}

.content-header__login img {
  display: block;
  width: 18px;
  height: 18px;
  margin-block-start: 2px;
  transition: filter 0.3s ease;
}

.content-header__button {
  height: 44px;
  padding-block: 15px;
  padding-inline: 16px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.content-header__button--download {
  width: 144px;
  color: var(--white);
  background-color: var(--orange);
}

.content-header__button--demo {
  width: 118px;
  color: var(--blue);
  background-color: #fbfdfe;
  border-color: var(--blue);
}

.content-header__drawer {
  display: none;
}

@media (max-width: 767px) {
  html {
    scroll-padding-block-start: 72px;
  }

  .content-header {
    min-width: 0;
    padding-block: 12px 0;
    padding-inline: 12px;
  }

  .content-header__inner {
    position: relative;
    z-index: 1001;
    min-height: 48px;
    height: auto;
    justify-content: space-between;
    padding-block: 10px;
    padding-inline: 12px 50px;
    border-radius: 4px;
  }

  .content-header__logo img {
    width: 146px;
    max-width: calc(100vw - 96px);
    height: auto;
    margin: 0;
  }

  .content-header__nav,
  .content-header__actions {
    display: none;
  }

  .content-header__toggle {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 12px;
    z-index: 1002;
    display: flex;
    flex: 0 0 auto;
    width: 24px;
    height: 16px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border: 0;
    color: var(--blue);
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
  }

  .content-header__toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .content-header.is-drawer-open .content-header__toggle-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .content-header.is-drawer-open .content-header__toggle-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .content-header.is-drawer-open .content-header__toggle-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .content-header__drawer {
    position: fixed;
    inset-block: -12px 0;
    inset-inline: -12px;
    z-index: 999;
    display: block;
    overflow-y: scroll;
    padding-block: 108px 32px;
    padding-inline: 32px;
    background-color: var(--white);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .content-header.is-drawer-open .content-header__drawer {
    opacity: 1;
    pointer-events: auto;
    padding-inline: 40px;
  }

  .content-header__drawer-menu {
    margin-block: 0 32px;
    margin-inline: 0;
    padding: 0;
    list-style: none;
  }

  .content-header__drawer-menu li {
    position: relative;
  }

  .content-header__drawer-menu li::after {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    height: 2px;
    background-image: radial-gradient(circle, var(--gray) 1px, transparent 1px);
    background-position: left center;
    background-size: 6px 2px;
    content: "";
  }

  .content-header__drawer-menu a {
    display: flex;
    position: relative;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-inline-end: 30px;
    color: var(--black);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
  }

  .content-header__drawer-menu a::after {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--blue);
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
  }

  .content-header__drawer-menu a::before {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 5px;
    width: 10px;
    height: 9px;
    background-color: var(--blue);
    content: "";
    mask-image: url("../images/icon-arrow-right.svg");
    mask-position: center;
    mask-repeat: no-repeat;
    mask-size: contain;
    -webkit-mask-image: url("../images/icon-arrow-right.svg");
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    transform: translateY(-50%);
  }

  .content-header__drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-block-start: 0;
    margin-block-end: 24px;
  }

  .content-header__drawer-actions .content-header__button {
    width: 100%;
    min-height: 44px;
    padding-block: 5px;
    padding-inline: 10px;
    border-width: 1px;
    border-radius: 4px;
    font-size: 16px;
  }

  .content-header__drawer-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-inline-start: 3px;
    color: var(--black);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
  }

  .content-header__drawer-login img {
    display: block;
    width: 18px;
    height: 18px;
  }
}
