/* Shared header / footer — glass sticky */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  border-bottom-color: var(--line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.nav {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand-lockup img.brand-logo {
  width: auto;
  height: 72px;
  object-fit: contain;
  filter: var(--logo-filter) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid var(--line);
  background: var(--smoke);
  color: var(--sand);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.theme-toggle svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

.brand-text {
  display: none;
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--sand);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--sand-muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.35rem 0.15rem;
  transition: color 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
  color: var(--gold-bright);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--sand-muted);
  cursor: pointer;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.lang-toggle button.is-active {
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-bright);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  background: var(--smoke);
  font-size: 0.72rem;
  color: var(--sand-muted);
}

.status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sand-muted);
}

.status-pill.is-ok {
  color: var(--ok);
  border-color: rgba(111, 159, 122, 0.35);
}

.status-pill.is-ok .dot {
  background: var(--ok);
  box-shadow: 0 0 8px rgba(111, 159, 122, 0.65);
}

.status-pill.is-err {
  color: var(--danger);
}

.status-pill.is-err .dot {
  background: var(--danger);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--sand-muted);
  font-size: 0.85rem;
}

.site-footer--cinematic {
  position: relative;
  padding: 0 0 2rem;
  background: color-mix(in srgb, var(--ink-elevated) 80%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid color-mix(in srgb, var(--gold) 25%, var(--line));
}

.footer-panel {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 2.25rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

.footer-panel--simple {
  grid-template-columns: 1fr 1.05fr;
}

.footer-brand-block p {
  margin: 0.75rem 0 0;
  max-width: 26rem;
  line-height: 1.7;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 0.85rem;
}

.footer-contact a {
  color: var(--sand-muted);
  font-size: 0.9rem;
  transition: color 0.25s var(--ease);
}

.footer-contact a:hover {
  color: var(--gold-bright);
}

.footer-links--inline {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin-top: 1rem;
}

.footer-map-frame {
  position: relative;
  min-height: 200px;
  border: 1px solid color-mix(in srgb, var(--gold) 28%, var(--line));
  overflow: hidden;
  background: var(--ink-soft);
}

.footer-map-frame--compact {
  min-height: 210px;
}

.footer-map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 210px;
  border: 0;
  filter: grayscale(0.15) contrast(1.04) brightness(0.94);
}

.footer-map-chip {
  position: absolute;
  inset-inline-start: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  padding: 0.45rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  background: color-mix(in srgb, var(--ink) 78%, transparent);
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: calc(100% - 1.5rem);
}

.footer-map-chip:hover {
  color: #fff;
  border-color: var(--gold-bright);
}

.footer-brand {
  height: 56px;
  width: auto;
  opacity: 0.95;
  filter: var(--logo-filter);
}

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.footer-cols h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--sand);
}

.footer-links {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 0.8rem;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

@media (max-width: 800px) {
  .footer-panel,
  .footer-panel--simple,
  .footer-cols {
    grid-template-columns: 1fr;
  }

  .footer-map-frame,
  .footer-map-frame iframe,
  .footer-map-frame--compact,
  .footer-map-frame--compact iframe {
    min-height: 200px;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: sticky;
  }

  .nav {
    position: relative;
    width: min(100% - 1rem, var(--max));
  }

  .brand-lockup img.brand-logo {
    height: 56px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2px;
    touch-action: manipulation;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: calc(100% + 0.45rem);
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem;
    background: color-mix(in srgb, var(--ink-elevated) 94%, transparent);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    z-index: 60;
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
    border-radius: 2px;
  }

  .nav-links a[aria-current="page"] {
    background: color-mix(in srgb, var(--gold) 12%, transparent);
  }

  .nav-links li:has(.lang-toggle),
  .nav-links li:has(.theme-toggle) {
    padding: 0.45rem 0.35rem 0.25rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }

  .lang-toggle {
    align-self: flex-start;
  }

  .theme-toggle {
    width: 2.6rem;
    height: 2.6rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .footer-brand {
    height: 42px;
  }
}

@media (max-width: 480px) {
  .brand-lockup img.brand-logo {
    height: 48px;
  }

  .menu-toggle {
    font-size: 0.8rem;
    padding: 0.4rem 0.7rem;
  }
}
