#wpadminbar {
    opacity: 0.35;
    transition: .3s;
}

#wpadminbar:hover {
    opacity: 1;
}


.header {
    position: sticky;
    left: 0;
    right: 0;
    z-index: 5;
    background-color: var(--color-1, var(--main_bg_color));
    height: 70px;
    display: flex;
    align-items: center;
}

.header__wrapper {
    --logo-width: 175px;

    display: grid;
    grid-template-columns: var(--logo-width) minmax(0, 1fr) minmax(auto, max-content);
    gap: 15px;
    align-items: center;
}

.header__logo {
}

.header__logo img {
    /*width: var(--logo-width);*/
    max-height: 60px;
}

.header__nav {
}

.header__reg {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__reg a:nth-child(1) {
    background: var(--bbg1);
    color: var(--bc1);
}

.header__reg a:nth-child(2) {
    background: var(--bbg2);
    color: var(--bc2);
}

.header__reg-link {
}

.header__menu-button {
    display: none;
    position: absolute;
    top: 26px;
    right: 10px;
    width: 26px;
    height: 24px;
    cursor: pointer;

    background: none;
    border: none;
}

.header__menu-button span {
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
}

.header__menu-button span:nth-child(1) {
    top: 2px;
}

.header__menu-button span:nth-child(2) {
    top: 10px;
}

.header__menu-button span:nth-child(3) {
    top: 18px;
}

@media screen and (max-width: 991px) {
    .header {
        height: 120px;
    }

    .header__nav {
        display: none;
    }

    .header__menu-button {
        display: block;
    }

    .header__wrapper {
        grid-template-columns: auto;
        grid-template-areas:
            'logo button'
            'buttons buttons';
    }

    .header__logo {
        grid-area: logo;
    }

    .header__menu-button {
        grid-area: button;
    }

    .header__reg {
        grid-area: buttons;
    }

    .header__reg-link {
        flex: 1;
    }
}

.offcanvas {
    position: fixed;
    bottom: 0;
    z-index: 1045;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    visibility: hidden;
    background-color: #fff;
    background-clip: padding-box;
    outline: 0;
    transition: transform .3s ease-in-out
}

@media (prefers-reduced-motion: reduce) {
    .offcanvas {
        transition: none
    }
}

.offcanvas-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000
}

.offcanvas-backdrop.fade {
    opacity: 0
}

.offcanvas-backdrop.show {
    display: block;
    opacity: .5
}

.offcanvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem
}

.offcanvas-header .btn-close {
    padding: .5rem;
    margin-top: -.5rem;
    margin-right: -.5rem;
    margin-bottom: -.5rem
}

.offcanvas-title {
    margin-bottom: 0;
    line-height: 1.5
}

.offcanvas-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto
}

.offcanvas-start {
    top: 0;
    left: 0;
    width: 400px;
    border-right: 1px solid rgba(0, 0, 0, .2);
    transform: translateX(-100%)
}

.offcanvas-end {
    top: 0;
    right: 0;
    width: 400px;
    border-left: 1px solid rgba(0, 0, 0, .2);
    transform: translateX(100%)
}

.offcanvas-top {
    top: 0;
    right: 0;
    left: 0;
    height: 30vh;
    max-height: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, .2);
    transform: translateY(-100%)
}

.offcanvas-bottom {
    right: 0;
    left: 0;
    height: 30vh;
    max-height: 100%;
    border-top: 1px solid rgba(0, 0, 0, .2);
    transform: translateY(100%)
}

.offcanvas.show {
    transform: none
}

header.header .offcanvas {
    max-width: 300px;
    background: var(--color-1);
    border-radius: 15px 0 0 15px
}

header.header .offcanvas a {
    color: var(--text-color)
}

header.header .offcanvas-header {
    position: relative;
    padding: 4px 32px;
    min-height: 73px
}

header.header .offcanvas-header .custom-logo-link {
    max-width: 175px
}

header.header .offcanvas-header .btn-close {
    position: absolute;
    top: 32px;
    right: 25px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' fill='%23ffffff' class='bi bi-x' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") center/2.5em auto no-repeat;
    opacity: 1;
    border: none;
}

.offcanvas-body {
    padding: 24px
}

header.header .offcanvas .buttons {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-gap: 10px;
    margin-bottom: 32px
}

header.header .offcanvas .buttons a {
    padding: 10px
}

header.header .offcanvas .apps_big_buttons a {
    width: 100%
}
