.site-header nav {
  gap: clamp(.75rem, 1.2vw, 1.25rem);
  margin-left: auto;
}

.site-header nav > a:not(.button).active {
  color: var(--deep);
  background: var(--sage);
  padding: .55rem .8rem;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(23, 60, 58, .12);
}

.site-header nav > .button.active {
  box-shadow: 0 0 0 4px rgba(199, 121, 93, .3);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
  color: var(--deep);
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  padding: .35rem 0 .35rem 1.1rem;
  margin-left: 1rem;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone::before {
  content: "☎";
  font-size: .9rem;
}

.header-phone:hover,
.header-phone:focus-visible {
  color: #a65f48;
  background: transparent;
}

.menu {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(23, 60, 58, .16);
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
}

.hamburger {
  width: 20px;
  display: grid;
  gap: 4px;
}

.hamburger > span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--deep);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu[aria-expanded="true"] .hamburger > span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu[aria-expanded="true"] .hamburger > span:nth-child(2) {
  opacity: 0;
}

.menu[aria-expanded="true"] .hamburger > span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu:hover,
.menu:focus-visible {
  background: var(--peach);
}

.menu:focus-visible {
  outline: 3px solid rgba(199, 121, 93, .35);
  outline-offset: 2px;
}

@media (max-width: 1000px) {
  .site-header nav {
    margin-left: 0;
  }

  .header-phone {
    margin-left: auto;
    color: var(--deep);
    background: var(--peach);
    border: 1px solid rgba(199, 121, 93, .28);
    border-radius: 999px;
    padding: .62rem .85rem;
  }

  .header-phone:hover,
  .header-phone:focus-visible {
    color: var(--deep);
    background: #f2d4c6;
  }

  .menu {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
  }

  .site-header nav > a:not(.button).active {
    width: 100%;
  }
}

@media (max-width: 650px) {
  .site-header {
    gap: .65rem;
  }

  .header-phone {
    margin-left: auto;
    padding: .55rem .65rem;
    font-size: .74rem;
  }

  .header-phone span {
    display: none;
  }
}

@media (max-width: 390px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 1.05rem;
  }
}
