.site-header .main-nav { align-items: baseline; }
.site-header .main-nav { flex-wrap: wrap; row-gap: 8px; }
.site-header .main-nav a, .site-header.is-scrolled .main-nav a { font-size: 15px; font-weight: 600; line-height: 1.5; }
.site-header .main-nav a { padding-bottom: 6px; border-bottom: 2px solid transparent; transition: color 160ms ease, border-color 160ms ease; }
.site-header .main-nav a:hover, .site-header .main-nav a:focus-visible, .site-header .main-nav a[aria-current] { color: #796aff; border-bottom-color: currentColor; }
.services-menu__entry { display: inline-flex; align-items: baseline; gap: 6px; }
.services-menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; vertical-align: middle; }
.services-menu__toggle svg { width: 14px; height: 14px; transition: transform 160ms ease; }
.services-menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.site-header .services-menu__toggle[aria-current], .site-header .services-menu__toggle[aria-expanded="true"] { color: #796aff; border-bottom-color: currentColor; }
.services-menu__panel[hidden] { display: none; }
.services-menu__panel { position: absolute; top: calc(100% + 12px); left: 0; right: 0; padding: 20px; border: 1px solid #ffffff20; border-radius: 8px; background: #12131e; color: #fff; box-shadow: 0 24px 60px #0005; max-height: calc(100dvh - 160px); overflow-y: auto; text-align: left; }
.services-menu__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.services-menu__item { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 8px; color: #fff; text-decoration: none; transition: background 160ms ease; }
.services-menu__item:hover { background: #ffffff09; color: #fff; }
.services-menu__icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; background: #252632; color: #adb5ff; }
.services-menu__icon svg { width: 24px; height: 24px; }
.services-menu__item strong { display: block; font-size: 17px; font-weight: 700; line-height: 1.4; }
.services-menu__item small { display: block; margin-top: 5px; font-size: 14px; line-height: 1.5; color: #a8a9b5; }
.services-menu__all { display: block; margin-top: 14px; padding: 18px 18px 0; border-top: 1px solid #ffffff18; color: #adb5ff; font-size: 14px; font-weight: 600; text-decoration: none; }
.services-menu__all:hover { color: #fff; }
.services-menu__toggle:focus-visible, .services-menu__panel a:focus-visible { outline: 2px solid #adb5ff; outline-offset: 4px; }
@media (max-width: 980px) {
  .site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
  .site-header.is-scrolled { width: calc(100% - 24px); padding: 8px 12px; }
  .site-header .brand { min-width: 0; flex: 1 1 90px; }
  .site-header .brand-logo { max-width: 120px; width: 100%; height: auto; }
  .site-header .main-nav { display: flex; position: static; transform: none; flex: 0 0 100%; order: 3; width: 100%; min-width: 0; justify-content: center; gap: 16px; margin: 0; padding: 8px 0 4px; }
  .site-header .main-nav a, .site-header.is-scrolled .main-nav a { font-size: 14px; font-weight: 600; white-space: nowrap; }
  .services-menu__panel { padding: 12px; }
  .site-header .account-menu { position: static; }
  .site-header .account-menu__panel { top: calc(100% + 12px); right: 0; max-height: calc(100dvh - 160px); overflow-y: auto; }
  .services-menu__item { padding: 12px; gap: 12px; }
  .services-menu__item strong { font-size: 16px; }
  .services-menu__all { padding: 16px 12px 4px; }
}
