/* ====== Карточки-рекомендации (.read-also) ======
 * Единый дизайн сеток «Читайте также» / «Истории с участием» (страница
 * биографии) и «Связанные биографии» (страница истории). Подключается и в
 * biography_detail.html, и в story_detail.html — поэтому вынесен из
 * bio-detail.css в общий файл.
 *
 * Класс .read-also намеренно использует !important, чтобы перебить
 * глобальные стили aside из base-layout.css / responsive.css.
 */
.read-also {
    width: 100% !important;
    max-width: 100%;
    margin-top: 40px;
    padding: 24px 0 0;
    background: transparent;
    border: none;
    border-top: 1px solid #dce1eb;
    box-sizing: border-box;
    order: initial;
}

.read-also__title {
    font-size: 22px;
    margin: 0 0 18px;
    color: #3c486b;
}

.read-also__grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.read-also__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.read-also__card:hover {
    box-shadow: 0 4px 14px rgba(60, 72, 107, 0.12);
    transform: translateY(-2px);
}

.read-also__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.read-also__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f0f3f8;
}

.read-also__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.read-also__card:hover .read-also__thumb img {
    transform: scale(1.04);
}

.read-also__heading {
    font-size: 16px;
    line-height: 1.35;
    margin: 12px 14px 6px;
    color: #1f4b85;
    font-weight: 600;
}

.read-also__meta {
    font-size: 13px;
    color: #667688;
    margin: 0 14px 14px;
}

/* Планшет — 2 колонки */
@media (max-width: 768px) {
    .read-also__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .read-also__title {
        font-size: 20px;
    }
}

/* Мобильный — 1 колонка */
@media (max-width: 480px) {
    .read-also__grid {
        grid-template-columns: 1fr;
    }

    .read-also__heading {
        font-size: 17px;
    }
}
