.floating-contacts {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;

  transition: bottom 0.2s ease;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.floating-contacts__items {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;

  margin-bottom: -4px;

  opacity: 0;
  pointer-events: none;

  transform: translate3d(0, 12px, 0);

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.floating-contacts.is-open
.floating-contacts__items {
  opacity: 1;
  pointer-events: auto;

  transform: translate3d(0, 0, 0);
}

.floating-contact {
  display: flex;
  align-items: center;
  gap: 12px;

  color: inherit;
  text-decoration: none;

  -webkit-tap-highlight-color: transparent;
}

.floating-contact__label {
  padding: 8px 14px;
  border-radius: 999px;
  background: #ffffff;

  color: #171717;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;

  white-space: nowrap;

  box-shadow:
    0 10px 30px
    rgba(0, 0, 0, 0.08);

  opacity: 0;

  transform: translate3d(8px, 0, 0);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.floating-contact__icon {
  display: flex;
  width: 48px;
  height: 48px;
  flex: none;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #ffffff;

  box-shadow:
    0 14px 30px
    rgba(0, 0, 0, 0.18);

  transition: transform 0.25s ease;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.floating-contact__icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.floating-contacts__toggle {
  position: relative;

  display: flex;
  width: 56px;
  height: 56px;
  flex: none;
  align-items: center;
  justify-content: center;

  padding: 0;
  border: 0;
  border-radius: 50%;

  background: #1c2041;
  color: #ffffff;

  cursor: pointer;

  box-shadow:
    0 18px 40px
    rgba(0, 0, 0, 0.22);

  transition: transform 0.25s ease;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;

  -webkit-appearance: none;
  appearance: none;

  -webkit-tap-highlight-color: transparent;
}

.floating-contacts__toggle svg {
  position: absolute;

  display: block;
  width: 26px;
  height: 26px;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.floating-contacts__icon-chat {
  opacity: 1;
  transform: scale(1);
}

.floating-contacts__icon-close {
  opacity: 0;
  transform: scale(0.8);
}

.floating-contacts.is-open
.floating-contacts__icon-chat {
  opacity: 0;
  transform: scale(0.8);
}

.floating-contacts.is-open
.floating-contacts__icon-close {
  opacity: 1;
  transform: scale(1);
}

.floating-contacts__hint {
  margin-bottom: 12px;
  padding: 8px 14px;

  border-radius: 999px;
  background: #ffffff;

  color: #1c2041;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;

  white-space: nowrap;

  box-shadow:
    0 10px 30px
    rgba(0, 0, 0, 0.08);

  opacity: 1;

  transform: translate3d(0, 0, 0);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.floating-contacts.is-open
.floating-contacts__hint {
  opacity: 0;
  pointer-events: none;

  transform: translate3d(0, 8px, 0);
}

@media (hover: hover) and (pointer: fine) {
  .floating-contact:hover
  .floating-contact__label {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  .floating-contact:hover
  .floating-contact__icon {
    transform: scale(1.05);
  }

  .floating-contacts__toggle:hover {
    transform: scale(1.05);
  }
}

@media (max-width: 991px) {
  .floating-contacts {
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 767px) {
  .floating-contacts {
    position: fixed;

    top: auto;
    left: auto;
    right: 10px;
    bottom: 12px;

    margin: 0;
  }

  .floating-contacts__items {
    gap: 8px;
  }

  .floating-contacts__hint {
    display: block;

    margin-bottom: 8px;
    padding: 8px 12px;

    font-size: 12px;
  }

  .floating-contact__label {
    display: none;
  }

  .floating-contact__icon {
    width: 42px;
    height: 42px;
  }

  .floating-contact__icon svg {
    width: 20px;
    height: 20px;
  }

  .floating-contacts__toggle {
    width: 48px;
    height: 48px;
  }

  .floating-contacts__toggle svg {
    width: 21px;
    height: 21px;
  }
}

@media (max-width: 480px) {
  .floating-contacts {
    right: 8px;
    bottom: 10px;
  }

  .floating-contact__icon {
    width: 40px;
    height: 40px;
  }

  .floating-contact__icon svg {
    width: 19px;
    height: 19px;
  }

  .floating-contacts__toggle {
    width: 46px;
    height: 46px;
  }

  .floating-contacts__toggle svg {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 390px) {
  .floating-contacts {
    right: 8px;
    bottom: 10px;
  }

  .floating-contacts__hint {
    max-width: calc(100vw - 76px);
    overflow: hidden;
    text-overflow: ellipsis;
  }
}