body {
    margin: 0;
    padding: 0;
}

.page {
    display: flex;
    min-height: 100vh;
}

/* Фиксируем позицию body, которую меняет панель гугла*/

.page_fix {
    top: 0 !important;
    position: static !important;
}

/* Прячем панель гугла */

.skiptranslate {
    display: none !important;
}

/* language */

.language {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.language__img {
    margin: 2px;
    cursor: pointer;
    opacity: .5;
    width: 30px;
}

.language__img:hover,
.language__img_active {
    opacity: 1;
}

/* content */

.content {
    text-align: center;
    margin: auto;
}
/* Удалите старые стили .language или закомментируйте их */
/*
.language {
    position: fixed;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.language__img {
    margin: 2px;
    cursor: pointer;
    opacity: .5;
    width: 30px;
}

.language__img:hover,
.language__img_active {
    opacity: 1;
}
*/

/* Новые стили для селектора языка */
.language-selector {
    position: relative;
    display: inline-block;
}

.language-selector__trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #999;
}

.lang-select {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.language-selector__current {
    font-weight: 500;
}

.language-selector__icon {
    transition: transform 0.2s ease;
}

.language-selector__trigger.active .language-selector__icon {
    transform: rotate(180deg);
}

/* Модальное окно */
.language-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.language-modal.active {
    opacity: 1;
    visibility: visible;
}

.language-modal__content {
    background: white;
    max-width: 480px;
    min-width: 400px;
    overflow: hidden;
    padding: 30px 60px 40px;
}

.language-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-modal__title {
    text-align: center;
    font-size: 36px;
    line-height: 50px;
    font-family: "Intro";
    font-weight: 300;
    margin: 0;
}

.language-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.language-modal__close:hover {
    background: #f5f5f5;
    color: #333;
}

.language-modal__list {

}

.language-modal__item {
    display: flex;
    justify-content: center;
    border: solid 1px #dedede;
    align-items: center;
    width: 100%;
    margin-top: 16px;
    padding: 16px 0 17px;
    cursor: pointer;
    text-align: center;
    background: transparent;
    transition: background 0.2s ease;
}

.language-modal__item:hover {
    background: #f8f9fa;
}

.language-modal__text {
    font-size: 16px;
    color: #333;
}
.lang-select-footer{
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.language-modal__check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
}

.language-modal__item.active {
    background: #6f0824;
    border: solid 1px #6f0824;
}

.language-modal__item.active .language-modal__text {
    color: white;
    font-weight: 500;
}

.language-modal__item.active .language-modal__check {
    opacity: 1;
}

@media (max-width: 768px) {
    .language-modal__content{
        padding: 20px 30px;
        width: 90%;
        max-width: initial;
        min-width: initial;
    }
}