/* ASIP.MD Header CSS v1.0 - all classes are scoped with .asip-header-* */
.asip-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(254, 255, 255, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 122, 120, .14);
}
.asip-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.asip-header-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  color: var(--color-dark);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.05em;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.asip-header-logo-mark { color: var(--color-dark); }
.asip-header-logo-dot { color: var(--color-primary); }
.asip-header-nav {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  min-width: 0;
}
.asip-header-nav-link,
.asip-header-nav-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 13px;
  border: 0;
  background: transparent;
  color: var(--color-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.asip-header-nav-link:hover,
.asip-header-nav-button:hover,
.asip-header-nav-link.is-active,
.asip-header-dropdown.is-current .asip-header-nav-button {
  background: rgba(222, 242, 241, .72);
  color: var(--color-primary);
}
.asip-header-dropdown { position: relative; }
.asip-header-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  display: none;
  padding: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.asip-header-dropdown:hover .asip-header-dropdown-menu,
.asip-header-dropdown:focus-within .asip-header-dropdown-menu { display: grid; gap: 4px; }
.asip-header-dropdown-menu a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.asip-header-dropdown-menu a:hover,
.asip-header-dropdown-menu a.is-active { background: rgba(222, 242, 241, .74); color: var(--color-dark); }
.asip-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.asip-header-lang { position: relative; }
.asip-header-lang-current {
  min-width: 48px;
  min-height: 42px;
  border: 1px solid var(--border-soft);
  background: var(--color-white);
  border-radius: var(--radius-button);
  color: var(--color-dark);
  font-weight: 700;
}
.asip-header-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 48px;
  display: none;
  padding: 6px;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}
.asip-header-lang.is-open .asip-header-lang-menu { display: grid; }
.asip-header-lang-menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--color-dark);
}
.asip-header-lang-menu a:hover { background: rgba(222, 242, 241, .7); }
.asip-header-cta { white-space: nowrap; }
.asip-header-burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-button);
  background: var(--color-white);
  padding: 11px;
}
.asip-header-burger span { display: block; height: 2px; background: var(--color-dark); margin: 5px 0; border-radius: 2px; }
.asip-header-mobile-panel {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 76px;
  z-index: 1002;
  background: rgba(254, 255, 255, .98);
  border-bottom: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  max-height: calc(100dvh - 76px);
  overflow: auto;
}
.asip-header-mobile-panel.is-open { display: block; }
.asip-header-mobile-inner { padding-top: 14px; padding-bottom: 18px; }
.asip-header-mobile-direct,
.asip-header-mobile-trigger {
  width: 100%;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  background: var(--color-white);
  color: var(--color-dark);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 8px;
}
.asip-header-mobile-accordion.is-current-section > .asip-header-mobile-trigger,
.asip-header-mobile-direct.is-active { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-white); }
.asip-header-mobile-trigger::after { content: '⌄'; font-size: 16px; transition: transform .18s ease; }
.asip-header-mobile-accordion.is-open .asip-header-mobile-trigger::after { transform: rotate(180deg); }
.asip-header-mobile-content { display: none; padding: 6px 0 12px 12px; }
.asip-header-mobile-accordion.is-open .asip-header-mobile-content { display: grid; gap: 6px; }
.asip-header-mobile-content a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}
.asip-header-mobile-content a:hover,
.asip-header-mobile-content a.is-active { background: rgba(222, 242, 241, .66); color: var(--color-dark); }
.asip-header-mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.asip-header-overlay {
  display: none;
  position: fixed;
  inset: 76px 0 0;
  z-index: 1001;
  background: rgba(23, 37, 42, .26);
  backdrop-filter: blur(8px);
}
.asip-header-overlay.is-open { display: block; }
@media (max-width: 1220px) {
  .asip-header-nav, .asip-header-cta { display: none; }
  .asip-header-burger { display: block; }
  .asip-header-inner { justify-content: space-between; }
  .asip-header-actions { margin-left: auto; }
}
@media (max-width: 620px) {
  .asip-header-inner { min-height: 68px; gap: 10px; }
  .asip-header-logo { font-size: 21px; }
  .asip-header-lang-current { min-width: 44px; min-height: 44px; }
  .asip-header-mobile-panel { top: 68px; max-height: calc(100dvh - 68px); }
  .asip-header-overlay { inset: 68px 0 0; }
  .asip-header-mobile-actions { grid-template-columns: 1fr; }
}
