.menu-item-has-children {
    position: relative;
}


ul.sub-menu {
    margin-top: 8px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    backdrop-filter: blur(4px);
    background: rgba(4, 3, 3, 0.5);
    margin-left: 0;
    gap: 10px!important;
    padding: 10px 10px 8px 10px!important;
    left: 50%;
    transform: translateX(-50%);
}

ul.sub-menu li {
    position: relative;
    width: 260px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

ul.sub-menu li a {
    display: flex!important;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    padding: 0 6px 6px 6px;
}

ul.sub-menu li a span{
    backdrop-filter: blur(4px);
    background: rgba(4, 3, 3, 0.5);
    padding: 7px 12px 9px 14px;
    width: 100%;
    display: flex!important;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-family: 'Bodoni Antiqua URW Light', sans-serif;
    position: relative;
    height: fit-content;
    color: #FFF;
}

ul.sub-menu li a span::after {
    content: "";
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="21" viewBox="0 0 20 21" fill="none"><path d="M6.24264 15.4965L14.7279 7.01127M14.7279 7.01127H6.24264M14.7279 7.01127V15.4965" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.3s ease;
}

ul.sub-menu li:hover span::after{
    transform: rotate(45deg);
}

.sub-menu::after {
    content: "";
    display: block;
    position: absolute;
    width: 18px;
    height: 9px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="9" viewBox="0 0 18 9" fill="none"><path d="M8.66016 0L17.3205 9H0L8.66016 0Z" fill="%23040303" fill-opacity="0.5"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    left: 50%;
    transform: translateX(-50%);
    top: -9px;
}
.sub-menu img {
    left: 0;
    top: 0;
    min-width: 100%;
    min-height: 100%;
    height: 100% !important;
    position: absolute;
    z-index: -1;
    padding-bottom: 0!important;
}

@media screen and (min-width: 1025px) {
    .menu-item-has-children:hover .sub-menu{
        opacity: 1;
        pointer-events: auto;
    }

    .menu-item-has-children:hover > a {
        padding-bottom: 20px;
    }

}

@media screen and (max-width: 1024.98px) {
    .header__mobile-wrapper ul.sub-menu {
        position: relative;
        height: fit-content;
        max-height: 0;
        opacity: 0;
        gap: 5px!important;
        pointer-events: none;
        padding: 0!important;
        margin-top: 0;
        flex-direction: row;
        flex-wrap: wrap;
        background: #ececec;
        border: 1px solid #e7e7e7;
    }
    .header__mobile-wrapper ul.sub-menu li {
        flex-basis: calc((100% - 5px) / 2);
        height: 160px;
    }


    .header__mobile-wrapper .sub-menu-opened ul.sub-menu {
        max-height: 5000px;
        opacity: 1;
        pointer-events: auto;
        padding: 6px 6px 5px 6px!important;
    }

    .menu-item.sub-menu-opened > a {
         padding-bottom: 13px;
    }

    .sub-menu::after {
        width: 18px;
        height: 9px;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="9" viewBox="0 0 18 9" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M17.3205 9L8.66016 0L0 9H-164V150H181V9H17.3205Z" fill="%23ECECEC"/></svg>');
    }

    ul.sub-menu li a span {
        font-size: 20px;
        padding: 4px 7px 4px 10px;
    }

    ul.sub-menu li a span::after {
        width: 16px;
        height: 16px;
    }

    ul.sub-menu li a {
        padding: 0;
    }
}

@media screen and (max-width: 599.98px) {
    .header__mobile-wrapper ul.sub-menu li {
        height: 130px;
    }
}