.wrap {
  width: min(100%, var(--wrap));
  margin-inline: auto;
  padding-inline: max(var(--wrap-pad), var(--safe-left)) max(var(--wrap-pad), var(--safe-right));
  min-width: 0;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-offset);
  padding-top: var(--safe-top);
  overflow: visible;
  isolation: isolate;
  border-bottom: 1px solid var(--header-border);
  background: #0b1220;
  background: color-mix(in srgb, var(--navy) 92%, black);
  color: var(--white);
}

.site-header--overlay {
  background: rgba(11, 18, 32, 0.22);
  background: color-mix(in srgb, var(--navy) 22%, transparent);
}

.site-header.is-scrolled::before,
.site-header--overlay.is-scrolled::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(11, 18, 32, 0.88);
  background: color-mix(in srgb, var(--navy) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header-inner {
  position: relative;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  overflow: visible;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-top-h);
  min-width: 0;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  height: var(--header-nav-h);
  min-width: 0;
  margin: 0;
  overflow: visible;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.82);
}

.site-nav-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 22px;
  min-width: 0;
  height: 100%;
}

.site-nav .nav-link,
.site-nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0;
  color: inherit;
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
}

.site-nav .nav-caret {
  width: 12px;
  height: 12px;
  opacity: 0.7;
}

.site-nav .nav-link::after,
.site-nav button::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.site-nav .nav-link:hover,
.site-nav button:hover {
  color: var(--white);
}

.site-nav .nav-link.is-current,
.site-nav .nav-link[aria-current="page"],
.site-nav .nav-link:hover,
.site-nav .dropdown.is-open > button,
.site-nav .dropdown:hover > button,
.site-nav .dropdown:focus-within > button {
  color: var(--white);
}

.site-nav .nav-link.is-current::after,
.site-nav .nav-link[aria-current="page"]::after,
.site-nav .dropdown.is-open > button::after,
.site-nav .dropdown:hover > button::after,
.site-nav .dropdown:focus-within > button::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.header-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
  flex-shrink: 0;
}

.site-footer {
  background: var(--navy);
  color: var(--white);
  padding-bottom: var(--safe-bottom);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr));
  gap: 40px 32px;
  padding: 56px 0;
}

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand p {
  max-width: 20rem;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col p {
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.footer-col a,
.footer-col button,
.footer-legal-btn {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 10px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-col button,
.footer-legal-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

.footer-col a:hover,
.footer-col button:hover,
.footer-legal-btn:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.footer-address a {
  color: inherit;
}

.footer-address a:hover {
  color: var(--white);
}

.footer-langs {
  display: flex;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.footer-langs .is-active,
.footer-langs button.is-active {
  color: var(--white);
}

.footer-legal-btn {
  margin-bottom: 0;
  font-size: 12px;
}
