.mcg-contacts__section--form {
    background: var(--mcg-bg);
    border-top: 0.4px solid var(--mcg-line);
    border-bottom: 0.4px solid var(--mcg-line);
    padding: 80px 0 120px;
}

.mcg-contacts-form-layout {
    display: grid;
    grid-template-columns: 730px minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}

.mcg-contacts .mcg-contacts-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mcg-contacts .mcg-contacts-form__row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.mcg-contacts .mcg-contacts-form label {
    display: block;
    margin: 0;
}

.mcg-contacts .mcg-contacts-form__field {
    display: block;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    overflow: hidden;
    box-sizing: border-box;
}

.mcg-contacts .mcg-contacts-form__field--input {
    height: 48px;
    min-height: 48px;
    padding: 16px;
}

.mcg-contacts .mcg-contacts-form__field--select {
    position: relative;
    height: 48px;
    min-height: 48px;
    padding: 16px;
}

.mcg-contacts .mcg-contacts-form__field--textarea {
    padding: 16px;
    box-sizing: border-box;
}

.mcg-contacts .mcg-contacts-form__field--textarea textarea {
    height: 96px;
    min-height: 96px;
}

.mcg-contacts .mcg-contacts-form input,
.mcg-contacts .mcg-contacts-form select,
.mcg-contacts .mcg-contacts-form textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    outline: none;
    font-family: "HelveticaNeueCyr-Roman", sans-serif;
    font-size: 15px;
    line-height: 16px;
    color: var(--mcg-black);
    box-sizing: border-box;
    resize: vertical;
    letter-spacing: 0;
}

.mcg-contacts .mcg-contacts-form__field--input input {
    height: 16px;
    min-height: 16px;
}

.mcg-contacts .mcg-contacts-form__field--select select {
    height: 16px;
    min-height: 16px;
    appearance: none;
    padding-right: 24px;
    cursor: pointer;
}

.mcg-contacts .mcg-contacts-form input::placeholder,
.mcg-contacts .mcg-contacts-form textarea::placeholder,
.mcg-contacts .mcg-contacts-form select {
    color: var(--mcg-muted);
    opacity: 1;
}

.mcg-contacts .mcg-contacts-form__select::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 1px solid var(--mcg-muted);
    border-bottom: 1px solid var(--mcg-muted);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.mcg-contacts-form__footer {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 4px;
}

.mcg-contacts-form__agreement {
    flex: 1;
    font-size: 12px;
    line-height: 18px;
}

.mcg-contacts-button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 15px 20px;
    border: 0;
    border-radius: 5px;
    background: var(--mcg-light-blue);
    font-family: "HelveticaNeueCyr-Bold", sans-serif;
    font-size: 14px;
    line-height: 14px;
    color: #fff;
    cursor: pointer;
}

.mcg-contacts-direct {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 0;
    padding: 24px 24px 28px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.07);
}

.mcg-contacts-direct__block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mcg-contacts-direct__block:last-child {
    gap: 20px;
}

.mcg-contacts-direct__title {
    margin: 0 0 12px;
    font-family: "HelveticaNeueCyr-Medium", "HelveticaNeueCyr-Roman", sans-serif;
    font-size: 18px;
    line-height: 18px;
    color: var(--mcg-black);
}

.mcg-contacts-direct__block:last-child .mcg-contacts-direct__title {
    margin-bottom: 0;
}

.mcg-contacts-direct__phone {
    font-family: "HelveticaNeueCyr-Medium", "HelveticaNeueCyr-Roman", sans-serif;
    font-size: 20px;
    line-height: 20px;
    color: var(--mcg-black);
}

.mcg-contacts-direct__divider {
    height: 1px;
    background: var(--mcg-line);
}

.mcg-contacts-direct__emails {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
}

.mcg-contacts-direct__emails dt,
.mcg-contacts-direct__emails dd {
    margin: 0;
    font-size: 14px;
    line-height: 14px;
}

.mcg-contacts-direct__emails dt {
    margin-bottom: 12px;
    font-family: "HelveticaNeueCyr-Medium", "HelveticaNeueCyr-Roman", sans-serif;
    color: var(--mcg-text);
}

.mcg-contacts-direct__emails a {
    color: var(--mcg-link);
}

.mcg-contacts .is-mock-success {
    margin-top: 12px;
    font-family: "HelveticaNeueCyr-Roman", sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: var(--mcg-blue);
}

@media screen and (max-width: 1200px) {
    .mcg-contacts-form-layout {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 900px) {
    .mcg-contacts__section--form {
        padding: 48px 0;
    }

    .mcg-contacts .mcg-contacts-form__row {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 560px) {
    .mcg-contacts__section--form {
        padding: 24px 0;
    }

    .mcg-contacts-form-layout {
        gap: 8px;
    }

    .mcg-contacts .mcg-contacts-form {
        gap: 12px;
    }

    .mcg-contacts .mcg-contacts-form input,
    .mcg-contacts .mcg-contacts-form select,
    .mcg-contacts .mcg-contacts-form textarea {
        font-size: 14px;
    }

    .mcg-contacts-form__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-top: 0;
    }

    .mcg-contacts-form__agreement {
        font-size: 11px;
        line-height: 16px;
    }

    .mcg-contacts-button {
        width: 100%;
        min-height: 48px;
        padding: 17px 20px;
        font-size: 12px;
        line-height: 12px;
    }

    .mcg-contacts-direct {
        min-height: 0;
        gap: 20px;
        padding: 16px;
    }

    .mcg-contacts-direct__title {
        font-size: 16px;
        line-height: 18px;
    }

    .mcg-contacts-direct__phone {
        font-size: 16px;
        line-height: 16px;
    }
}
