/* GenVex — постоянная кнопка перехода в Telegram-канал */
.gv-tg-fab {
  position: fixed;
  left: max(18px, env(safe-area-inset-left, 0px));
  bottom: max(22px, env(safe-area-inset-bottom, 0px));
  z-index: 2147482000;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #37aee2 0%, #1e96c8 48%, #1689be 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 4px 18px rgba(23, 140, 190, 0.42),
    0 0 0 1px rgba(0, 0, 0, 0.12) inset;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.gv-tg-fab::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(55, 174, 226, 0.45);
  opacity: 0;
  animation: gv-tg-fab-pulse 2.6s ease-out infinite;
  pointer-events: none;
}

@keyframes gv-tg-fab-pulse {
  0% {
    transform: scale(0.92);
    opacity: 0.65;
  }
  70%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.gv-tg-fab:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.06);
  box-shadow:
    0 8px 26px rgba(23, 140, 190, 0.52),
    0 0 0 1px rgba(0, 0, 0, 0.1) inset;
}

.gv-tg-fab:active {
  transform: translateY(0) scale(0.98);
}

.gv-tg-fab:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 3px;
}

.gv-tg-fab svg {
  position: relative;
  z-index: 1;
  width: 26px;
  height: 26px;
  fill: currentColor;
  display: block;
}

@media (max-width: 640px) {
  .gv-tg-fab {
    width: 50px;
    height: 50px;
    left: max(14px, env(safe-area-inset-left, 0px));
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
  }

  .gv-tg-fab svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gv-tg-fab::after {
    animation: none;
  }

  .gv-tg-fab {
    transition: none;
  }
}
