.header_section {
    position: relative;
    width: 100%;
    /* z-index: 99; */
}


.header_section .navbar {
    background-color: #efefef;
    width: 100%;
}

.header_section .nav-link.active {
    color: #f36e24;
}

.menu-btn {
    display: none;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.menu-btn .bar {
    width: 30px;
    height: 2.5px;
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 4px;
    transform: translate(-50%, -50%);
    background-color: #222;
    transition: all 0.3s ease-in-out;
}

.menu-btn .bar:nth-of-type(2) {
    top: calc(50% - 9px);
}

.menu-btn .bar:nth-of-type(3) {
    top: calc(50% + 9px);
}

/* Меняем гамбургер иконку, когда меню открыто */
.menu-btn.active .bar:nth-of-type(1) {
    display: none;
}

.menu-btn.active .bar:nth-of-type(2) {
    top: 50%;
    transform: translate(-50%, 0%) rotate(45deg);
}

.menu-btn.active .bar:nth-of-type(3) {
    top: 50%;
    transform: translate(-50%, 0%) rotate(-45deg);
}


.nav__header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 5rem 1rem 1rem 1rem;
    background: #f5f5f5;
    transform: translateX(100%);
    transition: transform 0.5s;
}

.nav__list {
    padding-left: 0;
    width: 100%;
}

.nav.active {
    transform: translateX(0);
}

.nav .nav__list_item {
    list-style-type: none;
    margin-bottom: 1rem;
}

.nav .nav__list_item a {
    font-size: 1.25rem;
    font-weight: 500;
}

.mob_sub_menu_cntr {
    position: relative;
}

.mob_sub_menu_cntr .mob_sub_menu_title {
    position: relative;
    width: 100%;
    display: block;
}

.mob_sub_menu_cntr .mob_sub_menu_title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 1rem;
    height: 1rem;
    background-image: url("/assets/icons/arrow_up.svg");
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
    transition: transform .3s ease-in-out;
}

.mob_sub_menu_cntr.active .mob_sub_menu_title::after {
    transform: rotate(-180deg);
}


.mob_sub_menu_cntr .mob_sub_menu_ul {

    height: 0;
    opacity: 0;
    visibility: hidden;
    padding: 0;
    transition: all 0.3s ease-in-out;
}

.mob_sub_menu_cntr.active .mob_sub_menu_ul {
    height: 100%;
    opacity: 1;
    visibility: visible;
    padding-left: 1.25rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.mob_sub_menu_cntr .mob_sub_menu_ul li {
    list-style: none;
    margin-bottom: .5rem;
}

.mob_sub_menu_cntr .mob_sub_menu_ul li a {
    font-size: 1.15rem;
}


/* desktop */

.header_section .header_logo {
    width: 7rem;
    height: auto;
    object-fit: contain;
}

.header_section .nav-link {
    padding: 0;
    font-size: 1.05rem;
    font-weight: 300;
    font-family: var(--font-punta);
    color: #222;
}


.header_section .navbar-nav .nav-item {
    margin-right: .5rem;
    list-style: none;
}


.header_section .sub_menu_cntr {
    position: relative;
}

.header_section .sub_menu_title {
    /* padding-bottom: 1rem; */
    position: relative;
    padding-right: 1.15rem !important;
}

.header_section .sub_menu_title::after {
    content: '';
    position: absolute;
    right: 0;
    top: 30%;
    width: 0.75rem;
    height: 0.75rem;
    background-image: url("/assets/icons/arrow_down.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .3s ease-in-out;
}

.header_section .sub_menu_cntr:hover .sub_menu_ul {
    opacity: 1;
    visibility: visible;
}

.header_section .sub_menu_cntr:hover .sub_menu_title::after {
    transform: rotate(-180deg);
}

/* .header_section .sub_menu_title.active ~ .sub_menu_ul{
    position: relative;
    top: 0;
} */

.header_section .sub_menu_ul {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 3rem;
    left: 0;
    background-color: #fff;
    padding: .5rem 1rem;
    width: 100%;
    height: fit-content;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    z-index: 10;
}

.header_section .sub_menu_ul li {
    list-style: none;
    margin-bottom: .5rem;
}

.header_section .sub_menu_ul li a {
    font-size: 1.25rem;
    color: #222;
}

.header_section .sub_menu_ul li a:hover {
    font-weight: 500;
}

.mobile_header .nav__list_item {
    list-style: none;
}

@media only screen and (max-width: 660px) {
    .menu-btn {
        display: block;
    }
    .header_section .header_logo {
        width: 6rem;
    }
    .sub_menu_ul.active{
        position: relative;
        top: 0;
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        margin-left: 0;    
    }
    .menu-btn.active~#navbarNav ul {
        padding-left: 1rem;
    }
    .header_section .sub_menu_cntr:hover .sub_menu_ul {
        opacity: 0;
        visibility: hidden;
    }
}