#request {
  scroll-margin-top: 140px;
}

.floating-contact {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 13px;
}

.floating-contact__bottom {
  display: flex;
  align-items: center;
  gap: 10px;
}

.floating-contact__toggle {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.floating-contact__bubble {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px 0 18px;
  border-radius: 7px;
  background: #0b7cff;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(11, 124, 255, 0.2);
  opacity: 0;
  transform: translateX(12px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    transform 0.28s ease;
}

.floating-contact__bubble::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 11px solid #0b7cff;
}

.floating-contact.is-bubble-visible:not(.is-open) .floating-contact__bubble {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.floating-contact.is-bubble-hidden .floating-contact__bubble {
  display: none;
}

.floating-contact__bubble-close {
  position: relative;
  z-index: 2;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0.75;
}

.floating-contact__bubble-close:hover {
  opacity: 1;
}

.floating-contact__bubble-close span {
  position: absolute;
  left: 3px;
  top: 8px;
  width: 13px;
  height: 2px;
  border-radius: 20px;
  background: #ffffff;
}

.floating-contact__bubble-close span:first-child {
  transform: rotate(45deg);
}

.floating-contact__bubble-close span:last-child {
  transform: rotate(-45deg);
}

.floating-contact__circle {
  position: relative;
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: #0b7cff;
  border: 3px solid #ffffff;
  box-shadow: 0 10px 26px rgba(11, 124, 255, 0.24);
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.floating-contact__circle::before,
.floating-contact__circle::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.floating-contact__circle::before {
  inset: -7px;
  border: 2px solid rgba(11, 124, 255, 0.42);
  animation: floating-contact-pulse 1.55s ease-out infinite;
}

.floating-contact__circle::after {
  inset: -15px;
  border: 3px solid rgba(11, 124, 255, 0.18);
  animation: floating-contact-pulse 1.55s ease-out infinite;
  animation-delay: 0.34s;
}

@keyframes floating-contact-pulse {
  0% {
    opacity: 0.95;
    transform: scale(0.72);
  }

  65% {
    opacity: 0;
    transform: scale(1.18);
  }

  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

.floating-contact__toggle:hover .floating-contact__circle {
  transform: scale(1.06);
}

.floating-contact__icon-chat,
.floating-contact__icon-close {
  position: absolute;
  z-index: 2;
  width: 28px;
  height: 28px;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.floating-contact__icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.75);
}

.floating-contact__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  margin-right: 5px;
  pointer-events: none;
}

.floating-contact__item {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(28px) scale(0.3);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.2, 1.2, 0.35, 1),
    box-shadow 0.25s ease;
}

.floating-contact__item:hover {
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

.floating-contact__item img {
  width: 27px;
  height: 27px;
  display: block;
}

.floating-contact__item--site svg {
  width: 27px;
  height: 27px;
}

.floating-contact__item--instagram {
  background: #9b2ee8;
}

.floating-contact__item--telegram {
  background: #0199e5;
}

.floating-contact__item--whatsapp {
  background: #36d94f;
}

.floating-contact__item--site {
  background: #0b7cff;
}

.floating-contact.is-open .floating-contact__menu {
  pointer-events: auto;
}

.floating-contact.is-open .floating-contact__item {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.floating-contact.is-open .floating-contact__item:nth-child(1) {
  transition-delay: 0.03s;
}

.floating-contact.is-open .floating-contact__item:nth-child(2) {
  transition-delay: 0.08s;
}

.floating-contact.is-open .floating-contact__item:nth-child(3) {
  transition-delay: 0.13s;
}

.floating-contact.is-open .floating-contact__item:nth-child(4) {
  transition-delay: 0.18s;
}

.floating-contact.is-open .floating-contact__icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.75);
}

.floating-contact.is-open .floating-contact__icon-close {
  opacity: 1;
  transform: rotate(0) scale(1);
}

@media (max-width: 768px) {
  #request {
    scroll-margin-top: 100px;
  }

  .floating-contact {
    right: 15px;
    bottom: 15px;
  }

  .floating-contact__bubble {
    min-height: 38px;
    padding: 0 11px 0 14px;
    font-size: 12px;
    border-radius: 6px;
  }

  .floating-contact__bubble-close {
    width: 16px;
    height: 16px;
  }

  .floating-contact__bubble-close span {
    left: 3px;
    top: 7px;
    width: 11px;
  }

  .floating-contact__circle {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .floating-contact__circle::before {
    inset: -6px;
  }

  .floating-contact__circle::after {
    inset: -13px;
  }

  .floating-contact__icon-chat,
  .floating-contact__icon-close {
    width: 25px;
    height: 25px;
  }

  .floating-contact__item {
    width: 50px;
    height: 50px;
  }

  .floating-contact__item img {
    width: 25px;
    height: 25px;
  }

  .floating-contact__item--site svg {
    width: 25px;
    height: 25px;
  }

  .floating-contact__menu {
    gap: 11px;
    margin-right: 3px;
  }
}

@media (max-width: 480px) {
  .floating-contact__bubble {
    display: none;
  }
}