﻿
.lead-section .container {
    max-width: 1160px;
    margin: 0 auto;
    /*padding-left: 20px;
    margin-left: 20px;*/
    position: relative;
}

.lead-section {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    margin-bottom: 0;
    background: url(//cdn.specialist.ru/content/file/layouts/getCoursesCatalog/img/back-form.png) left center no-repeat;
    background-size: cover;
    padding: 24px 20px 0 20px;
}

    /*.lead-section:hover {
        z-index: 10000000780;
    }*/

.lead-top{
    display: flex;
    gap: 40%;
    /*justify-content: center;*/
    align-items: center;
    padding-bottom: 16px;
}

.lead-bottom {
    display: none;
    padding-bottom: 48px;
}

.lead-section.active .lead-bottom {
    display: block;
}
 
.lead-section p {
    color: #181818;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.6; /* 30.4px */
    margin-bottom: 30px;
}

        .page-section p:last-child {
            margin-bottom: 0;
        }


.page-button {
    display: block;
    border-radius: 8px;
    background: #FF6505;
    padding: 10px;
    color: white;
    border: 1px solid #FF6505;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    min-width: 230px;
    position: relative;
}

    .page-button:hover {
        background: #fff;
        color: #FF6505;
        transition: 0.3s;
    }

    
.lead-section.active .page-button.toggleForm {
    background: transparent;
    border: transparent;
    color: white;

}

.lead-section.active .page-button.toggleForm:hover {
    text-decoration: underline;
}
    .form2-block-header {
        color: #FFF;
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 6px;
    }

.page-section .form2-block-text {
    color: #FFF;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
}

.form2-flex {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-areas: "a b c d e";
    gap: 4px;
}

    .form2-flex input {
        display: block;
        padding: 16px 6px 16px 20px;
        border-radius: 8px;
        border: none;
    }



.get-catalog-popup .modal-body {
    background: #fff;
    max-width: 480px;
}

.get-catalog-popup h3 {
    color: #2E2E2E;
    text-align: center;
    font-size: 40px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 16px;
}

.get-catalog-popup .modal-text {
    margin-bottom: 30px;
}

.get-catalog-popup p {
    color: rgba(46, 46, 46, 0.70);
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.get-catalog-popup .page-button {
    margin: 0 auto;
    padding: 10px 40px;
}

.get-catalog-popup-inputs-block {
    margin-bottom: 30px;
}

    .get-catalog-popup-inputs-block input {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        border-radius: 8px;
        background: #EFF2F7;
        padding: 20px;
        border: none;
    }

        .get-catalog-popup-inputs-block input:focus, .form2-flex input:focus {
            outline: 1px solid #FF6505;
        }

.get-catalog-popup.after-send-popup h3 {
    font-size: 24px;
}

.get-catalog-popup .bottom-modal-text {
    padding-top: 10px;
    margin-bottom: 0;
}

.lead-close {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;   
    background:#2580C3;
    color: #fff;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-close:hover {
    transform: scale(1.1);
}







    @media (max-width: 1800px) {
        .lead-top {
            gap: 30%;
        }
    }

@media (max-width: 1550px) {
    .lead-section:not(.active):hover .lead-top {
        padding-bottom: 40px;
    }

}

    @media (max-width: 1250px) {
        .lead-close {
            right: 100px;
            top: -50px;
        }

        
    }

    @media (max-width: 1050px) {
        .form2-flex {
            grid-template-columns: repeat(2, 1fr);
            grid-template-areas:
                "a b"
                "c d"
                "e e";
        }

        .lead-top {
            gap: 20px;
        }
    }

    @media (max-width: 600px) {
        .form2-flex {
            grid-template-columns: 1fr;
            grid-template-areas: "a" "b" "c" "d" "e";
        }

        .lead-top {
            gap: 20px;
        }

        .lead-section:not(.active):hover .lead-top {
            padding-bottom: 20px;
        }
    }

    @media (max-width: 480px) {
        .page-section p {
            font-size: 16px;
        }

        .form2-block {
            padding: 20px;
        }

        .form2-block-header {
            font-size: 24px;
        }

        .page-section .form2-block-text {
            font-size: 16px;
        }

        .get-catalog-popup h3 {
            font-size: 24px;
            margin-bottom: 8px;
        }

        .get-catalog-popup .modal-body {
            padding-left: 24px;
            padding-right: 24px;
            max-height: 100vh;
            overflow: auto;
        }

        .get-catalog-popup p {
            font-size: 14px;
        }

        .lead-top {
            flex-direction: column;
        }
    }

