/* Базовые стили для умных попапов */
* {
    box-sizing: border-box;
}

/* Блокировка скролла для body */
body.modal-open {
    overflow: hidden;
    height: 100vh;
}

/* Оверлей */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    overflow-y: auto;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Основной контейнер модального окна */
.modal-container {
    background-color: #0A111D;
    border-radius: 10px;
    padding: 60px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 1234px;
    width: 90%;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    margin: auto;
}

.modal-overlay.active .modal-container {
    transform: scale(1);
}

/* Внутренний контейнер с колонками */
.modal-content-popup {
    display: flex;
    gap: 20px;
    height: 100%;
}

/* Кнопка закрытия */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Левая часть с изображением */
.modal-image {
    flex: 0 0 60%;
    background: linear-gradient(135deg, #1e88e5 0%, #42a5f5 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.person-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Правая часть с формой */
.modal-form {
    flex: 1;
    padding: 40px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 15px;
}

.form-title {
    font-family: "Bebas Neue", serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 100%;
    letter-spacing: 0.4px;
    vertical-align: middle;
    text-transform: uppercase;
    color: #0A111D;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 16px;
    color: #727786;
    margin-bottom: 20px;
}

/* Форма */
.form-group {
    margin-bottom: 15px;
}

.form-input {
    font-family: Roboto, serif;
    width: 100%;
    padding: 15px;
    border: 1px solid #71757C;
    border-radius: 7px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    color: #71757C;
}

.form-input:focus {
    border-color: #1e88e5;
}

.submit-button {
    font-family: Roboto, serif;
    width: 100%;
    padding: 15px;
    background-color: #ff5252;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 10px;
    margin-top: 10px;
}

.submit-button:hover {
    background-color: #f44336;
}

.cancel-button {
    font-family: Roboto, serif;
    width: 100%;
    padding: 15px;
    background-color: #bdbdbd;
    color: white;
    border: none;
    border-radius: 7px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 20px;
}

.cancel-button:hover {
    background-color: #9e9e9e;
}

.privacy-text {
    font-family: Roboto, serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0;
    color: #727786;
}

.privacy-text label {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

/* Кастомный чекбокс */
.custom-checkbox input {
    opacity: 0;
    position: absolute;
}

.custom-checkbox .checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #0A111D;
    border-radius: 4px;
    background-color: #ffffff;
    position: relative;
    vertical-align: middle;
    cursor: pointer;
    flex-shrink: 0;
}

.custom-checkbox input:checked + .checkmark {
    background-color: #ffffff;
    border-color: #0A111D;
}

.custom-checkbox input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 0;
    width: 6px;
    height: 12px;
    border: solid #0A111D;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox .checkbox-text {
    display: inline-block;
    vertical-align: middle;
    color: #727786;
    opacity: 0.7;
    font-family: Roboto, serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 150%;
    letter-spacing: 0;
}

.custom-checkbox .checkbox-text a {
    color: #F15454;
    text-decoration: none;
}

.custom-checkbox .checkbox-text a:hover {
    text-decoration: underline;
}

/* Стили для попапа соцсетей */
.modal-content-popup.social-popup {
    flex-direction: column;
}

.modal-content-popup.social-popup .modal-form {
    flex: none;
    padding: 40px;
}

/* Адаптивность для экранов меньше 768px */
@media (max-width: 768px) {
    .modal-container {
        padding: 30px;
        max-width: 95%;
    }

    .modal-content-popup {
        flex-direction: column;
        gap: 20px;
    }

    .modal-image {
        flex: none;
        min-height: 200px;
    }

    .modal-form {
        flex: none;
        padding: 30px 20px;
    }

    .form-title {
        font-size: 20px;
        text-align: center;
    }

    .custom-checkbox .checkmark {
        width: 20px;
        height: 20px;
    }

    .close-button {
        top: 5px;
        right: 5px;
    }
}

/* Стили для попапа соцсетей */
.social-modal .modal-container {
    max-width: 500px;
    padding: 0;
    background-color: #1a1a1a;
}

.social-content {
    display: flex;
    flex-direction: column;
}

.social-image {
    width: 100%;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    padding: 44px 30px 25px;
}

.social-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}
.social-modal .close-button{
    top: 10px;
    right: 10px;
}
.social-form {
    padding: 30px;
    color: white;
    text-align: left;
}

.social-title {
    font-family: "Bebas Neue", serif;
    font-size: 24px;
    font-weight: 400;
    color: white;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.social-subtitle {
    font-size: 16px;
    color: #b0b0b0;
    margin-bottom: 25px;
    line-height: 1.4;
}

.social-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.social-email-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: white;
    font-size: 14px;
    outline: none;
}

.social-submit-btn {
    padding: 12px 20px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.social-submit-btn:hover {
    background-color: #ff5252;
}

.social-networks {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon.telegram { background-color: #0088cc; }
.social-icon.vk { background-color: #4680c2; }
.social-icon.rutube { background-color: #ff0000; }
.social-icon.ok { background-color: #ee8208; }
.social-icon.pinterest { background-color: #bd081c; }
.social-icon.zen { background-color: #333333; }

/* Мобильная адаптация для соцсетей */
@media (max-width: 768px) {
    .social-modal .modal-container {
        max-width: 95%;
        margin: 20px auto;
    }

    .social-form {
        padding: 25px 20px;
        text-align: center;
    }

    .social-title {
        font-size: 20px;
        text-align: center;
    }

    .social-subtitle {
        text-align: center;
    }

    .social-form-row {
        flex-direction: column;
        gap: 15px;
    }

    .social-networks {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .social-icon {
        width: 45px;
        height: 45px;
    }
}
/**/

.privacy-text.privacy__text--politic{
        margin-bottom: 15px;
}