.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 241, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header .container.nav {
  width: calc(100% - 20px);
  max-width: none;
  margin-inline: 10px;
}

.nav {
  position: relative;
  min-height: 94px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  min-width: 0;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 76px;
  max-height: 76px;
  width: auto;
  max-width: min(48vw, 620px);
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  gap: 30px;
  font-size: 14px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  width: max-content;
  color: var(--gold-dark);
  font-weight: 700;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 1px;
  background: var(--gold);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  color: var(--ink);
  justify-self: end;
}

@media (max-width: 1280px) {
  .nav {
    gap: 18px;
  }

  .brand-logo {
    height: 64px;
    max-height: 64px;
    max-width: 44vw;
  }

  .nav-links {
    gap: 22px;
    font-size: 13px;
  }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: auto auto;
    min-height: 86px;
    gap: 12px;
    padding: 7px 0;
  }

  .brand-logo {
    width: min(calc(100vw - 62px), 466px);
    height: auto;
    max-height: 72px;
    max-width: none;
    object-fit: initial;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: auto;
    width: max-content;
    min-width: 0;
    max-width: calc(100vw - 24px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    justify-content: flex-start;
    padding: 10px 14px;
    background: rgba(255, 250, 241, 0.98);
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 42px rgba(17, 23, 25, 0.13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .site-header.is-menu-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    display: inline-block;
    width: max-content;
    align-self: flex-start;
    padding: 4px 0;
    border-radius: 0;
    color: var(--gold-dark);
    font-weight: 700;
  }

  .nav-link:hover {
    background: transparent;
  }

  .nav-link::after {
    left: 0;
    right: auto;
    bottom: 1px;
    width: 100%;
    background: rgba(181, 138, 66, 0.72);
  }
}

@media (max-width: 680px) {
  .site-header .container.nav {
    width: calc(100% - 14px);
    margin-inline: 7px;
  }

  .brand-logo {
    width: min(calc(100vw - 56px), 450px);
    height: auto;
    max-height: 72px;
    max-width: none;
  }
}

@media (max-width: 400px) {
  .brand-logo {
    width: calc(100vw - 54px);
    height: auto;
    max-height: 66px;
    max-width: none;
  }

  .menu-toggle {
    font-size: 26px;
  }
}
