body:has(.telegram-contact) { padding-bottom: 72px; }
.telegram-contact {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #62676a;
  border-radius: 0;
  background: #1c1c1c;
  color: #fff;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.telegram-contact:hover { border-color: #d7261e; color: #fff; }
.telegram-contact:active { background: #1c1c1c; }
.telegram-contact:focus-visible { outline: 2px solid #d7261e; outline-offset: 4px; }
body.dialog-open .telegram-contact,
body:has(dialog[open]) .telegram-contact { visibility: hidden; }
@media (max-width: 640px) {
  .telegram-contact {
    right: max(12px, env(safe-area-inset-right));
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding-inline: 14px;
  }
}
