/* Плавающие мессенджеры (аналог Tilda t898) */
.t898-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 99990;
  font-family: Montserrat, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.t898-widget__panel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: t898-fade-up 0.25s ease-out;
}

.t898-widget--open .t898-widget__panel {
  display: flex;
}

.t898-widget--open .t898-widget__main {
  display: none;
}

@keyframes t898-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.t898-widget__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  flex-shrink: 0;
}

.t898-widget__btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
}

.t898-widget__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.t898-widget__link--wa {
  background: #25d366;
}

.t898-widget__link--tg {
  background: #3390ec;
}

.t898-widget__link--max {
  background: transparent;
}

.t898-widget__close-icon {
  width: 22px;
  height: 22px;
  position: relative;
}

.t898-widget__close-icon::before,
.t898-widget__close-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  background: #1a1a1a;
  margin-left: -8px;
  margin-top: -1px;
}

.t898-widget__close-icon::before {
  transform: rotate(45deg);
}

.t898-widget__close-icon::after {
  transform: rotate(-45deg);
}

.t898-widget__main {
  width: auto;
  min-width: 56px;
  height: 56px;
  border-radius: 28px;
  padding: 0 18px;
  background: #8b22ff;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  gap: 8px;
  box-shadow: 0 4px 24px rgba(139, 34, 255, 0.45);
  display: flex;
  align-items: center;
}

.t898-widget__main svg {
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .t898-widget {
    right: 12px;
    bottom: 12px;
  }

  .t898-widget__main {
    font-size: 12px;
    padding: 0 14px;
  }
}
