/* ======================== APPMODAL ======================== */

.app-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.app-modal__container {
    position: relative;
    background: #fff;
    width: 340px;
    padding: 50px;
    border-radius: 0;
    cursor: default;
    z-index: 1;
}
p.app-modal__desc {
    margin: 0 0 23px;
    font-size: 18px;
    line-height: 24px;
    cursor: text;
    color: #111;
}
.app-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: transform .3s;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(0,0,0,.5);
}

.app-modal__close:hover {
  transform: rotate(90deg);
  color: rgba(0,0,0,.8);
}

.app-modal__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.app-modal__title {
    font-size: 20px;
    line-height: 24px;
    cursor: text;
    margin: 0 0 29px;
    color: #111;
    text-transform: uppercase;
    font-family: HeliosExt, sans-serif;
    font-weight: 400;
}

.app-modal__subtitle {
  font-size: 18px;
  line-height: 24px;
  margin: 0 0 24px;  
  font-family: HeliosExtLight, sans-serif;
  font-weight: 300;
  cursor: text;
}

.app-modald__desc {
  margin: 0 0 23px;
  font-size: 18px;
  line-height: 24px;
  cursor: text;
  color: #111;
}

.app-modal__desc--center {
  text-align: center;
}

.app-modal__desc a {
  color: #111;  
  text-decoration: underline;
}

.app-modal__error {
  display: none;
  color: #d32f2f;
  font-size: 14px;  
  text-align: center;
  padding: 8px 12px;
  background: #fdecea;
  border-radius: 0;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
}

.app-modal__input {
  width: 100%;
  height: auto;
  border:1px solid #ddd;
  border-radius: 0;
  padding: 12px 14px;
  margin-bottom: 15px;
  font-size: 16px;
  outline: none;
  transition: border-color.2s;
  box-sizing: border-box;
  background: #fff;
}

.app-modal__input:focus {
  border-color: #111;
}

.app-modal__input--phone {
  font-size: 18px;
}

.app-modal__input--code {
  text-align: center;
  font-size: 20px;  
  letter-spacing: 8px;
}

.app-modal__btn {
    width: 100%;
    margin-bottom: 35px;
    background: #111;
    border-radius: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    display: inline-block;
    font-size: 12px;
    line-height: 12px;
    color: #fff;
    text-transform: uppercase;
    font-family: HeliosExt, sans-serif;
    font-weight: 400;
    border: 1px solid transparent;
    padding: 15.5px 0 13.5px;
    background-color: #111;
    -webkit-transition: border .3s, color .3s, background-color .3s;
    -o-transition: border .3s,color .3s,background-color .3s;
    transition: border .3s, color .3s, background-color .3s;
}
.app-modal__btn:hover {
  opacity: 0.85;
}

.app-modal__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.app-modal__btn-link {
  background: none;
  border: none;
  color: #111;
  cursor: pointer;
  text-decoration: underline;
  font-size: 13px;
  padding: 0;
  text-align: center;
}

.app-modal__btn-link:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: none;
}

.app-modal__phone-display {
  font-weight: 600;
  color: #111;
}

.phone-mask {
  /*стили с телефона идут из обзего CSS */}

body.app-modl-lock {
  overflow: hidden;
}

/* Опционально — адаптация */
@media (max-width: 576px) {
  .app-modal__container {
    padding: 40px 30px;
  }
  .app-modal__title {
    font-size: 18px;  
  }
}