/* ASIP.MD Header CSS v1.3 - scoped header styles */
.asip-header {
  position: sticky;
  top: 0;
  z-index: 1500;
  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::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  display: none;
}
.asip-header-dropdown:hover::after,
.asip-header-dropdown:focus-within::after { display: block; }
.asip-header-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  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);
  z-index: 1520;
}
.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;
  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);
  z-index: 1530;
}
.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;
  min-height: 42px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-button);
  font-size: 14px;
  line-height: 1;
  transform: none;
}
.asip-header-cta:hover { transform: none; }
.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: 1510;
  background: #FEFFFF;
  border-bottom: 1px solid var(--border-soft);
  box-shadow: 0 24px 80px rgba(23, 37, 42, .14);
  max-height: calc(100dvh - 76px);
  overflow: auto;
}
body.menu-open { overflow: hidden; }
.asip-header-mobile-panel.is-open { display: block; }
.asip-header-mobile-inner { padding: 12px 16px 16px; }
.asip-header-mobile-direct,
.asip-header-mobile-trigger {
  width: 100%;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: #17252A;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  margin: 0 0 7px;
}
.asip-header-mobile-direct.is-active,
.asip-header-mobile-accordion.is-current-section > .asip-header-mobile-trigger {
  background: rgba(222, 242, 241, .72);
  color: #17252A;
  box-shadow: none;
}
.asip-header-mobile-trigger::after {
  content: '⌄';
  font-size: 15px;
  line-height: 1;
  color: rgba(23, 37, 42, .74);
  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: 0 0 8px 0;
  margin: -1px 0 7px;
}
.asip-header-mobile-accordion.is-open .asip-header-mobile-content { display: grid; gap: 1px; }
.asip-header-mobile-content a {
  display: block;
  min-height: 32px;
  padding: 7px 10px 7px 16px;
  border-radius: 10px;
  color: rgba(23, 37, 42, .74);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0;
  border: 0;
}
.asip-header-mobile-content a:hover,
.asip-header-mobile-content a.is-active {
  background: rgba(222, 242, 241, .68);
  color: #17252A;
}
.asip-header-mobile-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
  padding-top: 4px;
}
.asip-header-mobile-actions .asip-btn {
  width: 100%;
  min-height: 44px;
  font-size: 14px;
  border-radius: 14px;
}
.asip-header-mobile-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}
.asip-header-mobile-call-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: #17252A;
}
.asip-header-mobile-call-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.asip-header-mobile-call-number {
  display: inline-block;
}
.asip-header-mobile-write {
  position: relative;
}
.asip-header-mobile-write summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.asip-header-mobile-write summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.8px solid currentColor;
  border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .18s ease;
  margin-left: 2px;
}
.asip-header-mobile-write[open] summary::after {
  transform: rotate(-135deg) translateY(-1px);
}
.asip-header-mobile-write summary::-webkit-details-marker {
  display: none;
}
.asip-header-mobile-write-options {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(222, 242, 241, .58);
}
.asip-header-mobile-write[open] .asip-header-mobile-write-options {
  display: grid;
}
.asip-header-mobile-write-options a {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border-radius: 12px;
  background: #FEFFFF;
  color: #17252A;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}
.asip-header-mobile-write-options a:hover {
  background: rgba(58, 175, 169, .14);
  color: #17252A;
}
.asip-header-overlay {
  display: none;
  position: fixed;
  inset: 76px 0 0;
  z-index: 1400;
  background: rgba(23, 37, 42, .22);
  backdrop-filter: blur(6px);
}
.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; height: 44px; }
  .asip-header-burger { width: 44px; height: 44px; }
  .asip-header-mobile-panel { top: 68px; max-height: calc(100dvh - 68px); }
  .asip-header-mobile-inner { padding: 10px 16px 14px; }
  .asip-header-mobile-direct,
  .asip-header-mobile-trigger { min-height: 40px; padding: 9px 12px; margin-bottom: 6px; font-size: 14px; }
  .asip-header-mobile-content a { min-height: 30px; padding-top: 6px; padding-bottom: 6px; font-size: 13px; }
  .asip-header-mobile-actions { grid-template-columns: 1fr; gap: 8px; margin-top: 8px; }
  .asip-header-overlay { inset: 68px 0 0; }
}
