/* Shared public header and footer, based on the homepage. */
.hh-site-header,
.hh-site-footer {
  --hh-ink: #171820;
  --hh-muted: #646978;
  --hh-line: #e4e6ee;
  --hh-white: #fff;
  --hh-violet: #6463f2;
  --hh-max: 1320px;
  --hh-gutter: clamp(18px, 3.5vw, 48px);
  --hh-ease-out: cubic-bezier(.22, 1, .36, 1);
  --hh-ease-spring: cubic-bezier(.16, 1, .3, 1);
  color: var(--hh-ink);
  font-family: "Manrope", Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

.hh-site-header *, .hh-site-header *::before, .hh-site-header *::after,
.hh-site-footer *, .hh-site-footer *::before, .hh-site-footer *::after {
  box-sizing: border-box;
}
.hh-site-header a, .hh-site-footer a { color: inherit; text-decoration: none; }
.hh-site-header img, .hh-site-footer img { display: block; max-width: 100%; height: auto; }
.hh-site-header button { color: inherit; font: inherit; cursor: pointer; }
.hh-site-header :focus-visible, .hh-site-footer :focus-visible { outline: 3px solid #8a88ff; outline-offset: 3px; }
body.hh-menu-open { overflow: hidden; }

.hh-site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88); border-bottom: 1px solid transparent; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.hh-site-header.is-scrolled { background: rgba(255,255,255,.95); border-bottom-color: var(--hh-line); box-shadow: 0 10px 30px rgba(33,36,59,.06); }
.hh-nav-wrap { width: min(100%, var(--hh-max)); min-height: 78px; margin-inline: auto; padding-inline: var(--hh-gutter); display: grid; grid-template-columns: minmax(112px, 1fr) auto minmax(0, 1fr); align-items: center; gap: 28px; }
.hh-brand { display: block; width: 158px; max-width: 100%; }
.hh-brand img { width: 100%; transition: transform .35s var(--hh-ease-spring); }
.hh-brand:hover img { transform: scale(1.04) rotate(-1deg); }
.hh-desktop-nav { display: flex; align-items: center; gap: clamp(22px, 2.8vw, 42px); }
.hh-desktop-nav a, .hh-login-link { position: relative; font-size: 13px; font-weight: 700; white-space: nowrap; }
.hh-desktop-nav a:hover, .hh-site-header .hh-login-link:hover { color: var(--hh-violet); }
.hh-desktop-nav a::after, .hh-login-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 999px; background: var(--hh-violet); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--hh-ease-out); }
.hh-desktop-nav a:hover::after, .hh-login-link:hover::after { transform: scaleX(1); transform-origin: left; }
.hh-nav-actions { min-width: 0; justify-self: end; display: flex; align-items: center; gap: 20px; }
.hh-cta-form { min-width: 0; margin: 0; }
.hh-cta-form .hh-button { width: 100%; }
.hh-site-header .hh-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid #b9bdc9; border-radius: 10px; background: var(--hh-white); color: var(--hh-ink); font-size: 13px; font-weight: 800; line-height: 1.25; text-align: center; transition: transform .3s var(--hh-ease-spring), border-color .3s ease; }
.hh-site-header .hh-button:hover { transform: translateY(-3px); border-color: var(--hh-ink); }
.hh-header-cta { min-width: 0; overflow-wrap: anywhere; }
.hh-site-header .hh-menu-button { display: none; flex: 0 0 auto; border: 0; background: none; padding: 10px 0; font-weight: 800; }
.hh-mobile-nav { position: absolute; display: block; max-height: calc(100dvh - var(--hh-header-height, 78px)); overflow-y: auto; overscroll-behavior: contain; top: 100%; left: 0; width: 100%; padding: 6px var(--hh-gutter) 24px; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--hh-line); box-shadow: 0 20px 40px rgba(33,36,59,.1); opacity: 0; transform: translateY(-16px); clip-path: inset(0 0 100% 0); transition: opacity .35s ease, transform .55s var(--hh-ease-out), clip-path .55s var(--hh-ease-out); }
.hh-mobile-nav[hidden] { display: none; }
.hh-mobile-nav.is-open { opacity: 1; transform: none; clip-path: inset(0); }
.hh-mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--hh-line); font-size: 18px; font-weight: 700; overflow-wrap: anywhere; opacity: 0; transform: translateX(-16px); transition: opacity .35s ease, transform .45s var(--hh-ease-out); }
.hh-site-header .hh-mobile-cta { display: block; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid var(--hh-line); border-radius: 0; background: transparent; color: var(--hh-ink); font-size: 18px; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
.hh-mobile-nav.is-open a { opacity: 1; transform: none; }
.hh-mobile-nav.is-open a:nth-child(2) { transition-delay: .04s; }
.hh-mobile-nav.is-open a:nth-child(3) { transition-delay: .08s; }
.hh-mobile-nav.is-open a:nth-child(4) { transition-delay: .12s; }
.hh-mobile-nav.is-open a:nth-child(5) { transition-delay: .16s; }
.hh-mobile-nav.is-open a:nth-child(6) { transition-delay: .2s; }
.hh-mobile-nav.is-open a:nth-child(7) { transition-delay: .24s; }
.hh-mobile-nav.is-open a:nth-child(8) { transition-delay: .28s; }

.hh-shell { box-sizing: border-box; width: min(100%, var(--hh-max)); margin-inline: auto; padding-inline: var(--hh-gutter); }
.hh-site-footer { width: 100%; margin-top: 0; padding: 64px 0 24px; background: linear-gradient(180deg, #fcfcff 0%, #f8f9ff 100%); border-top: 1px solid var(--hh-line); }
.hh-footer-grid { display: grid; grid-template-columns: minmax(180px, 1.15fr) minmax(0, .8fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.35fr); gap: 32px; align-items: start; }
.hh-footer-grid > * { min-width: 0; }
.hh-footer-brand > a { display: inline-block; }
.hh-footer-brand img { width: 170px; }
.hh-footer-brand p { max-width: 230px; margin: 18px 0 22px; color: var(--hh-muted); font-size: 14px; line-height: 1.65; }
.hh-payment-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.hh-payment-badges span { display: inline-flex; align-items: center; min-height: 30px; padding: 7px 9px; border: 1px solid var(--hh-line); border-radius: 7px; background: var(--hh-white); color: #5d626e; font-size: 10px; font-weight: 800; line-height: 1.25; }
.hh-footer-column { display: flex; flex-direction: column; gap: 3px; }
.hh-footer-column h2 { margin: 0 0 14px; color: var(--hh-ink); font-size: 14px; font-weight: 800; line-height: 1.5; letter-spacing: normal; }
.hh-site-footer .hh-footer-column a, .hh-site-footer .hh-footer-legal a { width: fit-content; max-width: 100%; padding-block: 6px; color: #5d626e; font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; transition: color .2s ease; }
.hh-site-footer .hh-footer-column a:hover, .hh-site-footer .hh-footer-legal a:hover { color: var(--hh-violet); text-decoration: underline; text-underline-offset: 4px; }
.hh-footer-bottom { margin-top: 48px; padding-top: 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 30px; border-top: 1px solid var(--hh-line); color: var(--hh-muted); font-size: 13px; line-height: 1.5; }
.hh-footer-bottom p { margin: 0; font-size: inherit; color: inherit; }
.hh-footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.hh-site-footer .hh-footer-legal a { font-size: 13px; }

@media (max-width: 1180px) and (min-width: 981px) {
  .hh-nav-wrap { gap: 18px; }
  .hh-desktop-nav { gap: 20px; }
  .hh-nav-actions { gap: 12px; }
  .hh-site-header .hh-header-cta { padding-inline: 14px; }
}
@media (max-width: 1050px) {
  .hh-footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px 24px; }
  .hh-footer-brand { grid-column: 1 / -1; }
  .hh-footer-brand p { max-width: none; margin: 12px 0 16px; }
}
@media (max-width: 980px) {
  .hh-nav-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
  .hh-desktop-nav, .hh-login-link { display: none; }
  .hh-site-header .hh-menu-button { display: block; }
}
@media (max-width: 760px) {
  .hh-site-header, .hh-site-footer { --hh-gutter: 16px; }
  .hh-nav-wrap { min-height: 68px; }
  .hh-brand { width: 142px; }
  .hh-nav-actions { gap: 10px; }
  .hh-site-header .hh-header-cta { min-height: 42px; max-width: 210px; padding: 9px 13px; font-size: 11px; }
  .hh-site-header .hh-menu-button { font-size: 12px; }
  .hh-site-footer { padding-top: 40px; }
  .hh-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .hh-footer-column h2 { margin-bottom: 10px; }
  .hh-site-footer .hh-footer-column a { padding-block: 8px; }
  .hh-footer-bottom { margin-top: 32px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .hh-footer-legal { gap: 4px 18px; }
}
@media (max-width: 440px) {
  .hh-nav-wrap { grid-template-columns: minmax(80px, 112px) minmax(0, 1fr); gap: 16px; }
  .hh-brand { width: 112px; }
  .hh-nav-actions { gap: 8px; }
  .hh-site-header .hh-header-cta { min-height: 38px; padding: 8px 9px; font-size: 10px; }
  .hh-site-header .hh-menu-button { padding-inline: 0; font-size: 11px; }
  .hh-footer-grid { column-gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .hh-site-header *, .hh-site-header *::before, .hh-site-header *::after,
  .hh-site-footer *, .hh-site-footer *::before, .hh-site-footer *::after {
    animation: none !important;
    transition: none !important;
  }
}
