.telegram-float {
  position: fixed;
  z-index: 1000;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, .84);
  border-radius: 999px;
  background: #2aabee;
  box-shadow: 0 12px 28px rgba(20, 68, 96, .24);
  color: #fff !important;
  font: 700 12px/1 TildaSans, Arial, sans-serif;
  letter-spacing: .01em;
  text-decoration: none !important;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.telegram-float:hover,
.telegram-float:focus-visible {
  transform: translateY(-3px);
  background: #1f9dde;
  box-shadow: 0 17px 34px rgba(20, 68, 96, .3);
}

.telegram-float:focus-visible { outline: 3px solid rgba(120, 31, 37, .42); outline-offset: 3px; }
.telegram-float svg { width: 25px; height: 25px; fill: currentColor; }

@media (max-width: 540px) {
  .telegram-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 50px;
    min-height: 50px;
    justify-content: center;
    padding: 0;
  }
  .telegram-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
