/* POTOLKI VYGODNO — FIRST SCREEN PROPORTIONS v1.0 / 2026-11-21
   Faithful to owner's existing desktop reference: same image, typography, exact
   text, prices, promotion, CTA, free survey. Change proportions ONLY.
   Applied only to legacy page hero classes; not to calculators or quest. */

@media (min-width:993px) {
  /* Content determines actual height, rather than overflowing a hard 600px box. */
  body .es1_bg {
    height:auto!important;
    min-height:clamp(520px,59svh,565px)!important;
    padding-bottom:14px!important;
  }
  body .es1_bg > .container {
    position:relative!important;
    width:100%!important;max-width:1170px!important;
    min-height:0!important;
    margin-left:auto!important;margin-right:auto!important;
  }
  body .es1_bg .es1_oknoman {
    width:min(950px,81vw)!important;
    max-width:88%!important;
    position:absolute!important;
    margin-top:0!important;
  }
  body .es1_bg .es1_oknoman img {
    display:block!important;width:100%!important;
    height:auto!important;max-width:100%!important;
  }
  body .es1_bg .es1_bg__right_col {
    position:relative!important;
    width:350px!important;max-width:calc(100% - 12px)!important;
    margin-left:calc(100% - 400px)!important;
    margin-right:0!important;
    margin-top:22px!important;
    padding-bottom:0!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zag90 {
    font-size:clamp(54px,3.65vw,66px)!important;
    line-height:.96!important;
    margin-left:-58px!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zag70 {
    font-size:clamp(38px,2.65vw,48px)!important;
    line-height:1!important;
    margin-left:27px!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__stoim {
    font-size:clamp(63px,4.2vw,78px)!important;
    line-height:1!important;margin-left:27px!important;
    margin-bottom:7px!important;
  }
  body .es1_bg .es1_bg__right_col .rasschitatlink {
    display:block!important;max-width:100%!important;
    text-decoration:none!important;
  }
  body .es1_bg .es1_bg__right_col .rasschitat {
    font-size:clamp(28px,2.09vw,37px)!important;
    line-height:1!important;
    padding:12px 5px!important;
    margin:0 0 9px!important;
    border-width:4px!important;
    border-radius:50px!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__primech {
    font-size:clamp(12px,.86vw,14px)!important;
    line-height:1.3!important;
    text-align:center!important;
    margin:0 0 13px!important;
    text-indent:0!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zamer {
    position:relative!important;
    width:min(392px,calc(100% + 34px))!important;
    max-width:calc(100% + 34px)!important;
    height:78px!important;
    margin-left:-17px!important;
    margin-right:0!important;
    border-radius:40px!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zamer .es1_ruler {
    width:86px!important;height:66px!important;
    margin-left:-8px!important;margin-top:6px!important;
    background-size:contain!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zamer .text_zamer {
    margin-left:42px!important;padding-top:12px!important;
    font-size:26px!important;line-height:1!important;
  }
}

/* Middle desktop / small laptops: same overlapping artwork, less clipping. */
@media (min-width:993px) and (max-width:1199px) {
  body .es1_bg .es1_oknoman {
    width:81%!important;max-width:81%!important;
  }
  body .es1_bg .es1_bg__right_col {
    margin-left:calc(100% - 382px)!important;
    width:350px!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zag90 {
    font-size:clamp(51px,5vw,57px)!important;margin-left:-33px!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zag70 {
    font-size:clamp(35px,3.65vw,41px)!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__stoim {
    font-size:clamp(59px,6.4vw,70px)!important;
  }
}

/* Tablets: preserve original two-part image/offer composition, make offsets fluid. */
@media (min-width:768px) and (max-width:992px) {
  body .es1_bg {height:auto!important;min-height:0!important;padding-bottom:25px!important;}
  body .es1_bg > .container {
    width:100%!important;max-width:100%!important;
    padding-left:16px!important;padding-right:16px!important;
  }
  body .es1_bg .es1_oknoman {
    width:min(700px,100%)!important;max-width:100%!important;
    position:relative!important;margin:0 auto!important;
  }
  body .es1_bg .es1_oknoman img {width:100%!important;height:auto!important;display:block!important;}
  body .es1_bg .es1_bg__right_col {
    width:100%!important;max-width:760px!important;
    margin:-190px auto 0!important;
    padding-bottom:0!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zag90,
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zag70,
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__stoim{
    margin-left:54%!important;
    max-width:46%!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zag90 {
    font-size:clamp(39px,5.1vw,49px)!important;
    line-height:.98!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zag70 {
    font-size:clamp(31px,3.9vw,39px)!important;
    line-height:1.04!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__stoim {
    font-size:clamp(58px,7.5vw,72px)!important;margin-bottom:12px!important;
  }
  body .es1_bg .es1_bg__right_col .rasschitat {
    width:min(91%,540px)!important;
    margin:0 auto 11px!important;
    font-size:clamp(27px,3.6vw,35px)!important;
    padding:12px 8px!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__primech {
    text-align:center!important;margin:0 auto 13px!important;
    text-indent:0!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zamer {
    width:min(92%,500px)!important;height:82px!important;
    margin:0 auto!important;
  }
}

/* Phones: retain original artwork and copy; make the active buttons readable. */
@media (max-width:767px) {
  body .es1_bg {height:auto!important;min-height:0!important;padding-bottom:22px!important;}
  body .es1_bg > .container {
    width:100%!important;max-width:100%!important;
    padding-left:12px!important;padding-right:12px!important;
  }
  body .es1_bg .es1_oknoman {
    max-width:100%!important;margin-left:auto!important;margin-right:auto!important;
  }
  body .es1_bg .es1_oknoman img {
    display:block!important;max-width:100%!important;
    width:100%!important;height:auto!important;
  }
  body .es1_bg .es1_bg__right_col {
    width:100%!important;max-width:560px!important;
    margin:10px auto 0!important;
    padding:0 5px!important;
    float:none!important;
  }
  body .es1_bg .es1_bg__right_col .rasschitatlink {
    display:block!important;width:100%!important;
    text-decoration:none!important;
  }
  body .es1_bg .es1_bg__right_col .rasschitat {
    width:min(92%,420px)!important;max-width:100%!important;
    margin:0 auto 10px!important;
    font-size:clamp(22px,5vw,35px)!important;
    line-height:1.07!important;
    border-width:4px!important;
    padding:11px 9px!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__primech {
    max-width:92%!important;
    line-height:1.35!important;
    text-indent:0!important;
    margin:0 auto 13px!important;
    text-align:center!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zamer {
    width:min(92%,420px)!important;max-width:100%!important;
    height:80px!important;
    margin:0 auto!important;
    border-radius:35px!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zamer .es1_ruler {
    width:79px!important;height:65px!important;
    margin-left:-5px!important;margin-top:9px!important;
    background-size:contain!important;
  }
  body .es1_bg .es1_bg__right_col .es1_bg__right_col__zamer .text_zamer {
    margin-left:36px!important;padding-top:13px!important;
    font-size:clamp(21px,5vw,26px)!important;
  }
}
/* Home has a distinct legacy hero: keep its artwork and every original element. */
@media (min-width:1200px) {
  body .es1_main_bg {
    height:clamp(675px,76svh,702px)!important;
  }
}
