body.so-work-modal-open{
  position:fixed;
  left:0;
  right:0;
  width:100%;
  overflow:hidden;
}
.so-work-modal{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:none;
  padding:28px;
}
.so-work-modal.is-open{display:grid;place-items:center}
.so-work-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(9,22,15,.72);
  backdrop-filter:blur(8px);
}
.so-work-modal__dialog{
  position:relative;
  width:min(1060px,100%);
  max-height:calc(100vh - 56px);
  overflow:auto;
  border:1px solid rgba(255,255,255,.65);
  border-radius:26px;
  background:#fff;
  box-shadow:0 34px 100px rgba(0,0,0,.3);
  overscroll-behavior:contain;
}
.so-work-modal__close{
  position:sticky;
  z-index:5;
  top:16px;
  float:right;
  width:44px;
  height:44px;
  margin:16px 16px -60px 0;
  border:1px solid #dce8df;
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#17211b;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 8px 24px rgba(17,45,29,.12);
}
.so-work-modal__content{min-height:240px}
.so-work-modal__loading,.so-work-modal__error{
  min-height:320px;
  display:grid;
  place-items:center;
  padding:40px;
  text-align:center;
  color:#68736c;
}
.so-work-modal__case{padding:34px}
.so-work-modal__header{padding-right:54px;margin-bottom:22px}
.so-work-modal__header small{
  display:block;
  margin-bottom:7px;
  color:#2dac1f;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.so-work-modal__header h2{
  margin:0;
  color:#101713;
  font-size:clamp(30px,4vw,48px);
  line-height:1.08;
  letter-spacing:-.035em;
}
.so-work-modal__media{margin:0!important;max-width:none!important}
.so-work-modal__media.so-case-single-image,
.so-work-modal__media.so-before-after figure{
  border-radius:18px!important;
  box-shadow:none!important;
}
.so-work-modal__media.so-before-after{gap:12px}
.so-work-modal__media.so-before-after img{height:min(48vw,520px)}
.so-work-modal__media.so-case-single-image img{max-height:620px}
.so-work-modal__meta{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr));
  gap:10px!important;
  margin:22px 0 0;
}
.so-work-modal__meta span{
  min-width:0!important;
  border-radius:14px!important;
  background:#f7faf7!important;
}
.so-work-modal__description{
  max-width:850px!important;
  margin:26px auto 0!important;
  color:#4f5b54;
  font-size:16px!important;
  line-height:1.7!important;
}
.so-work-modal__consultation{
  display:grid;
  grid-template-columns:1fr auto;
  align-items:center;
  gap:22px;
  margin-top:30px;
  padding:22px;
  border:1px solid #d9e8dc;
  border-radius:18px;
  background:linear-gradient(135deg,#f4fbf3,#fff);
}
.so-work-modal__consultation strong,.so-work-modal__consultation span{display:block}
.so-work-modal__consultation strong{font-size:20px;color:#152019}
.so-work-modal__consultation span{margin-top:5px;color:#68736c;font-size:14px}
.so-work-modal__cta{
  display:inline-flex;
  min-height:52px;
  align-items:center;
  justify-content:center;
  padding:0 25px;
  border-radius:13px;
  background:#45bf13;
  color:#fff!important;
  font-weight:800;
  text-decoration:none!important;
  box-shadow:0 12px 25px rgba(66,183,18,.22);
}
.so-work-card--modal{cursor:pointer}
.so-work-card--modal .so-work-card__link::after{content:' в окне'}
.so-case-consultation{
  width:min(720px,100%);
  display:grid;
  justify-items:center;
  gap:6px;
  padding:24px;
  border:1px solid #d9e8dc;
  border-radius:18px;
  background:#f6fbf5;
  text-align:center;
}
.so-case-consultation strong{font-size:22px}
.so-case-consultation span{margin-bottom:10px;color:#667169}
@media(max-width:700px){
  .so-work-modal{padding:8px}
  .so-work-modal__dialog{max-height:calc(100vh - 16px);border-radius:20px}
  .so-work-modal__case{padding:22px 14px 16px}
  .so-work-modal__close{top:10px;margin:10px 10px -54px 0;width:40px;height:40px}
  .so-work-modal__header{padding-right:44px}
  .so-work-modal__header h2{font-size:30px}
  .so-work-modal__media.so-before-after{grid-template-columns:1fr!important}
  .so-work-modal__media.so-before-after img{height:290px!important}
  .so-work-modal__meta{grid-template-columns:1fr 1fr}
  .so-work-modal__consultation{grid-template-columns:1fr;text-align:center;padding:18px}
  .so-work-modal__cta{width:100%}
}
