:root {
  --global-paper: #fafaf8;
  --global-ink: #191512;
  --global-muted: rgba(25, 21, 18, 0.62);
  --global-line: rgba(25, 21, 18, 0.1);
  --global-rose: #c58a8a;
  --global-night: #0f0d0b;
  --global-warm: #e8d5c4;
}

.global-header,
.global-footer {
  box-sizing: border-box;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.global-header *,
.global-footer * {
  box-sizing: border-box;
}

.global-shell {
  width: min(1280px, calc(100% - 32px));
  margin-inline: auto;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 80;
  min-height: 68px;
  background: rgba(250, 250, 248, 0.94);
  color: var(--global-ink);
  border-bottom: 1px solid rgba(25, 21, 18, 0.08);
  backdrop-filter: blur(18px);
}

.global-header-inner {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.global-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: max-content;
}

.global-brand img {
  width: auto;
  height: 36px;
  display: block;
}

.global-brand span {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.global-brand small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0.8;
}

.global-brand strong {
  margin-top: 3px;
  padding-bottom: 2px;
  border-bottom: 1.5px solid currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.global-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 27px);
  min-width: 0;
}

.global-nav a,
.global-signin,
.global-lang summary,
.global-lang-menu a {
  color: inherit;
  text-decoration: none;
  text-transform: uppercase;
}

.global-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  white-space: nowrap;
  opacity: 0.76;
  transition: opacity 180ms ease, color 180ms ease;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  opacity: 1;
  color: var(--global-rose);
}

.global-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0.18em;
  bottom: 7px;
  height: 1px;
  background: currentColor;
}

.global-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  min-width: max-content;
}

.global-lang {
  position: relative;
}

.global-lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.global-lang summary::-webkit-details-marker {
  display: none;
}

.global-lang summary::before {
  content: "";
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 5px 0 0 transparent;
}

.global-lang summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.global-lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  min-width: 170px;
  padding: 14px;
  background: var(--global-paper);
  border: 1px solid rgba(25, 21, 18, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(15, 13, 11, 0.12);
}

.global-lang:not([open]) .global-lang-menu {
  display: none;
}

.global-lang-menu a {
  padding: 9px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(25, 21, 18, 0.62);
}

.global-lang-menu a:hover,
.global-lang-menu a[aria-current="true"] {
  color: var(--global-rose);
  background: rgba(197, 138, 138, 0.08);
}

.global-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  transition: background 180ms ease, color 180ms ease;
}

.global-signin:hover {
  background: var(--global-ink);
  color: var(--global-paper);
}

.global-footer {
  padding: 64px 0 36px;
  background: var(--global-night);
  color: var(--global-warm);
}

.global-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 0.75fr;
  gap: clamp(28px, 4vw, 52px);
}

.global-footer .global-brand {
  color: var(--global-warm);
}

.global-footer p {
  max-width: 32ch;
  margin: 22px 0 0;
  color: rgba(232, 213, 196, 0.62);
  font-size: 14px;
  line-height: 1.7;
}

.global-footer h4 {
  margin: 0 0 18px;
  color: rgba(232, 213, 196, 0.52);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.global-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.global-footer a {
  color: inherit;
  text-decoration: none;
}

.global-footer li a {
  color: rgba(232, 213, 196, 0.78);
  font-size: 14px;
  line-height: 1.35;
  transition: color 180ms ease, opacity 180ms ease;
}

.global-footer li a:hover {
  color: var(--global-rose);
}

.global-footer .global-network a {
  color: #c58a8a;
}

.global-disclaimer {
  margin-top: 46px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(232, 213, 196, 0.58);
  font-size: 12px;
  line-height: 1.7;
}

.global-footer-bottom {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(232, 213, 196, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.global-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
}

.global-network-line {
  margin-top: 18px;
  text-align: center;
  color: rgba(232, 213, 196, 0.5);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

@media (max-width: 1120px) {
  .global-header {
    position: relative;
  }

  .global-header-inner {
    grid-template-columns: 1fr auto;
    padding: 12px 0;
  }

  .global-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .global-nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 760px) {
  .global-shell {
    width: min(100% - 24px, 1280px);
  }

  .global-brand strong {
    font-size: 14px;
  }

  .global-actions {
    gap: 8px;
  }

  .global-signin {
    display: none;
  }

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

  .global-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}
