.site-header {
    z-index: 99;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    box-sizing: border-box;

    &:has(.wrap.open) {
        bottom: 0;
    }

    .wrap {
        padding: 32px 32px;
        box-sizing: border-box;
        background: transparent;       
        transition: background 0.5s;
        overflow: auto;

        &.open {
            height: 100%;
            background: #111;

            #header-mobile {
                display: grid;
            }     

            .handler-mobile {
                span {
                    margin-block: -1px;

                    &:nth-child(1) {
                        transform: rotate(45deg);
                    }     

                    &:nth-child(2) {
                        transform: rotate(-45deg);
                         transform: rotate(-220deg);
                    } 
                }
            }

            .inner {
                --header-background: transparent !important;
                padding: 0px;
            }
        }   


        @media only screen and (min-width: 980px) {
            padding: 16px 32px;
        }

        @media only screen and (max-width: 980px) {
            height: 100%;
        }
    }

    .inner {
        width: 100%;
        border-radius: 250px;
        margin-inline: auto;
        box-sizing: border-box;
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr 1fr 1fr;       
        transition: all 0.5s;
        z-index: 9999;
        position: relative;
        background: var(--header-background);

        @media only screen and (max-width: 980px) {
            grid-template-columns: 1fr 1fr; 
        }

        .center {
            justify-self: center;
        } 

        .right {
            justify-self: end;
        }

        @media only screen and (min-width: 980px) {
            &.active {
                width: 1000px;
                --header-background: #262626;
            }

            padding: 12px 12px 12px 32px;
        }

        @media only screen and (max-width: 980px) {
            &.active {
                --header-background: #262626;
                padding: 12px 20px;

                /*
                &:after {
                    content: "";
                    transition: background 0.5s;
                    position: absolute;
                    inset: -10px -20px;
                    background: #262626;
                    border-radius: 250px;
                }
                */
            }
        }
    }

    .branding {
        display: flex;
        align-items: center;
        position: relative;
        z-index: 9999;

        img {
            width: auto;
            height: 44px;

            @media only screen and (max-width: 980px) {
                height: 34px;
            }          
        }
    }

    .facebook {
        margin-left: auto;
    }

    .handler-mobile {
        display: none;
        grid-template-columns: 1fr;     
        cursor: pointer;
        position: relative;
        z-index: 9999;
        transition: all 0.3s;

        span {
            margin-block: 3px;
            width: 22px;
            height: 2px;
            background: #fff;
            display: block;
            transition: .25s ease-in-out;
            transform-origin: center;
            transform: rotate(0deg);
        }

        &:hover span {
            margin-block: -1px;
        }
    }

    @media only screen and (max-width: 980px) {
        display: grid;
        grid-template-columns: 1fr;

        .navigation {
            display: none;
        }

        .handler-mobile {
            display: grid;
            margin-left: auto;
            align-content: center;
        }

        &.open {
			padding: 20px;
            background: #000;
            grid-template-columns: auto 2fr;
            gap: 20px;
            position: fixed;
            left: 0px;
            right: 0px;
            bottom: 0;
            top: 0;
        }
    }


   @media only screen and (min-width: 980px) {
        .navigation {
            display: flex;
            gap: 6px;
            justify-content: center;
            align-items: center;
            transition: all 0.5s;
            box-sizing: border-box;
            line-height: 1;

            a {
                color: #fff;
                font-size: 20px;
                text-transform: uppercase;
                text-box: cap alphabetic;
                font-family: var(--font-big);
                transition: all 0.5s;
                padding: 8px 13px;
                border-radius: 150px;
                white-space: nowrap;

                &:hover, &.active {
                    color: var(--primary);
                    text-decoration: underline;
                }
            }
        }
    }

}

.desktop-btn {
    @media only screen and (max-width: 980px) {
        display: none;    
    }
}

#header-mobile {
    display: none;
    gap: 60px;
    align-items: center;
    align-content: center;
    height: 100%;
    margin-top: 32px;

    nav {
        display: grid;
        gap: 24px;

        a {
            color: #fff;
            font-size: 46px;
            text-transform: uppercase;
            text-box: cap alphabetic;
            font-family: var(--font-big);
            font-weight: 700;
            white-space: nowrap;
            transition: all 0.5s;

            &:hover, &.active {
                color: var(--primary);
                text-decoration: underline;
            }
        } 
    }   

    .menu {
        display: grid;
        gap: 16px;

        .label {
            font-size: 20px;
            font-family: var(--font-big);
            text-transform: uppercase;
            color: #fff;
            text-box: cap alphabetic;
        }

        .items {
            display: grid;
            gap: 16px;

            a {
                font-size: 16px;
                text-decoration: underline;
            }
        }
    }
}