.fx-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e4ebf7;
  box-shadow: 0 10px 26px rgba(15, 34, 63, 0.08);
  position: sticky;
  top: 0;
  z-index: 1050;
}

.fx-header__bar {
  align-items: center;
  display: flex;
  gap: 14px;
  min-height: 72px;
}

.fx-header__brand img {
  height: 42px;
  max-width: 180px;
  object-fit: contain;
}

.fx-header__nav {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-width: 0;
}

.fx-header__nav-link {
  background: #f5f8ff;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #19355b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 14px;
  white-space: nowrap;
}

.fx-header__nav-link:hover,
.fx-header__nav-link.active {
  background: #e9f1ff;
  border-color: #bfd3fb;
  color: #0d4aa7;
}

.fx-header__actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
}

.fx-header__lang .language-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d7e2f5;
  border-radius: 999px;
  color: #17345a;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px;
}

.fx-header__lang .flag {
  border-radius: 4px;
  height: 14px;
  width: 18px;
}

.fx-header__lang .dropdown-menu {
  border-radius: 12px;
  min-width: 150px;
}

.fx-header__auth {
  display: flex;
  gap: 8px;
}

.fx-header__auth .btn {
  border-radius: 999px;
  font-size: 13px;
  min-height: 38px;
  padding: 9px 14px;
  white-space: nowrap;
}

.fx-header__mobile-auth-btn {
  align-items: center;
  border: 1px solid #d7e2f5;
  border-radius: 10px;
  color: #17345a;
  display: inline-flex;
  font-size: 20px;
  justify-content: center;
  min-height: 40px;
  min-width: 44px;
}

.fx-header__profile .dropdown-toggle {
  border: 1px solid #d7e2f5;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  padding: 2px;
}

.fx-header__profile .dropdown-toggle img {
  border-radius: 999px;
  height: 34px;
  width: 34px;
}

.fx-header__profile .dropdown-menu {
  border-radius: 14px;
  min-width: 240px;
  padding: 8px;
}

.fx-header__profile .dropdown-menu.dropdown-menu-end {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 1px 1px 4px #eee;
}

.fx-header .dropdown-menu.dropdown-menu-end {
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 1px 1px 4px #eee;
}

.fx-header__profile .dropdown-link {
  border-radius: 10px;
  color: #243b57;
  display: flex;
  gap: 10px;
  padding: 10px;
}

.fx-header__profile .dropdown-link:hover {
  background: #f2f7ff;
  color: #0f5fbf;
}

.fx-header__cats {
  border-top: 1px solid #e4ebf7;
  padding: 10px 0;
}

.fx-header__cats-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.fx-header__cat {
  border: 1px solid #d7e2f5;
  border-radius: 999px;
  color: #274870;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  white-space: nowrap;
}

.fx-header__cat.active,
.fx-header__cat:hover {
  background: #e9f1ff;
  border-color: #bfd3fb;
  color: #0d4aa7;
}

@media (max-width: 1399.98px) {
  .fx-header__nav-link {
    font-size: 13px;
    padding: 9px 10px;
  }
}

@media (max-width: 1199.98px) {
  .fx-header__brand img {
    height: 36px;
  }

  .fx-header__bar {
    min-height: 66px;
  }

  .fx-header__toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #d7e2f5;
    border-radius: 10px;
    color: #17345a;
    display: inline-flex;
    font-size: 20px;
    justify-content: center;
    min-height: 40px;
    min-width: 44px;
  }

  .fx-header__mobile {
    border-top: 1px solid #e4ebf7;
  }

  .fx-header__mobile-inner {
    display: grid;
    gap: 10px;
    padding: 12px 0 14px;
  }

  .fx-header__mobile-link {
    background: #f5f8ff;
    border: 1px solid #d7e2f5;
    border-radius: 12px;
    color: #1a365c;
    display: block;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 12px;
  }

  .fx-header__mobile-link.active {
    background: #e9f1ff;
    border-color: #bfd3fb;
    color: #0d4aa7;
  }

  .fx-header__mobile-auth {
    display: flex;
    gap: 8px;
  }

  .fx-header__mobile-auth .btn {
    border-radius: 10px;
    flex: 1;
  }
}

@media (max-width: 575.98px) {
  .fx-header__actions {
    gap: 6px;
  }

  .fx-header__lang .language-text {
    display: none;
  }

  .fx-header__lang .language-btn {
    min-height: 36px;
    padding: 6px 8px;
  }

  .fx-header__mobile-auth-btn {
    min-height: 36px;
    min-width: 40px;
  }
}
