.scroll-progress { position: fixed; z-index: 120; inset: 0 0 auto; width: 0; height: 3px; background: var(--accent); }
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 80px;
  border-bottom: 1px solid rgba(16, 19, 23, .09);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(18px);
  transition: height .3s var(--ease), box-shadow .3s;
}
.site-header.is-scrolled { height: 70px; box-shadow: 0 10px 40px rgba(10, 16, 25, .09); }
.header-shell { height: 100%; display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { width: 46px; height: 46px; border-radius: 10px; transition: width .3s, height .3s; }
.is-scrolled .brand img { width: 40px; height: 40px; }
.brand span { display: grid; line-height: 1.2; }
.brand strong { font-size: 1rem; font-weight: 800; }
.brand small { margin-top: 5px; color: var(--muted); font-size: .68rem; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; height: 100%; min-width: 0; }
.desktop-nav > a, .nav-group__trigger {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: color .2s, background .2s;
}
.desktop-nav > a:hover, .nav-group__trigger:hover, .nav-group:hover .nav-group__trigger, .nav-group.is-open .nav-group__trigger { color: var(--accent); background: #eef4ff; }
.nav-group { position: static; }
.nav-group__trigger svg { width: 15px; transition: transform .25s; }
.nav-group.is-open .nav-group__trigger svg { transform: rotate(180deg); }
.mega-menu {
  position: absolute;
  top: calc(100% + 1px);
  inset-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2));
  display: grid;
  grid-template-columns: 280px 1fr;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  background: white;
  box-shadow: var(--shadow-lg);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.nav-group:hover .mega-menu, .nav-group.is-open .mega-menu { visibility: visible; opacity: 1; transform: none; }
.mega-menu__intro { padding: 34px; color: white; background: var(--ink); }
.mega-menu__intro > span { color: #8fb7ff; font-weight: 700; }
.mega-menu__intro strong { display: block; margin: 8px 0 12px; font-size: 1.35rem; }
.mega-menu__intro p { margin: 0; color: #b9c0c8; font-size: .88rem; line-height: 1.8; }
.mega-menu__links { display: grid; grid-template-columns: repeat(3, 1fr); padding: 20px; }
.mega-link { min-height: 112px; display: grid; grid-template-columns: 42px 1fr 20px; align-items: center; gap: 12px; padding: 18px; border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s; }
.mega-link:hover { z-index: 1; border-color: var(--line); background: #f6f8fb; transform: translateY(-2px); }
.mega-link__icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--accent); background: #eaf2ff; }
.mega-link span:nth-child(2) { display: grid; }
.mega-link strong { font-size: .86rem; }
.mega-link small { margin-top: 5px; color: var(--muted); font-size: .74rem; line-height: 1.5; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.language-button, .login-button { min-height: 42px; display: inline-flex; align-items: center; padding: 0 12px; font-family: var(--font-display); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.language-button--icon { width: 42px; justify-content: center; padding: 0; border: 1px solid var(--line); background: #fff; }
.language-button--icon svg { width: 19px; height: 19px; }
.header-cta { min-height: 44px; padding-inline: 16px; }
.menu-button { width: 46px; height: 46px; display: none; place-items: center; border: 1px solid var(--line); background: white; cursor: pointer; }
.mobile-drawer { position: fixed; z-index: 200; inset: 0; visibility: hidden; }
.mobile-drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; border: 0; background: rgba(5, 8, 12, .68); opacity: 0; backdrop-filter: blur(5px); transition: opacity .35s; }
.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; bottom: 0; right: 0; left: auto; width: min(440px, 92vw); display: flex; flex-direction: column; color: white; background: var(--ink); transform: translateX(105%); transition: transform .45s var(--ease); }
html[dir="rtl"] .drawer-panel, [dir="rtl"] .drawer-panel { right: 0; left: auto; transform: translateX(105%); }
html[dir="ltr"] .drawer-panel, [dir="ltr"] .drawer-panel { left: 0; right: auto; transform: translateX(-105%); }
.is-open .drawer-panel { transform: none; }
.drawer-head { min-height: 92px; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid #30343a; }
.drawer-brand { display: flex; align-items: center; gap: 12px; }
.drawer-brand img { border-radius: 8px; }
.drawer-brand span { display: grid; line-height: 1.2; }
.drawer-brand small { color: #9ca4ae; font-size: .72rem; }
.drawer-head > button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #4a4e54; background: transparent; cursor: pointer; }
.drawer-nav { padding: 18px 24px; overflow-y: auto; }
.drawer-nav > a, .drawer-group > button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid #30343a; background: transparent; color: white; font-family: var(--font-display); font-weight: 700; cursor: pointer; }
.drawer-group > button svg { transition: transform .25s; }
.drawer-group.is-open > button svg { transform: rotate(180deg); }
.drawer-group > div { display: grid; max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.drawer-group.is-open > div { max-height: 520px; }
.drawer-group > div a { padding: 12px 18px; color: #c4cad1; border-inline-start: 2px solid #353a41; }
.drawer-group > div a:hover { color: white; border-color: var(--accent); }
.drawer-foot { margin-top: auto; padding: 22px 24px; border-top: 1px solid #30343a; }
.drawer-foot .button { width: 100%; }
.drawer-foot > div { display: flex; justify-content: space-between; padding-top: 16px; color: #b6bdc5; }
