.idea-modal {
  font-family: Gilroy;
  display: none;

  position: fixed;
  z-index: 90;
  bottom: 220px;
  right: 0;
  max-width: 540px !important;
  width: 100%;
  background: #f7f7ff;
  box-shadow: 0 0 30px rgba(77, 73, 122, 0.15);
  padding: 70px 30px 53px;
  box-sizing: border-box;
  display: flex;
  overflow: hidden;
  -webkit-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
  transition: all .3s ease-in-out;
  -webkit-transition-property: opacity,visibility;
  -o-transition-property: opacity,visibility;
  transition-property: opacity,visibility;
}

.idea-modal--ru {
  max-width: 605px !important;
}
.idea-modal::before {
  content: "";
  display: block;
  position: absolute;
  top: 16px;
  left: 64px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #6255f5;
  z-index: -1;
}
.idea-modal::after {
  content: "";
  display: block;
  position: absolute;
  top: -5px;
  right: 130px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 1px solid #000000;
  z-index: -1;
}
.idea-modal__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.idea-modal__content::before {
  content: "";
  display: block;
  position: absolute;
  bottom: -5px;
  left: 190px;
  width: 22px;
  height: 22px;
  background: #ec8b60;
  border-radius: 3px;
  transform: rotate(-23deg);
  z-index: -1;
}
.idea-modal__title {
  font-weight: bold;
  font-size: 21px;
  line-height: 25px;
  margin: 0 5px 0 0;
  max-width: 300px;
}
.idea-modal__button {
  font-size: 16px;
  line-height: 19px;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.idea-modal .rising-btn__text {
  padding: 14px 20px;
}
.idea-modal .rising-btn__wrapper {
  background-color: #f7f7ff;
}

.idea-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 21px;
  line-height: 21px;
  padding: 10px 10px 5px 10px;
  border: 1px solid transparent;
  cursor: pointer;
  background-color: transparent;
  outline: none;
  z-index: 91;
}

.idea-modal__close:hover,
.idea-modal__close:active {
  border: 1px solid #ada0fb;
}

.idea-modal--anim::before {
  top: -135%;
  left: 8%;
  animation: blue-circle 6s infinite ease-out;
}

.idea-modal--anim::after {
  top: -133%;
  right: 9%;
  animation: circle 6s 0.5s infinite linear;
}

.idea-modal--anim .idea-modal__content::before {
  bottom: -90%;
  left: 50%;
  animation: square 4s infinite linear;
}

@media screen and (max-width: 768px) {
  .idea-modal--anim::before {
    animation: none;
  }

  .idea-modal--anim::after {
    animation: none;
  }
  .idea-modal--anim .idea-modal__content::before {
    animation: none;
  }
}

@media screen and (max-width: 500px) {
  .idea-modal__content {
    flex-direction: column;
  }
  .idea-modal__title {
    margin-bottom: 20px;
    text-align: center;
  }
}
@keyframes blue-circle {
  from {
    transform: rotate(320deg) translateY(250px);
  }
  to {
    transform: rotate(380deg) translateY(250px);
  }
}
@keyframes circle {
  from {
    transform: rotate(340deg) translateY(250px);
  }
  to {
    transform: rotate(400deg) translateY(250px);
  }
}
@keyframes square {
  from {
    transform: rotate(-120deg) translateX(170px);
  }
  to {
    transform: rotate(-30deg) translateX(170px);
  }
}
