:focus-visible{outline:2px solid #33845a;outline-offset:4px}
[hidden]{display:none!important}
.popup [data-lazy-src]{min-height:1px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Desktop density requested: browser stays at 100%, page renders at 90%. */
@media screen and (min-width:48em) {
 body {zoom:0.9}
}

/* 2026-09: reference team/guarantees block after "Наша команда" */
.mk-guarantees{
 position:relative;
 min-height:760px;
 padding:64px 0 54px;
 overflow:hidden;
 background:#090b0b url('../img/team-bg.jpg') center center/cover no-repeat;
}
.mk-guarantees:before{
 content:"";
 position:absolute;
 inset:0;
 background:linear-gradient(180deg,rgba(0,0,0,.28) 0%,rgba(0,0,0,.08) 42%,rgba(0,0,0,.30) 100%);
 pointer-events:none;
}
.mk-guarantees .container{
 position:relative;
 z-index:1;
 display:flex;
 flex-direction:column;
 justify-content:space-between;
 width:min(1180px,calc(100% - 40px));
 min-height:642px;
 margin:0 auto;
}
.mk-guarantees__title{
 max-width:950px;
 margin:0 auto!important;
 padding:0!important;
 color:#fff!important;
 font-size:36px!important;
 line-height:1.22!important;
 font-weight:300!important;
 text-align:center;
 text-shadow:0 2px 16px rgba(0,0,0,.35);
}
.mk-guarantees__title .bold{font-weight:700}
.team-preim-box{width:100%;margin-top:auto}
.mk-guarantees__row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:0!important}
.mk-guarantees__col{width:auto!important;max-width:none!important;flex:none!important;margin:0!important;padding:0!important}
.team-preim-item-box{
 height:100%;
 min-height:154px;
 padding:25px 24px;
 border-radius:10px;
 background:#fff;
 box-shadow:0 16px 36px rgba(0,0,0,.15);
}
.mk-guarantees__item-inner{display:flex!important;align-items:center;width:100%}
.team-preim-item-box__icon{flex:0 0 64px;padding-right:17px!important}
.team-preim-item-box__icon img{display:block;width:56px;height:56px;max-width:none}
.team-preim-item-box .txt18{margin:0 0 8px!important;color:#252525!important;font-size:18px!important;line-height:1.2!important;font-weight:700!important}
.team-preim-item-box .txt14{margin:0!important;color:#555!important;font-size:14px!important;line-height:1.45!important;font-weight:300!important}

/* 2026-09: modal copied from supplied reference: form left, video right */
body.mk-video-lead-open{overflow:hidden}
.mk-video-lead-modal{
 position:fixed;
 inset:0;
 z-index:100500;
 display:flex;
 align-items:center;
 justify-content:center;
 padding:24px;
 visibility:hidden;
 opacity:0;
 pointer-events:none;
 transition:opacity .18s ease,visibility .18s ease;
}
.mk-video-lead-modal.is-open{visibility:visible;opacity:1;pointer-events:auto}
.mk-video-lead-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.58)}
.mk-video-lead-modal__dialog{
 position:relative;
 z-index:1;
 width:min(1060px,calc(100vw - 48px));
 height:min(554px,calc(100vh - 48px));
 min-height:510px;
 overflow:hidden;
 border-radius:22px;
 background:#111;
 box-shadow:0 28px 90px rgba(0,0,0,.35);
}
.mk-video-lead-modal__close{
 position:absolute;
 top:14px;
 right:16px;
 z-index:9;
 width:32px;
 height:32px;
 padding:0;
 border:0;
 background:transparent;
 color:#fff;
 font:300 34px/28px Arial,sans-serif;
 text-shadow:0 1px 4px rgba(0,0,0,.22);
 cursor:pointer;
}
.mk-video-lead-modal__close span{display:block;transform:translateY(-1px)}
.mk-video-lead-modal__video-wrap{position:absolute;inset:0 0 0 43%;background:#111;overflow:hidden}
.mk-video-lead-modal__video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;background:#111}
.mk-video-lead-modal__form-wrap{
 position:relative;
 z-index:3;
 display:flex;
 flex-direction:column;
 justify-content:center;
 width:53%;
 height:100%;
 box-sizing:border-box;
 padding:52px 92px 42px 50px;
 overflow:hidden;
 background:#fff;
 clip-path:polygon(0 0,100% 0,88% 100%,0 100%);
}
.mk-video-lead-modal__logo{display:block;width:105px;height:auto;max-height:58px;object-fit:contain;object-position:left center;margin:0 0 22px}
.mk-video-lead-modal__form-wrap h2{max-width:390px;margin:0 0 18px;color:#202329;font-size:36px;line-height:1.08;font-weight:700;letter-spacing:-.025em}
.mk-video-lead-modal__text{max-width:380px;margin:0 0 16px;color:#30343a;font-size:17px;line-height:1.28;font-weight:400}
.mk-video-lead-form{display:grid;gap:12px;width:100%;max-width:366px}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.mk-video-lead-form__field{display:block;margin:0}
.mk-video-lead-form__field input{
 box-sizing:border-box;
 width:100%!important;
 height:56px!important;
 min-height:56px!important;
 margin:0!important;
 padding:0 14px!important;
 border:0!important;
 border-radius:11px!important;
 background:#f2f2f2!important;
 color:#242424!important;
 font:400 14px/1.2 Montserrat,Arial,sans-serif!important;
 box-shadow:none!important;
 outline:none!important;
}
.mk-video-lead-form__field input::placeholder{color:#969696;opacity:1}
.mk-video-lead-form__field input:focus{box-shadow:0 0 0 2px rgba(68,100,47,.20)!important}
.mk-video-lead-form__submit{
 display:flex;
 align-items:center;
 justify-content:center;
 gap:10px;
 min-height:56px;
 margin:2px 0 0;
 padding:13px 18px;
 border:0;
 border-radius:10px;
 background:#45662f;
 color:#fff;
 font:400 18px/1.15 Montserrat,Arial,sans-serif;
 cursor:pointer;
 transition:background .18s ease;
}
.mk-video-lead-form__submit:hover{background:#395526}
.mk-video-lead-form__submit-icon{font-size:21px;line-height:1}
.mk-video-lead-form__agree{display:flex;align-items:flex-start;gap:7px;margin:3px 0 0;color:#777;font-size:9px;line-height:1.35}
.mk-video-lead-form__agree input[type="checkbox"]{appearance:none;width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;margin:0!important;padding:0!important;border:1px solid #6ea7d8!important;border-radius:2px!important;background:#fff!important;flex:0 0 14px!important;position:relative}
.mk-video-lead-form__agree input[type="checkbox"]:checked:after{content:"";position:absolute;left:3px;top:1px;width:5px;height:8px;border:solid #477faf;border-width:0 2px 2px 0;transform:rotate(45deg)}
.mk-video-lead-form__agree>span{display:block!important;position:static!important;width:auto!important;min-width:0!important;flex:1 1 auto!important;margin:0!important;padding:0!important}
.mk-video-lead-form__agree a{color:#6a9ccc;text-decoration:underline;text-underline-offset:1px}
.mk-video-lead-form__hp{position:absolute!important;left:-99999px!important;width:1px!important;height:1px!important;opacity:0!important}
.mk-video-lead-form__error{min-height:0;color:#b43737;font-size:11px;line-height:1.25}
.mk-video-lead-modal__success{max-width:360px;margin:auto 0;padding:26px;border-radius:12px;background:#edf7ec;color:#31512b;text-align:center}
.mk-video-lead-modal__success strong{display:block;margin-bottom:7px;font-size:24px;color:#45662f}
.mk-video-lead-modal__success span{font-size:14px;line-height:1.45}

@media(max-width:900px){
 .mk-guarantees{min-height:700px;padding:48px 0 42px;background-position:center top}
 .mk-guarantees .container{min-height:610px}
 .mk-guarantees__title{font-size:30px!important}
 .mk-guarantees__row{grid-template-columns:1fr 1fr}
 .mk-guarantees__col:last-child{grid-column:1/-1}
 .mk-video-lead-modal__dialog{width:min(690px,calc(100vw - 30px));height:auto;min-height:0;max-height:calc(100vh - 30px);overflow:auto;background:#fff}
 .mk-video-lead-modal__form-wrap{width:100%;height:auto;min-height:430px;padding:38px 34px 28px;clip-path:none;order:1}
 .mk-video-lead-modal__video-wrap{position:relative;inset:auto;width:100%;height:auto;aspect-ratio:16/9;order:2}
 .mk-video-lead-modal__dialog{display:flex;flex-direction:column}
 .mk-video-lead-modal__close{top:10px;right:10px}
 .mk-video-lead-modal__form-wrap h2{font-size:31px}
 .mk-video-lead-modal__text{font-size:16px}
 .mk-video-lead-modal__logo{margin-bottom:15px}
}
@media(max-width:600px){
 .mk-guarantees{min-height:760px;padding:38px 0 30px;background-position:50% top}
 .mk-guarantees:before{background:linear-gradient(180deg,rgba(0,0,0,.38) 0%,rgba(0,0,0,.10) 46%,rgba(0,0,0,.42) 100%)}
 .mk-guarantees .container{width:calc(100% - 28px);min-height:690px}
 .mk-guarantees__title{font-size:24px!important;line-height:1.24!important}
 .mk-guarantees__row{grid-template-columns:1fr;gap:10px}
 .mk-guarantees__col:last-child{grid-column:auto}
 .team-preim-item-box{min-height:0;padding:16px 16px;border-radius:10px}
 .team-preim-item-box__icon{flex-basis:52px;padding-right:12px!important}
 .team-preim-item-box__icon img{width:46px;height:46px}
 .team-preim-item-box .txt18{font-size:16px!important}
 .team-preim-item-box .txt14{font-size:12px!important;line-height:1.38!important}
 .mk-video-lead-modal{padding:8px}
 .mk-video-lead-modal__dialog{width:100%;max-height:calc(100vh - 16px);border-radius:16px}
 .mk-video-lead-modal__form-wrap{min-height:0;padding:28px 18px 22px}
 .mk-video-lead-modal__logo{width:88px;max-height:48px;margin-bottom:12px}
 .mk-video-lead-modal__form-wrap h2{margin-bottom:11px;font-size:27px;line-height:1.08}
 .mk-video-lead-modal__text{margin-bottom:14px;font-size:14px;line-height:1.32}
 .mk-video-lead-form{max-width:none;gap:10px}
 .mk-video-lead-form__field input{height:50px!important;min-height:50px!important}
 .mk-video-lead-form__submit{min-height:50px;font-size:16px}
 .mk-video-lead-modal__video-wrap{aspect-ratio:16/9}
 .mk-video-lead-modal__close{font-size:31px}
}

/* v20 — mobile: every modal/popup occupies the whole viewport */
@media (max-width: 767px) {
  .popup,
  .popup.popup_show {
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    overflow: hidden !important;
  }

  .popup__wrapper {
    width: 100% !important;
    height: 100% !important;
    min-height: 100dvh !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }

  .popup__content,
  .form-popup__content,
  .credit-popup__content,
  .reels-popup__content {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-top: calc(20px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .popup__close,
  .form-popup__content .popup__close,
  .credit-popup__content .popup__close,
  .reels-popup__content .popup__close {
    position: fixed !important;
    top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    right: 14px !important;
    z-index: 30 !important;
  }

  /* Video lead popup */
  .mk-video-lead-modal {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
  }
  .mk-video-lead-modal__dialog {
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    -webkit-overflow-scrolling: touch;
  }
  .mk-video-lead-modal__form-wrap {
    flex: 0 0 auto;
    width: 100% !important;
    min-height: 0 !important;
    padding: calc(34px + env(safe-area-inset-top, 0px)) 18px 22px !important;
    clip-path: none !important;
  }
  .mk-video-lead-modal__video-wrap {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    flex: 1 0 auto;
    min-height: 240px;
    aspect-ratio: 16 / 9;
  }
  .mk-video-lead-modal__close {
    position: fixed !important;
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    right: 12px !important;
    z-index: 40 !important;
  }
}


/* v29 — modal polish: strong blurred backdrop + mobile video modal refinements */
.popup-show body::after{
  background:rgba(17,24,39,.28)!important;
  opacity:1!important;
  -webkit-backdrop-filter:blur(20px) saturate(90%);
  backdrop-filter:blur(20px) saturate(90%);
}
.mk-video-lead-modal__backdrop{
  background:rgba(17,24,39,.28)!important;
  -webkit-backdrop-filter:blur(20px) saturate(90%);
  backdrop-filter:blur(20px) saturate(90%);
}
.mk-video-lead-modal__close{
  font-size:38px!important;
  color:#45662f!important;
}
@media(max-width:767px){
  .mk-video-lead-modal__logo{display:none!important}
  .mk-video-lead-modal__close{font-size:38px!important;color:#45662f!important}
}


/* v30 — mobile mortgage popup: remove the extra top inset */
@media(max-width:767px){
  .credit-popup__content{
    padding-top:env(safe-area-inset-top,0px)!important;
  }
}


/* v36 — полноэкранный квиз в стиле отдельного приложения */
html.mk-quiz-fullscreen-open,
body.mk-quiz-fullscreen-open{overflow:hidden!important;overscroll-behavior:none}
.quiz__container.mk-quiz-fullscreen{
 position:fixed!important;inset:0!important;z-index:10050!important;
 width:100%!important;max-width:none!important;height:100vh!important;height:100dvh!important;
 margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
 padding:max(28px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right))
         max(28px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left))!important;
 background:#fff!important;overflow:auto!important;overflow-x:hidden!important;
 overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 align-items:center!important;justify-content:center!important;
 animation:mkQuizFullscreenIn .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes mkQuizFullscreenIn{
 from{opacity:.55;transform:scale(.985)}
 to{opacity:1;transform:scale(1)}
}

.quiz__container.mk-quiz-fullscreen .mob-quiz-close{
 display:grid!important;place-items:center;position:fixed!important;z-index:10052!important;
 top:max(18px,env(safe-area-inset-top))!important;right:max(18px,env(safe-area-inset-right))!important;
 width:46px;height:46px;padding:0;border:1px solid #e4e7e2;border-radius:50%;
 background:rgba(255,255,255,.96);box-shadow:0 8px 28px rgba(20,30,24,.10);
}
.quiz__container.mk-quiz-fullscreen .mob-quiz-close svg{width:22px;height:22px}
.quiz__container.mk-quiz-fullscreen .mob-quiz-close path{stroke:#45662f!important;opacity:1!important}
.quiz__container.mk-quiz-fullscreen .quiz__app,
.quiz__container.mk-quiz-fullscreen .form-quiz{
 width:min(900px,100%)!important;max-width:900px!important;margin:auto!important;
 box-sizing:border-box;min-height:min(660px,calc(100dvh - 80px));
}
.quiz__container.mk-quiz-fullscreen .quiz__app{padding:30px 0 100px}
@media(min-width:48em){body.mk-quiz-fullscreen-open{zoom:1!important}}
@media(max-width:47.99875em){
 .quiz__container.mk-quiz-fullscreen{
  padding:max(64px,calc(48px + env(safe-area-inset-top))) 16px
          max(16px,env(safe-area-inset-bottom))!important;
  align-items:flex-start!important;
 }
 .quiz__container.mk-quiz-fullscreen .quiz__app{min-height:calc(100dvh - 80px);padding:0 0 100px}
 .quiz__container.mk-quiz-fullscreen .quiz__btns{
  position:fixed!important;left:16px!important;right:16px!important;
  bottom:max(16px,env(safe-area-inset-bottom))!important;
  justify-content:space-between!important;z-index:10051!important;
 }
}
