.contacts__info {
    display: grid;
    width: 100%;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.contacts .contacts__main-info, .contacts .contacts__requisites, .contacts .contacts__map-section, .contacts .contacts__form-section {
    padding: 30px 20px;
    background-color: #F8F8F8;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.contacts .contacts__form-section {
    margin-top: 26px;
}

.contacts .contacts__map-section {
    margin: 26px 0;
}

.contacts .contacts__main-info {
    gap: 24px;
}

.contacts .contacts__requisites-title {
    margin-bottom: 14px;
}

.contacts__main-info .contacts__main-info--phone, .contacts__requisites .contacts__requisites--phone-icon, .contacts__map-section .contacts__map-section--icon, .form__submit-icon {
    position: absolute;
    width: 25.5px;
    height: 25.5px;
    top: 20px;
    right: 28px;
}

.contacts .contacts__requisites-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    line-height: 32px;
}

.contacts .contacts__phone-title, .contacts .contacts__email-title, .contacts .contacts__time-title {
    color: #3B454C;
    font-weight: 300;
    font-size: 16px;
    margin-bottom: 4px;
}

.contacts .contacts__requisites-item-title, .contacts .contacts__phone-value, .contacts .contacts__email-value, .contacts .contacts__time-value {
    font-weight: 700;
    font-size: 18px;
    line-height: 105%;
    color: #1D222F;
}

.contacts__requisites .file {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.contacts__requisites--socials {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.contacts__requisites--socials .button-social {
    display: block !important;
    position: static !important;
    width: 30px;
    height: 30px;
}

.contacts__requisites .file__icon {
    width: 24px;
    height: 24px;
}

.contacts__requisites .file__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.contacts__requisites .file__info-title {
    color: #1D222F;
    font-weight: 400;
    font-size: 14px;
}

.contacts__requisites .file__info-size {
    color: #80909A;
    font-weight: 400;
    font-size: 14px;
}

.contacts .contacts__requisites-title, .contacts__address, .contacts__form-section .form__title {
    color: #1D222F;
    font-weight: 700;
    font-size: 18px;
    text-transform: uppercase;
}

.contacts .contacts__requisites-file {
    margin-top: 12px;
}

.contacts__map-section .contacts__address, .contacts__form-section .form__title {
    text-transform: unset;
}

.contacts__map-section .contacts__map-button {
    color: #3B454C;
    font-weight: 700;
    font-size: 14px;
    margin-top: 5px;
    cursor: pointer;
    width: fit-content;
    text-decoration: underline;
}

.contacts iframe {
    border-radius: 20px;
}

.contacts__form-section .form__field {
    border: 0.5px solid #E2E6E9;
    border-radius: 8px;
    padding: 17px;
    gap: 10px;
    font-weight: 400;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.contacts__form-section .form__columns {
    margin: 26px 0;
    display: grid;
    width: 100%;
    gap: 24px;
    grid-template-columns: 1fr 1fr;
}

.contacts__form-section .form__column--left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contacts textarea {
    resize: none;
}

.contacts__form-section .form__upload-icon {
    width: 24px;
    height: 24px;
    margin-right: 6px;
}

.contacts__form-section .form__upload-text {
    color: #80909A;
    font-weight: 400;
    font-size: 14px;
}

.contacts__form-section .form__upload-label {
    border: 1px solid #80909A;
    padding: 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 26px;
}

.contacts__form-section .form__submit {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.contacts__form-section .form__submit-button {
    order: 1;
    background-color: #ED1B24;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    margin-right: 24px;
    border: none;
}

.contacts__form-section .form__submit-text {
    order: 2;
    color: #80909A;
    font-size: 14px;
    font-weight: 400;
}

.contacts .file-upload__name {
    color: #3B454C;
    font-size: 12px;
    font-weight: 400;
}

.contacts .file-upload__meta, .contacts .file-upload__remove {
    font-style: italic;
    color: #80909A;
    font-size: 12px;
    font-weight: 400;
}

.contacts .file-upload__remove {
    border: none;
    cursor: pointer;
    background: none;
}

.form__field-wrapper {
    position: relative;
}

.form__label {
    position: absolute;
    transform: translate(0, -50%);
    top: 50%;
    left: 20px;
    font-size: 12px;
    color: #666;
    margin: 0;
}

.form__label-required {
    color: #E95F5F;
}

.form__label.form__label--hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

.form__error {
    color: #E95F5F;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 5px;
    animation: fadeIn 0.3s ease;
}

.form__field--comment {
    height: 100%;
}

.form__field--error {
    border-color: #E95F5F !important;
}

.form__field--error:focus {
    border-color: #E95F5F !important;
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.1);
}

.form__field-wrapper:has(.form__field--error) .form__label {
    top: 34% !important;
}

.contacts-success__text {
    color: green;
}

.form__field-wrapper:has(#form-phone):hover .form__label,
.form__field-wrapper:has(.form__field--phone):hover .form__label {
    opacity: 0;
    visibility: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .contacts__info, .contacts__form-section .form__columns {
        grid-template-columns: 1fr;
    }

    .contacts__form-section .form__columns {
        gap: 14px;
    }

    .form__column.form__column--left {
        gap: 4px;
    }

    .contacts__form-section .form__submit-button {
        order: 2;
        margin-right: 0;
        width: 260px;
        height: 44px;
        margin-top: 24px;
    }

    .contacts__form-section .form__submit-text {
        order: 1;
    }

    .contacts .contacts__map-section, .contacts .contacts__form-section {
        margin: 16px 0;
    }

    .contacts .contacts__form-section {
        padding: 24px 20px 22px 20px;
    }

    .contacts__form-section .form__submit {
        flex-direction: column;
    }

    .contacts .contacts__map-section, .contacts .contacts__form-section {
        padding: 20px;
    }

    .contacts__form-section .form__field--comment {
        height: 100px;
    }

    .contacts .contacts__main-info, .contacts .contacts__requisites {
        padding: 30px 20px;
    }
}

@media (max-width: 390px) {
    .contacts__map-section .contacts__address {
        max-width: 175px;
    }

    .contacts__main-info--phone, .contacts__requisites .contacts__requisites--phone-icon {
        top: 20px;
        right: 18px;
    }
}