/* Shared navigation and footer. Markup is synchronized by scripts/sync-navigation.py. */
html { scroll-padding-top: 112px; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #e5e8eb99; background: #ffffffd1; -webkit-backdrop-filter: blur(12px) saturate(115%); backdrop-filter: blur(12px) saturate(115%); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; min-height: 84px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 52px; max-width: 100%; line-height: 1; }
.logo-image { display: block; width: 150px; max-width: 100%; height: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; color: #424653; font-size: 12px; font-weight: 500; line-height: 1.5; white-space: nowrap; transition: color .18s; }
.nav-links a::after { content: ''; position: absolute; right: 0; bottom: 8px; left: 0; height: 1px; background: #6d737c; transform: scaleX(0); transform-origin: left; transition: transform .18s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--teal); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav .nav-contact { display: inline-flex; gap: 20px; min-height: 44px; padding: 11px 16px; font-size: 12px; border-radius: 5px; }
.nav-contact svg, .footer-contact svg { flex-shrink: 0; }
.nav-contact[aria-current="page"] { background: var(--deep); border-color: var(--deep); }
.mobile-toggle { display: none; }
.site-footer { border-top: 1px solid #e4e7ec; background: #fdfdfe; }
.footer-inner { padding-top: 56px; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1fr); align-items: start; gap: clamp(24px, 4vw, 56px); padding-bottom: 44px; }
.footer-main > div { min-width: 0; }
.footer-brand > p { max-width: 35ch; margin: 20px 0 0; color: #6d737c; font-size: 12px; line-height: 1.85; }
.footer-label { margin: 0 0 18px; color: #424653; font-size: 10px; font-weight: 600; line-height: 1.5; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 36px; color: #6d737c; font-size: 12px; line-height: 1.5; transition: color .18s; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--teal); }
.footer-project > p:not(.footer-label) { max-width: 31ch; margin: 0 0 16px; color: #6d737c; font-size: 12px; line-height: 1.85; }
.footer-contact { display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; padding-bottom: 3px; border-bottom: 1px solid #b9bec6; color: var(--teal); font-size: 12px; font-weight: 550; line-height: 1.5; }
.footer-contact:hover { color: #282b30; border-color: #424653; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; border-top: 1px solid #e4e7ec; color: #6d737c; font-size: 10px; line-height: 1.6; }
.footer-bottom small { font-size: inherit; }
.footer-legal { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 36px; color: #424653; font-size: 11px; }
.footer-legal a:hover, .footer-legal a:focus-visible, .footer-legal a[aria-current="page"] { color: var(--teal); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1100px) {
  .header-inner { gap: 28px; }
  .nav { gap: 28px; }
  .nav-links { gap: 16px; }
}
@media (max-width: 1000px) {
  html { scroll-padding-top: 96px; }
  .header-inner { min-height: 76px; gap: 20px; }
  .mobile-toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 42px; height: 42px; padding: 0; border: 1px solid #e4e7ec; border-radius: 5px; background: transparent; color: #424653; }
  .mobile-toggle:hover { background: #f5f7f9; }
  .menu-line-top { transform-origin: 12px 8px; transition: transform .18s; }
  .menu-line-bottom { transform-origin: 12px 16px; transition: transform .18s; }
  .mobile-toggle[aria-expanded="true"] .menu-line-top { transform: translateY(4px) rotate(45deg); }
  .mobile-toggle[aria-expanded="true"] .menu-line-bottom { transform: translateY(-4px) rotate(-45deg); }
  .nav { position: absolute; top: calc(100% + 8px); right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 16px; max-height: calc(100dvh - 100px); overflow-y: auto; padding: 16px; border: 1px solid #e4e7ec; border-radius: 8px; background: #fffffff2; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 16px 32px #282b3010; }
  .nav.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { min-height: 48px; padding-inline: 12px; border-radius: 4px; font-size: 14px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover { background: #f5f7f9; }
  .nav .nav-contact { width: 100%; min-height: 46px; justify-content: space-between; padding-inline: 14px; font-size: 13px; }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand > p { max-width: 47ch; }
  .footer-project { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-column: 1 / -1; gap: 0 32px; padding-top: 24px; border-top: 1px solid #e4e7ec; }
  .footer-project .footer-label { grid-column: 1 / -1; }
  .footer-project > p:not(.footer-label) { max-width: 50ch; margin-bottom: 0; }
  .footer-project .footer-contact { align-self: start; }
}
@media (max-width: 560px) {
  .header-inner { min-height: 72px; }
  .logo-image { width: 136px; }
  .footer-inner { padding-top: 36px; }
  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 28px; }
  .footer-brand > p { margin-top: 16px; font-size: 12px; }
  .footer-label { margin-bottom: 12px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 0 20px; }
  .footer-links a { min-height: 44px; }
  .footer-project { display: block; }
  .footer-project > p:not(.footer-label) { max-width: 40ch; margin-bottom: 16px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 20px; font-size: 9px; }
  .footer-legal { gap: 0 20px; }
  .footer-legal a { min-height: 44px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-links a, .nav-links a::after, .footer-links a, .menu-line-top, .menu-line-bottom { transition: none; }
}

.nav-links a[aria-current="page"], .footer-links a[aria-current="page"] { color: var(--teal); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
