.leadpopup,
.leadpopup * {
  box-sizing: border-box;
}

.leadpopup {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  padding: 12px;
  background-color: rgba(0, 0, 0, 0.2);
}

.leadpopup.active {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.leadpopup__modal {
  position: relative;
  display: none;
  max-width: 1000px;
  width: 100%;
  border-radius: 10px;
  background-color: #e8e8e8;
  color: #303030;
  font-family: "Montserrat", sans-serif;
  box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.5);
}

.leadpopup__modal.active {
  display: block;
}

.leadpopup__modal.trick {
  background-color: #e1e4e2;
}

.leadpopup__modal.case {
  background-color: #f8f8f8;
}

.leadpopup__close {
  position: absolute;
  top: 17px;
  right: 17px;
  cursor: pointer;
  z-index: 2;
}

.leadpopup__content {
  display: flex;
  padding: 60px;
}

.leadpopup__bg-block,
.leadpopup__form {
  width: 100%;
}

.leadpopup__form {
  min-width: 442px;
  z-index: 3;
}

.leadpopup__bg {
  position: absolute;
  bottom: 0;
}

.leadpopup__bg.errors {
  left: 0;
}

.leadpopup__bg.trick {
  right: 0;
  max-height: 100%;
  border-radius: 10px;
}

.leadpopup__bg.case {
  right: 0;
  height: 100%;
  border-radius: 10px;
  max-width: 490px;
}

.leadpopup__title {
  margin: 0 0 20px 0;
  font-size: 30px;
  font-weight: 900;
}

.leadpopup__title.trick,
.leadpopup__title.case {
  font-size: 20px;
}

.leadpopup__title.trick span {
  display: block;
  font-size: 64px;
}

.leadpopup__title.case {
  line-height: 1.1;
}

.leadpopup__title.case span {
  display: flex;
  align-items: center;
  margin: -21px 0 -10px 0;
  font-size: 36px;
}

.leadpopup__title.case b {
  display: block;
  margin-right: 11px;
  font-size: 96px;
}

.leadpopup__desc {
  margin: 0 0 20px 0;
  font-size: 15px;
}

.leadpopup__input {
  width: 100%;
  height: 60px;
  margin: 0 0 20px 0;
  padding: 22px 20px;
  border-radius: 6px;
  border: none;
}

.leadpopup__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
  min-height: 60px;
  border: none;
  border-radius: 10px;
  margin: 0 0 10px 0;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: 0.1s;
}

.leadpopup__btn:hover {
  filter: brightness(1.1);
}

.leadpopup__confirm {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: 12px;
}

.leadpopup__confirm input {
  margin-right: 6px;
}

.leadpopup__sends-success {
  display: none;
  color: green;
  font-size: 20px;
}

.leadpopup__sends-success.active {
  display: block;
}

.leadpopup__sends.hide {
  display: none;
}

@media (max-width: 970px) {
  .leadpopup__title {
    font-size: 24px;
  }
  .leadpopup__form {
    min-width: 336px;
  }
  .leadpopup__bg.errors {
    max-width: 414px;
  }
  .leadpopup__content {
    padding: 40px 30px 30px 30px;
  }
  .leadpopup__close {
    top: 9px;
    right: 9px;
  }
  .leadpopup__bg.trick {
    max-width: 410px;
  }
  .leadpopup__title.trick span {
    font-size: 48px;
  }
  .leadpopup__title.trick {
    font-size: 16px;
  }
  .leadpopup__title.case span {
    font-size: 32px;
  }
  .leadpopup__title.case b {
    font-size: 80px;
  }
}

@media (max-width: 745px) {
  .leadpopup__bg-block {
    display: none;
  }
  .leadpopup__form {
    min-width: auto;
    text-align: center;
  }
  .leadpopup__form.case {
    text-align: left;
  }
  .leadpopup__btn {
    width: 100%;
    margin: 0 auto 10px;
  }
  .leadpopup__confirm {
    justify-content: center;
  }
  .leadpopup__confirm.case {
    justify-content: start;
  }
  .leadpopup__desc {
    font-size: 14px;
  }
  .leadpopup__title.case {
    font-size: 16px;
  }
  .leadpopup__confirm {
    display: block;
  }
}
