.menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 40px;
  background: var(--color-white);
}

.menu__logo {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 18px;
  line-height: 22.5px;
  color: var(--color-text-primary);
}

.menu__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu__link {
  position: relative;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-text-primary);
}

.menu__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.menu__link:hover::after,
.menu__link.is-active::after {
  width: 100%;
}

.menu__actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu__action {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-text-primary);
}

.menu__action img {
  width: 18px;
  height: 18px;
}

.menu__burger {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}

.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px;
  background: var(--color-badge-bg);
  overflow: hidden;
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.menu-drawer.is-open {
  transform: translateY(0);
}

.menu-drawer__glow {
  position: absolute;
  bottom: -211px;
  left: -167px;
  width: 709px;
  max-width: none;
  height: 709px;
  pointer-events: none;
}

.menu-drawer__close {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
}

.menu-drawer__nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}

.menu-drawer__link {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 24px;
  line-height: 22px;
  text-align: center;
  color: var(--color-dot);
}

.menu-drawer__link.is-active {
  text-decoration: underline;
}

.menu-drawer__contact {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  padding: 64px 16px 16px;
  background: var(--color-white);
}

.menu-drawer__contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: var(--color-text-secondary);
}

.menu-drawer__contact-item img {
  width: 24px;
  height: 24px;
}

.menu-drawer__divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-dot);
}

@media (min-width: 768px) {
  .menu-drawer {
    display: none;
  }
}

@media (max-width: 767px) {
  .menu {
    padding: 16px;
    border-bottom: 1px solid var(--color-dot);
  }

  .menu__nav,
  .menu__actions {
    display: none;
  }

  .menu__burger {
    display: flex;
  }
}
