/* ============================================================
   Плавающая панель внизу экрана: «Нужна помощь?» + «Меню / Наверх»
   Появляется выездом снизу только при прокрутке страницы вниз.
   ============================================================ */
.pbg-float-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 16px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .28s ease, transform .32s cubic-bezier(.4, 0, .2, 1);
}
.pbg-float-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.pbg-float-bar > * { pointer-events: auto; }

.pbg-float-support {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(1deg, #25252e 30%, #292932 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #b0b2c0;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.pbg-float-support i { font-size: 17px; color: #6c79a3; }
.pbg-float-support:hover {
  color: #f0f1f8;
  border-color: rgba(79, 234, 159, .4);
  transform: translateY(-2px);
  text-decoration: none;
}
.pbg-float-support:hover i { color: #4fea9f; }

.pbg-float-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 44px;
  padding: 4px;
  border-radius: 999px;
  background: linear-gradient(1deg, #25252e 30%, #292932 100%);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}

.pbg-float-pill__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #8a8c9e;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.pbg-float-pill__btn i { font-size: 18px; line-height: 0; }
.pbg-float-pill__btn:not(.pbg-float-pill__btn--top):hover {
  background: rgba(255, 255, 255, .06);
  color: #f0f1f8;
}
.pbg-float-pill__btn:not(.pbg-float-pill__btn--top) {
  width: 36px;
  padding: 0;
}

.pbg-float-pill__btn--top {
  background: var(--GLOBAL, radial-gradient(100% 100% at 50% 0, #4fea9f 0, #38644f 100%));
  color: #08150f;
  text-shadow: none;
  box-shadow: 0 4px 14px -2px rgba(79, 234, 159, .45);
}
.pbg-float-pill__btn--top:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

@media (max-width: 575.98px) {
  .pbg-float-bar { bottom: 12px; gap: 10px; }

  .pbg-float-support { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 50%; }
  .pbg-float-support span { display: none; }

  .pbg-float-pill { height: 48px; padding: 5px; gap: 4px; }
  .pbg-float-pill__btn:not(.pbg-float-pill__btn--top) { width: 38px; height: 38px; }

  .pbg-float-pill__btn--top span { display: none; }
  .pbg-float-pill__btn--top { width: 38px; height: 38px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pbg-float-bar { transition: opacity .2s ease; transform: none; }
}
