.greet-widget{
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  display: inline-block;
  text-decoration: none;
  user-select: none;
  --bubble-x: 82px;    /* сдвиг пузыря вправо */
  --bubble-y: 152px;   /* высота пузыря над иконкой */
  --tail-x: 24px;      /* куда указывает хвостик */
}

.greet-icon{
  width: 144px;
  height: 171px;
  display: block;
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(0,0,0,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}

.greet-widget:hover .greet-icon{
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(0,0,0,.35);
}


.greet-popup{
  position: absolute;
  left: var(--bubble-x);
  bottom: var(--bubble-y);
  min-width: 260px;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(20, 20, 20, 0.95);
  color: #fff;
  font: 15px/1.45 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  box-shadow: 0 14px 44px rgba(0,0,0,.4);

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}


.greet-popup::after{
  content:"";
  position:absolute;
  left: var(--tail-x);
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: rgba(20, 20, 20, 0.95);
  transform: rotate(45deg);
}

.greet-widget:hover .greet-popup,
.greet-widget:focus-within .greet-popup{
  opacity: 1;
  transform: translateY(0);
}

/* СКРЫВАЕМ НА МОБИЛЬНЫХ */
@media (max-width: 1024px), (hover: none) {
  .greet-widget{
    display: none !important;
  }
}
