:root {
  --nav-height: 70px;
  --nav-wine: #861e44;
}

html { scroll-padding-top: calc(var(--nav-height) + 12px); }
body > .header {
  position: sticky;
  top: 0;
  z-index: 25;
  background: #fffcfd;
  border-bottom: 1px solid #e7dce2;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body > .header {
    background: rgb(255 253 254 / 91%);
    -webkit-backdrop-filter: saturate(135%) blur(16px);
    backdrop-filter: saturate(135%) blur(16px);
  }
}
.header .header-inner {
  width: min(1200px, calc(100% - 56px));
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header .brand { flex: none; }
.header .desktop-nav { align-self: stretch; gap: clamp(15px, 2.4vw, 34px); }
.header .desktop-nav a {
  display: inline-flex;
  align-items: center;
  position: relative;
  color: #4f434b;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.header .desktop-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -5px;
  height: 2px;
  border-radius: 2px;
  background: var(--nav-wine);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease-out;
}
.header .desktop-nav a:is(:hover, :focus-visible, [aria-current="location"]) { color: var(--nav-wine); }
.header .desktop-nav a:is(:hover, :focus-visible, [aria-current="location"])::after { transform: scaleX(1); }
.header .header-actions { gap: 17px; }
.header .login { padding: 10px 0; font-weight: 650; }
.header .header-actions .primary {
  min-height: 43px;
  padding: 10px 18px;
  gap: 14px;
  border: 1px solid #892341;
  border-radius: 12px;
  background: #972448;
  color: white;
  font-size: 13px;
  line-height: 1.2;
}
.header .header-actions .primary:hover { background: #791737; }
.header :is(a, button):focus-visible { outline: 2px solid var(--nav-wine); outline-offset: 3px; }
.header #mobile-menu[hidden] { display: none; }
@media (min-width: 831px) {
  .header #mobile-menu { display: none; }
  .header .desktop-nav {
    display: flex;
    align-items: center;
    align-self: center;
    gap: 2px;
    padding: 4px;
    border: 1px solid #eee5e9;
    border-radius: 999px;
    background: rgb(249 245 247 / 78%);
  }
  .header .desktop-nav a {
    min-height: 35px;
    padding-inline: clamp(9px, 1.15vw, 17px);
    border-radius: 999px;
  }
  .header .desktop-nav a::after {content: none;}
  .header .desktop-nav a:is(:hover, :focus-visible, [aria-current="location"]) {
    color: #75203f;
    background: #fff;
    box-shadow: 0 1px 4px #391b3215;
  }
}
@media (max-width: 830px) {
  :root { --nav-height: 62px; }
  .header .header-inner { width: calc(100% - 32px); gap: 10px; }
  .header .desktop-nav, .header .login { display: none; }
  .header .brand { gap: 6px; }
  .header .header-actions { gap: 7px; }
  .header .header-actions .primary { min-height: 42px; padding-inline: 14px; gap: 7px; }
  .header .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e8dce2;
    border-radius: 12px;
    background: #fffcfe;
    cursor: pointer;
  }
  .header .menu-toggle span { width: 17px; height: 1px; background: #482a37; }
  .header .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3px) rotate(45deg); }
  .header .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .header #mobile-menu:not([hidden]) {
    position: absolute;
    top: calc(100% + 6px);
    right: 12px;
    left: auto;
    display: grid;
    width: min(326px, calc(100vw - 24px));
    max-height: calc(100dvh - var(--nav-height) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 7px;
    gap: 2px;
    background: #fffafb;
    border: 1px solid #e8dce2;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgb(62 26 44 / 13%);
  }
  .header #mobile-menu a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 13px;
    font-size: 14px;
    line-height: 1.35;
    border-radius: 9px;
  }
  .header #mobile-menu a:is(:hover, :focus-visible, [aria-current="location"]) {
    color: var(--nav-wine);
    background: #f6e9ee;
  }
  .header #mobile-menu a:focus-visible { outline-offset: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .header .desktop-nav a::after { transition: none; }
}
