.popup {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
  transition: all 0.8s;
  z-index: 333;
}

.popup.open {
  opacity: 1;
  visibility: visible;
}

.popup.open .popup__content {
  opacity: 1;
  transform: translate(0px, 0);
}

.popup__body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 10px;
}

.popup__content {
  background-color: #F4FFF6;
  color: #000;
  max-width: 600px;
  padding: 80px 60px;
  position: relative;
  transition: all 0.8s;
  opacity: 0;
  transform: translate(0px, -100%);
  background-image: url(../images/popup-bg.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
}

.popup__close {
  position: absolute;
  top: 30px;
  right: 30px;
  text-decoration: none;
  width: 20px;
  height: 20px;
  z-index: 5;
}
.popup__close::before, .popup__close::after {
  content: '';
  width: 26px;
  height: 1px;
  background-color: #7F9089;
  position: absolute;
  left: -3px;
  top: 9px;
  transform: rotate(45deg);
  transition: all 0.3s;
}
.popup__close::after {
  transform: rotate(-45deg);
}
.popup__close:hover::before, .popup__close:hover::after {
  background-color: #ccc;
}

.popup__title {
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 20px;
}
.popup__title--big {
  font-size: 32px;
  margin-bottom: 40px;
}

body.lock {
  overflow: hidden;
}

.ks-form--call-back input:not(input[type="submit"]) {
  padding: 14px 20px;
}
@media (max-width: 768px) {
  .popup__title--big {
    margin-bottom: 20px;
  } 
}
@media (max-width: 480px) {
  .popup__content {
    padding: 80px 20px 60px;
  } 
}
.popup__curses-form-wrap {
  max-width: 590px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}


.modal {
  max-width: 1160px;
  width: 96%; 
  padding-top: 96px;
  padding-bottom: 96px;
  background: var(--main-background-color);
  box-shadow: 0px 1px 3px rgb(0 0 0 / 12%), 0px 1px 1px rgb(0 0 0 / 14%), 0px 2px 1px rgb(0 0 0 / 20%);
  border-radius: 8px;
  
  background-image: url('../images/modal/modal-bg.png');
  background-repeat: no-repeat;
  background-position: top -450px right -280px, right;
}
@media (max-width: 768px) {
  .modal {
    padding: 60px 20px;
  } 
}
.form-title{
    margin: 0 auto 20px;
    font-weight: 700;
    font-size: 24px;
        line-height: 16px;
    text-transform: uppercase;    
    color: var(--primary-text-color);
}
@media screen and (min-width:768px) {
.form-title {
        margin: 0 auto 40px;
        font-size: 32px;
        line-height: 44px;
    }
}



.brain-img{
    position: absolute;
    bottom: 75px;
    left: 45px;
}
.academic-cap{
    position: absolute;
    top: 60px;
    right: 20px;
}

.modal-btn{
    padding: 0 35px;
    min-width: 200px;
}
@media screen and (min-width:768px) {
    .modal-btn {
        padding: 14px 69px;
        min-width: 285px;
    }
}


#green-btn{
    background-color: var(--active-component-color);
    color: var(--second-text-color);
    margin-bottom: 10px;
}
@media screen and (min-width:768px) {
  #green-btn {
    margin-bottom: 0;
    margin-right: 28px;
  }
}

/* ----------Модалка с приветствием--------------- */

.greet-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 361px;
}

.greet-box > #green-btn{
    margin-right: 0;
    font-weight: 700;
    font-size: 14px;
    line-height: 19px;
    text-transform: uppercase;
}
#green-btn>a{
    color: var(--second-text-color);
}

.greet-box >.form-title{
    margin-bottom: 33px;
}
.modal-greet-img {
    width: 210px;
    height: auto;
    margin-bottom: 50px;
}
.modal-text{
  margin-bottom: 50px;
  font-weight: 400;
  font-size: 24px;
  line-height: 150%; 
  text-align: center;
  color:var(--primary-text-color);
}
@media (max-width: 768px) {
  .modal-greet-img, .modal-greet-img {
    margin-bottom: 30px;
  } 
  .modal-text {
    font-size: 20px;
    margin-bottom: 30px;
  }
}