.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 10px 0;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(13, 59, 79, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 40px rgba(13, 59, 79, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(13, 59, 79, 0.08), rgba(240, 109, 79, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.brand-mark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  color: var(--brand-strong);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-tag {
  color: var(--text-soft);
  font-size: 0.78rem;
  white-space: nowrap;
}

.nav {
  justify-self: end;
}

.main-menu {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-list {
  position: relative;
}

.main-list-btn,
.header-cta,
.sub-list-btn {
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.main-list-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-list-btn:hover,
.main-list-btn.is-active,
.main-list.is-open > .main-list-btn {
  background: rgba(13, 59, 79, 0.08);
  color: var(--brand);
}

.main-list-btn img {
  width: 12px;
  height: 12px;
}

.sub-nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 248px;
  display: none;
  padding: 10px;
  border: 1px solid rgba(13, 59, 79, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 54px rgba(13, 59, 79, 0.14);
  backdrop-filter: blur(18px);
}

.main-list.is-open > .sub-nav {
  display: block;
  animation: riseIn 0.22s ease forwards;
}

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

.sub-list-btn {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 14px;
  background: #f7fafb;
  color: var(--brand-strong);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: left;
}

.sub-list-btn:hover {
  background: rgba(240, 109, 79, 0.12);
  color: var(--brand);
  transform: translateX(3px);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), #16586a);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 18px 34px rgba(13, 59, 79, 0.2);
}

.header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 40px rgba(13, 59, 79, 0.26);
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  background: rgba(13, 59, 79, 0.08);
}

.mobile-menu-btn img {
  width: 24px;
  height: 24px;
  margin: auto;
}

@media (max-width: 1180px) {
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 8px 0;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 10px;
    border-radius: 24px;
  }

  .brand-tag {
    display: none;
  }

  .mobile-menu-btn {
    display: grid;
    place-items: center;
  }

  .nav {
    grid-column: 1 / -1;
    display: none;
    justify-self: stretch;
    padding-top: 6px;
  }

  .nav.is-open {
    display: block;
  }

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

  .main-list-btn {
    width: 100%;
    justify-content: space-between;
    min-height: 50px;
    padding: 0 16px;
    background: rgba(13, 59, 79, 0.04);
  }

  .sub-nav {
    position: static;
    min-width: 100%;
    margin-top: 8px;
    background: rgba(247, 250, 251, 0.92);
    box-shadow: none;
  }
}
