/* NEYRONINA_PUBLIC_SITE_FUTURE_TOPBAR_REBUILD_V4 */
/* Полная пересборка topbar: темнее, аккуратнее, более футуристично, без белых точек и без квадратных иконок. */

.neyronina-public-topbar {
  z-index: 140 !important;
  top: 0 !important;
  margin: 0 !important;
  padding: 8px 10px 10px !important;
  background:
    linear-gradient(
      to bottom,
      rgba(55, 157, 165, .60) 0%,
      rgba(87, 164, 174, .32) 58%,
      rgba(87, 164, 174, 0) 100%
    ) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.neyronina-public-topbar-inner {
  position: relative !important;
  overflow: hidden !important;
  width: min(1180px, calc(100vw - 22px)) !important;
  margin: 0 auto !important;
  padding: 10px 12px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.28) !important;
  background:
    linear-gradient(135deg, rgba(36, 121, 132, .76), rgba(98, 147, 163, .60), rgba(171, 162, 187, .46)) !important;
  backdrop-filter: blur(20px) saturate(1.08) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.08) !important;
  box-shadow:
    0 18px 42px rgba(30, 93, 105, .24),
    0 0 0 1px rgba(255,255,255,.10) inset !important;
}

.neyronina-public-topbar-inner::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.52), transparent);
  pointer-events: none;
}

.neyronina-public-topbar-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255,255,255,.11) 18.2%, transparent 18.6%),
    linear-gradient(90deg, transparent 0 51%, rgba(255,255,255,.09) 51.2%, transparent 51.6%),
    linear-gradient(90deg, transparent 0 82%, rgba(255,255,255,.08) 82.2%, transparent 82.6%);
  opacity: .72;
}

.neyronina-public-topbar-contacts,
.neyronina-public-topbar-actions {
  position: relative !important;
  z-index: 1 !important;
}

.neyronina-public-topbar-contacts {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.neyronina-public-topbar-label {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  margin: 0 2px 0 0 !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  background: rgba(13, 88, 98, .32) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  letter-spacing: -.01em !important;
  white-space: nowrap !important;
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: 0 1px 8px rgba(20, 70, 80, .36) !important;
}

/* убираем все декоративные точки старых версий */
.neyronina-public-topbar-label::before,
.neyronina-public-topbar-button::after {
  display: none !important;
  content: none !important;
}

.neyronina-public-topbar-link {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 36px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.13), rgba(255,255,255,.045)) !important;
  color: #ffffff !important;
  text-decoration: none !important;
  box-shadow:
    0 8px 18px rgba(22, 80, 92, .14),
    0 0 0 1px rgba(255,255,255,.045) inset !important;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease !important;
}

.neyronina-public-topbar-link:hover {
  transform: translateY(-1px) !important;
  border-color: rgba(255,255,255,.42) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.18), rgba(255,255,255,.07)) !important;
  box-shadow:
    0 10px 22px rgba(22, 80, 92, .18),
    0 0 18px rgba(255,255,255,.08),
    0 0 0 1px rgba(255,255,255,.07) inset !important;
}

/* иконки без квадратов, аккуратные и читаемые */
.neyronina-public-topbar-icon {
  width: 19px !important;
  height: 19px !important;
  min-width: 19px !important;
  min-height: 19px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

.neyronina-public-topbar-icon svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  fill: none !important;
}

/* MAX можно оставить как маленький круг, но не квадрат */
.neyronina-public-topbar-link.is-max .neyronina-public-topbar-icon {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.13) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14) inset !important;
  font-size: 11px !important;
  font-weight: 950 !important;
}

.neyronina-public-topbar-button {
  position: relative !important;
  min-height: 38px !important;
  padding: 8px 15px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  color: #ffffff !important;
  font-weight: 950 !important;
  background:
    linear-gradient(135deg, rgba(52, 196, 190, .92) 0%, rgba(126, 181, 189, .82) 52%, rgba(214, 173, 202, .76) 100%) !important;
  box-shadow:
    0 10px 24px rgba(22, 80, 92, .20),
    0 0 18px rgba(214, 173, 202, .10),
    0 0 0 1px rgba(255,255,255,.12) inset !important;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    filter .16s ease !important;
}

.neyronina-public-topbar-button:hover {
  transform: translateY(-1px) !important;
  filter: saturate(1.05) !important;
  box-shadow:
    0 13px 30px rgba(22, 80, 92, .25),
    0 0 24px rgba(214, 173, 202, .16),
    0 0 0 1px rgba(255,255,255,.16) inset !important;
}

/* техничность без визуального мусора */
.neyronina-public-topbar-link::before,
.neyronina-public-topbar-button::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.36), transparent);
  opacity: .54;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .neyronina-public-topbar-inner {
    animation: neyronina-future-topbar-v4-float 6s ease-in-out infinite;
  }
}

@keyframes neyronina-future-topbar-v4-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@media (max-width: 760px) {
  .neyronina-public-topbar {
    padding: 7px 7px 9px !important;
  }

  .neyronina-public-topbar-inner {
    width: calc(100vw - 14px) !important;
    padding: 9px !important;
    border-radius: 20px !important;
  }

  .neyronina-public-topbar-contacts {
    width: 100% !important;
    gap: 7px !important;
  }

  .neyronina-public-topbar-label {
    width: 100% !important;
    min-height: 30px !important;
    justify-content: center !important;
    font-size: 13px !important;
  }

  .neyronina-public-topbar-link {
    flex: 1 1 auto !important;
    min-width: 44px !important;
    padding: 8px 10px !important;
  }

  .neyronina-public-topbar-actions {
    width: 100% !important;
  }

  .neyronina-public-topbar-button {
    width: 100% !important;
    min-height: 42px !important;
  }
}
