/*********************************************************************
 *
 * Layout
 *
 *********************************************************************
**/

html {
    height: 100%;
}

body.l-sticky-footer,
body.l-sticky-footer #wrapper {
    height: 100%;
}

body.l-sticky-footer > #wrapper {
    height: auto;
    min-height: 100%;
}

#wrapper {
    padding-bottom: 125px;
}

#footer {
    position: relative;
    margin-top: -125px;
    height: 125px;
    clear: both;
}

.clearfix:after {
    content: ' ';
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {
    display: inline-block;
}

/* Hides from IE-mac \*/
* html .clearfix { height: 1%; }
.clearfix { display: block; }
/* End hide from IE-mac */

/********************************************************************/

*, *:before, *:after {
    -webkit-box-sizing: border-box;
       -moz-box-sizing: border-box;
            box-sizing: border-box;
}

#fancybox-tmp, #fancybox-tmp *,
#fancybox-wrap, #fancybox-wrap *,
#fancybox-loading, #fancybox-loading *,
#fancybox-overlay, #fancybox-overlay * {
    -webkit-box-sizing: content-box;
       -moz-box-sizing: content-box;
            box-sizing: content-box;
}

body {
    background: #fff;
    overflow-y: scroll;
}

#wrapper {
    overflow: hidden;
}

.w-outer {
    position: relative;
    min-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.w-inner {
    position: relative;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 50px;
    padding-right: 50px;
    /* padding-left: 2%;
    padding-right: 2%; */
}

#header,
#footer,
section {
    position: relative;
}

#header {
    padding-bottom: 11px;
    border-bottom: 2px solid #e31e24;
    background: #fff;
    z-index: 30;
}

#header-inner {
    
}

#main-inner {
    
}

#center {
    float: left;
    width: 100%;
    min-height: 10px;
}

#content {
    position: relative;
    z-index: 20;
}

.p-inner #content,
.p-inner .b-path {
    padding: 38px;
}

#contacts #content {
    padding: 20px 0 30px;
}

.p-left-col #content,
.p-left-col .b-path {
    margin-left: 312px;
}

#wrapper .b-path {
    position: relative;
    z-index: 30;
}

#left {
    position: relative;
    float: left;
    width: 312px;
    margin-left: -100%;
    z-index: 10;
    /* background: url('data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpi/P///0UGIGBigAKAAAMAO3QD0v9VDL0AAAAASUVORK5CYII='); */
}

.b-content {
    position: relative;
}

.b-content_left {
    float: left;
    width: 366px;
    margin-right: 23px;
}

.b-content_right {
    overflow: hidden;
}

#map {
    position: relative;
    height: 384px;
    z-index: 10;
}

#footer {
    border-top: 2px solid #e31e24;
    background: url('/i/pattern.png') 50% 0;
}

#footer-inner {
    height: 100%;
    padding-top: 20px;
    z-index: 30;
    background: url('/i/bg/footer.png') 50% 0 no-repeat;
}

/********************************************************************/

.b-content,
.l-one-section #wrapper {
    background: url('/i/pattern.png') 50% 0;
}

.b-content:after,
.l-one-section #wrapper:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    margin-left: -468px;
    width: 936px;
    height: 22px;
    background: url('/i/bg/content-shadow.png') 50% 100% no-repeat;
    z-index: 100;
}

.l-one-section .b-content:after {
    display: none;
}

.l-one-section #wrapper:after {
    bottom: 125px;
}

.l-one-section #footer {
    background: #fff;
}

.l-one-section #footer-inner {
    background: transparent;
}

/********************************************************************/

#bg {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

#bg-inner {
    height: 100%;
}

#bg-left {
    float: left;
    width: 312px;
    height: 100%;
    background: url('data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABZJREFUeNpi/P///0UGIGBigAKAAAMAO3QD0v9VDL0AAAAASUVORK5CYII=');
}

/********************************************************************/

#left,
#bg-left {
    width: 30%;
}

.p-left-col #content,
.p-left-col .b-path {
    margin-left: 30%;
}

/********************************************************************/