/* Boxed Layout
 * -------------------------- */

.l-wide {
    background-image: none !important;
}

.l-boxed #page {
    box-shadow: 0 0 25px #34495e;
}

/* @media (min-width: 768px) {
    #header.affix { max-width: 765px; }
    .l-boxed #page {
        max-width: 765px;
        margin: auto;
        background-color: #fff;
    }
} */

/* @media (min-width: 992px) {
    #header.affix { max-width: 960px; }
    .l-boxed #page {
        max-width: 960px;
        margin: auto;
        background-color: #fff;
    }
} */


    #header.affix { max-width: 1065px; }
    .l-boxed #page {
        max-width: 1065px;
        margin: auto;
        background-color: #fff;
    }


.navbar-default {
  background-color: #c82828;
  border-color: transparent;
  color: #FFF;
}

.navbar-default .navbar-nav > li > a {
  color: #FFF;
}

#loader { display: none; }

.member-thumb { border: 1px solid #ecf0f1; }
.member-details .position { display: block; height: 50px; overflow: hidden; }
.member-details .smallinfo { height: 120px; overflow: hidden; }

.container.f14 { font-size: 14px; }

.topphone { margin: 24px 20px 0px 0px; border-right: 1px solid #FFF; padding: 0px 20px 0px 0px; }
.topphone .phone { margin: 0px 0px 8px 0px; font-size: 20px; }
.topphone .phone2 { margin: 0px 0px 4px 0px; font-size: 16px; line-height: 16px; }

.topadress { margin: 21px 0px 0px 0px; padding: 5px 0px 0px 0px; }
.topadress A { color: #FFF; }

#header.affix .topphone { margin: 15px 20px 0px 80px; }
#header.affix .topphone .phone { margin: 0px 0px 4px 0px; font-size: 16px; }
#header.affix .topphone .phone2 { margin: 0px 0px 2px 0px; font-size: 12px; }

#header.affix .topadress { margin: 7px 0px 0px 0px; padding: 5px 0px 0px 0px; }


.hero-slider .overlay {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 100%;
  z-index: 2;
  background: url("/lib/i/overlays/bg.png") repeat;
}

.hero-slider h2 {
  font-size: 29px;
  line-height: 30px;
  font-weight: bold;
  color: #FFF;
  background: url("/lib/i/overlays/bg.png");
  padding: 7px 7px 8px 7px;
  margin: 0px;
}

.hero-slider h4 {
  font-size: 18px;
  line-height: 20px;
  font-weight: bold;
  background: url("/lib/i/overlays/bg.png");
  color: #FFF;
  padding: 7px 7px 8px 7px;
  text-transform: uppercase;
}

.hero-slider .ms-bg {
  background: url("/lib/i/overlays/bg.png");
  padding: 10px; 
  color: #FFF;
  font-size: 16px;
  position: absolute;
  bottom: 0;
  left:100px;
  min-height: 160px;
}



 @media only screen and (max-width: 480px) {
  .hero-slider .btn {
    font-size: 180%;
    padding: 8px 12px;
  }
  .hero-slider .btn span {
    margin-right: 5px;
  }
} 


.hero-slider .ms-nav-next,
.hero-slider .ms-nav-prev {
  width: 32px;
  height: 38px;
  cursor: pointer;
  top: 50%;
  left: 15px;
  margin-top: -19px;
  position: absolute;
  z-index: 5;
  opacity: 1 !important;
  filter: alpha(opacity=100) !important;
  -webkit-transition: opacity 0.3s;
  -moz-transition: opacity 0.3s;
  transition: opacity 0.3s;
}
.hero-slider .ms-nav-next:hover,
.hero-slider .ms-nav-prev:hover {
  opacity: 0.7 !important;
  filter: alpha(opacity=70) !important;
}
@media only screen and (max-width: 768px) {
  .hero-slider .ms-nav-next,
  .hero-slider .ms-nav-prev {
    display: none;
  }
}
.hero-slider .ms-nav-next {
  right: 15px;
  left: auto;
}
.hero-slider .ms-nav-next:before,
.hero-slider .ms-nav-prev:before {
  font-family: FontAwesome;
  /* color: #3498db; */
  color: #ddd;
  font-size: 3.25em;
}
.hero-slider .ms-nav-next:before {
  content: "\f0a9";
}
.hero-slider .ms-nav-prev:before {
  content: "\f0a8";
}
.hero-slider .ms-bullets.ms-dir-h {
  display: table !important;
  width: 100% !important;
  text-align: center;
  margin: auto !important;
  right: auto !important;
  opacity: 1 !important;
  bottom: 15px;
  z-index: 2;
}
/* @media only screen and (max-width: 768px) {
  .hero-slider .ms-bullets.ms-dir-h {
    bottom: 10px;
  }
}
@media only screen and (max-width: 360px) {
  .hero-slider .ms-bullets.ms-dir-h {
    display: none !important;
  }
} */
.hero-slider .ms-bullet {
  display: inline-block;
  float: none;
  width: 12px;
  height: 12px;
  margin: 4px;
  background: #fff;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  border-radius: 50%;
}
.hero-slider .ms-bullet-selected {
  background: #c82828;
}
.hero-static {
  position: relative;
  width: 100%;
  height: 696px;
  overflow: hidden;
  color: #fff;
}
/* @media only screen and (max-width: 1200px) {
  .hero-static {
    height: 528px;
  }
} */
.hero-static .bg-image {
  position: absolute;
  width: 100%;
  min-height: 100%;
  background-position: 50% 0;
  background-repeat: no-repeat;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  top: 0;
  left: 0;
  z-index: 0;
}
/* @media only screen and (max-width: 991px) {
  .hero-static .bg-image {
    -webkit-background-size: auto;
    -moz-background-size: auto;
    -o-background-size: auto;
    background-size: auto;
  }
} */
.hero-static .overlay {
  position: absolute;
  width: 100%;
  min-height: 100%;
  background: url("/i/overlays/overlay-success.png") repeat;
  top: 0;
  left: 0;
  z-index: 2;
}
.hero-static .container {
  padding-top: 168px;
  position: relative;
  z-index: 3;
}

  .hero-static .container {
    padding-top: 96px;
  }
  
.hero-static h1,
.hero-static h2,
.hero-static h3,
.hero-static h4,
.hero-static h5,
.hero-static h6 {
  color: #fff;
  font-weight: bold;
  text-align: left;
  position: relative;
}
.hero-static h1 {
  font-size: 4.5em;
}
/* @media only screen and (max-width: 768px) {
  .hero-static h1 {
    font-size: 3.375em;
  }
}
@media only screen and (max-width: 480px) {
  .hero-static h1 {
    font-size: 2.7em;
  }
} */
.hero-static p {
  color: #fff;
}
.parallax .hero-static .bg-image {
  background-attachment: fixed;
}

#page-title-wrapper.fonbg {  
  background-repeat: no-repeat;
  -moz-background-size: 100%; /* Firefox 3.6+ */
  -webkit-background-size: 100%; /* Safari 3.1+ и Chrome 4.0+ */
  -o-background-size: 100%; /* Opera 9.6+ */
  background-size: 100%;   
  height: 200px; 
  padding: 0px;
}

#page-title-wrapper.fonbg .container {
  background: url("/lib/i/overlays/bg.png") repeat;
  color: #FFF;
  width: auto;
  max-width: 1065px;
  margin: 0px;
  height: 200px;
  padding: 30px 40px 20px 40px;
}

#page-title-wrapper.fonbg h1 { color: #FFF; padding-top: 26px; }
#page-title-wrapper.fonbg h1 small { color: #f7f7f7 }
#page-title-wrapper.fonbg .breadcrumb a { color: #FFF; }

.portfolio-item-wrapper { min-height: 385px;
    display: inline-block;
    width: 320px;
    margin: 0 0 0 20px;
	 float: left;
    }
	
	
.portfolio-item-wrapper:nth-child(2) { float: right; margin:0; margin-right: 20px;}

/*** Блок услуг на главной для мобильных устройств ***/	
@media (max-width: 480px) { 

.portfolio-item-wrapper, .portfolio-item-wrapper:nth-child(2)  {display:block; float:none; margin: 10px auto 0; clear:both; width:300px; }

.portfolio-thumb a {width: 298px;}

}
	
.portfolio-thumb,  .portfolio-item-wrapper a {cursor: pointer}

.portfolio-thumb a {background-position: center; background-repeat: no-repeat; background-size: cover; display:block; width: 350px; height: 240px}


/**** Внутренняя - список услуг ****/

.serviceList {padding:0; margin:0; list-style:none; display:block; width: 974px; margin:0 auto}

#contentContainer .serviceList a { border:none;}

.serviceList li {margin: 20px 33px 20px 0px; padding:0; width: 300px; height:265px; display:inline-block; vertical-align: top; border: 1px solid #ecf0f1;}

.serviceThumb {width: 298px; height: 198px; overflow:hidden} 

.serviceList li:nth-child(3n) { margin-right: 0;}

.serviceThumb:hover a {
transform: scale(1.1);
transition: all 0.5s ease;
}


.serviceThumb a {display:block; width: 298px; height: 198px; background-position: center center; background-repeat: no-repeat; background-size: cover; border:none}

.serviceTitle {border-top: 1px solid #ecf0f1;} 

#contentContainer  .serviceTitle a {margin-top:15px; text-align:center; padding: 0 10px; display:block;}

.link-button, .vspl-form { 
border: 1px solid #c82828;
display:block;
margin:10px auto;
background: #c82828;
color: #fff !important;
font-family: 'Montserrat', sans-serif;
-webkit-transition: all 0.7s ease;
transition: all 0.7s ease;
text-transform: uppercase;
font-weight: 700;
font-size: 12px;
padding: 10px 12px;
line-height: 1.428571429;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
	    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
	width: 150px
}

.link-button:hover, .vspl-form:hover {
background: #fff;
color: black !important;
}

.page-wrapper a:not(.vspl-form), .page-wrapper a:not(.link-button) {color: #3988ab;}

.page-wrapper a:hover {color: black}

.vspl-form {color: #fff }

#recent-works h5 a {color: #34495e}

#recent-works h5 a:hover {color: black}

/* Галерея фотографий */

.worksGallery {list-style: none; margin:0px auto 20px; width: 1015px; padding:0; display:block; clear:both;}

.worksGallery:after {clear:both; display:table; content: "";}

.worksGallery li {float: left;
    display: block;
    padding: 0;
    margin: 30px 15px 0 0;
    border-top: 1px solid #ccc;
    border-right: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
    border-left: 1px solid #ccc;
    padding: 5px;
    box-shadow: rgba(0,0,0,0.3) 1px 1px 2px;
    border-radius: 4px; }

.worksGallery li:nth-child(4n) {margin-right:0;}

.worksGallery li:hover img {
 -webkit-filter: grayscale(95%); /* Chrome, Safari, Opera */
    filter: grayscale(95%);
transition: all 0.9s ease;
	}