/*  кнопка открытия модального окна*/

.call-button {
  position: fixed;
  bottom: 55px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1111;
  transition: .3s;
}

@media (max-width: 1023px) {
  .call-button.slideUp {
    bottom: 100px;
  }
}
@media (max-width: 767px) {
  .call-button.slideUp {
    bottom: 80px;
  }
}

.question-call {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  width: inherit;
  height: 60px;
  padding-right: 50px;
  border-radius: 30px;
  background-image: -webkit-gradient(linear, left bottom, left top, from(rgba(28, 135, 144, 0.8)), to(rgba(148, 216, 20, 0.8)));
  background-image: linear-gradient(to top, rgba(28, 135, 144, 0.8), rgba(148, 216, 20, 0.8));
  overflow: hidden;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  color: #ffffff;
  z-index: 10;
  -webkit-transition: 1s;
  transition: 1s;
  text-align: center;
}

.question-call__title {
  margin-bottom: 0;
  margin-top: 3px;
  font-family: Verdana, sans-serif;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}

.question-call__text {
  margin-top: 0;
  font-family: Verdana, sans-serif;
  font-weight: normal;
  font-size: 12px;
  line-height: 16px;
  text-align: center;
}

.question-call__close{
  position: absolute;
  top: 5px;
  left: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  width: 15px;
  height: 15px;
  border-radius: 50%;
}
.question-call__close::before, .question-call__close::after{
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 5px;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.5);
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.question-call__close::after{
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  top: 9px;
}
@media(max-width:420px){
  .question-call{
    height: 100px;
    position: fixed;
    top: 100%;
    left: 0;
    border-radius: 0;
    text-align: center;
    padding: 0;
    padding: 20px 15px;
  }

  .question-call__close{
    width: 25px;
    height: 25px;
  }
  .question-call__close::before, .question-call__close::after{
    top: 12px;
    left: 7px;
    width: 12px;
  }

  .question-call__close::after{
    top: 12px;
  }
}

@media (max-width: 1445px) {
  .call-button {
    right: 140px;
  }
}
@media (max-width: 1023px) {
  .call-button {
    right: 20px;
    bottom: 70px;
  }
  .question-call {
    display: none;
  }
  .call-button.pulse:before, .call-button.pulse:after {
    left: -5px;
    right: -5px;
    top: -5px;
    bottom: -5px;
  }

}
@media (min-width: 1445px) {
  .call-button {
    left: 50%;
    -webkit-transform: translateX(535px);
    transform: translateX(535px);
  }
}

.call-button__wrapper {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-image: url(../img/phone.png), -webkit-gradient(linear, left bottom, left top, from(#1c8790), to(#94d814));
  background-image: url(../img/phone.png), linear-gradient(to top, #1c8790, #94d814);
  background-position: center;
  background-repeat: no-repeat;
  z-index: 12;
}

@media (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) {
  .call-button__wrapper {
    background-image: url(../img/phone@2x.png), -webkit-gradient(linear, left bottom, left top, from(#1c8790), to(#94d814));
    background-image: url(../img/phone@2x.png), linear-gradient(to top, #1c8790, #94d814);
    background-position: center;
    background-size: 50%, 100%;
  }
}

.pulse:hover .call-button__wrapper {
  -webkit-animation: phone .9s ease-in-out infinite;
  animation: phone .9s ease-in-out infinite;
}

.pulse::before,
.pulse::after {
  content: '';
  position: absolute;
  border: 1px solid #b9ff00;
  left: -20px;
  right: -20px;
  top: -20px;
  bottom: -20px;
  border-radius: 50%;
  -webkit-animation: pulse 1.8s linear infinite;
  animation: pulse 1.8s linear infinite;
  opacity: 0;
}

.pulse::after {
  -webkit-animation-delay: .5s;
  animation-delay: .5s;
}

@-webkit-keyframes phone {
  0%,
  100% {
    -webkit-transform: rotate(-20deg);
    transform: rotate(-20deg);
  }
  50% {
    -webkit-transform: rotate(21deg);
    transform: rotate(21deg);
  }
}

@keyframes phone {
  0%,
  100% {
    -webkit-transform: rotate(-20deg);
    transform: rotate(-20deg);
  }
  50% {
    -webkit-transform: rotate(21deg);
    transform: rotate(21deg);
  }
}

@-webkit-keyframes pulse {
  0% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    -webkit-transform: scale(0.5);
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    opacity: 0;
  }
}