.main {
  &__title {
    font-size: 22px;
    line-height: 1.5;
    font-style: normal;
    font-weight: 900;
    color: $c-white;
    text-align: center;
    text-wrap: balance;
    margin-bottom: 20px;

    @media (max-width: $h-media-y) {
      font-size: 18px;
    }

    span {
      display: block;
      font-size: 20px;
      font-style: normal;
      font-weight: 400;
      line-height: 1;
      padding: 5px 10px;
      border-radius: 10px;
      margin: 10px auto;
      border: 1px solid $c-white;
      background: rgba(255, 255, 255, 0.1);

      @media (max-width: $h-media-y) {
        font-size: 18px;
      }
    }
  }
  &__subtitle {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }

  &__content {
    position: relative;

    // Анимированные монетки
    &::before,
    &::after {
      content: '';
      position: absolute;
      width: 40px;
      height: 40px;
      background-size: contain;
      background-repeat: no-repeat;
      animation: float 6s infinite ease-in-out;
    }

    &::before {
      background-image: url('../image/coin-1.png');
      left: 20px;
      top: 48%;
      animation-delay: 0s;
    }

    &::after {
      background-image: url('../image/coin-2.png');
      right: 20px;
      top: 3%;
      animation-delay: 2s;
    }
  }

  &__image {
    display: block;
    object-fit: cover;
    height: 100%;
    max-width: 100%;
    max-height: 350px;
    margin: 0 auto;
    padding-bottom: 20px;
    padding-top: 20px;

    opacity: 0;
    transform: translateY(10px);
    animation: imageEnter 1s ease-out forwards, imageFloat 8s 1s infinite ease-in-out;

    @media (max-width: $h-media-x) {
      padding-bottom: 20px;
    }

    @media (max-height: $h-media-x) {
      max-height: 250px;
    }
  }

  &__button {
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  &__link {
    text-decoration: none;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    max-width: 250px;
    margin: 0 auto;
    color: $c-white;
    width: 100%;
    padding: 20px 15px;
    border-radius: 190px;
    background: $c-purple-gradient;
    text-align: center;
    margin-bottom: 10px;

    // ПУЛЬСАЦИЯ
    animation: pulse 2s infinite;

    // Тактильная обратная связь
    transition: transform 0.2s ease;

    &:active {
      transform: scale(0.98);
    }

    @media (max-width: $h-media-y) {
      font-size: 20px;
    }
  }

  &__pay {
    opacity: 0.5;
    text-align: center;
    color: $c-white;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 20px;
  }

  &__back {
    margin: 0 auto;
    max-width: max-content;
    padding: 2px 10px;
    font-size: 15px;
    font-weight: 400;
    line-height: 26.68px;
    letter-spacing: 0.4765027165412903px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    margin-bottom: 10px;
  }
}

// АНИМАЦИЯ: плавающие монетки
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

//  АНИМАЦИЯ: пульсация кнопки
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(179, 42, 202, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(179, 42, 202, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(179, 42, 202, 0);
  }
}

@keyframes imageEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes imageFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
