@font-face {
    font-family: Myriad Pro Semibold;
    src: url(../fonts/MyriadProSemibold.ttf);
}
html {
    position:relative;
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Myriad Pro Semibold;
    font-size: 18px;
}

h1 {
    font-size: 56px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

.activities-company .activities-types .act-description p{
    font-size: 14px;
}

.header-text p,
.header-text-cat p,
.header-text-subcat p{
    font-size: 30px;
    text-transform: uppercase;
}

.main-footer .phone .one-phone span {
    font-size: 21px;
}

html, body {
    height: 100%;
}

body {
    min-height: 100%;
}

#wrapper {
    width: 100%;
}

/* Header : Logo and main-menu */

body .main-header {
    padding: 0 7%;
    color: #fff;
    background: url(../img/fon1.jpg) no-repeat;
    background-size: 100% 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 80px;
}
.main-header a img{
    max-width: 150px;
    margin-right: 10px;
}
.main-menu {
    display: flex;
    flex-direction: column;
}
.main-menu > ul{
    padding: 0 2%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
    border-bottom: 1px solid #ccc;
}

.logo-phone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 5%;
    margin-top: 40px;
}
.header-text{
    width: 50%;
    align-self: flex-end;
    margin-right: 1%;
}
.header-text h1 span{
    font-size: 100%;
    letter-spacing: 10px;
    
}
.header-text h1{
    /*text-transform: uppercase;*/
}

.main-menu ul li{
    padding: 3% 0;
}
.main-menu ul li a,
.logo-phone .phone-header a{
    color: #fff;
    /*padding: 0 10px;*/
    text-decoration: none;
}


/* About company: description company */

.about-company {
    display: flex;
    position: relative;
    margin-bottom: 40px;
}

.about-company .img-company {
    width: 40%;
    position: relative;
}
.about-company .img-company:after{
    content: "";
    position: absolute;
    display: block;
    width: 70%;
    height: 229px;
    top: -230px;
    left: 29.5%;
    z-index: 0;
    border: 1px solid #999;
    border-bottom: none;
}
.about-company .img-company:before{
    content: "";
    position: absolute;
    display: block;
    width: 62%;
    height: 199px;
    top: -200px;
    left: 33.5%;
    z-index: 0;
    border: 1px solid #999;
    border-bottom: none;
}
.about-company .img-company figure{
    position: absolute;
    width: 60%;
    top: -150px;
    right: 0;
    z-index: 2;
}
.about-company .img-company img{
    width: 100%;
    margin-bottom: 10px;
}
.about-company .img-company figcaption img {
    padding: 10px 20px;
    width: 100%;
}
.about-company .img-company h2{
    font-size: 28px;
    text-align: center;
}
.about-company .img-company a{
    color: #33f;
    text-decoration: underline;
    font-size: inherit;
    
}
.about-company .img-company a:hover{
    color: #38f;
}

.about-company .description-company{
    background-color: #32363C; 
    color: #fff;
    padding: 5%;
    width: 50%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    top: -40px;
}

.about-company .description-company:before{
    content: "";
    position: absolute;
    display: block;
    width: 65%;
    height: 75%;
    bottom: -5.5%;
    right: -7.5%;
    z-index: -1;
    border: 1px solid #999;
}

.about-company .description-company:after{
    content: "";
    position: absolute;
    display: block;
    width: 70%;
    height: 80%;
    bottom: -8%;
    right: -10%;
    z-index: -1;
    border: 1px solid #999;
}

.about-company .description-company h2 {
    margin-bottom: 5%;
    order: 0;
}

.about-company .description-company p {
    margin-bottom: 3%;
    height: 100%;
}

/* Activities company */

.activities-company .activities-container{
    display: flex;
    flex-direction: column;
    margin: 5% 7%;
    margin-top: 0;
}

.activities-company .total-info h2{
    text-align: center;
    margin: 0 auto;
    margin-bottom: 1%;
}

.activities-company .total-info p{
    text-align: center;
}

.activities-company .activities-types {
    margin-top: 2%;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.activities-company .activities-types .activities-item{
    width: 30%;
    display: flex;
    flex-direction: column;
}
.activities-company .activities-types .activities-item:first-child{
    margin-left: 0;
}
.activities-company .activities-types .activities-item .act-img{
    /*flex: 1;*/
    height: 180px;
    /*height: 41%;*/
}

.activities-company .activities-types .activities-item .act-img img{
    width: 100%;
    object-fit: cover;
    height: 100%;
}
.activities-company .activities-types .act-description {
    position: relative;
    flex: 0.4;
}
.activities-company .activities-types .act-description h3{
    margin: 3% 4%;
    margin-bottom: 2%;
    text-align: center;
}
.activities-company .activities-types .act-description p{
    margin: 6% 4%;
    margin-bottom: 0;
}
.activities-company .activities-types .act-description p{
    text-align: center;
    margin-top: 3%;
}
.activities-company .activities-types .btn-detail{
    margin-top: 0;
    cursor: pointer;
    width: 100px;
    height: 25px;
}

.activities-company .activities-types .btn-detail{
    width: 100%;
    margin-top: 10px;
    background: #32363C;
    color: #fff;
    border: none;
    height: 50px;
    bottom: 0;
}

.btn-order {
    width: 120px;
}

/* Photo our works */

.our-works .works-container {
    margin: 8% 7%;
}
.our-works .works-container h2 {
    text-align: center;
    margin-bottom: 8%;
}

.container-work {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.container-work:after{
    content: "";
    position: absolute;
    display: block;
    width: 25%;
    height: 50%;
    top: -10%;
    left: -4.7%;
    z-index: -1;
    border: 20px solid #999;
}

.work-item{
    width: 24.7%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-item:first-of-type{
    flex-direction: row;
}
.work-item img{
    width: 100%;
    cursor: pointer;
    object-fit: cover;
}

.work-item img:hover{
    opacity: 0.95;
    outline: 1px solid #222529;
}

.work-item:nth-child(2) img:first-child{
    height: 64.6%;
}
.work-item:nth-child(2) img:last-child{
    height: 34.6%;
}
.work-item:nth-child(3) img,
.work-item:nth-child(4) img{
    height: 24.6%;
}
.work-item:nth-child(3) img:nth-child(2),
.work-item:nth-child(4) img:last-child{
    height: 49.6%;
}
.our-works .container-work img:before{
    content: "loop";
    display: block;
    color: black;
}





/* Contact us */

.connect-us{
    margin-bottom: 4%;
}

.connect-us .connect-container h2{
    text-align: center;
    margin: 5% 0;
}

.connect-us .connect-container .our-phone{
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5%;
    margin-bottom: 3%;
}

.connect-us .connect-container .our-phone img{
    width: 25px;
    height: 25px;
}

.connect-us .connect-container .our-phone p{
    margin-left: 5%;
}

.connect-us .connect-container .order-call{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.order-call .input-order{
    display: flex;
    width: 50%;
    margin-bottom: 2%;
}
.order-call .input-order label{
    width: 20%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right:3%;
}
.order-call .input-order input{
    border: none;
    padding: 5px 8px;
    width: 60%;
    opacity: 0.5;
    background: #ccc;
}

/* Footer */

.main-footer {
    background: url(../img/footer.jpg) no-repeat;
    background-size: 100% 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-info{
    margin: 2% 0;
    display: flex;
    justify-content: space-between;
}

.main-footer .address,
.main-footer .phone {
    width: 50%;
    border-top: 1px solid #ccc;
    padding-top: 3%;
}

.main-footer .address{
    margin-left: 4%;
    vertical-align: middle;
}

.main-footer .address p:first-child{
    margin-top: 1%;
}

.main-footer .phone{
    margin-right: 4%;
}

.main-footer .phone .one-phone{
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.main-footer .phone .one-phone a{
    color: #fff;
    text-decoration: none;
}



.main-footer .phone .one-phone:last-child{
    margin-top: 1%;
}
.main-footer .phone .one-phone img {
    margin-right: 3%;
    height: 17px;
    width: 17px;
}

.btn-order{
    border: none;
    height: 45px;
    outline: none;
    width: 30%;
    margin-left: 3%;
    background: #32363C;
    color: #fff;
    cursor: pointer;
}



/* Page 2 current activities page */



.header-text-cat{
    width: 85%;
    align-self: flex-start;
    margin: 0;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.navigation-link ul {
    display: flex;
    margin-top: 2%;
    flex-wrap: wrap;
}

.navigation-link ul li {
    list-style-type: none;
    margin-right: 4px;
}

.navigation-link ul li a{
    color: #fff;
}
.navigation-link ul li:last-child a{
    text-decoration: none;
}
.navigation-link ul li:first-child{
    margin: 0;
    margin-right: 4px;
}


.navigation-link ul li:not(:first-child)::before{
    content: '›';
    margin-right: 2px;
    font-weight: bold;
}

.about-activities-container .about-act-description{
    margin: 3% 7% 5%;
}

.about-activities-container .about-act-description h2 {
    margin-bottom: 2%;
    text-align: center;
}
.about-activities-container .about-act-description p {
    padding: 3% 10% 5%;
    text-align: center;
    background: #32363C;
    color: #fff;
}

.activities-container .total-info p{
    padding: 3% 10% 5%;
}
.what-we-do .activities-container .activities-types{
    justify-content: flex-start;
}
.what-we-do .activities-container .activities-types .activities-item{
    margin-right: 5%;
    margin-bottom: 5%;
}
.what-we-do .activities-container .activities-types .activities-item:nth-child(3n+3){
    margin-right: 0;
}



/*Contacts*/

.contacts-container{
    margin: 3% 7%;
    display: flex;
}

.contacts,
.map {
    flex: 1;
}

.company-name {
    margin-bottom: 20px;
}

.contacts .one-contact,
.contacts .address,
.info{
    margin-top: 5px;
}

.contacts .one-contact,
.contacts .address,
.contacts .info{
    display: flex;
    justify-content: space-around;
}


.contacts .one-contact p:last-child:before,
.contacts .address p:last-child:before{
    content: ' ';
    width: 17px;
    position: absolute;
    height: 17px;
    left: -20px;
}

.contacts .one-contact:not(:last-of-type) p:last-child:before{
    background: url('../img/icon-phone.png') no-repeat;
    background-size: 100%;
}

.contacts .one-contact:last-of-type p:last-child:before{
    background: url('../img/icon-email.png') no-repeat;
    background-size: 100%;
}

.contacts .address p:last-child:before{
    background: url('../img/icon-location.png') no-repeat;
    background-size: 120%;
}
.contacts .one-contact p,
.contacts .address p,
.contacts .info p{
    flex: 1;
    display: flex;
}

.contacts h2{
    margin-bottom: 4%;
}

.contacts .one-contact p:last-child,
.contacts .address p:last-child,
.contacts .info p:last-child {
    flex: 1.2;
    position: relative;
}




/* Page 3 subcategory activities */

.header-text-subcat{
    width: 85%;
    align-self: flex-end;
    margin: 0 auto;
    margin-top: 10%;
    position: relative;
    padding: 10% 0;
    z-index: 1;
}

.photo-works-container {
    margin: 5% 7%;  
}
.photo-works-container h2 {
    text-align: center;
    margin-bottom: 4%;
}

.photo-works-container .current-img{
    width: 100%;
    margin-bottom: 0.7%;
}

.photo-works-container .current-img img{
    width: 100%;
    object-fit: contain;
    
}
.photo-works-container .current-img>img{
    max-height: 80vh;
}
.photo-works-container .imgs-gallery{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.photo-works-container .imgs-gallery .work-img{
    width: 11%;
    margin: 0 2px;
}

.photo-works-container .imgs-gallery .work-img img{
    width: 100%;
    height: 130px;
    object-fit: cover;
    cursor: pointer;
}

.photo-works-container .imgs-gallery .btn-gallery-left,
.photo-works-container .imgs-gallery .btn-gallery-right {
    background: none;
    border: none;
    outline: none;
    height: 30px;
    width: 30px;
    margin: 0 5px;
    cursor: pointer;
    
}

.photo-works-container .imgs-gallery .btn-gallery-left{
    background: url(../img/slider-btn-left.png) no-repeat;
    background-position: center;
}

.photo-works-container .imgs-gallery .btn-gallery-right{
    background: url(../img/slider-btn-right.png) no-repeat;
    background-position: center;
}

.selected-img {
    border: 3px solid #272B31;
    opacity: 0.7;
}
.adaptive-menu {
    width: 110%;
    z-index: 999999;
    background: #32363C;
    display: none;
    align-items: center;
    position: fixed;
    height: 50px;
    left: -10%;
}

.img-scale{
    opacity: 1;
    position: relative;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}
.img-scale img{
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.img-scale .close{
    position: absolute;
    right: -5%;
    top: -5%;
    cursor: pointer;
    background: url('../img/icon-close.png') no-repeat;
    background-size: 100%;
    width: 40px;
    height: 40px; 
}

.about-activities-container .about-act-description.text-sub-page p{
    padding: 5px ;
    font-size: 16px;
    line-height: 1.4;
}

.text-sub-page{
    font-weight: normal;
}
.text-sub-page p{
    margin-bottom: 10px;
}
.text-sub-page ul{
    padding-left: 40px;
}

.about-activities-container .about-act-description.text-sub-page p:nth-child(2){
    padding-top: 15px;
}

.cat-content{
    background: #32363C;
    padding: 3% 4% 4%;
    margin-top: 20px;
}
.cat-content a{
    color: #aaf;
}


@media screen and (max-width: 768px){
    * {
        font-size: 16px;
    }
    h1 {
        font-size: 43px;
    }
    
    h2 {
        font-size: 30px;
    }
    
    h3 {
        font-size: 21px;
    }
    
    .activities-company .activities-types .act-description p{
        font-size: 14px;
    }
    
    .header-text p,
    .header-text-cat p,
    .header-text-subcat p{
        font-size: 24px;
    }
    .header-text{
        margin-top: 40px;   
    }
    
    .header-text h1:first-child{
        /*letter-spacing: 6px;*/
    }
    .about-company .img-company {
        width: 33%;
        /* height: 100%; */
        position: relative;
    }
    .about-company .img-company img {
        position: absolute;
        width: 80%;
        height: 60%;
        top: -15%;
        right: 0;
        z-index: 2;
    }
    
    .about-company .img-company:after{
        width: 90%;
        height: 24.9%;
        top: -25%;
        left: 9%;
    }
    
    .about-company .img-company:before{
        width: 77%;
        height: 21.9%;
        top: -22%;
        left: 15%;
    }

    .header-text-cat:after{
        display: none;
    }
    
    .about-company .description-company{
        width: 65%;
        padding-top: 4%;
        padding-bottom: 3%;
        top: -20px;
    }
    .about-company .description-company:after,
    .about-company .description-company:before{
        display: none;
    }
    
    .container-work:after{
        display: none;
    }
    
    .activities-container .total-info p{
        padding: 3% 0 5%;
    }
    
    .work-item {
        height: 400px;
    }
    
    .order-call .input-order{
        width: 80%;
    }
    .order-call .input-order label{
        width: 30%;
    }
    .order-call .input-order input{
        width: 50%;
    }
    .main-footer .address p{
        font-size: 14px;
    }
    .main-footer .address{
        width: 70%;
    }
    .main-footer .one-phone p{
        font-size: 14px;
    }
    .main-footer .phone .one-phone span{
        font-size: 18px;
    }
    
    /*MOBILE MENU*/
    .adaptive-menu{
        display: flex;
    }

    .main-menu {
        display: none;
        position: fixed;
        width: 110%;
        background: #32363C;
        left: -10%;
        top: 50px;
        z-index: 99999;
    }
    
    .btn-menu{
        background: url(../img/icon-menu.png) no-repeat;
        background-position: center;
        width: 40px;
        height: 40px;
        margin-left: 10%;
        border: none;
        cursor: pointer;
        outline: none;
    }
    .main-menu ul{
        padding: 0;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
        border: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    
    .main-menu ul li{
        width: 100%;
        text-align: center;
        padding: 0;
        border-bottom: 1px solid #ccc;
    }
    .main-menu ul li a {
        /*width: 100%;*/
        /*height: 100%;*/
        display: block;
        padding: 7px 0; 
    }
    .logo-phone{
        margin: 0;
        margin-top: 85px;
        
    }
    .contacts-container{
        flex-direction: column;
    }
    
    .contacts .one-contact p,
    .contacts .address p,
    .contacts .info p {
        justify-content: flex-end;
        padding-right: 7%;
    }
    .contacts .one-contact p:last-child,
    .contacts .address p:last-child,
    .contacts .info p:last-child{
        padding: 0;
        justify-content: flex-start;
    }
    
    .map{
        margin: 5% auto;
    }
    
    .contacts h2{
        text-align: center;
    }
}

@media screen and (max-width: 420px){
    
    body .main-header{
        padding: 0 5% 80px;
    }
    
    * {
        font-size: 14px;
    }
    
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 16px;
    }
    
    .activities-company .activities-types .act-description p{
        font-size: 12px;
    }
    
    .header-text p,
    .header-text-cat p,
    .header-text-subcat p{
        font-size: 21px;
    }
    .logo-phone {
        margin-top: 85px;
        justify-content: space-between;
    }
    .about-company .img-company{
        display: none;
    }
    
    
    .about-company .description-company{
        width: 90%;
        margin: 0 auto;
    }
    
    .header-text{
        align-self: flex-start;
        height: 30%;
        margin-top: 40px;
        width: 75%;
    }
    
    .header-text h1:first-child{
        /*letter-spacing: 4px;*/
    }
    
    .about-company .description-company{
        top: -40px;
    }
    
    
    .about-company .description-company p{
        margin-bottom: 4%;
    }
    
    .work-item{
        height: 200px;
    }
    
    section{
        margin: 10% 0;
    }
    
    .about-company{
        margin: 0;
    }
    
    .connect-us{
        margin: 0;
    }
    
    .activities-company .activities-container{
        width: 90%;
        margin: 0 auto;
    }
    .activities-company{
        margin-top: 5%;
    }
    
    
    .activities-company .activities-types .activities-item,
    .activities-company .activities-types .activities-item:first-child,
    .our-works .works-container,
    .about-activities-container .about-act-description{
        width: 90%;
        margin: 5% auto;
    }
    
    .what-we-do .activities-container .activities-types .activities-item,
    .what-we-do .activities-container .activities-types .activities-item:nth-child(3n+3){
        margin: 5% auto;
    }
    
    .header-text-cat h1{
        font-size: 36px;
        margin-top: 40px;
    }
    
    .header-text-cat:after{
        display: none;
    }
    
    
    .order-call .input-order{
        flex-direction: column;
    }
    
    .order-call .input-order label{
        width: 80%;
        margin: 0;
        justify-content: flex-start;
    }
    .order-call .input-order input{
        width: 80%;
    }
    
    .order-call .input-order{
        align-items: center;
    }
    
    .btn-order{
        width: 50%;
        margin: 7% 0;
    }
    
    .contact-info{
        flex-direction: column;
        align-items: center;
    }
    .main-footer .address{
        width: 90%;
        text-align: center;
        margin: 0;
    }

    .main-footer .address p:first-child{
        margin-top: 5%;
    }
    
    .main-footer .phone{
        margin: 5% 0;
        border: none;
        display: flex;
        width: 90%;
    }
    
    .main-footer .phone .one-phone{
        width: 50%;
    }
    .main-footer .phone .one-phone:last-child{
        margin: 0;
    }

    .about-activities-container .about-act-description p{
        padding: 6% 4%;
    }
    .header-text-cat{
        width: 100%;
    }
    
    .navigation-link ul{
        flex-wrap: wrap;
    }
    
    .navigation-link ul li,
    .navigation-link ul li:first-child{
        margin-top: 2%;
    }
    
    .contacts .one-contact,
    .contacts .address{
        flex-direction: column;
        align-items: center;
        margin-bottom: 5%;
    }
    
    .map iframe{
        width: 100%;
        height: 400px;
    }
    
    .company-name p{
        text-align: center;
    }
    .contacts .one-contact p,
    .contacts .address p,
    .contacts .info p{
        margin-bottom: 3%;
    }
    
    .about-activities-container .about-act-description.text-sub-page p{
        font-size: 13px;
    }
}




.scale-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    box-shadow:  0px 0px 105px #000000;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999999;
}
.link-retarcorp {
    text-align: right;
    position: relative;
    bottom: -20px;
}

.link-retarcorp a{
    font-size: 12px;
    color: #ccc;
    text-decoration: none;
}













