header.nm-site-header {
  display: block;
  height: auto;
  padding: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nm-site-header .nm-site-header__bar {
  width: min(1520px, calc(100% - clamp(36px, 7vw, 128px)));
  margin-inline: auto;
  padding-block: 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.nm-site-header a.brand {
  display: block;
  width: clamp(220px, 25vw, 360px);
  max-width: 100%;
  min-width: 0;
  padding: 0;
}

.nm-site-header .brand-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 391;
  object-fit: contain;
}

.nm-site-header nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 36px);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: visible;
}

.nm-site-header nav a:nth-child(n) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  min-height: 44px;
  font-size: clamp(14px, 1.45vw, 19px);
  font-weight: 600;
  white-space: nowrap;
}

.nm-site-header .nav-icon {
  display: none;
}

.nm-site-header .reach-icons {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 4px;
  border: 1px solid #d9d9cd;
  border-radius: 28px;
  color: #39483b;
}

.nm-site-header .reach-icons a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: inherit;
}

.nm-site-header .reach-icons svg {
  width: 22px;
  height: 22px;
}

.nm-site-header .reach-icons a:hover,
.nm-site-header .reach-icons a:focus-visible {
  background: #e8e7dc;
  color: #233c29;
}

@media (min-width: 1001px) {
  .nm-site-header .nav-icon {
    display: block;
    flex: 0 0 20px;
    color: #39483b;
  }
}

@media (max-width: 1100px) {
  .nm-site-header .nm-site-header__bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 4px;
    padding-block: 8px;
  }

  .nm-site-header a.brand {
    width: 260px;
  }

  .nm-site-header nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 8px;
  }

  .nm-site-header nav a:nth-child(n) {
    font-size: clamp(12px, 3.7vw, 16px);
    padding-block: 5px;
  }

  .nm-site-header .reach-icons {
    gap: 0;
    padding: 0;
    border: 0;
  }

  .nm-site-header .reach-icons a {
    width: clamp(34px, 10vw, 44px);
  }
}

@media (max-width: 380px) {
  .nm-site-header a.brand {
    width: 210px;
  }
}

@media (min-width: 1101px) and (max-width: 1250px) {
  .nm-site-header nav { gap: 14px; }
}

@media (max-width: 700px) {
  .nm-site-header nav a.nm-nav-works { display: none; }
}
