html {
    scroll-behavior: smooth;
}

body {
    font-family: "IBM Plex Mono", sans-serif;
    width: 100%;
    overflow-x: hidden !important;
    background-color: #000;
}

section {
    padding-top: 150px;
}

.about {
    padding: 35px 0 89px;
    background-image: url(../resources/About_me_block.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
}

.container {
    width: 1150px;
    margin: 0 auto;
    position: relative;
}

.header {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    height: 55px;
}

.header_logo {
    color: #5d5d5d;
    font-size: 42.1px;
    font-style: 700;
    font-weight: 700;
    line-height: 39px;
    letter-spacing: -4.6px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border-radius: 100px;
    background: #000;
    padding: 0 14px;
}

.nav_menu {
    display: flex;
    flex-direction: row;
    margin-left: auto;
}

.nav_menu_link {
    color: #FFF;
    font-size: 18px;
    font-weight: 400;
    line-height: 23px;
    letter-spacing: -0.54px;
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}

.nav_menu_link:not(:last-child) {
    margin-right: 50px;
}

.about_me {
    padding-top: 245px;
    display: flex;
    flex-direction: column;
}

.about_me_text {
    color: #FFF;
    font-size: 20px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.6px;
    width: 430px;
}

.about_me_titile {
    padding-top: 28px;
    color: #5d5d5d;
    font-size: 80px;
    font-style: normal;
    font-weight: 400;
    line-height: 70px; 
    letter-spacing: -2.4px;
    width: 919px;
}

.projects {
    display: flex;
    flex-direction: column;
}

.title {
    color: #FFF;
    font-size: 55px;
    font-weight: 400;
    line-height: 72px;
    letter-spacing: -1.65px;
}

.projects_title {
    padding-bottom: 40px;
}

.project {
    position: relative;
    height: 550px;
    background-image: url(../resources/Realhome.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 50%;
    border-radius: 30px;
}

.projects__content {
    position: absolute;
    bottom: 55px;
    left: 50px;
}

.title_name {
    color: #FFF;
    font-size: 35px;
    font-weight: 400;
    line-height: 46px;
    letter-spacing: -1.05px;
}

.project_description {
    color: #FFF;
    font-size: 30px;
    font-weight: 400;
    line-height: 39px;
    letter-spacing: -0.9px;
}

.second_project {
    background-image: url(../resources/GLASS.png);
}

.third_project {
    background-image: url(../resources/Fesiyen.png);
}

.all_projects_btn {
    color: #000;
    text-align: center;
    font-size: 30px;
    font-weight: 400;
    line-height: 39px;
    letter-spacing: -0.9px;
    text-decoration: none;
    border-radius: 10px;
    background: #5d5d5d;
    padding: 56px 85px 58px 86px;
    max-width: 582px;
    margin-top: 80px;
    transition: 0.3s;
}

.title_competencies {
    margin-bottom: 48px;
}

.competence {
    display: flex;
    flex-direction: column;
}

.competence_img {
    width: 45px;
    height: 44px;
    margin-bottom: 10px;
}

.grey_title {
    color: #5d5d5d;
    margin-bottom: 15px;
}

.competencies__desc {
    color: #FFF;
    font-size: 22px;
    font-weight: 400;
    line-height: 29px;
    letter-spacing: -0.66px;
}

.margin_competencies__desc {
    margin-bottom: 66px;
}

.services {
    display: flex;
    flex-direction: column;
}

.services__item {
    margin-top: 74px;
    display: flex;
    flex-direction: column;
}

.services__item_image {
    object-fit: cover;
}

.services__item_content {
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-radius: 30px;
    background: #191C19;
}

.grey_services {
    color: #5d5d5d;
    padding-bottom: 15px;
}

.width_style_services {
    width: 749px;
}

.services__item_big_margin {
    margin-top: 137px;
}

.contants {
    border-radius: 30px;
    background: #191C19;
    height: 717px;
    margin: 150px 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.contants_image_absolute {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 717px;
    z-index: 2;
    border-radius: 0 30px 30px 0;
}

.contants_information {
    display: flex;
    flex-direction: column;
    margin-bottom: 89px;
}

.contacts__title {
    margin-bottom: 28px;
}

.link_contacts {
    color: #FFF;
    font-size: 60px;
    font-style: normal;
    font-weight: 400;
    line-height: 60px; 
    letter-spacing: -1.8px;
    text-decoration: none;
    transition: 0.3s;
}

.margin_link_contacts {
    margin-bottom: 20px;
}

.footer {
    background: #FFF;
    padding: 76px 0 24px;
    border-radius: 30px 30px 0 0;
}

.competencies__desc_black {
    font-family: "Manrope", sans-serif;
    color: #000;
    line-height: 30px;
    font-weight: 400;
    margin-bottom: 66px;
}

.footer__rights {
    color: #000;
    font-family: "Manrope";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: -0.6px;
    opacity: 0.5;
}

/*new style*/
.competencies__desc_width {
    width: 778px;
}

.services__content_layout {
    padding: 40px 40px 69px;
}



/*hover animation*/
.nav_menu_link:hover {
    color: #5d5d5d;
}

.all_projects_btn:hover {
    color: #5d5d5d;
    background: #000;
    border: 1px solid #5d5d5d;
}

.link_contacts:hover {
    color: #5d5d5d;
}

/*tablet-version*/
@media (max-width: 1170px) and (min-width: 710px) {
    .container {
        width: 700px;
    }

    section {
        padding-top: 120px;
    }

    .header_logo {
        font-size: 32px;
        line-height: 29px;
    }

    .nav_menu_link:not(:last-child) {
        margin-right: 20px;
    }

    .about_me_titile {
        width: auto;
        font-size: 70px;
        line-height: 60px;
    }

    .all_projects_btn {
        padding: 36px 55px 38px 56px;
    }

    .width_style_services {
        width: auto;
    }

    .contants {
        height: 517px;
    }

    .contants_image_absolute {
        height: 517px;
    }

    .competencies__desc_width {
        width: auto;
    }
}


/*mobile-version*/
@media (max-width: 699px) {
    .about {
        padding: 27px 0 64px;
    }

    .container {
        width: auto;
        margin: 0 5px;
    }

    section {
        padding-top: 80px;
    }

    .header {
        justify-content: space-between;
    }

    .nav_menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 55px; /* под хедером */
        right: 0;
        width: 100%;
        background: #000;
        padding: 20px;
        border-radius: 0 0 10px 10px;
        opacity: 0.8;
    }

    .nav_menu.active {
        display: flex;
    }

    /* бургер-кнопка */
    .burger {
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .burger span {
        position: absolute;
        height: 3px;
        width: 100%;
        background: #fff;
        left: 0;
        transition: 0.3s;
    }

    .burger span:nth-child(1) { top: 0; }
    .burger span:nth-child(2) { top: 8px; }
    .burger span:nth-child(3) { top: 16px; }

    /* Анимация крестика */
    .burger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 8px;
    }

    .about_me {
        padding-top: 120px;
    }

    .about_me_text {
        width: auto;
    }

    .about_me_titile {
        width: auto;
        font-size: 50px;
        line-height: 40px;
    }

    .title {
        font-size: 35px;
        line-height: 42px;
    }

    .projects {
        align-items: flex-start;
    }

    .project {
        width: 100%;
        height: 350px;
    }

    .projects__content {
        left: 10px;
        bottom: 20px;
    }

    .title_name {
        font-size: 28px;
        line-height: 39px;
    }

    .project_description {
        font-size: 25px;
        line-height: 34px;
    }

    .all_projects_btn {
        font-size: 18px;
        line-height: 27px;
        padding: 16px 25px 18px 26px;
        margin-top: 30px;
    }

    .title_competencies {
        margin-bottom: 30px;
    }

    .services__item {
        margin-top: 34px;
    }

    .services__item_image {
        border-radius: 30px;
        height: 100px;
    }

    .services__item_content {
        padding: 10px;
    }

    .width_style_services {
        width: auto;
        font-size: 20px;
        line-height: 25px;
    }

    .contants {
        margin: 80px 0;
        height: 350px;
    }

    .contants_image_absolute {
        display: none;
    }

    .contants_information {
        margin-bottom: 49px;
    }

    .link_contacts {
        font-size: 39px;
        line-height: 39px;
    }

    .footer {
        padding: 36px 0 24px;
    }

    .competencies__desc_width {
        width: auto;
    }
}

