/* Розділ «Статті»: картки розділів, список статей, сторінка статті. */

.articles-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.articles-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e3e3e3;
    color: inherit;
    text-decoration: none;
    transition: box-shadow .2s;
}

.articles-card:hover,
.articles-card:focus {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    color: inherit;
    text-decoration: none;
}

.articles-card-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f2f2;
}

.articles-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.articles-card-title {
    display: block;
    padding: 12px 15px 0;
    font-size: 18px;
    font-weight: bold;
}

.articles-card-text {
    display: block;
    padding: 8px 15px 15px;
}

.articles-card-title:last-child {
    padding-bottom: 15px;
}

.articles-section-intro {
    margin-bottom: 20px;
}

.articles-list {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.articles-list-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.articles-list-title {
    font-size: 16px;
    font-weight: bold;
}

.articles-list-annotation {
    margin-top: 6px;
}

.articles-prev-next {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0;
}

.articles-next {
    margin-left: auto;
    text-align: right;
}
