/* Сетка карточек статей: главная, блог, thank-you, 404 */
.psi-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.psi-blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-light, #eae7ea);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.psi-blog-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.psi-blog-card__media {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #e8e2e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.psi-blog-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.psi-blog-card__body {
    padding: 0.75rem 0.85rem 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.psi-blog-card__title {
    font-size: 0.875rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--highlight, #802d4b);
    margin: 0 0 0.35rem;
}

.psi-blog-card__desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted, #6e6e6e);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.psi-blog-card time {
    font-size: 0.72rem;
    color: var(--text-muted, #6e6e6e);
    margin-top: 0.5rem;
}

.psi-blog-all-wrap {
    margin-top: 1.35rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .psi-blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .psi-blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .psi-blog-grid {
        grid-template-columns: 1fr;
    }
}
