/* Keep the header geometry stable across short auth pages and long catalogues. */
html { scrollbar-gutter: stable; }
.header-inner { box-sizing: border-box; width: 100%; max-width: 1464px; flex-wrap: nowrap; gap: 24px; min-height: 96px; }
.header-inner > .brand, .header-inner > .languages { flex-shrink: 0; }
.desktop-nav { flex-wrap: nowrap; justify-content: space-between; gap: 24px; min-width: 0; }
.nav-primary, .nav-auth { display: flex; align-items: center; gap: 18px; }
.nav-auth { flex-shrink: 0; padding-left: 20px; border-left: 1px solid var(--line); gap: 8px; }
.site-header .nav-link, .site-header summary { white-space: nowrap; font-weight: 600; }
.site-header .nav-link[aria-current] { font-weight: 600; }
.site-header .nav-auth .nav-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 42px; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.site-header .nav-sign-in { border: 1px solid var(--line); }
.site-header .nav-sign-in:hover, .site-header .nav-sign-in[aria-current] { background: #e9ede3; border-color: #64736b; }
.site-header .nav-sign-up { background: #183c37; color: #fff; border: 1px solid #183c37; }
.site-header .nav-sign-up:hover, .site-header .nav-sign-up[aria-current] { background: #27564b; color: #fff; }
.driving-section .nav-sign-up { background: #dda444; color: #2c302f; border-color: #dda444; }
.driving-section .nav-sign-up:hover, .driving-section .nav-sign-up[aria-current] { background: #efb957; color: #2c302f; }
.nav-more summary { min-height: 44px; display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: "⌄"; }
.nav-more[open] summary::after { transform: rotate(180deg); }
.nav-more > div { top: calc(100% + 8px); }
.site-header .button_to { margin: 0; }
@media (max-width: 1300px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; margin-left: auto; position: relative; }
  .mobile-nav > summary { cursor: pointer; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
  .mobile-nav > nav { position: absolute; right: 0; top: calc(100% + 12px); z-index: 40; box-sizing: border-box; width: min(340px, calc(100vw - 36px)); display: flex; flex-direction: column; align-items: stretch; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 35px #183c371a; gap: 16px; }
  .mobile-nav .nav-primary { flex-direction: column; align-items: stretch; gap: 8px; }
  .mobile-nav .nav-primary > .nav-link { padding: 12px 0; }
  .mobile-nav .nav-auth { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; flex-wrap: wrap; }
  .mobile-nav .user-menu > div { position: static; box-shadow: none; min-width: 0; margin-top: 8px; }
  .header-inner { align-items: center; }
  .header-inner > .languages { margin-left: 0; }
}
@media (max-width: 700px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 12px; }
  .header-inner > .brand { grid-column: 1; grid-row: 1; }
  .header-inner > .languages { grid-column: 2; grid-row: 1; }
  .header-inner > .section-toggle { justify-self: start; grid-column: 1; grid-row: 2; }
  .header-inner > .mobile-nav { grid-column: 2; grid-row: 2; }
  .section-toggle a { padding: 0 10px; }
}
@media (max-width: 380px) {
  .section-toggle a { padding: 0 7px; font-size: .72rem; gap: 4px; }
  .section-toggle svg { width: 16px; height: 16px; }
  .mobile-nav > summary { padding: 12px 8px; font-size: .75rem; }
}
