.header { width: 91%; max-width: 1300px; gap: 20px; z-index: 10; }
.header nav { align-items: center; gap: 4px; }
.header nav > .nav-list > li > a, .nav-services summary { font-size: 13px; font-weight: 550; }
.nav-services { position: relative; }
.nav-services summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border-radius: 999px;
  color: #514b73;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.nav-services summary::-webkit-details-marker { display: none; }
.nav-services summary > span { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 14px; width: 14px; height: 14px; line-height: 1; transform-origin: center; transition: transform .2s ease; }
.nav-services summary > span svg { display: block; width: 14px; height: 14px; }
.nav-services[open] summary { background: #eae1fc; color: #5936a5; }
.nav-services[open] summary > span { transform: rotate(180deg); }
.nav-services summary:focus-visible { outline: 3px solid #a58aef; outline-offset: 3px; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 310px;
  padding: 16px;
  border: 1px solid #e4dbf8;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff, #f5f1ff);
  box-shadow: 0 18px 50px #31205d1c, inset 0 1px 0 #fff;
}
.nav-caption { padding: 4px 12px 10px; font-size: 10px; letter-spacing: 0; color: #82749f; font-weight: 650; }
.header .nav-dropdown a { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; border-radius: 12px; }
.nav-dropdown a span { color: #9b81ce; }
.header .nav-dropdown .nav-all { margin-top: 8px; background: #ebe2fa; color: #623ea5; font-weight: 650; }
@media (hover: hover) { .nav-services summary:hover { background: #eae1fc; color: #5936a5; } }
@media (max-width: 1050px) {
  .header { height: 76px; flex-wrap: nowrap; gap: 8px; }
  .header > .brand { min-width: 0; flex: 0 1 auto; }
  .header > .brand .brand-logo { max-width: 100%; height: auto; }
  .header > .header-cta { margin-left: auto; flex-shrink: 0; }
  .header > .menu-toggle { display: block; order: 3; flex: 0 0 44px; }
  .header nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border: 1px solid #e4dbf8; border-radius: 20px;
    background: #faf8ff; box-shadow: 0 18px 40px #31205d1c;
    max-height: calc(100dvh - 100px); overflow-y: auto;
  }
  .header nav.is-open { display: flex; }
  .header nav > .nav-list > li > a, .nav-services summary { font-size: 14px; border-radius: 12px; }
  .nav-dropdown { position: static; width: 100%; margin-top: 6px; padding: 8px; box-shadow: none; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-services summary, .nav-services summary > span { transition: none; }
}

@media (min-width: 1051px) {
  .nav-services { position: static; }
  .nav-dropdown { top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(880px, 94vw); }
  .nav-dropdown::before { content: none; }
}
.nav-dropdown {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 26px;
  background: linear-gradient(125deg, #fff, #f1ebff);
  box-shadow: 0 28px 70px #30205226, inset 0 1px 0 #fff;
}
.nav-feature {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 282px; padding: 22px; border-radius: 18px;
  background: radial-gradient(ellipse at 100% 30%, #956be5, transparent 75%), #24174f;
  color: #fff;
}
.nav-feature .nav-caption { padding: 0; color: #d4c3f7; font-size: 10px; letter-spacing: 0; }
.nav-feature-title { position: relative; z-index: 1; font-family: var(--font-heading); font-size: 28px; font-weight: 650; line-height: 1.17; letter-spacing: 0; }
.nav-feature-title em { color: #cdb8ff; font-style: normal; }
.nav-orbit { position: absolute; right: -18px; bottom: 38px; font-size: 150px; line-height: 1; color: #c8a9ff38; transform: rotate(-15deg); z-index: -1; }
.header .nav-feature .nav-all { margin: 24px 0 0; padding: 10px 0; background: transparent; color: #fff; border-radius: 0; border-top: 1px solid #ffffff30; font-size: 12px; }
.nav-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.header .nav-dropdown .nav-service-card {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 10px; padding: 16px 12px; border: 1px solid #e9e1f5;
  border-radius: 15px; background: #ffffffa6;
  transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.nav-card-icon { display: grid; place-items: center; width: 36px; height: 40px; flex-shrink: 0; border-radius: 12px; background: #eee5ff; color: #7651ba; font-size: 25px; }
.nav-service-card:nth-child(3n + 2) .nav-card-icon { background: #e4eaff; color: #5e6bb7; }
.nav-service-card:nth-child(3n) .nav-card-icon { background: #e1f2f1; color: #437d81; }
.nav-card-copy { min-width: 0; }
.nav-card-copy strong { display: block; color: #30204f; font-family: var(--font-heading); font-size: 13px; line-height: 1.4; }
.nav-card-copy small { display: block; margin-top: 5px; color: #787089; font-size: 11px; line-height: 1.5; }
.nav-card-arrow { margin-left: auto; transition: transform .2s ease; }
@media (hover: hover) {
  .header .nav-dropdown .nav-service-card:hover { background: #fff; border-color: #c8b2ee; box-shadow: 0 7px 18px #6f49ab12; }
  .nav-service-card:hover .nav-card-arrow { transform: translate(2px, -2px); }
}
@media (max-width: 1050px) {
  .nav-dropdown { grid-template-columns: 180px 1fr; box-shadow: none; }
  .nav-feature { padding: 16px; min-height: 250px; }
  .nav-feature-title { font-size: 24px; }
}
@media (max-width: 650px) {
  .nav-dropdown { grid-template-columns: 1fr; padding: 8px; }
  .nav-feature { min-height: 0; padding: 16px; }
  .nav-feature-title { margin-top: 10px; font-size: 23px; }
  .nav-feature-title br { display: none; }
  .nav-feature .nav-orbit { right: 12px; bottom: -25px; font-size: 120px; }
  .header .nav-feature .nav-all { margin-top: 12px; }
  .nav-card-grid { grid-template-columns: 1fr; }
  .header .nav-dropdown .nav-service-card { padding: 12px; }
  .nav-card-copy strong { font-size: 14px; }
  .nav-card-copy small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .header .nav-dropdown .nav-service-card, .nav-card-arrow { transition: none; }
  .nav-service-card:hover .nav-card-arrow { transform: none; }
}

.nav-list {
  display: flex;
  flex-direction: inherit;
  align-items: inherit;
  gap: inherit;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.nav-list > li { min-width: 0; }
@media (max-width: 1050px) {
  .header nav > .nav-list > li > a { display: flex; width: 100%; }
}
