:root {
  --header-height: 77px;
  --cars-navigation-height: 46px;
}
html:has(.site-header) { scroll-padding-top: calc(var(--header-height) + 12px); }
html:has(.cars-subnav) { scroll-padding-top: calc(var(--header-height) + var(--cars-navigation-height) + 12px); }
html:has(.site-header) .skip:focus { z-index: 4; }

.site-header {
  --nav-ink: #14242a;
  --nav-line: #dce0dc;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  color: var(--nav-ink);
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  line-height: normal;
}
.site-header .wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.site-header a { color: inherit; text-decoration: none; }
.site-header nav a:is(:hover, [aria-current]) { color: #885309; }
.site-header nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.site-header :focus-visible { outline: 3px solid #9a5a06; outline-offset: 4px; }
.header-inner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: var(--header-height); }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 39px); font-size: .91rem; font-weight: 650; }
.site-header .account-nav-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.account-nav-icon { position: relative; display: inline-block; flex: none; width: 18px; height: 18px; }
.account-nav-icon::before, .account-nav-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  left: 50%;
  transform: translateX(-50%);
  border: 1.5px solid currentColor;
}
.account-nav-icon::before { top: 1px; width: 7px; height: 7px; border-radius: 50%; }
.account-nav-icon::after { bottom: 0; width: 15px; height: 8px; border-radius: 7px 7px 2px 2px; }
.mobile-menu { display: none; }

.cars-subnav { background: #f3f5f1; box-shadow: inset 0 1px var(--nav-line), inset 0 -1px var(--nav-line); }
.cars-subnav .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(12px, 3vw, 34px); min-height: var(--cars-navigation-height); }
.cars-subnav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 650; }

@media (max-width: 920px) {
  .site-header .wrap { width: calc(100% - 48px); }
  .header-inner { gap: 16px; }
  .desktop-nav { gap: 15px; font-size: .84rem; }
}
@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu summary { cursor: pointer; list-style: none; display: grid; place-items: center; width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--nav-line); border-radius: 7px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { width: 16px; height: 2px; background: var(--nav-ink); box-shadow: 0 -5px var(--nav-ink), 0 5px var(--nav-ink); }
  .mobile-menu nav { position: absolute; z-index: 1; top: 100%; right: 0; min-width: 170px; max-height: calc(100dvh - var(--header-height)); overflow-y: auto; display: grid; background: #fff; border: 1px solid var(--nav-line); border-radius: 8px; box-shadow: 0 10px 22px #172b2123; }
  .mobile-menu nav a { display: flex; align-items: center; min-height: 44px; padding: 8px 15px; font-size: .89rem; font-weight: 650; }
  .mobile-menu nav a:focus-visible { outline-offset: -4px; }
}
@media (max-width: 680px) {
  .site-header .wrap { width: calc(100% - 32px); }
}
