/* Keep navigation visible without removing its space from the page flow. */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 249, 252, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(227, 233, 239, 0.8);
}

.brand { flex-shrink: 0; }
.brand-logo { display: block; width: 205px; height: auto; }
.site-footer .brand-logo { width: 240px; }
.menu-toggle, header nav .mobile-actions { display: none; }
header .nav-access { min-height: 44px; white-space: nowrap; }
header .nav-access:hover { color: #fff; }
header .nav-demo {
  min-height: 44px;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue);
  box-shadow: none;
  white-space: nowrap;
}
header .nav-demo:hover {
  background: var(--blue);
  color: #fff;
}
@media (max-width: 1024px) {
  header .brand-logo { width: 180px; }
  header { height: 75px; padding-inline: 20px; gap: 12px; }
  .header-actions { gap: 12px; }
  .header-actions .button { display: none; }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-size: 14px;
  }
  .menu-toggle-icon { position: relative; width: 16px; height: 12px; border-block: 2px solid currentColor; }
  .menu-toggle-icon::after { content: ''; position: absolute; top: 3px; left: 0; width: 16px; border-top: 2px solid currentColor; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon { height: 16px; border: 0; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::before,
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { content: ''; position: absolute; top: 7px; left: 0; width: 16px; border-top: 2px solid currentColor; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-icon::after { transform: rotate(-45deg); }
  header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 20px 20px;
    max-height: calc(100dvh - 75px);
    overflow-y: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px #17263614;
  }
  header.menu-open nav { display: flex; }
  header nav > a { padding: 14px 12px; border-radius: 9px; }
  header nav > a:hover { background: #eaf3ff; }
  header nav .mobile-actions { display: flex; gap: 12px; margin-top: 8px; }
  header nav .mobile-actions .button { flex: 1; min-height: 44px; gap: 8px; padding: 12px; }
}
@media (max-width: 360px) {
  header { padding-inline: 12px; gap: 8px; }
  header .brand-logo { width: 150px; }
  .header-actions { gap: 8px; }
}

body > .site-footer {
  display: block;
  max-width: none;
  margin: 40px 0 0;
  padding: 48px 24px 28px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size:14px;
}
.footer-container { max-width: 1200px; margin-inline: auto; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.site-footer .brand { font-size:27px; width: fit-content; }
.site-footer .footer-identity p { width: auto; margin: 12px 0 0; font-size:14px; line-height: 1.7; }
.footer-navigation { text-align: right; }
.footer-links { display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap; }
.footer-policy { display: inline-block; margin-top: 16px; margin-inline-start: 24px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size:14px; }
.site-footer a:hover { color: var(--blue); }
@media (max-width: 700px) {
  body > .site-footer { padding: 36px 24px 28px; }
  .footer-top { flex-direction: column; gap: 24px; text-align: center; }
  .site-footer .brand { margin-inline: auto; }
  .footer-navigation { text-align: center; }
  .footer-links { justify-content: center; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
}
