/* Универсальное модальное окно */

.form-button {
    width: 100% !important;
}

.form-label {
    margin-bottom: 20px !important;
}

.form__section {
    max-width: 1220px;
    margin: 0 auto;
    margin-bottom: 100px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal__container {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 960px;
    max-height: 90vh;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    overflow: hidden;
    background-color: #fff;
}

.modal.active .modal__container {
    transform: scale(1) translateY(0);
}

.modal__content {
    position: relative;
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    cursor: pointer;
    padding: 5px;
    z-index: 10;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;

    transform: rotate(45deg);
}

.modal__close:hover {
    transform: rotate(-45deg);
}

.modal__close svg {
    width: 27px;
    height: 26px;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.modal__close:hover svg {
    transform: rotate(225deg);
}

.modal__header {
    margin-bottom: 20px;
    text-align: left;
}

.modal__title {
    font-size: 32px;
    font-weight: 400;
    color: #000;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.2;
}

.modal__body {
    color: #000;
    font-size: 14px;
    line-height: 1.4;
}

.modal__text {
    word-wrap: break-word;
}

.modal__text p {
    margin-bottom: 8px;
}

.modal__text p:last-child {
    margin-bottom: 0;
}

.modal__text a {
    color: #177cd8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.modal__text a:hover {
    color: #0e4981;
    text-decoration: underline;
}

.modal__text ul,
.modal__text ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.modal__text li {
    margin-bottom: 8px;
}



/* Адаптивность */
@media (max-width: 768px) {
    .modal__container {
        width: 95%;
        max-width: none;
    }

    .modal__content {
        padding: 30px 20px;
    }

    .modal__title {
        font-size: 24px;
    }

    .modal__body {
        font-size: 16px;
    }

    .modal__close {
        top: 15px;
        right: 15px;
    }
}