document.addEventListener("DOMContentLoaded",function(){const e=new URLSearchParams(window.location.search).get("lang");let o;o=e||navigator.language,console.log("Browser language:",o);let n=window.location.search;""===n?n="?show_popup_reg=1&lp=features":n+="&show_popup_reg=1&lp=features";const t="https://"+window.location.hostname.replace("promo.","")+n,a=document.querySelector(".features__link");a.href=t,a.addEventListener("click",function(){document.cookie="offer_last_point="+n+"; max-age=2592000"})});