

.site-header {
    position: fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: linear-gradient(
        180deg,
        rgb(32, 32, 35),
        rgb(18, 18, 20)
    );

    border-bottom: 1px solid rgb(60, 60, 65);
    box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;   

    display: flex;
    align-items: center;
    justify-content: space-between;

    height: 60px;       
}



.site-logo {
    display: flex;
    position: relative;
    align-items: center;
}

.wrap-link{
    position:absolute;
    top: 0;
    left: 30px;
    width: 137px;
    height: 95px;
    z-index: 10;
    clip-path: inset(33px 0 0 0);
}

.site-logo img {
    width: 200px;
    height: auto;
    margin-top: 3px;
}

.site-title {
    line-height: 1.1;
    font-weight: 700;
    margin-left: -153px;
    margin-top: 47px;
}

.title-white {
    color: white;
    font-size: 18px;
}

.title-red {
    color: rgb(220, 60, 60);
    font-size: 18px;
}

.site-nav {
    display: flex;
    gap: 24px;
}

.site-nav a {
    color: rgb(220, 220, 225);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;

    padding: 6px 8px;
    border-radius: 4px;

    transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
    background-color: rgb(55, 55, 60);
    color: white;
}

.site-select-lang {
    position: relative;
    margin-left: 15px;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;

    background: rgb(40,40,45);
    border: 1px solid rgb(70,70,75);

    padding: 6px 10px;
    border-radius: 6px;

    color: white;
    font-size: 13px;

    cursor: pointer;
}

.lang-current img {
    width: 16px;
    height: 12px;
}

.lang-current:hover {
    background: rgb(55,55,60);
}



.lang-dropdown {
    position: absolute;
    top: 36px;
    right: 0;

    background: rgb(32,32,35);
    border: 1px solid rgb(70,70,75);
    border-radius: 6px;

    min-width: 150px;

    display: flex;
    flex-direction: column;

    overflow-y: auto;
    overflow-x: hidden;

    max-height: 280px;

    box-shadow: 0 4px 10px rgba(0,0,0,0.35);

    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    pointer-events: none;
    visibility: hidden;

    transition: 
        opacity 0.18s ease,
        transform 0.18s ease;

}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 8px 10px;

    color: rgb(220,220,225);
    text-decoration: none;
    font-size: 13px;

    transition: background 0.15s;
}

.lang-dropdown a img {
    width: 16px;
    height: 12px;
}

.lang-dropdown a:hover {
    background: rgb(55,55,60);
}


.site-select-lang.open .lang-dropdown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}



.site-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;

    width: 28px;
    height: 22px;

    cursor: pointer;
}

.site-burger span {
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;

    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-burger.open span:nth-child(2) {
    opacity: 0;
}

.site-burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }
    body.lang-open {
        overflow: hidden;
    }
    .site-burger {
        display: flex;
    }

    .site-nav {
        position: fixed;

        top: 77px;
        left: 0;

        width: 100%;
        height: calc(100vh - 77px);

        background: rgb(22,22,25);

        display: flex;
        flex-direction: column;

        align-items: center;

        gap: 22px;

        transform: translateX(-100%);
        transition: transform 0.3s ease;

        z-index: 900;
    }

    .site-nav.open {
        transform: translateX(0);
    }

    .site-nav a {
        font-size: 22px;
        padding: 12px 0;
        text-align: center;
    }


    .site-select-lang {
        position: static;
    }

    .lang-dropdown {

        position: fixed;

        top: 77px;
        left: 0;

        width: 100%;
        height: calc(100vh - 77px);

        max-height: none;

        background: rgb(22,22,25);

        align-items: center;

        gap: 20px;

        font-size: 20px;

        overflow-y: auto;
        overflow-x: hidden;

        -webkit-overflow-scrolling: touch;

    }

    .lang-dropdown a {
        font-size: 20px;
        padding: 14px 20px;
        width: auto;
    }

    .lang-dropdown a img {
        width: 22px;
        height: 16px;
    }

}

