/* template */
body,html {
  height: 100%;
  scroll-behavior: smooth;
}

/* hidden spacer before sections for proper offset */
section::before {
    height: 7rem;
    content: "";
    display:block;
}
section::after {
    height: 2rem;
    content: "";
    display:block;
}
/* helpers */
.vh-50 {
    min-height: 50vh;
}
.vh-75 {
    min-height: 75vh;
}
.vh-100 {
    min-height: 100vh;
}
/*Header Block styles*/
.navbar-brand img {
    margin-bottom: -0.5rem;
}
#home {
    background: transparent url("../images/bg-header.jpg") no-repeat center;
    background-size: cover;
}
#home::before,
#home::after{
    height: 7.5rem;
    content: "";
    display: block;
}
#home .img-fluid{
    padding: 0 6rem;
}
.text-block {
    margin-top: 2rem;
    padding: 0 8rem;
    color: #fff;
}
.text-block h1 {
    margin-bottom: .65rem;
    font-size: 2.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.text-block .sm {
    font-size: 1.07rem;
    font-weight: 400;
}
.coggs{
    background: transparent url("../images/marker-cogs.png") no-repeat;
    display: block;
    width: 97px;
    height: 113px;
    position: absolute;
    top: 2rem;
    left: 2.75rem;
}
.lines {
    display: block;
    margin: .77rem 0 1.75rem 0;
    width: 15%;
    height: 7px;
    border-top: 1px solid #d4bd87;
    border-bottom: 1px solid #d4bd87;
}
@media (max-width: 991px) and (min-width: 768px) {
    #home::before, #home::after {
        height: 3rem;
        content: "";
        display:block;
    }
    .navbar-expand-lg .container{
        margin: 0;
    }
    .navbar-toggler {
        right: 1.5rem;
    }
    .navbar-brand .img-fluid {
        max-width: 78%;
        height: auto;
    }
    .text-block {
        margin-top: 2.5rem;
        padding: 0 0 0 4rem;
    }
    .text-block h1{
        font-size: 2rem;
        line-height: 1.25;
    }
    .coggs{
        background-size: 66% auto;
        top: 2.95rem;
        left: 1rem;
    }
    .lines {
        margin: .5rem 0 .75rem 0;
        width: 20%;
    }
    .text-block .sm {
        font-size: 1rem;
        font-weight: 400;
    }
    .text-block p{
        font-size: 90%;
    }
}
@media (max-width: 767px) and (min-width: 576px) {
    #home::before, #home::after{
        height: 2rem;
        content: "";
        display: block;
    }
    .navbar-expand-lg .container{
        margin: 0;
    }
    .navbar-toggler {
        right: 1.5rem;
    }
    .navbar-brand .img-fluid {
        max-width: 78%;
        height: auto;
    }
    .text-block {
        margin-top: 2rem;
        padding: 0 0 0 4rem;
    }
    .text-block h1{
        font-size: 2rem;
        line-height: 1;
    }
    .coggs{
        background-size: 68% auto;
        top: 2.65rem;
        left: .75rem;
    }
    .lines {
        margin: .5rem 0 .75rem 0;
        width: 20%;
    }
    .text-block p{
        font-size: 84%;
    }
}
@media (max-width: 575px) and (min-width: 349px) {
    .navbar-toggler {
        right: 1rem;
    }
    .navbar-brand .img-fluid {
        max-width: 82%;
        height: auto;
    }
    #home::before, #home::after{
        height: 1rem;
        content: "";
        display: block;
    }
    .text-block {
        margin-top: 2rem;
        padding: 0 0 0 1.95rem;
    }
    .text-block h1{
        font-size: 1.75rem;
        line-height: 1.5;
    }
    .text-block .sm {
        font-size: .85rem;
    }
    .coggs{
        background-size: 41% auto;
        top: 4.5rem;
        left: 0.25rem;
    }
    .text-block p{
        font-size: 85%;
    }
}
@media (max-width: 348px){
    .navbar-brand img {
        width: 85%;
        height: auto;
        margin-bottom: 0;
    }
    .navbar-toggler {
        right: 1.5rem;
        top: .5rem;
    }
    #home::before, #home::after{
        height: 1rem;
        content: "";
        display: block;
    }
    .text-block {
        margin-top: 2rem;
        padding: 0 0 0 1.75rem;
    }
    .text-block h1{
        font-size: 1.75rem;
        line-height: 1.2;
    }
    .coggs{
        background-size: 43% auto;
        top: 5rem;
        left: 0.15rem;
    }
    .lines {
        margin: .77rem 0 1.5rem 0;
    }
    .text-block .sm {
        font-size: .85rem;
    }
    .text-block p{
        font-size: 85%;
    }
}
/*Reasons Block styles*/
#reasons:before,
#reasons:after{
    height: 2rem;
    content: "";
    display:block;
}
#reasons{
    background: #fff url("../images/bg-reasons.jpg") no-repeat;
    background-size: cover;
    border-top: 5px solid #fff;
}
#reasons h2{
    margin-bottom: 2rem;
}
.bgr::before{
    content: "";
    display: block;
    position: absolute;
    margin: .5rem;
    width: 86%;
    height: 51%;
    border: 1px solid rgba(90,103,148,.43);
    background: #fff;
}
.bgr {
    background: #fff;
    margin-top: 4.5rem;
    padding-top: .02rem;
    padding-bottom: 2rem;
}
.bgr:hover {
    box-shadow: -2px 3px 7px rgba(0, 0, 0, 0.3);
}
.img-reason {
    width: 100%;
    height: auto;
    padding: 0 4.5rem;
    display: block;
    position: relative;
    bottom: 4rem;
}
.reason-title {
    display: block;
    position: relative;
    bottom: 5rem;
    font-size: 100%;
    font-weight: 700;
    color: #a9794b;
}
@media (max-width: 991px) and (min-width: 768px) {
    #reasons::before, #reasons::after {
        height: 1rem;
        content: "";
        display: block;
    }
    .reason-title {
        font-size: 85%;
        padding: 0 .5rem .5rem .5rem;
    }
    .bgr {
        padding-bottom: 3rem;
        margin-top: 1.5rem;
    }
    .bgr::before{
        margin: .35rem;
        width: 81%;
        height: 52%;
    }
    .img-reason {
        padding: 0 2.2rem;
        bottom: 2rem;
    }
}
@media (max-width: 767px) and (min-width: 576px) {
    .bgr::before{
        margin: .5rem;
        width: 86%;
        height: 48%;
    }
}
@media (max-width: 575px) and (min-width: 349px) {
    .reason-title {
        font-size: 1.15rem;
        bottom: 5.5rem;
    }
    .img-reason {
        padding: 0 8.5rem;
    }
    .bgr::before{
        margin: .5rem;
        width: 90.3%;
        height: 51%;
    }
}
@media (max-width: 348px) {
    #reasons h2 .lines {
        width: 35%;
    }
}
/*Services Block styles*/
#services::before {
    height: 4rem;
    content: "";
    display: block;
}
#services::after {
    height: 2.5rem;
    content: "";
    display: block;
}
#services{
    background: rgba(255,255,2555,1);
}
.uslugi {
    margin-top: 3.5rem;
}
.uslugi .mar1 {
    margin-top: 1rem;
}
.uslugi-card .thumb-modal{
    width: 98%;
    height: auto;
    border: 3px solid #dedede;
    box-shadow: 3px 3px 5px rgba(0, 0, 0, 0.13);
}
.uslugi-title {
    font-size: 1.25rem;
    text-align: center;
    margin-top: 1.12rem;
    font-weight: 700;
    color: #5a6794;
}
@media (max-width: 991px) and (min-width: 768px) {
    .sub-heading {
        font-size: 1.15rem;
    }
    .uslugi-title {
        font-size: 1rem;
    }
}
@media (max-width: 767px) and (min-width: 576px) {
    .sub-heading {
        font-size: 1.15rem;
    }
    .uslugi-title {
        font-size: 1.15rem;
    }
    .uslugi .mar1 {
        margin-top: 0;
    }
}
@media (max-width: 575px) and (min-width: 349px) {
    #services h1{
        font-size: 2.25rem;
    }
    .uslugi-title {
        width: 100%;
    }
    .sub-heading {
        font-size: 75%;
    }
}
@media (max-width: 348px){
    #services::before,
    #services::after {
        height: 2rem;
        content: "";
        display: block;
    }
    #services h1{
        font-size: 2.25rem;
    }
    .uslugi-title {
        width: 100%;
        font-size: 1.15rem;
    }
    .sub-heading {
        font-size: 75%;
    }
}
/*Hover effect*/
.hover-mask a, .carousel-item .hover-mask .gallery-img {
    display: block;
    position: relative;
    overflow: hidden;
}
.hover-mask{
    width: 100%;
    height: auto;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}
.carousel-item .hover-mask .gallery-img{
    width: 100%;
    height: auto;
    border: 0;
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    -ms-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}
.hover-mask:hover .uslugi-card{
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
}
.hover-mask a .mbri-file, .hover-mask a .mbri-search {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 0;
    margin-bottom: 0;
    height: auto;
    width: 98%;
    padding: 31% 20px;
    text-align: center;
    background-color: rgba(28,33,53,0.41);
    -webkit-transition: all 0.5s linear;
    -moz-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
    -ms-transition: all 0.5s linear;
    transition: all 0.5s linear;
    -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
}
.carousel-item .hover-mask a p{
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    margin-top: 0;
    margin-bottom: 0;
    height: 100%;
    width: 100%;
    padding: 65% 20px;
    text-align: center;
    background-color: rgba(63,61,85,0.63);
    -webkit-transition: all 0.5s linear;
    -moz-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
    -ms-transition: all 0.5s linear;
    transition: all 0.5s linear;
    -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
}
.hover-mask:hover a p, .carousel-item .hover-mask:hover a p {
    -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=100)";
    filter: alpha(opacity=100);
    opacity: 1;
}
.hover-mask .mbri-file, .hover-mask .mbri-search, .carousel-item .hover-mask .mbri-search{
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -o-transform: scale(0);
    -ms-transform: scale(0);
    transform: scale(0);
    color: #fff;
    font-size: 3rem;
    -webkit-transition: all 0.5s linear;
    -moz-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
    -ms-transition: all 0.5s linear;
    transition: all 0.5s linear;
    -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=0)";
    filter: alpha(opacity=0);
    opacity: 0;
}
.hover-mask:hover .mbri-file, .hover-mask:hover .mbri-search, .carousel-item .hover-mask:hover .mbri-search {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -o-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -webkit-transition: all 0.5s linear;
    -moz-transition: all 0.5s linear;
    -o-transition: all 0.5s linear;
    -ms-transition: all 0.5s linear;
    transition: all 0.5s linear;
    -ms-filter: "progid: DXImageTransform.Microsoft.Alpha(Opacity=1)";
    filter: alpha(opacity=1);
    opacity: 1;
}

@media (max-width: 991px) and (min-width: 768px) {
    .hover-mask a .mbri-file, .hover-mask a .mbri-search{
        padding: 28% 20px;
    }
}
@media (max-width: 767px) and (min-width: 576px) {
    .hover-mask a .mbri-file, .hover-mask a .mbri-search{
        padding: 28% 20px;
    }
}
@media (max-width: 575px) and (min-width: 349px) {
    .hover-mask a .mbri-file, .hover-mask a .mbri-search{
        padding: 32.2% 20px;
    }
}
@media (max-width: 348px){
    .hover-mask a .mbri-file, .hover-mask a .mbri-search{
        padding: 29.2% 20px;
    }
}
/*Divider Block styles*/
#divider::before,
#divider::after{
    height: 0;
    content: "";
    display: block;
}
#divider{
    margin-bottom: 3.5rem;
}
#divider .line{
    display: block;
    background: #d4bd87;
    padding: 1px 0 0 0;
    width: 100%;
    margin: 3.5rem 0;
}
#divider .div-icon{
    background: transparent url("../images/mech-corg.png") no-repeat;
    display: block;
    width: 96px;
    height: 72px;
    position: absolute;
    top: 1.5rem;
    left: 38.5rem;
}
@media (max-width: 991px) and (min-width: 768px) {
    #divider .div-icon{
        top: 1.5rem;
        left: 24.5rem;
    }
}
@media (max-width: 767px) and (min-width: 576px) {
    #divider .div-icon{
        top: 1.5rem;
        left: 16rem;
    }
}
@media (max-width: 575px) and (min-width: 349px) {
    #divider .div-icon{
        top: 1.5rem;
        left: 14rem;
    }
}
@media (max-width: 348px){
    #divider .div-icon{
        top: 1.5rem;
        left: 7.5rem;
    }
}
/*About Block styles*/
#about::before{
     height: 2rem;
     content: "";
     display: block;
 }
#about::after{
    height: 12rem;
    content: "";
    display: block;
}
#about{
    background: transparent url("../images/about-pic2.jpg") no-repeat 710px 390px;
    background-size: 50% auto;
}
#about .mar1 {
    margin-top: 2.1rem;
}
.about-img {
    margin: 0 5rem;
}
.about-img2 {
    margin: -3.5rem 2rem 0 2rem;
}
#about .cogs{
    top: 1rem;
    left: 13.5rem;
}
#about p {
    padding: 0 1rem;
}

@media (max-width: 991px) and (min-width: 768px) {
    #about::before,
    #about::after{
        height: 3rem;
        content: "";
        display: block;
    }
    #about{
        background: transparent url("../images/about-pic2.jpg") no-repeat 440px 450px;
        background-size: 50% auto;
    }
    #about p, .about-list {
        font-size: 85%;
    }
    .about-img {
        margin: 0;
    }

}
@media (max-width: 767px) and (min-width: 576px) {
    #about::before {
        height: 1rem;
        content: "";
        display: block;
    }
    #about::after{
        height: 18rem;
        content: "";
        display: block;
    }
    #about{
        background: transparent url("../images/about-pic2.jpg") no-repeat 95px 880px;
        background-size: 73% auto;
    }
    #about p, .about-list {
        font-size: 85%;
    }
    .about-img {
        margin: 0 1rem;
    }
    #about .cogs{
        top: 1rem;
        left: 14.5rem;
    }

}
@media (max-width: 575px) and (min-width: 349px) {
    #about::before{
        height: 2rem;
        content: "";
        display: block;
    }
    #about::after{
        height: 12rem;
        content: "";
        display: block;
    }
    #about{
        background: transparent url("../images/about-pic2.jpg") no-repeat 75px 970px;
        background-size: 73% auto;
    }
    #about p, .about-list {
        font-size: 85%;
    }
    .about-img {
        margin: 0;
    }
}
@media (max-width: 348px){
    #about::before{
        height: 1rem;
        content: "";
        display: block;
    }
    #about::after{
        height: 12rem;
        content: "";
        display: block;
    }
    #about{
        background: transparent url("../images/about-pic2.jpg") no-repeat 50px 1020px;
        background-size: 85% auto;
    }
    #about p, .about-list {
        font-size: 82%;
    }
    .about-img {
        margin: 0;
    }
}
/*Slogan Block styles*/
#slogan{
    background: transparent url("../images/bg-slogan.jpg") no-repeat center;
    background-size: cover;
}
#slogan::before, #slogan::after{
    height: 3.5rem;
    content: "";
    display: block;
}
#slogan .sub-heading{
    margin-top: 1.5rem;
    font-size: 2.17rem;
    font-weight: 700;
    color: #fff;
}
#slogan .coggs{
    background-size: 70% auto;
    top: 1.5rem;
    left: 7.35rem;
}
#slogan .lines{
    width: 8%;
    margin: .5rem 0 1.75rem 10.75rem;
}
@media (max-width: 991px) and (min-width: 768px) {
    #slogan .sub-heading{
        font-size: 1.5rem;
        line-height: 1;
    }
    #slogan .coggs {
        background-size: 65% auto;
        top: 0.75rem;
        left: 2.15rem;
    }
    #slogan .lines {
        width: 10%;
        margin: 1.10rem 0 1.75rem 5.35rem;
    }
}
@media (max-width: 767px) and (min-width: 576px) {
    #slogan .sub-heading{
        font-size: 1.75rem;
        line-height: 1;
    }
    #slogan .coggs {
        background-size: 60% auto;
        top: 3.75rem;
        left: 1.75rem;
    }
    #slogan .lines {
        width: 15%;
        margin: 1.10rem 0 1.75rem 4.75rem;
    }
}
@media (max-width: 575px) and (min-width: 349px) {
    #slogan .sub-heading{
        font-size: 1.75rem;
        line-height: 1.35;
    }
    #slogan .coggs {
        background-size: 54% auto;
        top: 4.25rem;
        left: 3.5rem;
    }
    #slogan .lines {
        width: 18%;
        margin: .5rem 0 1.75rem 5.75rem;
    }
}
@media (max-width: 348px){
    #slogan .sub-heading{
        font-size: 1.2rem;
        line-height: 1.2;
    }
    #slogan .coggs {
        background-size: 38% auto;
        top: 3.5rem;
        left: 0.5rem;
    }
    #slogan .lines {
        width: 18%;
        margin: .5rem 0 1.75rem 2rem;
    }
}

/* Scroll to top button*/
#scrollToTopBtn{
    display: inline-block;
    background-color: #5a6794;
    border: 2px solid #dedede;
    width: 50px;
    height: 50px;
    text-align: center;
    position: fixed;
    bottom: 30px;
    right: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    transition: background-color .3s, opacity .5s, visibility .5s;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    color: #d4bd87;
    font-size: 2em;
}
#scrollToTopBtn:hover {
    cursor: pointer;
    background-color: rgba(212,189,135,.5);
    border: 2px solid #5a6794;
    color: #5a6794;
}
#scrollToTopBtn:active {
    background-color: rgba(212,189,135,.5);
    border: 2px solid #5a6794;
    color: #5a6794;
}
#scrollToTopBtn.show {
    opacity: 1;
    visibility: visible;
}
/*Footer Block styles*/
#footer{
    background: #eef1fd;
}
#footer:before{
    height: 3rem;
    content: "";
    display:block;
}
.footer-slogan {
    margin-bottom: 2rem;
}
.map-responsive{
    overflow:hidden;
    padding-bottom:35%;
    position:relative;
    height:0;
}
.map-responsive iframe{
    left:0;
    top:0;
    height:80%;
    width:97%;
    position:absolute;
    border: 7px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    /*padding: 0 1.2rem;*/
}
.contact-info{
    padding: 2rem 2rem 1rem 2rem;
}
.contact-info .h1 {
    color: #a9794b;
}
.sub-heading3 {
    font-size: 1.35rem;
    font-weight: 400;
    border-top: 1px solid rgba(212,189,135,.5);
    margin-top: 1rem;
}
.contacts-list {
    list-style: none;
    margin: 2rem 0;
    padding-left:.4rem;

}
.contacts-list li {
    padding: 7px 0;
}
.contacts-list li a{
    color: #a9794b;
}
.contacts-list li a:hover{
    color: #a9794b;
    text-decoration: underline;
}
.contacts-icons {
    margin-right: .4rem;
}
.mapa{
    background: transparent url("../images/icons/map.png") no-repeat;
    padding: .25rem 1rem;
}
.sm3{
    font-size:smaller;
}
.phone{
    background: transparent url("../images/icons/phone.png") no-repeat;
    padding: 0 1rem .42rem 1rem;
}
.web{
    background: transparent url("../images/icons/globe.png") no-repeat;
    padding: 0 1rem .45rem 1rem;
}
.mail{
    background: transparent url("../images/icons/message.png") no-repeat;
    padding: 0 1rem .25rem 1rem;
}
.clock{
    background: transparent url("../images/icons/clock.png") no-repeat;
    padding: 0 1rem .35rem 1rem;
}
.copyright {
    margin-top: 2rem;
    text-align: center;
    font-size: smaller;
    border-top: 1px solid rgba(212,189,135, .63);
    padding: 1rem 0 0 0;
}
@media (max-width: 991px) and (min-width: 768px) {
    #footer::before {
        height: 1.5rem;
        content: "";
        display: block;
    }
    .contact-info {
        padding: 1rem;
    }
    .contacts-list li {
        padding: 6px 0;
        font-size: 95%;
    }
    .sm3 {
        font-size: smaller;
    }
    .map-responsive iframe {
        top: 15px;
        left: 15px;
        width: 91%;
    }
    .web {
        padding: 0 1rem .53rem 1rem;
    }
    .phone {
        padding: 0 1rem .47rem 1rem;
    }
}
@media (max-width: 767px) and (min-width: 576px) {
    #footer::before {
        height: 1.5rem;
        content: "";
        display: block;
    }
    .contact-info {
        padding: 1rem;
    }
    .contacts-list li {
        padding: 6px 0;
        font-size: 82%;
    }
    .sm3 {
        font-size: smaller;
    }
    .map-responsive iframe {
        top: 15px;
        left: 15px;
        width: 91%;
    }
    .web {
        padding: 0 1rem .53rem 1rem;
    }
    .phone {
        padding: 0 1rem .47rem 1rem;
    }
}
@media (max-width: 575px) and (min-width: 349px) {
    #footer::before {
        height: 1rem;
        content: "";
        display: block;
    }
    .contact-info {
        padding: 1rem;
    }
    .contacts-list li {
        padding: 6px 0;
        font-size: 95%;
    }
    .map-responsive iframe {
        top: 15px;
        left: 15px;
        width: 91%;
    }
    .web {
        padding: 0 1rem .53rem 1rem;
    }
    .phone {
        padding: 0 1rem .47rem 1rem;
    }
}
@media (max-width: 348px){
    #footer::before {
        height: 1rem;
        content: "";
        display: block;
    }
    .contact-info{
        padding: 1rem 2rem 1rem 0;
    }
    .contacts-list li {
        padding: 7px 0;
        font-size: 90%;
    }
    .map-responsive iframe {
        top: 15px;
        left: 15px;
        width: 91%;
    }
    .web {
        padding: 0 1rem .53rem 1rem;
    }
    .phone {
        padding: 0 1rem .47rem 1rem;
    }
}