.ecosystem-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid rgba(33, 28, 22, 0.12);
  background: rgba(239, 231, 222, 0.91);
  backdrop-filter: blur(18px);
  transition: box-shadow 280ms cubic-bezier(0.16, 1, 0.3, 1), background 280ms ease;
}

.ecosystem-header.is-elevated {
  background: rgba(239, 231, 222, 0.97);
  box-shadow: 0 14px 34px rgba(42, 34, 25, 0.08);
}

.ecosystem-brand {
  display: inline-grid;
  gap: 3px;
  color: #82642f;
  text-decoration: none;
}

.ecosystem-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 0.82;
  text-transform: uppercase;
}

.ecosystem-brand small {
  color: #6c655d;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.ecosystem-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ecosystem-header .lang-toggle {
  flex: 0 0 auto;
}

.ecosystem-contact-link {
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 0 17px;
  border: 1px solid rgba(28, 26, 23, 0.78);
  border-radius: 3px;
  color: #1c1a17;
  background: transparent;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  transition: color 240ms ease, background 240ms ease, transform 240ms ease;
}

.ecosystem-contact-link:hover {
  color: #f3ede5;
  background: #1c1a17;
}

.ecosystem-contact-link:active,
.ecosystem-menu-toggle:active,
.ecosystem-menu-close:active {
  transform: scale(0.97);
}

.ecosystem-menu-toggle,
.ecosystem-menu-close {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(28, 26, 23, 0.22);
  border-radius: 50%;
  color: inherit;
  background: rgba(255, 251, 245, 0.48);
  cursor: pointer;
  transition: border-color 240ms ease, background 240ms ease, transform 240ms ease;
}

.ecosystem-menu-toggle:hover {
  border-color: rgba(28, 26, 23, 0.7);
  background: rgba(255, 251, 245, 0.86);
}

.ecosystem-menu-icon {
  display: grid;
  width: 18px;
  gap: 4px;
}

.ecosystem-menu-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #1c1a17;
}

.ecosystem-menu-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
  pointer-events: none;
}

.ecosystem-menu-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  opacity: 0;
  background: rgba(22, 20, 18, 0.48);
  backdrop-filter: blur(4px);
  cursor: default;
  transition: opacity 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ecosystem-menu-panel {
  position: relative;
  display: grid;
  width: min(610px, 100%);
  min-height: 100%;
  max-height: 100dvh;
  margin-left: auto;
  overflow-y: auto;
  color: #f1e9df;
  background: #1c1a17;
  box-shadow: -24px 0 70px rgba(16, 14, 12, 0.22);
  transform: translate3d(100%, 0, 0);
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ecosystem-menu-shell.is-open {
  visibility: visible;
  pointer-events: auto;
}

.ecosystem-menu-shell.is-open .ecosystem-menu-backdrop {
  opacity: 1;
}

.ecosystem-menu-shell.is-open .ecosystem-menu-panel {
  transform: translate3d(0, 0, 0);
}

.ecosystem-menu-inner {
  display: grid;
  min-height: 100dvh;
  grid-template-rows: auto 1fr auto;
  padding: max(22px, env(safe-area-inset-top)) clamp(24px, 6vw, 56px) max(26px, env(safe-area-inset-bottom));
}

.ecosystem-menu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: clamp(34px, 7vh, 70px);
}

.ecosystem-menu-identity {
  display: grid;
  gap: 6px;
}

.ecosystem-menu-identity strong {
  color: #b89a61;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.ecosystem-menu-identity span,
.ecosystem-menu-label,
.ecosystem-menu-meta span {
  color: rgba(241, 233, 223, 0.58);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.ecosystem-menu-close {
  border-color: rgba(241, 233, 223, 0.2);
  background: transparent;
}

.ecosystem-menu-close:hover {
  border-color: rgba(241, 233, 223, 0.62);
  background: rgba(241, 233, 223, 0.08);
}

.ecosystem-menu-close::before,
.ecosystem-menu-close::after {
  position: absolute;
  width: 17px;
  height: 1.5px;
  background: #f1e9df;
  content: "";
}

.ecosystem-menu-close::before {
  transform: rotate(45deg);
}

.ecosystem-menu-close::after {
  transform: rotate(-45deg);
}

.ecosystem-menu-nav {
  align-self: center;
}

.ecosystem-menu-label {
  display: block;
  margin-bottom: 15px;
}

.ecosystem-menu-primary {
  border-top: 1px solid rgba(241, 233, 223, 0.15);
}

.ecosystem-menu-primary a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(241, 233, 223, 0.15);
  color: #f1e9df;
  text-decoration: none;
  transition: color 240ms ease, padding 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.ecosystem-menu-primary a:hover {
  padding-left: 8px;
  color: #c2a46c;
}

.ecosystem-menu-primary a[aria-current="page"] {
  color: #c2a46c;
}

.ecosystem-menu-primary a[aria-current="page"] .ecosystem-menu-number::after {
  display: inline-block;
  width: 10px;
  height: 1px;
  margin-left: 6px;
  vertical-align: middle;
  background: currentColor;
  content: "";
}

.ecosystem-menu-number {
  color: rgba(241, 233, 223, 0.46);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
}

.ecosystem-menu-link-copy {
  display: grid;
  gap: 4px;
}

.ecosystem-menu-link-copy strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.22rem, 3.3vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.05;
}

.ecosystem-menu-link-copy small {
  color: rgba(241, 233, 223, 0.5);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0;
  line-height: 1.35;
}

.ecosystem-menu-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  padding-top: clamp(38px, 8vh, 78px);
}

.ecosystem-menu-meta a {
  display: grid;
  gap: 6px;
  color: #f1e9df;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.84rem;
  line-height: 1.4;
  text-decoration: none;
}

.ecosystem-menu-meta a:hover strong {
  color: #c2a46c;
}

.ecosystem-menu-meta strong {
  font-weight: 600;
  transition: color 220ms ease;
}

body.ecosystem-menu-open {
  overflow: hidden;
}

.ecosystem-header a:focus-visible,
.ecosystem-header button:focus-visible,
.ecosystem-menu-shell a:focus-visible,
.ecosystem-menu-shell button:focus-visible {
  outline: 2px solid #c2a46c;
  outline-offset: 4px;
}

@media (max-width: 700px) {
  .ecosystem-header {
    min-height: 66px;
    padding-inline: 15px;
  }

  .ecosystem-brand strong {
    font-size: 1.65rem;
  }

  .ecosystem-brand small {
    display: none;
  }

  .ecosystem-contact-link {
    display: none;
  }

  .ecosystem-header .lang-toggle {
    min-width: 42px;
    height: 40px;
  }

  .ecosystem-menu-panel {
    width: 100%;
  }

  .ecosystem-menu-inner {
    padding-inline: 20px;
  }

  .ecosystem-menu-top {
    padding-bottom: 28px;
  }

  .ecosystem-menu-primary a {
    min-height: 62px;
  }

  .ecosystem-menu-link-copy strong {
    font-size: 1.2rem;
  }

  .ecosystem-menu-link-copy small {
    display: none;
  }

  .ecosystem-menu-meta {
    padding-top: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ecosystem-header,
  .ecosystem-contact-link,
  .ecosystem-menu-toggle,
  .ecosystem-menu-close,
  .ecosystem-menu-backdrop,
  .ecosystem-menu-panel,
  .ecosystem-menu-primary a {
    transition-duration: 1ms;
  }
}
