.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* карточка */
.related-card {
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.related-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;

    text-decoration: none;
    color: inherit;
}
/* картинка */
.related-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

/* тело карточки */
.related-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* заголовок */
.related-card .related-title {
    font-size: 17px;
    margin: 0 0 10px;
    color: var(--text);
    font-weight: bold;
}

/* теги */
.related-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.related-tags span {
    background: var(--pale);
    color: var(--blue);
    padding: 6px 9px;
    font-size: 12px;
    font-weight: 700;
}

/* текст (если используешь) */
.related-card p {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--text);
}

/* "Подробнее" */
.related-card__body span {
    margin-top: auto;
    display: inline-block;
    align-self: flex-start;

    color: var(--blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;

    cursor: pointer;
}

/* hover (по желанию) */
.related-card:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
    transition: 0.2s ease;
}

/* адаптив */
@media (max-width: 760px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}