*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0 auto;
}

.container{
    margin: 0 auto;
    max-width: 970px;
    padding: 0 10px;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
}

.container-grey{
    margin: 0 auto;
    max-width: 100%;
    padding: 0 10px;
    font-family: 'Roboto', sans-serif;
    background-color: rgb(246, 246, 246);
    display: flex;
    justify-content: center;
}

/* header */

.header{
    padding: 25px 0 0 0;
}

.nav{
    width: 100%;
}

.nav::after{
    content:"";
    display:block;
    width: 100%;
    height: 1px;
    background-color: #828282;
    margin: 32px 0 0 0;
}

.nav-list{
    list-style: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

a{
    text-decoration: none;
    color: unset;
}

.nav-link{
    color: #828282;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    transition: color .22s;
}

.nav-link::after{
    content:"";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -2px;
    height: 1px;
    background-color: #070707;
    transition: right .22s, left .22s;
}

.nav-link:hover{
    color: #070707;
    transition: color .22s;
}

.nav-link:hover::after{
    right: 0;
    left: 0;
}

@media(max-width: 480px){
    .header{
        display:none
    }
}

/* Hero */

.author{
    width: 100%;
    height: 680px;
    margin: 47px 0 70px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.name{
    font-size: 45px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 25px 0;
}

.text{
    text-align: center;
    margin: 0 0 38px 0;
    font-weight: 700;
}

img{
    height: 535px;
    width: 100%;
    object-fit: cover;
}

@media(max-width: 480px){
    .container{
        max-width: 315px;
        padding: 0;
        font-size: 14px;
    }

    .author{
        width: 100%;
        height: 692px;
        margin: 66px 0 0 0;
        display: block;
    }
    .name{
        font-size: 32px;
        text-align: left;
        margin: 0 80px 0 0;
        height: 106px;
    }

    .text{
        text-align: left;
        margin: 24px 13px 28px 0;
        font-size: 14px;
        font-weight: 500;
    }

    img{
        width: 100%;
        max-height: 490px;
        object-fit: cover;
    }    
}

/* About */

.about {
    max-width: 950px;
    min-height: 550px;
    text-align: center;
    padding: 57px 83px 98px 83px;
    font-weight: 700;
    font-size: 18px;
}
.about-title {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 43px 0;
}
.about-subtitle-ru {
    margin: 0 0 15px 0;
}
.about-description-ru {
    margin: 0 0 16px 0;
    text-align: justify;
}
.divider {
    max-width: 420px;
    width: 100%;
    border: 1px solid rgb(0, 0, 0);
    margin: 0 auto;
}
.about-subtitle {
    margin: 18px 0 15px 0;
}
.about-description {
    margin: 20px 0 0 0;
    text-align: justify;
}

@media(max-width: 480px){
    
    .container-grey{
        max-width: 375px;
        font-size: 14px;
        margin: 78px auto 0 auto;
        padding: 0;
        display: flex;
        justify-content: center;
    }
    .about {
        padding: 0 27px 0 31px;
        height: 654px;
        display: block;
        font-size: 14px;
    }
    .about-title {
        padding: 52px 0 0 0;
    }
    .about-description-ru {
        margin: 30px 0 30px 0;
    }
    .divider {
        max-width: 300px;

    }
    .about-subtitle {
        margin: 30px 0 25px 0;
    }
    .about-description {
        margin: 0px 0 64px 0;
    }

}

/* History */

.history-title {
    text-align: center;
    font-size: 34px;
    margin: 65px 0 73px 0; 
    
}

figcaption{
    text-align: center;
    margin: 30px 0 70px 0;
}
@media(max-width: 480px){
     .history-title {
         margin: 50px 0 56px 0; 
     }
     
     figcaption{
         margin: 33px 0 79px 0;
     } 
     .img-history{
        max-height: 479px;
        object-fit: cover;
     }
}

.portfolio {
    background-color: rgb(246, 246, 246);
    text-align: center;
    font-weight: 700;
    font-size: 18px;
}

.portfolio-title {
    font-size: 34px;
    padding: 80px 0 76px 0;
}

.portfolio-img-sign{
    margin: 40px 0 95px 0;
}
.portfolio-img-sign:last-of-type{
    padding-bottom: 107px;
    margin-bottom: 0;
}

@media(max-width: 480px){

    .portfolio {
        font-size: 14px;
    }
    
    .portfolio-title {
        padding: 43px 0 52px 0;
    }
    
    .portfolio-img-sign{
        margin: 30px 0 50px 0;
    }

    .portfolio-img-sign:last-of-type{
        padding: 30px 0 50px 0;
        margin: 0;
    }

    img.img-portfolio{
        max-width: 310px;
        max-height: 206px;
    }
}
/* Contacts */

.contacts {
    padding: 56px 0 63px 0;
    text-align: center;
}

.contacts-tittle {
    font-size: 34px;
    font-weight: 700;
}

.contacts-button {
    background-color: #070707;
    color: white;
    width: 211px;
    height: 42px;
    border-radius: 20px;
    font-family: Roboto;
    font-size: 24px;
    font-weight: 500;
    border: none;
    margin: 81px 0 75px 0;
}

.contacts-button:hover{
    opacity: 0.7;
}

.contacts-socials {
    margin: 0 0 131px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.contacts-socials-icon {
    width: 65px;
    height: 65px;
    fill:#070707;
}

.contacts-socials-icon:hover {
    fill:#828282;
}

@media(max-width: 480px){
    .contacts {
        padding: 60px 0 202px 0;
    }
    
    .contacts-tittle {
        font-size: 34px;
        font-weight: 700;
    }
    
    .contacts-button {
        margin: 75px 0 41px 0;
    }
    
    .contacts-button:hover{
        opacity: 0.7;
    }
    
    .contacts-socials {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px;
        margin: 0;
    }

}

/* Buger */

.mobile-nav {
    display: none;
    position: absolute;
    top: 66px;
    right: 30px;
}
.mobile-nav-burger {
    width: 33px;
    height: 20px;
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;

}
.mobile-nav-toggler {
    display: none;
}
.mobile-nav-toggler:checked + .mobile-nav-menu{
    visibility: visible;
    translate: 0;
    transition: all.33s;
}
.mobile-nav-menu {
    position: fixed;
    inset: 0;
    background-color: white;
    visibility: hidden;
    font-family: Roboto;
    font-size: 34px;
    font-weight: 700;
    translate: 100% 0;
    transition: all.33s;
}



.mobile-nav-list {
    padding: 60px 0 0 26px;
    display: flex;
    flex-direction: column;
    row-gap: 30px;
    list-style-type:  none;
}

.mobile-nav-cross {
    width: 25px;
    height: 22px;
    cursor: pointer;
    position: absolute;
    top: 65px;
    right: 34px;
}

@media(max-width: 480px){
    .mobile-nav {
        display: block;
    }
    
    .mobile-nav-burger {
      position: absolute;

    }
}

/*! сделать окно на мобилке закрывающим 