:root {
  --site-chrome-header-max: 1248px;
  --site-chrome-footer-max: 1200px;
  --site-chrome-header-height: 80px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--landing-color-surface);
  box-shadow: var(--landing-shadow-subtle);
}

.site-header-shell {
  position: relative;
  display: flex;
  width: min(100%, var(--site-chrome-header-max));
  min-height: 80px;
  margin-inline: auto;
  padding: 16px;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--landing-color-text-heading);
  text-decoration: none;
}

.site-brand-mark {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--landing-color-text-on-action);
  background: var(--landing-gradient-brand);
}

.site-brand-name {
  color: var(--landing-color-text-heading);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-lang-switch {
  position: relative;
  display: inline-flex;
  min-width: 76px;
  min-height: 40px;
  padding: 3px;
  align-items: center;
  border: 1px solid var(--landing-color-border-control);
  border-radius: 11px;
  background: var(--landing-color-surface-muted);
  box-shadow: inset 0 1px 2px var(--landing-color-shadow-subtle);
}

.site-lang-option {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-width: 34px;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--landing-color-text-muted);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.site-lang-option:hover {
  color: var(--landing-color-text-heading);
}

.site-lang-option.is-active {
  color: var(--landing-color-text-heading);
  background: var(--landing-color-surface);
  box-shadow: var(--landing-shadow-subtle);
}

.site-header-proposal,
.site-header-proposal:visited {
  display: inline-flex;
  min-height: 40px;
  padding: 8px 16px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--landing-color-text-on-action);
  background: var(--landing-color-action);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.site-header-proposal:hover {
  color: var(--landing-color-text-on-action);
  background: var(--landing-color-action-hover);
}

.site-header-menu-wrap {
  position: relative;
}

.site-header-menu-toggle {
  display: inline-flex;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--landing-color-text-on-action);
  background: var(--landing-gradient-control);
  cursor: pointer;
  transition: background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.site-header-menu-toggle:hover,
.site-header-menu-toggle[aria-expanded="true"] {
  background: var(--landing-gradient-control-hover);
  box-shadow: var(--landing-shadow-control);
}

.site-header-menu-toggle:active {
  transform: scale(.98);
}

.site-header-menu-toggle .header-close-icon,
.site-header-menu-toggle[aria-expanded="true"] .header-menu-icon {
  display: none;
}

.site-header-menu-toggle[aria-expanded="true"] .header-close-icon {
  display: block;
}

.site-header-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 256px;
  max-height: calc(100vh - 104px);
  padding: 8px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--landing-color-border);
  border-radius: 8px;
  background: var(--landing-color-surface);
  box-shadow: var(--landing-shadow-panel);
}

.site-header-menu-panel[hidden] {
  display: none;
}

.site-menu-languages {
  display: flex;
  padding: 8px 24px 10px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-bottom: 1px solid var(--landing-color-border);
  font-size: 12px;
  font-weight: 700;
}

.site-menu-languages a {
  color: var(--landing-color-text-muted);
  text-decoration: none;
}

.site-menu-languages a:hover,
.site-menu-languages a.is-active {
  color: var(--landing-color-text-heading);
}

.site-menu-languages span {
  color: var(--landing-color-border);
}

.site-menu-group-title {
  padding: 8px 24px 6px;
  color: var(--landing-color-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-menu-link {
  position: relative;
  display: block;
  padding: 10px 34px 10px 24px;
  color: var(--landing-color-text-body);
  font-size: 16px;
  line-height: 1.25;
  text-decoration: none;
}

.site-menu-link:hover,
.site-menu-link[aria-current="page"] {
  color: var(--landing-color-action);
  background: var(--landing-color-surface-warm);
}

.site-menu-link-external {
  font-weight: 600;
}

.site-menu-link-external::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--landing-color-brand-orange);
  font-size: 18px;
  font-weight: 700;
  content: "\203A";
  transform: translateY(-50%);
}

.site-menu-context {
  margin-top: 10px;
  padding: 8px 0 2px;
  border-top: 1px solid var(--landing-color-border);
  border-radius: 0 0 8px 8px;
  background: var(--landing-color-surface-muted);
}

.site-menu-context .site-menu-group-title {
  padding-top: 4px;
}

.site-menu-context .site-menu-link {
  padding-left: 34px;
  font-size: 14px;
}

.site-menu-context .site-menu-link::before {
  position: absolute;
  top: 50%;
  left: 22px;
  color: var(--landing-color-text-muted);
  font-size: 12px;
  content: "\2022";
  transform: translateY(-50%);
}

.site-menu-context .site-menu-link[aria-current="page"]::before {
  color: var(--landing-color-action);
}

.site-header a:focus-visible,
.site-header button:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid var(--landing-color-focus);
  outline-offset: 3px;
}

.site-footer {
  padding: 32px 24px;
  color: var(--landing-color-text-on-dark-muted);
  background: var(--landing-color-surface-dark);
}

.site-footer-shell {
  display: grid;
  width: min(100%, var(--site-chrome-footer-max));
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px;
}

body footer > .site-footer-shell.site-footer-shell {
  width: min(100%, var(--site-chrome-footer-max));
}

.site-footer .site-brand {
  margin-bottom: 16px;
}

.site-footer .site-brand-name {
  color: var(--landing-color-text-on-action);
  font-size: 20px;
}

.site-footer-details,
.site-footer-contact {
  margin: 0;
  color: var(--landing-color-text-on-dark-muted);
  line-height: 1.75;
}

.site-footer-contact {
  text-align: right;
}

.site-footer a,
.site-footer a:visited {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:active {
  color: var(--landing-color-text-on-action);
  text-decoration: none;
}

@media (min-width: 1248px) {
  .site-header-shell {
    padding-inline: 24px;
  }
}

@media (max-width: 639px) {
  .site-header-shell {
    min-height: 72px;
  }

  .site-header-proposal,
  .site-lang-switch {
    display: none;
  }

  .site-header-actions {
    gap: 10px;
  }

  .site-header-menu-panel {
    position: fixed;
    top: var(--site-chrome-header-height);
    right: 16px;
    left: 16px;
    width: auto;
    max-height: calc(100vh - var(--site-chrome-header-height) - 16px);
  }

  .site-footer-shell {
    grid-template-columns: 1fr;
  }

  .site-footer-contact {
    text-align: left;
  }
}
