/* ===== Главный экран: профиль → окно → открывание (v4) ===== */
.mm-hero{
  --mm-blue:#216397;
  --mm-head:90px;
  position:relative;
  background:#f5f5f5;           /* как у второго экрана */
}
.mm-stage{
  position:relative;
  height:calc(100vh - var(--mm-head));
  min-height:600px;
  overflow:hidden;
  isolation:isolate;
}
.mm-canvas{
  position:absolute;inset:0;width:100%;height:100%;z-index:0;display:block;
  touch-action:pan-y;            /* вертикальная прокрутка страницы на тач-устройствах остаётся */
}
.mm-canvas.is-interactive{cursor:grab}
.mm-canvas.is-dragging{cursor:grabbing}
.mm-canvas.is-pointer{cursor:pointer}

.mm-copy{
  position:relative;z-index:2;height:100%;
  display:flex;flex-direction:column;justify-content:space-between;
  padding-top:clamp(48px,9vh,110px);
  padding-bottom:clamp(40px,7vh,80px);
  pointer-events:none;
}
.mm-copy > *{pointer-events:auto}
.mm-copy h1{
  margin:0;max-width:900px;
  font-size:clamp(40px,4vw,58px);
  line-height:1.08;font-weight:500;letter-spacing:-.01em;color:#111;
}
.mm-bottom{position:relative;max-width:560px}
.mm-desc{margin:0 0 32px;font-size:20px;line-height:1.5;color:rgba(17,17,17,.68)}


@media (prefers-reduced-motion:no-preference){
  .mm-copy h1,.mm-bottom{opacity:0;transform:translateY(14px);transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1)}
  .mm-ready .mm-copy h1,.mm-ready .mm-bottom{opacity:1;transform:none}
  .mm-ready .mm-bottom{transition-delay:.2s}
}
@media (max-width:991px){
  .mm-copy{justify-content:flex-start;padding-top:40px}
  .mm-bottom{margin-top:auto}
}
@media (max-width:575px){
  .mm-copy h1{font-size:32px;line-height:1.1}
  .mm-desc{font-size:16px;margin-bottom:20px}
  .mm-stage{min-height:560px}
}

/* On narrow screens reserve a separate model row between the title and CTA. */
@media (max-width:991px){
  .mm-stage{height:auto;min-height:calc(100svh - var(--mm-head))}
  .mm-copy{height:auto;padding-bottom:40px}
  .mm-bottom{margin-top:370px}
  .mm-canvas{top:var(--mm-model-top,220px);height:340px;bottom:auto}
}

/* Match the gap after the offer on /builders/. */
.mm-hero{margin-bottom:200px}
@media(max-width:1200px){.mm-hero{margin-bottom:180px}}
@media(max-width:767px){.mm-hero{margin-bottom:120px}}
