.contacts {
    background-color: #f7f1d5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 90px 50px 170px 50px;
    box-sizing: border-box;
}

.contacts_title {
    font-family: "Inter", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 36px;
    line-height: 38px;
    color: #4a3d03;
}

.contacts_main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
    width: 100%;
    margin-top: 50px;
    box-sizing: border-box;
}

.contacts_leftpart {
    min-width: 30%;
    height: 608px;
    background: #ecc30b;
    border-radius: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 35px;
    gap: 28px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.contacts_leftpart_title {
    margin-top: 20px;
    box-sizing: border-box;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 28px;
    line-height: 34px;
    color: #fff;
}

.contacts_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    flex: none;
    order: 1;
    flex-grow: 0;
}

.contacts_number_messenger {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 34px;
}

.contacts_number {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.contacts_messengers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.contacts_phone_mail {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 24px;
    color: #fff;
}

.contacts_rightpart {
    min-width: 50%;
    height: 608px;
    background: #ecc30b;
    border-radius: 80px;
    padding: 40px 35px;
    box-sizing: border-box;
    transition: all 0.2s;
}

.contacts_rightpart_main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0px;
    height: 100%;
    justify-content: space-around;
    box-sizing: border-box;
}

.twosegmentblock {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
}

.twosegment input {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: #4a3d03;
    border: none;
    padding: 8px 0;
    background-color: #ecc30b;
    border-bottom: 1px solid #4a3d03;
}

.twosegment input:focus {
    outline: none;
}

.onesegment input {
    width: 100%;
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    border: none;
    padding: 8px 0;
    background-color: #ecc30b;
    color: #4a3d03;
    border-bottom: 1px solid #4a3d03;
}
.onesegment {
    width: 76%;
}
.onesegment input:focus {
    outline: none;
}

.sendbutton {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 18px 95px;
    gap: 10px;
    background: #ffffff;
    border-radius: 80px;
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    color: #4a3d03;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.sendbutton:hover {
    background-color: #15428659;
    color: white;
    transition: all 0.2s;
}
.contacts_messengers-1080 {
    display: none;
}

@media screen and (max-width: 1200px) {
    .contacts {
        padding: 50px 90px 100px 90px;
    }
    .contacts_title {
        font-size: 32px;
    }
    .contacts_main {
        flex-direction: column;
        height: 100%;
    }
    .contacts_leftpart {
        height: 400px;
        min-width: 50%;
    }
    .contacts_leftpart_title {
        font-size: 24px;
    }
    .contacts_rightpart {
        min-width: 50%;
    }
    .twosegment input {
        width: 150px;
    }
    .contacts_info {
        align-items: center;
        gap: 45px;
    }
    .contacts_messengers {
        display: none;
    }
    .contacts_messengers-1080 {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
}
@media screen and (max-width: 960px) {
    .contacts_rightpart,
    .contacts_leftpart {
        border-radius: 60px;
        box-sizing: border-box;
    }
    .contacts_phone_mail {
        font-size: 16px;
    }
    .contacts_leftpart_title {
        font-size: 20px;
    }
    .twosegmentblock {
        flex-direction: column;
        justify-content: space-between;
        height: 22%;
    }
    .onesegment {
        width: auto;
    }
    .twosegment,
    .onesegment {
        min-width: 232px;
        padding: 0 40px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }
    .twosegment input,
    .onesegment input {
        width: 100%;
    }
    .sendbutton {
        padding: 18px 55px;
    }
}
