Thank you, my brother, your actions are really extraordinary and able to solve my problem according to my expectations, once again thank you, my brother.
The issue was with window.outerWidth == 0 in BAS, and some startnge code window.outerWidth || window.innerWidth from recaptcha service. If window.outerWidth == 0, so function, which calculates screen width, returned window.innerWidth which was always 304px, because code executed in captcha frame.