.contacts-block{
    padding: 0 var(--layout-side-padding);
}
/* Заголовок блока */
.contacts-block__title {
    font-size: 24px;
    color: #000;
    margin: 40px 0;
    text-align: center;
}

/* Сетка контактов */
.contacts-grid {
    display: grid;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Элемент контакта — без бордера */
.c-contact {
    padding: 20px;
    /* border: 1px solid #eee; ← убрано */
}

.c-contact__title {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 12px 0;
    color: #000;
}

.c-contact__inline,
.c-contact__emails {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
}

.c-contact__tel {
    font-size: 16px;
    color: var(--gray-scaleblack);
    text-decoration: none;
    margin-top: 12px;
}

.c-contact__email {
    font-size: 16px;
    color: var(--primarygreen);
    text-decoration: none;
    margin-top: 12px;
}

.c-contact__tel:hover,
.c-contact__email:hover {
    text-decoration: underline;
}

/* Divider между карточками (только по вертикали) */
@media (min-width: 1024px) {
    .contacts-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Добавляем разделитель справа ко всем, кроме последнего в строке */
    .contacts-grid__item:not(:nth-child(4n)) .c-contact::after {
        content: '';
        position: absolute;
        top: 20px;
        bottom: 20px;
        right: 0;
        width: 1px;
        background: #eee;
    }

    .c-contact {
        position: relative;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Divider для 2 колонок */
    .contacts-grid__item:not(:nth-child(2n)) .c-contact::after {
        content: '';
        position: absolute;
        top: 20px;
        bottom: 20px;
        right: 0;
        width: 1px;
        background: #eee;
    }

    .c-contact {
        position: relative;
    }
}

/* На мобильных — divider снизу */
@media (max-width: 767px) {
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .contacts-grid__item:not(:last-child) .c-contact::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        height: 1px;
        background: #eee;
    }

    .c-contact {
        position: relative;
    }
}