@import url('https://fonts.googleapis.com/css2?family=Aldrich&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Aldrich&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Aldrich", sans-serif;
}

body{
    background: #fff;
}
.wrapper{
    max-width: 1290px;
    margin: 0 auto;
}
.header{
    background: #fff;
    width: 100%;
    z-index: 2;
    position: relative;
    transition: box-shadow .3s ease;
}
.header.fixed {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.first_logo,
.last_logo{
    font-size: 34px;
    font-family: "Aldrich", sans-serif;
}
.last_logo{
    color: #1f1f1f;
}
.first_logo{
    color: #f00;
}

.header_wrapper{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1290px;
    margin: 0 auto;
    line-height: 33px;
    align-items: center;
}

.logo{
    width: 20%;
    padding: 30px 10px;
    font-size: 34px;
    font-family: "Montserrat",sans-serif;
    font-weight: 400;
}
.logo a{
    display: flex;
    text-decoration: none;
}


.top_nav_ul {
    display: flex;
}

.nav-item {
    padding: 30px 20px;
    position: relative;
    transition: all 300ms ease-in-out;
}

.nav-link {
    color: #1f1f1f;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    width: max-content;
    display: block;
    max-width: 180px;
    transition: color 0.3s ease;
}

.nav-submenu--level-2 {
    position: absolute;
    /* display: none; */
    display: flex;
    flex-direction: column;
    background-color: white;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    left: 0;
    top: 93px;
    padding: 30px 0 30px 30px;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 22px 47px 0 rgba(0, 0, 0, 0.1);
}

.nav-item--level-2{
 
    padding: 0 30px 0 0;
    transition: padding 0.3s ease;

}


.nav-submenu--level-3 {
    position: absolute;
    width: fit-content;
    left: 100%;
    top: 0;
    display: flex;
    flex-direction: column;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;

    background: var(--white);
    padding: 30px;
    gap: 10px;
    box-shadow: 46px 22px 47px 0 rgba(0, 0, 0, 0.1);
    border-radius: 0 0 30px;
    border-left: 1px solid;
    transition: all 400ms ease-in-out;
}

.nav-item.nav-item--level-1:nth-child(7) > .nav-submenu--level-2 {
    left: -80%;
}

.nav-item--level-1:hover > .nav-link--level-1 {
    color: var(--red);
}

.nav-item--level-2:hover > .nav-link--level-2 {
    color: var(--red);
}
.nav-item--level-2:hover {
    padding: 0 20px 0 10px;
}

.nav-item--level-1:hover {
    background: var(--black);
    color: var(--red);
}

.nav-item--level-2:hover > .nav-submenu--level-2 {
    display: flex;
    
}

.nav-item--level-2:hover > .nav-submenu--level-3 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-item--level-1:hover > .nav-item--level-2 {
    display: block;
}

.nav-item--level-1:hover > .nav-submenu--level-2 {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-link--level-3 {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: var(--black);
    display: block;
    width: max-content;
}


.grey {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 17px;
    line-height: 165%;
    color: var(--grey);
}


.burger, .burger_close {
    width: 50px;
    height: 50px;
    background: #2b2b2b;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 7.5px;
    cursor: pointer;
}
.burger p, .burger_close p {
    width: 20px;
    border-top: solid 1px #fff;
}
.nav_burger{
    display: none;
}
.nav_burget_list {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    background: #2b2b2b;
    height: 100vh;
}


.level-1.contacts{
    text-align: center;
    display: flex;
    justify-content: center;

}
.level-1.contacts > .nav-link {
    cursor: pointer;
    display: inline-block;
    color: #fff;
    transition: color .2s;
    position: relative;
}
@media screen and (max-width: 1200px) {
    .nav-item {
        padding: 20px 10px;
        position: relative;
    }
    .nav-submenu--level-2 {
        top: 73px;
    }
    .logo {
        padding: 20px 10px;
    }
}
@media screen and (max-width: 1024px) {
    .header_wrapper{
        max-width: 984px;
    }
   
    .logo{
        width: 188px;
    }
   
    .top_nav{
        display: none;
    }
    .nav_burger{
        display: block;
    }
    .nav_burger .last_logo{
        color: #fff;
    }
    .nav_burger .logo {
        display: flex;
        justify-content: space-between;
        width: 100%;
        align-items: center;
        margin-bottom: 60px;
    }
    .header_wrapper {
        width: 95%;
        padding: 20px 0;
    }
    .logo{
        display: flex;
        justify-content: center;
        align-items: center;
        width: max-content;
    }
    .nav_burget_list{
        padding: 20px;
        z-index: 3;
        background: #2b2b2b;
    }
    .nav_burget_list .logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mobile_menu{
        text-align: center;
        margin: 60px auto;
    }
    .nav_burget_list .last_logo{
        color: #fff;
    }
    .level-1, .level-2, .level-3{
        margin-bottom: 15px;
    }
    .level-1:last-child, .level-2:last-child, .level-3:last-child{
        margin-bottom: 0;
    }


    .bg_gray{
        background: #383838;
        border-radius: 14px;
    }
    .bg_lite_gray{
        background: #464646;
    }

    .title_first{
        font-size: 17px;
    }
    .title_second{
        font-size: 15px;
    }
    .title_third{
        font-size: 14px;
    }

    .last_layer{
        padding: 5px 0;
    }
    .last_layer li{
        margin-bottom: 5px;
    }
    .last_layer li:last-child{
        margin-bottom: 0;
    }

    .last_layer a{
        color: #a7a7a7;
        text-decoration: none;
    }


    .sub_item {
        display: none;
        padding: 10px 0;
    }

    .mobile_menu .title {
        cursor: pointer;
        display: inline-block;
        color: #fff;
        transition: color .2s;
        position: relative;
    }
    .mobile_menu .title .mobile_arrow {
        position: absolute;
        top: 8px;
        right: -20px;
    }
    .title_third .mobile_arrow {
        transition: transform 0.3s ease;
        transform: rotate(180deg);
        top: 5px;
    }


    .mobile_menu li.active > .title,
    .mobile_menu li > a.level-link.title {
        color: #f00;
    }

    .sub_item {
        display: none;
        margin: 10px 0;
    }

    .mobile_menu li.mobile_header_open > .title {
        color: #f00;
    }
    .mobile_menu li.mobile_header_open > .title > .mobile_arrow {
        top: 6px;
        transition: transform 0.3s ease;
        transform: rotate(90deg);
    }

    .mobile_header_open{
        display: block;
        overflow: auto;
    }


    
}
@media screen and (max-width: 425px) {

    .logo_desctop{
        width: 100%;
    }
    
    .logo {
        width: 70%;
    }
    .logo a {
        width: 100%;
    }
    .header_wrapper{
        width: 95%;
    }
}
@media screen and (max-width: 320px) {

    .header_wrapper{
        width: 95%;
    }
}