.consult {
    position: relative;
    height: 627px;
    overflow: hidden;
    background-color: #E8E8EA;
}

.consult__container {
    position: relative;
    max-width: 1440px;
    height: 100%;
    margin: 0 auto;
}

/* Фоновое изображение */
.consult__image {
    position: absolute;
    inset: 0;
}

.consult__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left top;
}

/* Форма */
.consult__form {
    position: absolute;
    top: 50%;
    right: 80px;
    transform: translateY(-50%);
    width: 461px;
    background: #fff;
    border-radius: 24px;
    padding: 30px 34px;
    box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 27px;
}

/* Заголовок */
.consult__title {
    font-family: "Evolventa", sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
}

.consult__title_accent {
    color: #229DA4;
}

/* Поля формы */
.consult__fields {
    display: flex;
    flex-direction: column;
    gap: 44px;
}

.consult__inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.consult__input {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
    padding: 10px;
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #000;
    background: transparent;
    outline: none;
}

.consult__input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.consult__input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.consult__error {
    display: none;
    padding: 0 11px;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #FF2600;
}

.consult__input-group_invalid .consult__input {
    border-bottom-color: #FF2600;
    color: #FF2600;
}

.consult__input-group_invalid .consult__error {
    display: block;
}

/* Кнопка и политика */
.consult__submit-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.consult__button {
    width: 100%;
    height: 50px;
    background: #20C6D0;
    border: none;
    border-radius: 12px;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    cursor: pointer;
}

.consult__privacy {
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: #3B3B3B;
}

.consult__privacy-link {
    color: #229DA4;
    text-decoration: none;
}

@media (max-width: 1023px) {
    .consult__image img {
        object-position: -50% top;
    }
}

/* ===== Мобильная версия ===== */
@media (max-width: 767px) {
    .consult {
        height: auto;
        padding: 20px 16px;
    }

    .consult__container {
        display: flex;
        flex-direction: column;
    }

    .consult__image {
        display: none;
    }

    .consult__form {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
        border-radius: 20px;
        padding: 20px 16px;
        gap: 27px;
        box-shadow: 0px 3px 16px 0px rgba(0, 0, 0, 0.08);
    }

    .consult__title {
        font-size: 20px;
    }

    .consult__fields {
        gap: 44px;
    }

    .consult__input {
        font-size: 16px;
    }

    .consult__button {
        min-height: 50px;
        font-size: 16px;
        background: #20C6D0;
    }
}