.burger {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 99998;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    border: 0;
    padding: 13px;
    background-color: rgba(25, 24, 29, 0.5);
}

.burger span {
    display: block;
    width: 100%;
    opacity: 1;
    transition: .25s ease-in-out;
    height: 3px;
    background-color: #000;
}

.burger span:nth-child(2) {
    width: calc(100% - 5px);
    margin-left: 5px;
    margin-right: 0;
    animation: burgerHoverRev 0.35s alternate;
}

.burger:hover span:nth-child(2) {
    animation: burgerHover 0.35s forwards;
}

@keyframes burgerHover {
    0% {
        width: calc(100% - 5px);
        margin-left: 5px;
        margin-right: 0;
    }
    50% {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    100% {
        width: calc(100% - 5px);
        margin-left: 0;
        margin-right: 5px;
    }
}

@keyframes burgerHoverRev {
    0% {
        width: calc(100% - 5px);
        margin-left: 0;
        margin-right: 5px;
    }
    50% {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    100% {
        width: calc(100% - 5px);
        margin-left: 5px;
        margin-right: 0;
    }
}

header {
    display: block;
    opacity: 0;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99999;
    width: 0;
    min-height: 100%;

    overflow: hidden;
    border-radius: 0;
    color: #eaeaea;
    background: rgb(25, 24, 29);

}

header .inner {
    width: 100vw;
    min-height: 100vh;
    padding: 40px 25px 25px;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: flex-start;
}

header.opened {
    width: 100%;
    animation: aniShowMenu 0.15s forwards ease-in;
}

header.closed {
    width: 0;
    animation: aniHideMenu 0.15s forwards ease-in;
}

@keyframes aniShowMenu {
    0% {
        opacity: 0;
        width: 0;
    }
    100% {
        opacity: 1;
        width: 100%;
    }
}

@keyframes aniHideMenu {
    0% {
        opacity: 1;
        width: 100%;
    }
    100% {
        opacity: 0;
        width: 0;
    }
}

header .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
}

.headerLogo {
    display: none;
}

.headerLogoRed {
    max-width: 70px;
    display: inline-block;
    margin-bottom: 15px;
}


header a,
header a:visited,
header a:active {
    color: #eaeaea;
    text-decoration: none;
    transition: all 0.3s ease-in-out 0s;
}

header a:hover {
    color: var(--clrAccent);
}

header a.submenu {
    position: relative;
}

header a.submenu::after {
    content: "";
    display: block;
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    margin-top: -2px;
    width: 0;
    height: 0;
    border: 3px solid transparent;
    border-top-width: 0.25em;
    border-bottom-width: 0;
    border-top-color: white;
    transition: all 0.3s ease-in-out 0s;
}

header a.submenu:hover::after {
    transform: rotate(180deg);
    border-top-color: var(--clrTextAccent);
}

header nav a {
    font-size: 24px;
}


.bottomPart {
    align-items: flex-start;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 15px;
}

header .tooltip {
    width: 200px;
    font-size: 14px;
    font-weight: 600;
    gap: 5px;
    top: calc(100% + 10px);
    left: calc(50% - 20px);
    box-shadow: 5px 5px 10px 0 rgba(0, 0, 0, 0.2);
}

header .tooltip:after {
    left: 40px;
}

header .tooltip a,
header .tooltip a:visited,
header .tooltip a:active {
    color: #000000;
}

header .tooltip a:hover {
    color: var(--clrAccent);
}

.langSelectWrap {
    display: inline-block;
    position: relative;
}


.buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: var(--fntUnb);
}

header .btn {
    padding-left: 1.5em;
    padding-right: 1.5em;
}

header .description {
    font-size: 12px;
    font-family: var(--fntUnb);
    font-weight: 300;
}

header .description a {
    text-decoration: underline;
}

@media screen and (min-width: 640px) {
    .burger {
        display: none;
    }

    .headerLogo {
        width: 55px;
        height: auto;
        display: block;
    }

    .headerLogoRed {
        display: none;
    }

    header {
        position: static;
        min-height: auto;
        overflow: visible;
        opacity: 1;
        width: auto;
    }

    header nav {
        margin-top: 55px;
    }

    header nav ul.nav {
        align-items: center;
    }

    header nav ul.nav a {
        font-size: 16px;
    }

    header .inner {
        align-items: center;
        height: auto;
        min-height: auto;
        padding-bottom: 55px;
    }

    header .close {
        display: none;
    }

    header .description {
        display: none;
    }

    header .submenu {
        font-size: 16px;
    }

    header .bottomPart {
        flex-grow: 0;
        align-items: center;
    }

    header .socials {
        display: none;
    }

    header .buttons {
        flex-direction: row;
        margin-top: 50px;
    }

    header .buttons .btn {
        width: 215px;
        text-align: center;
    }
}

@media screen and (min-width: 980px) {
    header {
        position: fixed;
        top: 5px;
        left: 0;
        right: 0;
        max-width: 940px;
        background: rgba(22, 22, 22, 0.80);
        border-radius: 16px;
        z-index: 990;
        display: flex;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        height: 55px;
        margin: 0 auto;
    }

    header .headerLogo {
        margin-right: 5px;
    }

    header nav a,
    header .submenu {
        font-size: 13px !important;
    }

    header .submenu {
        white-space: nowrap;
        text-wrap: nowrap;
        margin-right: 10px;
    }

    header a.submenu::after {
        left: calc(100% + 3px);
    }

    header .inner {
        flex-direction: row;
        gap: 15px;
        display: flex;
        align-items: center;
        align-content: center;
        padding: 0 20px;
        justify-content: space-between;
    }

    header nav ul.nav {
        flex-direction: row;
        margin-top: 0;
        gap: 15px;
    }

    header nav {
        margin-top: 0;
    }

    header .bottomPart {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        align-content: center;
        text-wrap: nowrap;
        white-space: nowrap;
    }

    header .buttons {
        margin-top: 0;
        align-items: center;
        align-content: center;
    }

    header .btn {
        width: auto !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        text-wrap: nowrap;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-family: var(--fntMon) !important;
    }
}

@media screen and (min-width: 1200px) {
    header {
        max-width: 1160px;
    }

    header .inner {
        padding: 0 30px;
    }

    header nav a,
    header .submenu {
        font-size: 15px !important;
    }

    header .submenu {
        margin-right: 20px;
    }

    header nav ul.nav {
        gap: 25px;
    }

    header .btn {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
