:root {
  --maa-header-bg: #d7d5d0;
  --maa-header-ink: #17243a;
  --maa-header-accent: #d95814;
  --maa-header-line: rgba(23, 36, 58, .14);
}

.maa-header-host {
  position: relative;
  z-index: 50;
  min-height: 84px !important;
  padding: 0 clamp(20px, 4vw, 68px) !important;
  background: var(--maa-header-bg) !important;
  border-bottom: 1px solid var(--maa-header-line);
  box-shadow: 0 8px 28px rgba(23, 36, 58, .08);
}

.maa-header-host > .e-con-inner,
.maa-header-host {
  align-items: center !important;
  justify-content: center !important;
}

.maa-site-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  width: min(100%, 1440px);
  min-height: 84px;
  margin: 0 auto;
  font-family: "DM Sans", sans-serif;
}

.maa-header-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  color: var(--maa-header-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .08em;
  text-decoration: none !important;
  text-transform: uppercase;
}

.maa-header-brand span { display: block; }

.maa-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 38px);
}

.maa-main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--maa-header-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
}

.maa-main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 7px;
  left: 0;
  height: 2px;
  background: var(--maa-header-accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.maa-main-nav a:hover::after,
.maa-main-nav a:focus-visible::after { transform: scaleX(1); }

.maa-header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
}

.maa-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--maa-header-ink);
  background: rgba(255, 255, 255, .52);
  border: 1px solid rgba(23, 36, 58, .13);
  border-radius: 999px;
  font: 700 13px/1 "DM Sans", sans-serif;
  text-decoration: none !important;
  transition: transform .2s ease, color .2s ease, background .2s ease;
}

.maa-icon-button:hover,
.maa-icon-button:focus-visible {
  color: #fff;
  background: var(--maa-header-accent);
  transform: translateY(-2px);
}

.maa-login-button { width: auto; padding: 0 15px; }
.maa-menu-button { cursor: pointer; }
.maa-menu-button span { font-size: 21px; transform: translateY(-1px); }

.maa-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  min-width: 230px;
  padding: 12px;
  background: #f1f0ed;
  border: 1px solid var(--maa-header-line);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(23, 36, 58, .18);
}

.maa-menu-panel.is-open { display: grid; }
.maa-menu-panel a {
  padding: 11px 13px;
  color: var(--maa-header-ink);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none !important;
}
.maa-menu-panel a:hover { background: rgba(217, 88, 20, .1); }

@media (max-width: 1080px) {
  .maa-site-header { grid-template-columns: 1fr auto; }
  .maa-main-nav { display: none; }
}

@media (max-width: 640px) {
  .maa-header-host { min-height: 72px !important; padding: 0 16px !important; }
  .maa-site-header { min-height: 72px; }
  .maa-header-brand { font-size: 13px; }
  .maa-social-button, .maa-login-button { display: none; }
  .maa-menu-panel { right: 0; left: 0; min-width: 0; }
}
