/* POTOLKI VYGODNO — RESPONSIVE POLISH v1.0 / 2026-11-21
   Global layout stabilization for the 21 live legacy pages.
   No business logic, prices, conversion events, calculator or quest changes. */
:root{--pv-page-gutter:clamp(12px,3vw,24px)}
html{max-width:100%;overflow-x:clip}
body{max-width:100%;overflow-x:clip}
body img,body picture,body video,body iframe{max-width:100%}
body img{object-position:center}
body .container{max-width:100%}
body .top_block,body .top_menu,body .es1_bg,body .es1_main_bg,
body .es4_bg,body .es6_bg,body .es8_bg,body .es9_bg,body .es10_bg,
body .es12_bg,body .es13_bg,body .es14_bg,body .es16_bg,body .es17_bg,
body .es18_bg,body .es19_bg,body .calc_potolok_bg,
body .b-contact,body .b-vid-potolkov{max-width:100%;min-width:0}
body .top_block .row>*{min-width:0}
body .top_block__logo img{max-width:100%;height:auto}
body .top_block__tel{overflow-wrap:normal}
body .top_menu .container{max-width:1200px}
body .top_menu .navbar-nav li a{max-width:100%}
body .top_menu .navbar-collapse{max-width:100%}
body .es14_bg img,body .es16_bg img,body .b-vid-potolkov img,
body .b-contact img,body .es12_bg img,body .es13_bg img{
  max-width:100%;object-position:center
}
body .modal-dialog{max-width:calc(100vw - 24px)}
body .modal-content,body .modal-body,body .modal-body form{max-width:100%;min-width:0}
body .modal-body input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body .modal-body select,body .modal-body textarea{
  max-width:100%;box-sizing:border-box
}
body .calc_potolok_bg input,body .calc_potolok_bg select,
body .calc_potolok_bg textarea{max-width:100%;box-sizing:border-box}
body .pv-premium-rooms{max-width:100%}
body .pv-premium-carousel__track{overscroll-behavior-x:contain}
body .es16_bg .zoom-gallery img{max-width:100%}
body .es14_bg .iosSlider4{max-width:100%}
body .es14_bg .iosSlider4 .slider{max-width:100%}
body .b-contact__block_underzag a,
body .b-contact__block_zag a{overflow-wrap:anywhere}
body .b-legalinfo__content{max-width:100%;overflow-wrap:break-word}
/* Tablet screens: avoid fixed-width legacy rows and oversized titles. */
@media(max-width:1024px){
  body .top_block{width:100%!important;max-width:100%!important;padding:9px var(--pv-page-gutter)!important}
  body .top_block>.row{margin-left:0!important;margin-right:0!important}
  body .top_block .top_block__logo img{max-width:100%!important;height:auto!important}
  body .top_block__tel{font-size:clamp(18px,2.25vw,25px)!important;line-height:1.18!important}
  body .top_menu>.container{width:100%!important;max-width:100%!important}
  body .modal-dialog{margin:12px auto!important}
  body .b-vid-potolkov__item{max-width:calc(100% - 18px);box-sizing:border-box}
  body .es16_bg .container,body .es14_bg .container{max-width:100%!important}
}
@media(max-width:767px){
  :root{--pv-page-gutter:13px}
  body .container{width:100%!important;max-width:100%!important}
  body .top_block{
    width:100%!important;max-width:100%!important;
    margin:0 auto!important;padding:10px 12px!important;
  }
  body .top_block .row{
    display:flex!important;align-items:center!important;
    justify-content:space-between!important;flex-wrap:nowrap!important;
    gap:10px!important;width:100%!important;
    margin:0!important;padding:0!important;
  }
  body .top_block .row>[class*=col-]{
    display:block;float:none!important;width:auto!important;
    min-width:0!important;padding:0!important;margin:0!important;
  }
  body .top_block .row>[class*=col-]:first-child{
    flex:0 1 47%!important;
  }
  body .top_block .row>[class*=col-]:nth-child(2){
    display:none!important;
  }
  body .top_block .row>[class*=col-]:last-child{
    flex:1 1 53%!important;text-align:right!important;
  }
  body .top_block .top_block__logo,
  body .top_block .top_block__logo a{
    display:block!important;width:100%!important;
    max-width:100%!important;margin:0!important;padding:0!important;
  }
  body .top_block .top_block__logo img{
    display:block!important;width:min(100%,178px)!important;height:auto!important;
    max-width:100%!important;margin:0!important;
  }
  body .top_block__tel{
    font-size:clamp(14px,3.85vw,22px)!important;
    line-height:1.2!important;white-space:nowrap!important;
    letter-spacing:-.025em!important;margin:0!important;padding:0!important;
  }
  body .top_block__vamperez{
    display:block!important;font-size:clamp(11px,2.8vw,14px)!important;
    line-height:1.32!important;margin-top:3px!important;
    white-space:normal!important;text-align:right!important;
    cursor:pointer!important;
  }
  body .top_menu{
    width:100%!important;max-width:100%!important;
    min-height:43px!important;margin:0!important;padding:0!important;
  }
  body .top_menu>.container{
    width:100%!important;max-width:100%!important;
    padding:0 12px!important;margin:0 auto!important;
  }
  body .top_menu .navbar-header{
    display:block!important;min-height:43px!important;
    width:100%!important;float:none!important;
  }
  body .top_menu .navbar-toggle{
    min-width:43px!important;min-height:37px!important;
    margin:3px 0!important;padding:7px 11px!important;float:right!important;
  }
  body .top_menu .navbar-brand{
    width:auto!important;height:auto!important;max-width:calc(100% - 65px)!important;
    margin:0!important;padding:11px 0!important;
    font-size:15px!important;line-height:21px!important;
  }
  body .top_menu .navbar-collapse{
    width:100%!important;max-width:100%!important;max-height:74vh!important;
    overflow-y:auto!important;overflow-x:hidden!important;
    margin:0!important;padding:0 8px!important;
  }
  body .top_menu .navbar-nav{
    width:100%!important;max-width:100%!important;
    margin:0!important;padding:4px 0!important;
  }
  body .top_menu .navbar-nav>li{width:100%!important;max-width:100%!important}
  body .top_menu .navbar-nav>li>a{
    display:block!important;width:100%!important;
    min-height:43px!important;padding:11px 12px!important;
    white-space:normal!important;line-height:1.3!important;
    font-size:14px!important;
  }
  body .top_menu .navbar-right.visible-lg{display:none!important}
  body .es1_bg .container,body .es1_main_bg .container,
  body .es4_bg .container,body .es6_bg .container,
  body .es8_bg .container,body .es9_bg .container,
  body .es10_bg .container,body .es12_bg .container,
  body .es13_bg .container,body .es17_bg .container,
  body .es18_bg .container,body .es19_bg .container{
    max-width:100%!important;padding-left:var(--pv-page-gutter)!important;
    padding-right:var(--pv-page-gutter)!important;
  }
  body .es14_bg .container,body .es16_bg .container{max-width:100%!important}
  body .es1_bg h1,body .es1_main_bg h1{
    max-width:100%!important;overflow-wrap:break-word!important;
  }
  body .calc_potolok_bg .container{
    max-width:100%!important;
    padding-left:var(--pv-page-gutter)!important;
    padding-right:var(--pv-page-gutter)!important;
  }
  body .b-contact .row{max-width:calc(100% + 30px)!important}
  body .modal-dialog{width:calc(100% - 22px)!important;max-width:480px!important}
  body .modal-content{max-height:calc(100dvh - 30px)!important;overflow-y:auto!important}
  body .b-vid-potolkov__item{max-width:100%!important}
}
@media(max-width:390px){
  :root{--pv-page-gutter:10px}
  body .top_block{padding:9px 10px!important}
  body .top_block .row{gap:7px!important}
  body .top_block .top_block__logo img{width:min(100%,147px)!important}
  body .top_block__tel{font-size:clamp(12px,4.05vw,16px)!important}
  body .top_block__vamperez{font-size:11px!important}
  body .top_menu>.container{padding:0 10px!important}
  body .top_menu .navbar-collapse{padding:0 4px!important}
}
@media(prefers-reduced-motion:reduce){
  html:focus-within{scroll-behavior:auto!important}
  body .pv-premium-carousel__track{scroll-behavior:auto!important}
}
