/* Shared navigation and footer only. Payment content keeps its own styles. */
.qh-site-header {
  height: 80px;
  gap: 24px;
  z-index: 30;
  padding-inline: max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid #e5ebf3;
  background: rgba(255, 255, 255, .96);
  color: #172e4c;
}
.qh-site-header .brand { gap: 10px; font-size: 20px; letter-spacing: 0; }
.qh-site-header .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
.qh-site-header .brand-title { gap: 7px; }
.qh-site-header .main-nav { display: flex; gap: 32px; color: #53647a; font-size: 15px; font-weight: 600; }
.qh-site-header .main-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.qh-site-header .main-nav a:hover, .qh-site-header .main-nav a[aria-current] { color: #246bea; }
.qh-header-actions { display: flex; align-items: center; gap: 12px; }
.qh-site-header .qh-login-link { min-height: 44px; display: inline-flex; align-items: center; padding: 0 17px; border: 1px solid #dbe5f1; border-radius: 12px; background: #fff; color: #172e4c; font-size: 14px; font-weight: 650; text-decoration: none; white-space: nowrap; }
.qh-site-header .qh-login-link:hover { color: #246bea; border-color: #246bea; }
.qh-site-header button { font: inherit; cursor: pointer; }
.qh-account { position: relative; }
.qh-site-header .qh-account-trigger { display: inline-flex; min-height: 44px; padding: 0 2px 0 0; align-items: center; gap: 7px; border: 0; color: #53647a; background: transparent; }
.qh-avatar { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #cbdcf7; border-radius: 50%; background: #eaf2ff; color: #1e5ed3; font-size: 18px; font-weight: 750; }
.qh-chevron { font-size: 18px; transform: translateY(-2px); }
.qh-account-menu { position: absolute; top: calc(100% + 14px); right: 0; width: 258px; padding: 8px; border: 1px solid #e0e7f1; border-radius: 16px; background: #fff; box-shadow: 0 18px 50px rgb(23 46 76 / 13%); }
.qh-menu-email { margin: 0 6px 6px; padding: 10px 6px 14px; border-bottom: 1px solid #e8edf4; color: #69788c; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.qh-account-menu [role=menu] { display: grid; gap: 2px; }
.qh-account-menu [role=menuitem] { width: 100%; min-height: 46px; padding: 12px; display: flex; align-items: center; border: 0; border-radius: 9px; color: #263d59; background: #fff; text-align: left; text-decoration: none; font-size: 14px; line-height: 1.5; }
.qh-account-menu [role=menuitem]:hover, .qh-account-menu [role=menuitem]:focus-visible { color: #1e5ed3; background: #f0f5ff; }
.qh-menu-toggle { display: none; width: 44px; height: 44px; padding: 12px; flex-direction: column; justify-content: center; gap: 5px; border: 1px solid #dbe5f1; border-radius: 12px; background: #fff; }
.qh-menu-toggle span { width: 18px; height: 2px; border-radius: 2px; background: #263d59; }
.qh-shell-status { position: absolute; top: 100%; right: 24px; max-width: calc(100vw - 48px); padding: 12px 16px; border: 1px solid #dbe5f1; border-radius: 10px; background: #fff; color: #263d59; font-size: 14px; }
.qh-skip-link { position: fixed; top: -100px; left: 16px; z-index: 60; padding: 12px 18px; border-radius: 10px; color: #fff; background: #174da9; font-size: 14px; text-decoration: none; }
.qh-skip-link:focus { top: 12px; }
.site-footer { padding-block: 36px; gap: 28px; grid-template-columns: 1fr 1fr 1.5fr; }
.site-footer .footer-brand p, .site-footer .footer-operator, .site-footer .footer-links { font-size: 13px; line-height: 1.8; }
.site-footer .footer-links { gap: 10px 18px; }
.site-footer .footer-links a { min-height: 32px; display: inline-flex; align-items: center; }
.site-footer .footer-operator { min-width: 0; overflow-wrap: anywhere; }
.qh-site-header :focus-visible, .qh-skip-link:focus-visible, .site-footer a:focus-visible { outline: 3px solid #95b8f5; outline-offset: 3px; }
@media (max-width: 800px) {
  .qh-site-header { height: 72px; padding-inline: 18px; gap: 12px; }
  .qh-site-header .brand { gap: 8px; font-size: 18px; }
  .qh-site-header .brand-mark { width: 35px; height: 35px; border-radius: 11px; }
  .qh-header-actions { gap: 8px; }
  .qh-site-header .qh-login-link { padding-inline: 12px; font-size: 13px; }
  .qh-menu-toggle { display: flex; }
  .qh-site-header .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 14px 18px 20px; gap: 2px; border-bottom: 1px solid #e0e7f1; background: #fff; box-shadow: 0 14px 24px rgb(23 46 76 / 5%); }
  .qh-site-header[data-navigation-open=true] .main-nav { display: grid; }
  .qh-site-header .main-nav a { min-height: 48px; padding: 10px 12px; border-radius: 10px; font-size: 15px; }
  .qh-site-header .main-nav a:hover, .qh-site-header .main-nav a[aria-current] { background: #f0f5ff; }
  .qh-account-menu { top: calc(100% + 13px); right: -52px; width: min(276px, calc(100vw - 36px)); }
  .qh-site-header .qh-account-trigger { gap: 4px; }
  .qh-avatar { width: 38px; height: 38px; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .site-footer .footer-links { grid-column: 1 / -1; justify-content: flex-start; }
  .site-footer .footer-brand p, .site-footer .footer-operator, .site-footer .footer-links { font-size: 12px; }
}
@media (max-width: 360px) {
  .qh-site-header { padding-inline: 12px; gap: 8px; }
  .qh-site-header .brand { gap: 6px; font-size: 17px; }
  .qh-site-header .brand-title { gap: 4px; }
  .qh-site-header .qh-login-link { padding-inline: 10px; }
  .qh-header-actions { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .qh-site-header *, .site-footer * { transition: none; }
}
