.fancy-contact-buttons {
  position: fixed;
  right: 20px;
  bottom: 28px;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fancy-contact-buttons a {
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}

.fancy-contact-buttons img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.fancy-contact-buttons a:hover,
.fancy-contact-buttons a:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #492067, 0 6px 16px rgba(0, 0, 0, .22);
}

.fancy-contact-buttons__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.fancy-social__telegram { background-color: #176581; }
.fancy-social__viber { background-color: #5142a9; }

@media (max-width: 767px), (max-height: 420px) {
  .fancy-contact-buttons {
    right: 12px;
    bottom: 12px;
    right: calc(12px + env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    gap: 8px;
  }

  .fancy-contact-buttons a {
    width: 44px;
    height: 44px;
  }
}
