.contact-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
}

.contact-fab__toggle {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25B95F;
  box-shadow: 0 10px 26px rgba(24, 113, 60, .28);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease;
}

.contact-fab__toggle::before,
.contact-fab__toggle::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid rgba(37, 185, 95, .48);
  border-radius: 50%;
  pointer-events: none;
  animation: contact-fab-wave 2.6s ease-out infinite;
}

.contact-fab__toggle::after {
  animation-delay: 1.3s;
}

.contact-fab__toggle:hover {
  transform: translateY(-2px);
  background: #20AD56;
  box-shadow: 0 14px 30px rgba(24, 113, 60, .34);
}

.contact-fab__toggle:focus-visible,
.contact-fab__link:focus-visible {
  outline: 3px solid rgba(11, 74, 195, .35);
  outline-offset: 3px;
}

.contact-fab__toggle img {
  position: relative;
  z-index: 2;
  width: 30px;
  height: 30px;
  animation: contact-fab-phone 4.2s ease-in-out infinite;
}

.contact-fab__links {
  position: absolute;
  right: 6px;
  bottom: calc(100% + 14px);
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  pointer-events: none;
}

.contact-fab__link {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  opacity: 0;
  transform: translateY(14px) scale(.74);
  transition: opacity .28s ease, transform .34s cubic-bezier(.2, .8, .2, 1), box-shadow .2s ease;
}

.contact-fab__link:nth-child(1) {
  transition-delay: .04s;
}

.contact-fab__link:nth-child(2) {
  transition-delay: .10s;
}

.contact-fab__link:nth-child(3) {
  transition-delay: .16s;
}

.contact-fab__link:hover {
  box-shadow: 0 11px 28px rgba(0, 0, 0, .22);
}

.contact-fab__link img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.contact-fab.is-open .contact-fab__link {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.contact-fab.is-open .contact-fab__toggle {
  transform: scale(.96);
}

@keyframes contact-fab-wave {
  0% {
    opacity: .75;
    transform: scale(1);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

@keyframes contact-fab-phone {
  0%,
  70%,
  100% {
    transform: rotate(0);
  }
  74% {
    transform: rotate(-14deg);
  }
  78% {
    transform: rotate(13deg);
  }
  82% {
    transform: rotate(-10deg);
  }
  86% {
    transform: rotate(7deg);
  }
  90% {
    transform: rotate(0);
  }
}

@media (max-width: 768px) {
  .contact-fab {
    right: 5.1282vw;
    bottom: 5.1282vw;
  }

  .contact-fab__toggle {
    width: 15.3846vw;
    height: 15.3846vw;
    box-shadow: 0 2.5641vw 6.6667vw rgba(24, 113, 60, .28);
  }

  .contact-fab__toggle::before,
  .contact-fab__toggle::after {
    border-width: .5128vw;
  }

  .contact-fab__toggle img {
    width: 7.1795vw;
    height: 7.1795vw;
  }

  .contact-fab__links {
    right: 1.2821vw;
    bottom: calc(100% + 3.5897vw);
    gap: 3.0769vw;
  }

  .contact-fab__link {
    width: 12.8205vw;
    height: 12.8205vw;
    box-shadow: 0 2.0513vw 6.1538vw rgba(0, 0, 0, .16);
    transform: translateY(3.5897vw) scale(.74);
  }

  .contact-fab__link img {
    width: 7.6923vw;
    height: 7.6923vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-fab__toggle::before,
  .contact-fab__toggle::after,
  .contact-fab__toggle img {
    animation: none;
  }

  .contact-fab__link,
  .contact-fab__toggle {
    transition: none;
  }
}
