@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

/* Semibold 600
Bold 700
ExtraBold 800 */

/*-------------- 
Общие стили
-----------------*/
html {
 scroll-behavior: smooth; /*! плавность перехода */
}

body {
    margin: 0;

    font-family: "Manrope", sans-serif;
    color: #959595;

    font-weight: 600;
    font-size: 20px;
    line-height: 1.5;
    letter-spacing: -0.5px;

    background-color: #202020;
}

img {
    max-width: 100%;
}

a {
    /*! Цвет ссылок */
    color: #DEDEDE;
    /*! Отменить подчеркивание ссылок */
    text-decoration: none;
    transition: opacity 0.6s;
}

a:hover {
    opacity: 0.8;
}

.logo {
    font-weight: 800;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.title {
    margin-top: 0;
    font-size: 36px;
    text-align: center;
    color: #DEDEDE;
}

.container {
    max-width: 1250px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}


.btn {

    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 48px;

    font-size: 18px;
    color: #FFFFFF;

    background: #9D9D9D;
    border-radius: 4px;
}

.btn::before {

    content: "";
    background-image: url("./images/mail.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat; 
    width: 21px;
    height: 21px;

}

.btn:hover {
    opacity: 0.8;
}


.burger-menu {
    display: none;
}
.burger-menu__icon {
}


.header {
    background: rgba(50, 50, 50, 0.7);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__nav {
    display: flex;
    flex-direction: row;
    gap: 60px;
}

.header__link {
    font-weight: 700;
    font-size: 18px;
}


.header-2 {
    box-sizing: border-box;
    min-height: 100vh;


    margin-top: -100px;
    padding: 140px 0;

    background-image: url('./images/office.png');
    background-repeat: no-repeat;
    /*! не повторять картинку */
    background-size: cover;
    /*! растянуть картинку */
    background-position: center;
    /*! расположение картинки */
}

/*-------------- 
      Welcome
-----------------*/

.welcome {
    margin-top: 150px;

}

.welcome .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome__title {
    width: 500px;
    margin-bottom: 24px;
    margin-top: 0;

    font-weight: 700;
    font-size: 38px;
    line-height: 1.19;
    color: #DEDEDE;

}

.welcome__text {   
    width: 395px;
    margin-bottom: 88px;
}

.welcome__img {
    margin-right: 90px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    
    object-fit: cover;
    object-position: center;
}


/*-------------- 
      Работы
-----------------*/


.works {
    margin-top: 140px;
}

.works__btn {
    
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 0;
    margin-bottom: 80px;

    font-family: 'Manrope';
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #DEDEDE;
    
    background-color: transparent;
    border: none;
    opacity: 0.7;
}

.works__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;

    padding-top: 140px;
}
.work {
    position: relative;
    height: 888px;
}

.work:nth-child(odd) {
    margin-top: -140px;
}

.work:hover {
    opacity: 1;
}

.work__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.work__name {
    opacity: 0;

    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    font-weight: 700;
    font-size: 40px;

    background-color: rgba(0, 0, 0, 0.6);
    transition: opacity 0.3s;

}

.work:hover .work__name {
    opacity: 1;
}

/*-------------- 
      Проекты
-----------------*/


.projects {
    margin-top: 100px;
    margin-bottom: 100px;

}


.projects__title {
    margin-bottom: 35px;
   

}
.projects__wrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}
.projects__img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    object-position: center;

}

.projects--vertical .projects__img {
    height: 560px;
    
}


/*-------------- 
      Контакты
-----------------*/


.contact {
    margin-top: 240px;
    margin-bottom: 120px;
}

.contact .container {
    max-width: 480px;
    text-align: center;
}

.contact__title {
    margin-bottom: 24px;
}

.contact__text {
font-size: 26px;
margin-bottom: 50px;
}

.contact__btn {
    margin-bottom: 120px; 

}


/*-------------- 
      Подвал
-----------------*/

.footer {
    padding: 40px 0;
    border-top: 1px solid #696969;
    

}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.footer__copy {
    font-size: 16px;
    margin: 0;
}

.footer__copy span {
    color: #ECECEC;
     
}
.socials {
    display: flex;
    gap: 40px;

}
.socials__link {
    display: flex;
}
.socials__img {
}





/*-------------- 
      Адаптация
-----------------*/

@media (max-width:1100px) {
    .welcome__img {
        margin-right: 0;
    }
}

@media (max-width:950px) {
    
    .welcome {
        margin-top: 90px;
    }

    .welcome .container {
        flex-direction: column-reverse;
        gap: 65px;
    }

    .welcome__desc {
        text-align: center;
    }

    .welcome__title {
        width: auto;
    }

    .welcome__text {
        width: auto;
        margin-bottom: 50px;
    }

    .work {
        height: 600px;
    }

    .work__name {
        opacity: 1;
    }

}

@media (max-width:850px) {
    .works, .projects, .contact   {
        margin-top: 100px;    
    }

    .projects__img {
        height: 300px;
        width: 300px;
    }
}

@media (max-width:750px) {
        .welcome__title {
            font-size: 32px;
        }
}


@media (max-width:700px) {
    .footer .container {
        flex-direction: column-reverse;
        align-items: center;
        gap: 35px;
    }

}

@media (max-width:650px) {

    .projects__img {
        width: 100%;
        height: 360px;
    }

    .works__wrapper {
        grid-template-columns: 1fr;
        padding-top: 0;
    }

    .work:nth-child(odd) {
        margin-top: 0;
    }
}

@media (max-width:550px) {

    .header {
        position: relative;
    }

    .burger-menu {
        display: block;
        background-color: transparent;
        padding: 0;
        border: none;

        position: absolute;
        top: 29px;
        right: 15px;
    }
    .burger-menu__icon {
        height: 24px;
        width: 30px;
        object-fit: contain;
        object-position: center;
    }

    .header.header--mobile .header__nav {
        display: flex;
        /*flex-direction: column;*/
        align-self: center;
        flex-wrap: wrap;
        gap: 20px 30px;
        justify-content: center;
    }

    .header.header--mobile .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;

    }

     .header__nav {
        display: none;
     }
     .welcome__img {
        width: 240px;
        height: 240px;
     }

     .btn {
        padding: 16px 20px;
     }

     .works__btn {
        margin-bottom: 40px;
     }

    .work__name {
        font-size: 28px;
    }

    .title {
        font-size: 28px;
    }

    .projects__title {
        margin-bottom: 35px;

    }

    .contact {
        margin-bottom: 100px;
    }

    .contact__title {
        margin-bottom: 12px;
    }

    .contact .container {
        max-width: 275px;
    }
    
    .contact__text {
        font-size: 18px;
    }
}


@media (max-width:430px) {
    .welcome__title {
        font-size: 30px;
    }

}




