/* amo-popup.css — модальное окно для формы amoCRM */
.amo-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,18,22,.6);
  -webkit-backdrop-filter:blur(2px);
  backdrop-filter:blur(2px);
  z-index:1000000;
  display:none;
  align-items:flex-start;
  justify-content:center;
  overflow-y:auto;
  padding:40px 16px;
  box-sizing:border-box;
}
.amo-modal-overlay.is-open{display:flex;}
.amo-modal{
  position:relative;
  background:#fff;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  width:100%;
  max-width:520px;
  margin:auto;
  padding:28px 24px 24px;
  box-sizing:border-box;
  animation:amoModalIn .22s ease-out;
}
@keyframes amoModalIn{
  from{opacity:0;transform:translateY(14px) scale(.98);}
  to{opacity:1;transform:none;}
}
.amo-modal__close{
  position:absolute;
  top:10px;right:12px;
  width:36px;height:36px;
  border:0;
  background:transparent;
  font-size:30px;
  line-height:1;
  color:#9aa1a9;
  cursor:pointer;
  border-radius:8px;
  transition:background .15s,color .15s;
}
.amo-modal__close:hover{background:#f2f3f5;color:#3a3f45;}
.amo-modal__body{min-height:60px;}
/* амоформа внутри модалки — на всю ширину */
.amo-modal__body .amocrm-form,
.amo-modal__body form{max-width:100%!important;}
@media(max-width:480px){
  .amo-modal{padding:24px 16px 18px;border-radius:14px;}
  .amo-modal-overlay{padding:20px 10px;}
}
html.amo-modal-lock,body.amo-modal-lock{overflow:hidden!important;}
