.mw {
  --mw-color: #3976F7;
  --mw-ink: #142338;
  position: fixed;
  z-index: 9990;
  right: 28px;
  bottom: 28px;
  width: 64px;
  height: 64px;
  font-family: inherit;
}
.mw__list {
  position: absolute;
  right: 0;
  bottom: 76px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: none;
}
.mw.is-open .mw__list { pointer-events: auto; }
.mw__item {
  opacity: 0;
  transform: translateY(10px) scale(.92);
  transition: opacity .28s ease, transform .28s ease;
}
.mw.is-open .mw__item { opacity: 1; transform: none; }
.mw.is-open .mw__item:nth-last-child(1) { transition-delay: .02s; }
.mw.is-open .mw__item:nth-last-child(2) { transition-delay: .06s; }
.mw.is-open .mw__item:nth-last-child(3) { transition-delay: .1s; }
.mw.is-open .mw__item:nth-last-child(4) { transition-delay: .14s; }
.mw.is-open .mw__item:nth-last-child(5) { transition-delay: .18s; }
.mw__link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}
.mw__label {
  padding: 7px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--mw-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(20, 35, 56, .16);
}
.mw__bubble {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(20, 35, 56, .22);
  transition: transform .2s ease;
}
.mw__bubble svg { width: 28px; height: 28px; display: block; }
.mw__mark { width: 34px; height: 34px; display: block; }
.mw__bubble .mw__mark { width: 30px; height: 30px; }
.mw__link--max .mw__bubble,
.mw__face--max { background: linear-gradient(to right, #3976F7, #943BD5); }
.mw__link--tg .mw__bubble,
.mw__face--tg { background: #2aabee; }
.mw__link--wa .mw__bubble,
.mw__face--wa { background: #25d366; }
.mw__link--vk .mw__bubble,
.mw__face--vk { background: #0077ff; }
.mw__link--call .mw__bubble,
.mw__face--call { background: #d97706; }
.mw__link:hover .mw__bubble,
.mw__link:focus-visible .mw__bubble { transform: scale(1.06); }
.mw__toggle {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--mw-color) 42%, transparent);
}
.mw.is-open .mw__toggle { box-shadow: 0 12px 28px rgba(20, 35, 56, .32); }
.mw__toggle:focus-visible,
.mw__link:focus-visible {
  outline: 3px solid #f0a33a;
  outline-offset: 3px;
}
.mw__link:focus-visible { border-radius: 12px; }
.mw__face,
.mw__x {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  opacity: 0;
  transform: scale(.86);
  transition: opacity .45s ease, transform .45s ease;
}
.mw__face svg,
.mw__x svg { width: 32px; height: 32px; display: block; }
.mw__face.is-on { opacity: 1; transform: none; }
.mw__x { background: #142338; transform: scale(.86) rotate(-45deg); }
.mw.is-open .mw__face { opacity: 0; transform: scale(.86); }
.mw.is-open .mw__x { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .mw { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .mw__toggle { width: 56px; height: 56px; }
  .mw__list { bottom: 68px; gap: 10px; }
  .mw__bubble { width: 48px; height: 48px; }
  .mw__bubble svg { width: 26px; height: 26px; }
  .mw__mark { width: 30px; height: 30px; }
  .mw__bubble .mw__mark { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .mw__face, .mw__item, .mw__x, .mw__bubble { transition: none; }
}
