.contacts {
    margin-bottom: 56px;
}

.contacts__wrapper {
    display: flex;
    align-items: center;
    gap: 99px;
}

.contacts__image {
    display: flex;
    flex-basis: 1039px;
    margin-left: -30px;
}

.contacts__content {
    flex-basis: 363px;
}

.contacts__heading {
    margin-bottom: 21px;
}

.contacts__heading * {
    font-size: 24px;
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
}

p.contacts__text {
    margin-bottom: 40px;
    max-width: 358px;
    line-height: 1.3;
    font-weight: 500;
}

.contacts__items {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 56px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFF;
}

.contact-item img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.contacts__btn {
    min-width: 178px;
}

@media screen and (max-width: 1440.98px) {
    .contacts__image {
        flex-basis: 850px;
    }

    .contacts__image img {
        min-height: 480px;
    }

    .contacts__wrapper {
        gap: 33.5px;
    }
}

@media screen and (max-width: 1024.98px) {
    .contacts__wrapper {
        flex-direction: column;
        gap: 69.5px;
    }

    .contacts__image {
        margin-right: -24px;
        margin-left: -24px;
    }

    .contacts__image img {
        min-height: 287px;
        max-height: 500px;
    }

    .contacts__image,
    .contacts__content {
        flex-basis: 100%;
        min-width: 100%;

    }

    .contacts__wrapper {
        align-items: flex-start;
    }

    p.contacts__text {
        max-width: 318px
    }
}

@media screen and (max-width: 599.98px) {
    .contacts__btn {
        width: 100%;
    }
}