Решаем вместе
(function(){
"use strict";function ownKeys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});n.push.apply(n,r)}return n}function _objectSpread(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:POS_PREFIX_4;Object.keys(e).forEach(function(r){t.style.setProperty(n+r,e[r])})},removeStyles=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:POS_PREFIX_4;Object.keys(e).forEach(function(e){t.style.removeProperty(n+e)})};function changePosBannerOnResize(){var e=document.documentElement,t=_objectSpread({},posOptionsInitialBanner4),n=document.getElementById("js-show-iframe-wrapper"),r=n?n.offsetWidth:document.body.offsetWidth;if(r>623)t["grid-template-columns"]="1fr 245px",t["grid-template-rows"]="100%",t["max-width"]="1120px",t["min-height"]="240px",t.padding="0 50px 0 50px",t["content-padding"]="0 50px 0 0",t["content-grid-row"]="1",t["text-font-size"]="25px",t["text-margin"]="0 0 24px 0",t["button-min-height"]="48px",t["button-wrap-margin"]="0 24px 0 0",t["logo-width"]="91px",t["slogan-font-size"]="15px",t["decor-margin"]="12px 0 0 0";if(r>900)t["grid-template-columns"]="1fr 335px",t["text-font-size"]="32px",t["bg-url-position"]="left bottom";if(r>1102)t["grid-template-columns"]="1fr 365px",t["text-font-size"]="38px",t["content-padding"]="0 57px 0 0";setStyles(t,e)}changePosBannerOnResize(),window.addEventListener("resize",changePosBannerOnResize),window.onunload=function(){var e=document.documentElement,t=_objectSpread({},posOptionsInitialBanner4);window.removeEventListener("resize",changePosBannerOnResize),removeStyles(t,e)};
})()