.header__menu-burger {
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

/* скрытие чекбокса */

#menu__toggle {
    opacity: 0;
    display: none;
}

/* стилизация кнопки */

.menu-btn {
    /* <button> since A9 (was a <label>): drop the user agent button look. */
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 0;
    display: flex;

    align-items: center;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;

    height: 24px;

    cursor: pointer;

    z-index: 100;
}

/* сам гамбургер */

.menu-btn>span {
    display: block;

    width: inherit;

    height: 2px;

    background-color: var(--burger-color);
}


#menu__toggle:checked~.menu-btn>span {
    /* transform: rotate(45deg); */

    background-color: #195b98;
}


#menu__toggle:checked~.menu-box {
    visibility: visible;

    right: 0;
}


/* анимация развертки */

.menu-btn>span,
.menu-box,
.menu-btn,
.menu-item {
    transition-duration: 0.55s;
}

.menu-box {
    display: flex;

    flex-direction: column;

    gap: 5px;

    position: fixed;

    visibility: hidden;

    top: 0;

    right: -100%;

    width: 100%;
    max-width: 425px;
    height: 100%;

    margin: 0;

    padding: 100px 16px 47px 15px;

    color: #1a1a1a;

    background-color: #f6f6f6;

    z-index: 99;

    ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        list-style: none;
        padding-left: 16px;
    }
}

.menu-box__category {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute;
    top: 0;
    transition: 0.5s;
    opacity: 0;
    margin: 20px;
    pointer-events: none;
}

.menu-box__mail-block {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.menu-box__category-title,
.menu-box__page-title {
    position: relative;
    line-height: unset;
}

.menu-box__category-title:hover>.menu-box__category {
    opacity: 100%;
    top: 5px;
    position: relative;
    pointer-events: all;
}

.menu-box__category a {
    color: var(--text-main-color);
    font-size: 18px;
}

.menu-item {
    position: relative;
}

.menu-item .menu-box__page-title {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.menu-item .menu-box__page-title:after {
    content: '+';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.menu-item.active .menu-box__page-title:after {
    transform: rotate(45deg);
}

.menu-box__dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
    margin-left: 10px;
    border-radius: 5px;
}

.menu-item.active .menu-box__dropdown {
    max-height: 200px;
    padding: 10px;
}

.menu-box__dropdown a {
    display: block;
    padding: 8px 0;
    color: var(--text-main-color);
    font-size: 16px;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.menu-box__dropdown a:last-child {
    border-bottom: none;
}

.menu-box__dropdown a:hover {
    color: #E41937;
}

.menu-box__bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-box__language .language-selector {
    position: relative;
}

/* .menu-box__language .language-current {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
} */

.menu-box__language .language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-top: 5px;
    display: none;
}

.menu-box__language .language-selector:hover .language-dropdown {
    display: block;
    transform: translateY(-125%);
}

.menu-box__language .language-option {
    display: block;
    padding: 10px 15px;
    color: var(--text-main-color);
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

.menu-box__language .language-option:last-child {
    border-bottom: none;
}

.menu-box__language .language-option:hover {
    background-color: #f5f5f5;
}

.menu-box__support {
    background-color: #E41937;
    color: white !important;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-box__support:hover {
    background-color: #c41530;
}

@media (max-width:768px) {
    .header__menu-burger {
        display: flex;
    }
}
/* Current section in the burger menu (see header.css and inc/menu-current.php). */
.menu-box .current-menu-item > a,
.menu-box .current-menu-ancestor > a,
.menu-box .current-page-ancestor > a,
.menu-box .ehpv-menu-current > a {
    color: var(--color-text-deep-blue);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}
