:root {
    --color-use-gray-head: #A4A4A4;
    --color-gray-head: #696969;
}

.header__languages {
    display: flex;
    justify-content: flex-end;
    position: absolute;
    top: -40px;
    z-index: 50;
    right: 0;
    font-size: 18px;
    color: #102d69;
}

.header__languages-container {
    position: relative;
    background-color: white;
    z-index: 5;
    transition: 0.2s;
    width: fit-content;
}

.header__languages-location {
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.header__languages-location-img {
    display: block;
    width: 20px;
    height: 20px;
}

.header__languages-location-vector {
    display: block;
    width: 15px;
    height: 20px;
}
.header__languages-container:is(.header__languages--open) .header__languages-location-vector {
    transform: scaleY(-1);
}

.header__languages-list {
    position: absolute;
    flex-direction: column;
    background-color: white;
    width: max-content;
    padding: 0 10px 20px 10px;
    border-radius: 0 0 16px 16px;
}
.header__languages-container:not(.header__languages--open) .header__languages-list {
    display: none;
}

.header__languages-list-item {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 0 10px 0 14px;
}

/*
.header__languages-list-check {
    display: block;
    width: 17px;
    height: 17px;
    margin-right: 5px;
    opacity: 0;
    transition: 0.2s;
}
*/

.header__languages-list a {
    color: inherit;
    font-size: inherit;
}

.header__languages-list-item:hover {
    cursor: pointer;
    color: var(--color-use-gray-head);
}

/*
.header__languages-list-item:hover .header__languages-list-check {
    opacity: 1;
}
*/

@media (max-width: 1000px) {
    .header__languages {
        right: 30px;
        top: 8px;
    }
    .header__languages-location-vector {
        width: 13px;
    }
}

@media (max-width: 500px) {
    .header__languages {
        top: 3px;
    }
}
