/* ============================================
   ИСТОРИИ ВЫЗДОРОВЛЕНИЯ (history.css)
   ============================================ */

.histories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.history-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #F9F9FB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.history-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.history-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.history-card-image {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #F0F2F5;
}

.history-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.history-card:hover .history-card-image img {
    transform: scale(1.03);
}

.history-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F0F2F5;
    color: #B0C4D9;
}

.history-card-body {
    padding: 18px 20px 20px;
}

.history-card-patient {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.history-card-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0B121B;
    font-family: 'IBM Plex Sans', sans-serif;
}

.history-card-age {
    font-size: 0.85rem;
    color: #5A6E7F;
}

.history-card-disease {
    display: inline-block;
    padding: 2px 12px;
    background: #F0F4F9;
    color: #447196;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.history-card-excerpt {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #5A6E7F;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-card-more {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #447196;
    transition: all 0.3s ease;
}

.history-card:hover .history-card-more {
    color: #F45349;
    transform: translateX(4px);
}

/* Адаптив */
@media (max-width: 992px) {
    .histories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .histories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 500px;
        margin: 0 auto;
    }
    .history-card-body {
        padding: 14px 16px 16px;
    }
}

@media (max-width: 480px) {
    .history-card-image {
        aspect-ratio: 4/3;
    }
}