/* http://povbc.ru */

.responsive body
{
   min-width: 240px;
}
  
.responsive .p-fi_scontent-layout img,
.responsive .p-fi_scontent-layout video
{
   max-width: 100%;
   height: auto !important;
}

.responsive.responsive-phone .p-fi_scontent-layout img 
{
   float: none !important;
   margin: 1%;
}

.responsive.responsive-phone .p-fi_scollage {
   margin: 1% !important;
}
    
.responsive .p-fi_scontent-layout .p-fi_ssidebar0, 
.responsive .p-fi_scontent-layout .p-fi_ssidebar1, 
.responsive .p-fi_scontent-layout .p-fi_ssidebar2 
{
   width: auto !important;
}
    
.responsive .p-fi_scontent-layout, 
.responsive .p-fi_scontent-layout-row, 
.responsive .p-fi_slayout-cell 
{
   display: block;
}
    
.responsive .image-caption-wrapper 
{
   width: auto;
}

.responsive.responsive-tablet .p-fi_svmenublock,
.responsive.responsive-tablet .p-fi_sblock
{
   margin-left: 1%;
   margin-right: 1%;
   width: 48%;
   float: left;
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box;
}

.responsive .p-fi_sresponsive-embed 
{
   position: relative;
   padding-bottom: 56.25%;
   /* 16:9 */
	height: 0;
}

.responsive .p-fi_sresponsive-embed iframe,
.responsive .p-fi_sresponsive-embed object,
.responsive .p-fi_sresponsive-embed embed
{
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
}

/* dynamic width nav */
.responsive nav.p-fi_snav,
.responsive .p-fi_snav-inner
{
   width: auto !important;
   position: relative !important;
   top: auto !important;
   left: auto !important;
   right: auto !important;
   bottom: auto !important;
   margin-top: 0;
   margin-bottom: 0;
   min-width: 0;
   text-align: left !important;
}

.responsive nav.p-fi_snav
{
   min-width: 1%;
   margin-top: 1%;
   margin-right: 1% !important;
   margin-left: 1% !important;
}

.responsive .p-fi_snav 
{
   padding-left: 0;
   padding-right: 0;
}

/* full width hmenu, instead of inline-block */
.responsive .p-fi_snav ul.p-fi_shmenu 
{
   float: none;
   text-align: center;
   display: none;
}

/* elements on different lines */
.responsive .p-fi_snav ul.p-fi_shmenu li,
.responsive .p-fi_shmenu-extra1,
.responsive .p-fi_shmenu-extra2
{
   float: none;
}
  
/* horizontal margins */
.responsive .p-fi_snav ul.p-fi_shmenu>li:first-child, 
.responsive .p-fi_snav ul.p-fi_shmenu>li:last-child, 
.responsive .p-fi_snav ul.p-fi_shmenu>li
{
   margin-left: 0;
   margin-right: 0;
}
 
/* separator */ 
.responsive .p-fi_snav ul.p-fi_shmenu>li:before
{
   display: none;
}

/* vertical distance between items */
.responsive .p-fi_snav ul.p-fi_shmenu a
{
   margin-top: 1px !important;
   margin-bottom: 1px !important;
   text-align: center !important;
   height: auto;
   white-space: normal;
}

.responsive .p-fi_snav ul.p-fi_shmenu>li:first-child>a
{
   margin-top: 0 !important;
}

.responsive .p-fi_snav ul.p-fi_shmenu>li:last-child>a
{
   margin-bottom: 0 !important;
}

/* fixes for extended menu */
.responsive .p-fi_snav .ext, 
.responsive .p-fi_snav ul.p-fi_shmenu>li>ul, 
.responsive .p-fi_snav ul.p-fi_shmenu>li>ul>li,
.responsive .p-fi_snav ul.p-fi_shmenu>li>ul>li a
{
   width: auto !important;
}

/* submenu position on hover */
.responsive .p-fi_snav ul.p-fi_shmenu ul
{
   left: auto !important;
   right: auto !important;
   top: auto !important;
   bottom: auto !important;
   display: none !important;
}

.p-fi_snav .p-fi_smenu-btn 
{
   border: 1px solid #404040;
   border-radius: 3px;
   box-shadow: 0 0 3px 0 rgba(0, 0, 0, .2);
   display: none;
   background: -ms-linear-gradient(top, #707070 0, #000 100%);
   background: -moz-linear-gradient(top, #707070 0, #000 100%);
   background: -o-linear-gradient(top, #707070 0, #000 100%);
   background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #707070), color-stop(1, #000));
   background: -webkit-linear-gradient(top, #707070 0, #000 100%);
   background: linear-gradient(to bottom, #707070 0, #000 100%);
   margin: 3px;
   padding: 5px;
   position: relative;
   width: 20px;
}

.p-fi_snav .p-fi_smenu-btn span 
{
   background: #E0E0E0;
   border-radius: 2px;
   display: block;
   height: 3px;
   margin: 3px 1px;
   position: relative;
   -moz-transition: background .2s;
   -o-transition: background .2s;
   -webkit-transition: background .2s;
   transition: background .2s;
}

.p-fi_snav .p-fi_smenu-btn:hover span
{
   background: #f3f3f3;
}

.responsive .p-fi_snav .p-fi_smenu-btn 
{
   display: inline-block;
}

.responsive .p-fi_snav .p-fi_shmenu.visible 
{
   display: block;
}

.responsive .p-fi_snav ul.p-fi_shmenu>li>ul>li:first-child:after 
{
   display: none;
}

.responsive .p-fi_sheader 
{
   width: auto;
   height: auto;
   min-height: 100px;
   min-width: 1%;
   margin-right: 1% !important;
   margin-left: 1% !important;
   background-position: center center !important;
   background-size: cover !important;
   background-repeat: repeat !important;
}

.responsive .p-fi_sheader .p-fi_sheadline, 
.responsive .p-fi_sheader .p-fi_sslogan 
{
   display: block !important;
   top: 0 !important;
   left: 0 !important;
   margin: 2% !important;
}
    
.responsive .p-fi_sheader .p-fi_sheadline a, 
.responsive .p-fi_sheader .p-fi_sslogan 
{
   white-space: normal !important;
}
  
.responsive .p-fi_sheader *
{
   position: relative;
   text-align: center;
   -webkit-transform: none !important;
   -moz-transform: none !important;
   -o-transform: none !important;
   -ms-transform: none !important;
   transform: none !important;
}

.responsive .p-fi_sheader #p-fi_sflash-area,
.responsive .p-fi_sheader .p-fi_sshapes>*
{
   display: none;
}

.responsive #p-fi_sheader-bg 
{
   background-position: center center !important;
   background-size: cover !important;
   background-repeat: repeat !important;
}

/* Search and other elements in header element directly */
.responsive .p-fi_sheader>.p-fi_stextblock
{
   position: relative !important;
   display: block !important;
   margin: 1% auto !important;
   width: 75% !important;
   top: auto !important;
   right: auto !important;
   bottom: auto !important;
   left: auto !important;
}

/* For icons like facebook, rss, etc. */
.responsive .p-fi_sheader>.p-fi_stextblock>div 
{
   width: 100%;
}
.responsive .p-fi_ssheet
{
   width: auto !important;
   min-width: 240px !important;
   max-width: none;
   margin-right: 1% !important;
   margin-left: 1% !important;
}

#p-fi_sresp {
   display: none;
}

@media all and (max-width: 899px)
{
    #p-fi_sresp, #p-fi_sresp-t { display: block; }
    #p-fi_sresp-m { display: none; }
}

@media all and (max-width: 480px)
{
    #p-fi_sresp, #p-fi_sresp-m { display: block; }
    #p-fi_sresp-t { display: none; }
}

.responsive .p-fi_scontent-layout, 
.responsive .p-fi_scontent-layout-row, 
.responsive .p-fi_slayout-cell 
{
   display: block;
}

.responsive .p-fi_slayout-cell 
{
   width: auto !important;
   height: auto !important;
   border-right-width: 0 !important;
   border-left-width: 0 !important;
   border-radius: 0 !important;
}

.responsive .p-fi_scontent-layout:after, 
.responsive .p-fi_scontent-layout-row:after, 
.responsive .p-fi_slayout-cell:after 
{
   content: ".";
   display: block;
   height: 0;
   clear: both;
   visibility: hidden;
}

.responsive .p-fi_spost
{
   border-radius: 0;
}

.responsive .p-fi_sfooter-inner
{
   width: auto;
   padding: 2% !important;
}
.responsive .p-fi_sfooter
{
   margin-top: 1%;
}

.responsive .responsive-tablet-layout-cell 
{
   width: 50% !important;
   float: left;
   -webkit-box-sizing: border-box;
   -moz-box-sizing: border-box;
   box-sizing: border-box;
}

