header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    background-color: var(--body-background-color);
    position: sticky;
    top: 0;
}

.nav_cars_block {
    position: absolute;
    top: 85px;

	background: var(--body-background-color-opacity);

    transform: translateY(-100%);
    z-index: -1;
    opacity: 0;

    transition: all 800ms cubic-bezier(0.8, 0, 0.33, 1);
}

.nav_cars_block.show_cars {
    transform: translateX(0%);
    opacity: 1;
    z-index: 9;
}

.nav_block, .nav_cars_block {
    padding: 25px 8%;
    border-bottom: 1px solid var(--main-color);
}

.nav_start {
    justify-content: start;
    align-items: center;
    margin-inline-end: calc(100% - 1045px);
}

.nav_logo {
    margin-inline-end: 50px;
    cursor: pointer;
    transition: var(--trans);
}

.nav_logo:hover {
    scale: 1.03;
}

.nav_links {
    align-items: center;
    text-align: center;
    margin-inline-end: 20px;
}

.nav_link {
    text-decoration: none;
    color: var(--light-text-color);
    font-size: 18px;
    font-weight: 300;
    padding: 0 15px;
    transition: var(--trans);
    align-items: center;
    margin: 0;
    cursor: pointer;
}

.nav_link:hover {
    color: var(--hover-color);
}

.phone_link {
    color: var(--light-text-color);
    text-decoration: none;
}

.menu_settings {
    display: none;
}

.nav_settings, .menu_settings {
    align-items: center;
    text-align: center;
}

.nav_icon {
    margin-inline-end: 10px;
    cursor: pointer;
}


/************************* CONTACTS BLOCK ******************************/
.nav_contacts_block {
    margin-inline-end: 50px;
}

.nav_contacts_e {
    align-items: end;
}

.nav_contacts {
    align-items: center;
}

#settings_icon, #phone_icon {
    margin-inline-end: 0;
}

#whatsapp_icon {
    margin-inline-end: 5px;
}

.nav_contact_label {
    color: var(--light-text-color);
    font-size: 14px;
    font-weight: 300;
    text-align: end;
    margin-inline-end: 10px;
}

/************************* NAV CARS BLOCK ******************************/
.nav_mobile_link {
    display: none;
    margin: 0;
    cursor: pointer;
    text-decoration: none;
    transition: var(--trans);
    padding: 0 15px;
    align-items: center;
    font-weight: 200;
    color: var(--light-text-color);
    border-bottom: 0.5px solid var(--main-color);
    /*max-width: 500px;*/
    margin-bottom: 30px;
    font-size: 28px;
}

.nav_mobile_link:hover {
    color: var(--hover-color);
}

.nav_mobile_link:first-child {
    padding-top: 10px;
}

.nav_title {
    font-size: 28px;
    font-weight: 200;
    color: var(--main-color);
    border-bottom: 0.5px solid var(--main-color);
    max-width: 500px;
    margin: 0;
    margin-bottom: 30px;
    padding: 0 15px;
}

.nav_title.link {
    text-decoration: none;
    transition: var(--trans-text);
}

.nav_title.link > img {
    rotate: -90deg;
}

.nav_title.link:hover {
    color: var(--hover-color);
    border-bottom: 0.5px solid var(--hover-color);
}

.nav_classes {
    margin-bottom: 30px;
    justify-content: space-between;
    overflow: auto;
    flex-wrap: nowrap;
}

.nav_classes::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.nav_class {
    padding: 20px 12px;
    text-align: center;
    cursor: pointer;
    justify-content: end;
    align-items: center;
}

.nav_class_img {
    border-bottom: .5px solid var(--main-color);
    padding: 0 0 10px;
    transition: var(--trans);
    max-width: 100px;
    max-height: 50px;
}

.nav_class_label {
    font-size: 16px;
    font-weight: 200;
    color: var(--main-color);
    margin: 10px 10px 0;
    transition: var(--trans);
    white-space: nowrap;
}

.nav_class:hover .nav_class_label {
    color: var(--hover-color);
}

.nav_brand_img {
    border-bottom: .5px solid var(--main-color);
    padding: 0 0 10px;
    transition: var(--trans);
    max-width: 100px;
    max-height: 50px;
}

.nav_class:hover .nav_class_img, .nav_class:hover .nav_brand_img{
    border-bottom: .5px solid var(--hover-color);
    scale: 1.03;
}

#brand_ford {
    max-width: 70px;
}

/************************* SETTINGS BLOCK ******************************/
.nav_settings_block {
    position: fixed;
    top: 0px;

	background: var(--body-background-color-opacity);

    transform: translateX(100%);
    z-index: -1;
    opacity: 0;

    height: 100%;
    width: 100%;
    background: rgb(0, 0, 0, 0.8);
    transition: all 800ms cubic-bezier(0.8, 0, 0.33, 1);
}

.nav_settings_block.show_settings {
    transform: translateX(0%);
    opacity: 1;
    z-index: 10000;
}

.nav_settings_body {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--body-background-color);
    height: 100%;
    max-width: 350px;
    border-left: 1px solid var(--main-color);
    padding: 20px;
}

html:dir(rtl) .nav_settings_body, [dir='rtl'] .nav_settings_body {
    border-left: 0px;
    border-right: 1px solid var(--main-color);
}

.close_settings {
    justify-content: end;
}

.close_settings_img {
    cursor: pointer;
    transition: var(--trans);
}

.close_settings_img:hover {
    scale: 1.15;
}

.settings_title {
    font-size: 20px;
    font-weight: 300;
    color: var(--main-color);
    border-bottom: 0.5px solid var(--main-color);
    margin: 0;
    margin-bottom: 20px;
}

.settings_langs {
    justify-content: space-between;
    margin-bottom: 30px;
}

.settings_lang {
    font-size: 18px;
    font-weight: 200;
    color: var(--main-color);
    padding: 10px;
    border-bottom: 0;
    margin: 10px;
    transition: var(--trans);
    cursor: pointer;
    border-bottom: 1px solid var(--body-background-color);
}

.set_lang {
    border-bottom: 1px solid var(--hover-color);
    color: var(--hover-color);
}

.settings_lang:hover {
    border-bottom: 1px solid var(--main-color);
}

/************************* DIFFRENET DISPLAY SIZES ******************************/
@media only screen and (max-width: 1440px) {
    .nav_start {
        margin-inline-end: calc(100% - 940px);
    }

    .nav_block, .nav_cars_block, .nav_settings_body {
        padding: 25px 3%;
    }

    .nav_logo {
        margin-inline-end: 25px;
        width: 180px;
    }

    .nav_link {
        font-size: 16px;
        padding: 0 10px;
    }

    .nav_contacts_block {
        margin-inline-end: 35px;
    }
}

@media only screen and (max-width: 1024px) {
    .nav_start {
        margin-inline-end: calc(100% - 760px);
    }

    .nav_block, .nav_cars_block, .nav_settings_body {
        padding: 20px 5%;
    }

    .nav_cars_block {
        top: 71px;
    }

    .nav_logo {
        margin-inline-end: 20px;
        width: 150px;
    }

    .nav_contacts_block {
        margin-inline-end: 30px;
    }

    .nav_link {
        font-size: 16px;
        padding: 0 8px;
    }

    .nav_icon {
        width: 25px;
        height: 25px;
    }

    .nav_contact_label {
        display: none;
        margin-inline-end: 0;
    }

    .nav_classes {
        overflow: auto;
        flex-wrap: nowrap;
    }

    .nav_title, .nav_mobile_link {
        font-size: 24px;
    }
}

@media only screen and (max-width: 860px) {
    .nav_start {
        justify-content: space-between;
        margin-inline-end: 0;
    }

    .nav_block, .nav_cars_block, .nav_settings_body {
        padding: 15px 4%;
    }

    .nav_block, .nav_cars_block {
        justify-content: space-between;
    }

    .nav_cars_block {
        top: 61px;
    }

    .nav_links, .nav_link, .nav_contacts_block {
        display: none;
        padding: 0;
    }

    .nav_logo, #menu_icon {
        margin-inline-end: 0;
    }

    #menu_icon {
        margin-inline-end: 40px;
    }

    .menu_settings {
        display: flex;
    }

    .nav_mobile_link {
        display: block;
    }

    .nav_title {
        max-width: 400px;
    }
}

@media only screen and (max-width: 640px) {
    .nav_block, .nav_cars_block, .nav_settings_body {
        padding: 10px 3%;
    }

    .nav_cars_block {
        top: 51px;
    }

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

    .nav_title {
        max-width: 350px;
    }
}

@media only screen and (max-width: 560px) {
    .nav_start {
        justify-content: space-between;
    }
}