@media (min-width: 1281px){
    #section_5{
        width: 100%;
        height: 700px;
        background-color: #2C2C2C;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .section_5-container{
        width: 70%;
        height: 500px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .section_5_text-container{
        width: 42%;
        height: 70%;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    
    }
    
    .text1{
        font-family: Nunito;
        font-size: 40px;
        font-weight: 500;
        line-height: 44px;
        color: #FFFFFF;
    }
    
    .text2{
        font-family: Nunito;
        font-size: 20px;
        font-weight: 300;
        line-height: 24px;
        color: #FFFFFF;
    }
    
    .contacts{
        width: 100%;
        height: 90px;
        color: #FFFFFF;
        font-family: Nunito;
        font-size: 20px;
        font-weight: 300;
        line-height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .contacts span{
        margin-left: 10px;
    }
    
    .section_5-form-container{
        z-index: 100;
        width: 35%;
        height: 100%;
    }

    .form-container{
        border-radius: 16px;
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #FFFFFF;
    }

    .form{
        border-radius: 16px;
        height: 90%;
        width: 90%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .form p{
        font-family: Ubuntu;
        font-size: 1.8vw;
        font-weight: 400;
        line-height: 44px;
        color: #2C2C2C;
    }

    .form-textAndBtn-container{
        width: 90%;
        display: flex;
        flex-direction: column;
    }
    
    .form-textAndBtn-container span{
        font-family: Nunito;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        color: #2C2C2C;
    }
    
    .form-textAndBtn-container input{
        font-family: Nunito;
        font-size: 16px;
        color: #898989;
        padding: 12px 16px 12px 16px;
        width: 100%;
        border: solid 0.5px;
        border-radius: 12px;
        margin-top: 5px;
    }
    
    .form-btn{
        width: 90%;
    }

    .form-btn button{
        font-family: Nunito;
        font-size: 16px;
        font-weight: 700;
        line-height: 20px;
        padding: 15px 70px 15px 70px;
        width: 100%;
        border: solid 0.5px;
        border-radius: 8px;
        background-color: #2C2C2C;
        color: white;
        margin-top: 30px;
        border: solid 2px #2C2C2C;
    }
    
    .form-btn button:hover{
        background-color: #FFFFFF;
        border: solid 2px #2C2C2C;
        color: #2C2C2C;
        transition: 0.5s;
    }
    
    /* Хайлайт формы после прокрутки */
    .highlight {
        animation: highlightAnimation 1s ease-in-out;
      }
      
    @keyframes highlightAnimation {
        0% { background-color: black; }
    }
}

@media (min-width: 600px) and (max-width: 1280px){
    #section_5{
        width: 100%;
        height: 700px;
        background-color: #2C2C2C;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .section_5-container{
        width: 88%;
        height: 500px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .section_5_text-container{
        width: 42%;
        height: 70%;
        display: flex;
        justify-content: space-between;
        flex-direction: column;
    }
    
    .text1{
        font-family: Nunito;
        font-size: 3.5vw;
        font-weight: 500;
        line-height: 44px;
        color: #FFFFFF;
    }
    
    .text2{
        font-family: Nunito;
        font-size: clamp(12px, 1.6vw, 24px);
        font-weight: 300;
        line-height: 24px;
        color: #FFFFFF;
    }
    
    .contacts{
        width: 100%;
        height: 90px;
        color: #FFFFFF;
        font-family: Nunito;
        font-weight: 300;
        line-height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .contacts span{
        font-size: clamp(12px, 1.8vw, 24px);
        margin-left: 10px;
        color: #FFFFFF;
    }
    
    .section_5-form-container{
        width: 45%;
        height: 100%;
    }
    
    .form-container{
        border-radius: 16px;
        height: 100%;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #FFFFFF;
    }

    .form{
        border-radius: 16px;
        height: 90%;
        width: 90%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .form p{
        font-family: Ubuntu;
        font-size: 2.8vw;
        font-weight: 400;
        line-height: 44px;
        color: #2C2C2C;
    }

    .form-textAndBtn-container{
        width: 90%;
        display: flex;
        flex-direction: column;
    }
    
    .form-textAndBtn-container span{
        font-family: Nunito;
        font-size: 14px;
        font-weight: 400;
        line-height: 20px;
        color: #2C2C2C;
    }
    
    .form-textAndBtn-container input{
        font-family: Nunito;
        font-size: 16px;
        color: #898989;
        padding: 12px 16px 12px 16px;
        width: 100%;
        border: solid 0.5px;
        border-radius: 12px;
        margin-top: 5px;
    }
    
    .form-btn{
        width: 90%;
    }

    .form-btn button{
        font-family: Nunito;
        font-size: 16px;
        font-weight: 700;
        line-height: 20px;
        padding: 15px 70px 15px 70px;
        width: 100%;
        border: solid 0.5px;
        border-radius: 8px;
        background-color: #2C2C2C;
        color: white;
        margin-top: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        border: solid 2px #2C2C2C;
    }
    
    .form-btn button:hover{
        background-color: #FFFFFF;
        border: solid 2px #2C2C2C;
        color: #2C2C2C;
        transition: 0.5s;
    }
    
    /* Хайлайт формы после прокрутки */
    .highlight {
        animation: highlightAnimation 1s ease-in-out;
      }
      
    @keyframes highlightAnimation {
        0% { background-color: black; }
    }
}

@media (max-width: 600px) {
    #section_5 {
        width: 100%;
        background-color: #2C2C2C;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 40px 0;
    }

    .section_5-container {
        width: 90%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .section_5_text-container {
        width: 100%;
        margin-top: 20px;
        margin-bottom: 40px;
        text-align: center;
        display: block;
    }

    .text1 {
        font-family: Nunito, sans-serif;
        font-size: clamp(18px, 9vw, 34px);
        font-weight: 500;
        color: #FFFFFF;
        margin-bottom: 20px;
    }

    .text2 {
        font-family: Nunito, sans-serif;
        font-size: clamp(12px, 4vw, 18px);
        font-weight: 300;
        color: #FFFFFF;
        margin-top: 10px;
    }

    .contacts {
        width: 100%;
        color: #FFFFFF;
        font-family: Nunito, sans-serif;
        font-size: 1rem;
        line-height: 1.5;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .contacts img {
        width: 24px;
        height: 24px;
    }

    .section_5-form-container {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .form-container {
        width: 100%;
        max-width: 400px;
        background-color: #FFFFFF;
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .form {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .form p {
        font-family: Ubuntu, sans-serif;
        font-size: clamp(18px, 6vw, 34px);
        font-weight: 400;
        color: #2C2C2C;
        text-align: center;
        margin-bottom: 10px;
    }

    .form-textAndBtn-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .form-textAndBtn-container span {
        font-family: Nunito, sans-serif;
        font-size: 0.875rem;
        font-weight: 400;
        color: #2C2C2C;
    }

    .form-textAndBtn-container input {
        font-family: Nunito, sans-serif;
        font-size: 1rem;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 8px;
    }

    .form-btn {
        display: flex;
        justify-content: center;
    }

    .form-btn button {
        font-family: Nunito, sans-serif;
        font-size: 1rem;
        font-weight: 700;
        padding: 12px;
        width: 100%;
        background-color: #2C2C2C;
        color: white;
        border-radius: 8px;
        border: none;
        cursor: pointer;
        transition: background-color 0.3s, color 0.3s;
        border: 2px solid #2C2C2C;
    }

    .form-btn button:hover {
        background-color: white;
        color: #2C2C2C;
        border: 2px solid #2C2C2C;
        transition: 0.5s;
    }
    /* Хайлайт формы после прокрутки */
    .highlight {
        animation: highlightAnimation 1s ease-in-out;
      }
      
    @keyframes highlightAnimation {
        0% { background-color: black; }
    }
}

    
    