/* DESKTOP */

.hide.header {
    transform: translateY(-300%);
}

.header.header-scrolling {
    transition: all 0.5s ease 0s, padding-right 0s ease 0s;
}

#wpadminbar {
    bottom: 0;
    top: unset;
}

html {
    margin-top: 0!important;
}

.header-black-style .header__content-wrapper ul li a{
    color: #21201e;
}
.header-black-style {
    border-bottom: 1px solid #dbd8cd;
}

body::after {
    content: '';
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    background: #00000066;
    opacity: 0;
    backdrop-filter: blur(8.299999237060547px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 100;
}

body:has(.header.opened)::after {
    opacity: 1;
}


.headerblock::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(14, 11, 11, 0.31);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.headerblock:has(.opened)::after {
    opacity: 1;
    visibility: visible;
}


.header-scrolling {
    background: #FFF;
}

#header {
    z-index: 500;
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
}

.header {
    transform: translate(0, -90px);
    transition: all 0.5s ease 0s, transform 1s ease 0.5s, padding-right 0s 0s;
}

.header__content-wrapper ul {
    list-style: none;
    padding-left: 0;
    display: flex;
}

.header__content-wrapper ul li a {
    color: #fff;
    opacity: 0.6;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

header .menu-item > a {
    font-weight: 600;
}

.header__content-wrapper ul li a,
.header__mobile-wrapper ul li a,
.header__mobile-wrapper ul li {
    transition: all 0.3s ease;
}

.header__mobile-wrapper ul li a,
.header__mobile-wrapper ul li {
    color: #21201E;
    font-size: 15px;
}

.header-scrolling .header__content-wrapper ul li a,
.header-scrolling .header__mobile-wrapper ul li a,
.header-scrolling .header__mobile-wrapper ul li {
    color: #21201e;
}

.header__content-wrapper ul li:hover a,
.header__mobile-wrapper ul li:hover a {
   opacity: 1;
}

.header__content-wrapper,
.header__menu-btn-wrapper  {
    display: flex;
}

.header-black-style .header__content-wrapper {
    padding: 10px 0 7.2px 0;
}

.header__content-wrapper {
    padding: 10px 0 8px 0;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1000000000000;
    gap: 50px;
    transition: all 0.3s ease;
}

.header__menu-btn-wrapper {
    justify-content: space-between;
    gap: 100px;
    align-items: center;
}

.header__navigation-wrapper ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header__logo-link {
    width: 61px;
    height: 62px;
    object-fit: contain;
    display: flex;
    position: relative;
    min-width: 173px;
}

.header__logo {
    object-fit: contain;
    transition: all 0.3s ease;
    height: 100%;
    width: auto;
}

.header__logo.header-logo-hover {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: all 0.3s ease;
}

.header-scrolling .header__logo,
.opened .header__logo {
    opacity: 0;
}

.header-scrolling .header__logo.header-logo-hover,
.opened .header__logo.header-logo-hover{
    opacity: 1;
}

.header__btn {
    min-width: 173px;
}



@media screen and (max-width: 1199.98px) {
    .header__content-wrapper {
        gap: 30px;
    }

    .header__menu-btn-wrapper {
        gap: 20px;
    }

    .header__navigation-wrapper ul {
        gap: 15px;
    }
}


/* MOBILE */

.header__mobile-wrapper {
    overflow: auto;
    position: fixed;
    top: 0;
    left: 50%;
    background: #FFF;
    padding: 0 20px 0 20px;
  width: 100%;
    margin-right: auto;
    margin-left: auto;
    height: 100svh;
    max-height: fit-content;
    transform: translateY(-150%) translateX(-50%);
    box-shadow: 0 30px 30px 0 rgba(225, 190, 196, 0.18);
}

.header__mobile-wrapper ul {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header__menu-button {
    display: none;
}

@media screen and (min-width: 1600px) {
    .header__logo-link {
        width: 70px;
        height: 70px;
    }

    .header__content-wrapper ul li a {
        font-size: 20px;
    }
}


@media screen and (max-width: 1024.98px) {

    html {
        margin-top: 0!important;
    }

    .header {
        transform: translate(0, -80px);
        transition: transform 1s ease 0.5s, padding-right 0s;
    }


    .header__content-wrapper ul li a {
        opacity: 1;
    }

    .header__btn {
        min-width: 161px;
    }

    #desktop-navigation,
    .header-desktop-btn {
        display: none;
    }


    .opened .header__mobile-wrapper {
        transform: translateY(0) translateX(-50%);
    }

    .header__mobile-wrapper-decor {
        width: 1px;
        height: 30px;
        background: #21201e;
    }

    .header__mobile-wrapper-inner {
        display: flex;
        flex-direction: column;
        gap: 30px;
        justify-content: center;
        align-items: center;
        text-align: center;
        overflow: auto;
        height: fit-content;
        width: 100%;
        padding: 90px 0 50px 0;
    }

    #wpadminbar {
        display: none;
    }

    .header__menu-button {
        display: flex;
        justify-content: center;
        height: 30px;
        flex-direction: column;
        align-items: flex-end;
    }

    .header__menu-btn-wrapper {
        display: none;
    }

    .menu-bar {
        width: 11px;
        height: 2px;
        background-color: #FFFFFF;
        transition: all 0.5s ease;
        transform-origin: center;
        animation-duration: .8s;
        animation-fill-mode: forwards;
        animation-timing-function: ease-in-out;
    }

    .header-black-style .menu-bar {
        background-color: #21201e;;
    }

    .menu-bar:last-child {
        width: 21px;
    }

    .menu-bar:first-child {
        width: 26px;
    }

    .menu-bar:not(:last-child) {
        margin-bottom: 7px;
    }

    .opened .menu-bar,
    .header-scrolling .menu-bar{
        background: #465953;
    }

    .opened .menu-bar:not(:last-child) {
        margin-bottom: 5.25px;
    }


    .opened .menu-bar:first-child,
    .opened .menu-bar:last-child {
        width: 26px;
    }

    @keyframes topBarOpen {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(7.25px);
        }
        100% {
            transform: translateY(7.25px) rotate(45deg);
        }
    }

    @keyframes bottomBarOpen {
        0% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-7.25px);
        }
        100% {
            transform: translateY(-7.25px) rotate(-45deg);
        }
    }

    @keyframes middleBarOpen {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(0.5);
        }
        100% {
            transform: scale(0);
        }
    }

    @keyframes topBarClose {
        0% {
            transform: translateY(5.5px) rotate(45deg);
        }
        50% {
            transform: translateY(5.5px);
        }
        100% {
            transform: translateY(0);
        }
    }

    @keyframes bottomBarClose {
        0% {
            transform: translateY(-6px) rotate(-45deg);
        }
        50% {
            transform: translateY(-6px);
        }
        100% {
            transform: translateY(0);
        }
    }

    @keyframes middleBarClose {
        0% {
            transform: scale(0);
        }
        50% {
            transform: scale(0.5);
        }
        100% {
            transform: scale(1);
        }
    }

    .opened .menu-bar:first-child {
        animation-name: topBarOpen;
    }

    .opened .menu-bar:last-child {
        animation-name: bottomBarOpen;
    }

    .opened .menu-bar:nth-child(2) {
        animation-name: middleBarOpen;
    }

    .menu-bar:first-child {
        animation-name: topBarClose;
    }

    .menu-bar:last-child {
        animation-name: bottomBarClose;
    }

    .menu-bar:nth-child(2) {
        animation-name: middleBarClose;
    }

    .header__logo-link {
        width: 55px;
        height: 56px;
        min-width: 0;
    }

    .header__content-wrapper {
        border-radius: 0 0 20px 20px;
        padding: 7px 0 7px 0;
    }

    .header-black-style .header__content-wrapper {
        padding: 10px 0 6.2px 0;
    }

    .opened .header__content-wrapper {
        border-color: transparent;
        box-shadow: none;
    }

    .overflow {
        overflow: hidden;
    }

    .header__mobile-wrapper ul li a {
        display: block;
    }

}
@media screen and (max-width: 599.98px) {
    .header__logo-link {
        width: 45px;
        height: 46px;
    }

    .header__menu-button {
        height: 28.5px;
    }

    .header__content-wrapper {
        border-radius: 0 0 15px 15px;
    }

    .header {
        transform: translate(0, -70px);
        transition: transform 1s ease 0.5s, padding-right 0s;
    }
}

