.c-contacts {
    display: grid;
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
    grid-template-areas:
        "header header"
        "info map"
        "text text"
        "form gallery";
    column-gap: 32px;
    row-gap: 60px;
    align-items: start;
}

.c-contacts__header {
    grid-area: header;
    font-size: 20px;
	font-weight: 600;
    line-height: 1.2;
    margin-bottom: 32px;
}

.c-contacts__info {
    grid-area: info;
}

.c-contacts__map {
    grid-area: map;
}

.c-contacts__text {
    grid-area: text;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    font-weight: 600;
}

.c-contacts__form {
    grid-area: form;
    grid-column: 1 / 2;
    grid-row: 4;
    border: 1px solid #d9d9d9;
    padding: 16px;
}

.c-contacts__gallery {
    grid-area: gallery;
    grid-column: 2 / 3;
    grid-row: 4;
}

.c-contacts__item {
    position: relative;
    margin-bottom: 49px;
    padding-left: 77px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

.c-contacts__item:last-child {
    margin-bottom: 0;
}

.c-contacts__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: -9px;
    width: 60px;
    height: 60px;
    background: url("img/sprite.png") no-repeat;
}

.c-contacts__item--phone::before {
    background-position: 0px -150px;
}

.c-contacts__item--email::before {
    background-position: -64px -150px;
}

.c-contacts__item--address::before {
    background-position: -128px -150px;
}

.c-contacts__item--worktime::before {
    background-position: -192px -150px;
}

.c-contacts__item a {
    color: inherit;
    text-decoration: none;
}

.c-contacts__item a:hover {
    text-decoration: underline;
}

.c-contacts__gallery-item {
    margin-bottom: 16px;
}

.c-contacts__gallery-item:last-child {
    margin-bottom: 0;
}

.c-contacts__gallery-item img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1023px) {
    .c-contacts {
        column-gap: 24px;
        row-gap: 44px;
    }
}

@media (max-width: 575px) {
    .c-contacts {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "info"
            "map"
            "text"
            "form"
            "gallery";
        row-gap: 28px;
    }

    .c-contacts__text {
        max-width: 100%;
    }

    .c-contacts__header {
        font-size: 18px;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .c-contacts__item {
        margin-bottom: 20px;
        padding-left: 77px;
    }

    .c-contacts__form,
    .c-contacts__gallery {
        grid-column: auto;
        grid-row: auto;
    }
}
