html {
    scroll-behavior: smooth;
}
.termsLink{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    list-style: none;
    flex-wrap: wrap;
    margin: 25px 0 0 0;
    padding: 0;
    cursor: pointer;

}

.termsLink-item{
    background: none;
}

.termsLink-btn {
    padding: 0;
    margin: 0;
    background: none;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

.termsLink-btn:hover{
    background: none;
    border: none;
}

/* Стиль для фона попапа */
.custom-model-main {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* полупрозрачный черный фон */
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: #000;
}

/* Стиль для внутренней части попапа */
.custom-model-inner {
    background-color: white;
    padding: 20px;
    max-width: 80%;
    max-height: 80%;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
}

/* Кнопка закрытия попапа */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
}

/* Контейнер для содержания */
.pop-up-content-wrap {
    max-height: 500px;
    overflow-y: auto;
}

/* При показе попапа */
.model-open {
    display: flex;
}

/* Простой стиль для кнопки открытия попапа */
#openPopupBtn {
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

#openPopupBtn:hover {
    background-color: #0056b3;
}


@media (max-width: 768px) {
    .termsLink-btn {
        font-size: 14px;
        padding: 8px 16px;
    }

    .custom-model-inner {
        max-width: 95%;
        padding: 15px;
    }

    .pop-up-content-wrap h2 {
        font-size: 1.3rem;
    }

    /* Расположение кнопок попапа */
    .termsLink {
        flex-direction: column;
        align-items: center;
    }

    .termsLink-item {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .termsLink-btn {
        width: 100%;
        text-align: center;
    }

    /* Размер шрифта для текста попапа */
    .pop-up-content-wrap p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .termsLink-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .pop-up-content-wrap h2 {
        font-size: 1.2rem;
    }

    .pop-up-content-wrap p {
        font-size: 0.8rem;
    }

    .close-btn {
        font-size: 1.5rem;
    }
}

/* Стиль для попапа */
.data-processing-popup {
    display: none; /* Скрыть попап по умолчанию */
    position: fixed;
    bottom: 0;
    right: 0;
    width: 50%; /* Попап занимает половину экрана по ширине */
    height: auto;
    background: rgba(0, 0, 0, 0.7);
    justify-content: flex-end; /* Выравнивание по правому краю */
    z-index: 9999;
    padding: 20px;
}

.popup-inner {
    background: white;
    width: 100%;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    max-height: 80%; /* Ограничение высоты попапа */
    overflow-y: auto;
}

.popup-header h2 {
    margin-top: 0;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-btn {
    font-size: 1.5rem;
    cursor: pointer;
}

.popup-content p {
    font-size: 1rem;
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 15px;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

button:hover:not(:disabled) {
    background-color: #0056b3;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .data-processing-popup {
        width: 80%;
    }

    .popup-inner {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .data-processing-popup {
        width: 95%;
    }

    .popup-header h2 {
        font-size: 1.2rem;
    }

    button {
        font-size: 14px;
        padding: 8px 16px;
    }
}

