/* btn */

.btn {
  overflow: hidden;
  position: relative;
  text-align: center;
  outline: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
  padding: 15px 24px 17px;
  display: inline-flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  color: $white;
  border: none;
  background: linear-gradient(90deg, #F35B45 0%, #F46F2E 100%);
  text-decoration: none;
  will-change: opacity;
  transition: opacity .3s ease;

  &::after {
    content: '';
    position: absolute;
    top: 0;
    z-index: 1;
    width: 100%;
    height: 220px;
    background: linear-gradient(to right, rgba($white, 0) 0%, rgba($white, 0.8) 50%, rgba(128, 186, 232, 0) 99%, rgba(125, 185, 232, 0) 100%);
    transform: translateX(100%);
    animation: shine 3s infinite 3s;
  }

  &:hover::after,
  &:focus::after,
  &:active::after {
    animation-play-state: paused;
  }

  &__arrow {
    margin-left: 14px;
    position: relative;
    top: 2px;
  }

  &:hover,
  &:focus,
  &:active {
    color: $white;
    background: linear-gradient(90deg, #F35B45 0%, #F46F2E 100%);
    text-decoration: none;
    opacity: .9;
  }

  &--warning {

    &,
    &:hover,
    &:focus,
    &:active {
      color: $black;
      background: linear-gradient(0deg, #FED954, #FED954);
    }
  }

  &--vk {

    &,
    &:hover,
    &:focus,
    &:active {
      background: linear-gradient(90deg, #4680C2 0%, #71A5E1 100%);
    }
  }

  &--tg {

    &,
    &:hover,
    &:focus,
    &:active {
      background: linear-gradient(90deg, #1F97C9 0%, #35ADE1 100%);
    }
  }

  @media (max-width:767px) {
    & {
      font-size: 14px;
      line-height: 18px;
      padding: 16px 18px;
    }

    &__arrow {
      margin-left: 8px;
    }
  }

  @media (max-width:576px) {
    & {
      width: 100%;
      font-size: 13px;
      justify-content: space-between;
    }

    &__arrow {
      margin-left: 4px;
    }
  }
}




@keyframes shine {
  0%,
  50% {
    transform: translateX(-100%);
  }
  
  100% {
    transform: translateX(100%);
  }
}