header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 75px;
    position: -webkit-sticky; /* Для поддержки Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
}

#key-message {
	color: red
}

#site-header {
    transition: background-color 0.5s ease; 
    background-color: #00000080; 
}

#site-header.scrolled,
#bg-black-login.scrolled,
#bg-black-burger.scrolled {
    background-color: #000000;
}

.fs-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 calc(3em + 10px);

}

.fs-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fs-logo {
    width: 300px;
    height: auto;
}

.fs-log-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.fs-log-nav div {
    cursor: pointer;
}


.fs-log-nav svg {
    width: 100%;
    height: 100%;
}

.fs-log-nav svg path{
    fill: #808080;
}

.fs-log{
    width: 30px;
    height: 30px;
}

.fs-burger{
    width: 40px;
    height: 40px;
}

.popup-window {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    height: auto;
    background: #00000080;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
    border-radius: 0 0 12px 12px;
}

.popup-login {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    height: auto;
    background:  #00000080;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    display: none;
    border-radius: 0 0 12px 12px;
}

.close-btn {
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    cursor: pointer;
    width: 20px;
    height: auto;
}

.popup-window ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.popup-window ul li {
    list-style: none;
}

.popup-window  nav ul li a {
    color: var(--white);
    font-size: 20px;
    font-weight: 500;
    line-height: 44.15px;
    transition: all 0.5s ease-in-out;
}

.popup-window  nav ul li a:hover{
    color: var(--red);
}


.key-box {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

.key-box p {
    color: var(--white);
    font-size: 20px;
    font-weight: 500;
}

.key-box span {
    color: var(--white);
    font-size: 24px;
    font-weight: 500;
    transition: all 0.5s ease-in-out;
    cursor: pointer
}

.key-box span:hover{
    color: var(--red);
}

.key-box input {
    border: 1px solid var(--grey);
    border-radius: 5px;
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
    background: var(--grey);
    height: 20px;
    padding: 5px 10px;
}

.key-box input:focus-visible{
    outline: none;
}

.key-box input::placeholder{
    color: var(--white);
    font-size: 16px;
    font-weight: 400;
}

.slideOutUp{
    display: none;
}

.slideInDown{
    display: block;
}

@media (max-width: 555px){
    .fs-nav{
        padding: 0 20px;
    }

    .fs-logo {
        width: 200px;
        /* height: auto; */
    }

    .fs-log {
        width: 25px;
        height: 25px;
    }

    .fs-burger {
        width: 35px;
        height: 35px;
    }

    .popup-window,
    .popup-login{
        width: 100%;
    }


}


