/* Only legacy RU placements; shared header, hero card and .com stay unchanged. */
.gz-corp-legacy-surface{width:100%;max-width:1160px;margin:0 auto;box-sizing:border-box}
.gz-corp-legacy-surface[hidden]{display:none!important}
.gz-corp-legacy-frame{display:block;width:100%;max-width:100%;min-height:0;border:0;background:#fff;box-sizing:border-box;overflow:hidden}
section.cost-calc.gz-corp-modernized{padding:32px 24px;background:#fff}
.cost-calc.gz-corp-modernized>:not(.gz-corp-legacy-surface){display:none!important}
#cost-calc-modal:has(.gz-corp-modernized){padding:24px!important;box-sizing:border-box}
#cost-calc-modal:has(.gz-corp-modernized) .modal__main{position:relative!important;width:min(1160px,calc(100vw - 48px))!important;max-width:1160px!important;height:auto!important;min-height:0!important;max-height:calc(100dvh - 48px)!important;margin:auto!important;padding:0!important;border:0!important;border-radius:20px!important;background:#fff!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;box-shadow:0 24px 90px #14202d35}
#cost-calc-modal:has(.gz-corp-modernized) .modal__content{width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;background:#fff!important}
#cost-calc-modal .cost-calc.gz-corp-modernized{padding:0!important;margin:0!important;background:#fff!important;border:0!important}
#cost-calc-modal:has(.gz-corp-modernized) .modal__close{position:sticky!important;float:right;top:8px;right:8px;margin:8px 8px -52px 0;width:44px!important;height:44px!important;z-index:10;border:0;border-radius:50%;background:#fff;color:#5d6871;font-size:25px;line-height:1;cursor:pointer}
#cost-calc-modal:has(.gz-corp-modernized) .modal__close:after{content:'×';font-family:Arial,sans-serif}
#cost-calc-modal:has(.gz-corp-modernized) .modal__close>*{display:none}
html.gz-legacy-modal-open,html.gz-legacy-modal-open body{overflow:hidden!important;overscroll-behavior:none}
@media(max-width:720px){
 section.cost-calc.gz-corp-modernized{padding:20px 8px}
 #cost-calc-modal:has(.gz-corp-modernized){padding:10px!important}
 #cost-calc-modal:has(.gz-corp-modernized) .modal__main{width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important;border-radius:16px!important}
}
/* Reset historic absolute/mobile positioning before centering the single surface. */
#cost-calc-modal.active:has(.gz-corp-modernized){display:flex!important;align-items:center;justify-content:center}
#cost-calc-modal:has(.gz-corp-modernized) .modal__main{top:0!important;left:0!important;transform:none!important;flex:0 1 1160px;margin:0!important}
#cost-calc-modal:has(.gz-corp-modernized) .modal__bg{position:absolute;inset:0;z-index:0}
#cost-calc-modal:has(.gz-corp-modernized) .modal__close{left:auto!important}
/* Keep the small consent-settings badge from covering the form footer; restore on close. */
html.gz-legacy-modal-open #gz-cookie-settings{visibility:hidden!important}

/* Match the upper card's expanded mobile presentation. */
@media(max-width:720px){
 #cost-calc-modal:has(.gz-corp-modernized){padding:0!important}
 #cost-calc-modal:has(.gz-corp-modernized) .modal__main{width:100vw!important;height:100dvh!important;max-height:100dvh!important;border-radius:0!important;flex-basis:100%;padding-top:env(safe-area-inset-top)!important;padding-bottom:env(safe-area-inset-bottom)!important}
 #cost-calc-modal:has(.gz-corp-modernized) .modal__close{top:calc(8px + env(safe-area-inset-top))}
}
