:root {
    --articles-gap: 30px;
    --articles-grid-columns: repeat(3, 1fr);
    --articles-card-title-fs: 22px;
    --articles-card-title-fw: 400;
    --articles-card-descr-fs: 16px;
    --articles-card-descr-fw: 300;
    --articles-card-date-fs: 14px;
    --articles-card-date-fw: 300;
    --articles-card-img-height: 220px;
}

.articles_promo_block {
    width: 100%;
    min-height: 400px;
    background: linear-gradient(180deg, rgba(0,0,0,1) 0%, rgba(0,0,0,0.3) 100%), url('/static/public/avif/terms/mercedes.jpg') no-repeat center;
    background-size: cover;
    border-bottom: 1px solid var(--main-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 78px;
}

.articles_promo_content {
    padding: 50px 8%;
}

.articles_promo_title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 40px;
    font-weight: 400;
}

.articles_promo_descr {
    margin: 0;
    color: var(--main-color);
    font-size: 20px;
    font-weight: 300;
    max-width: 700px;
}

/**/
.articles_grid__container {
    padding: var(--padding-body);
    grid-template-columns: var(--articles-grid-columns);
    margin: 0 auto var(--articles-gap);
    gap: var(--articles-gap);
    display: grid;
    align-items: start;
}

.articles_grid__container > .article__card {
    background-color: var(--footer-bg);
    border-radius: var(--br);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: var(--trans);
    border: 1px solid transparent;
}

.articles_grid__container > .article__card:hover {
    border-color: var(--main-color);
    transform: translateY(-3px);
}

.article__card__cover {
    width: 100%;
    height: var(--articles-card-img-height);
    object-fit: cover;
    display: block;
    background-color: #333;
}

.article__card__cover_placeholder {
    width: 100%;
    height: var(--articles-card-img-height);
    background: linear-gradient(135deg, #2a2a2a 0%, #333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article__card__cover_placeholder > span {
    font-size: 48px;
    opacity: 0.3;
}

.article__card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article__card__date {
    font-size: var(--articles-card-date-fs);
    font-weight: var(--articles-card-date-fw);
    color: var(--main-color);
    margin: 0 0 10px;
}

.article__card__title {
    font-size: var(--articles-card-title-fs);
    font-weight: var(--articles-card-title-fw);
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.35;
}

.article__card__descr {
    font-size: var(--articles-card-descr-fs);
    font-weight: var(--articles-card-descr-fw);
    color: var(--main-color);
    margin: 0;
    line-height: 1.5;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.article__card__read_more {
    font-size: 15px;
    font-weight: 400;
    color: var(--hover-color);
    margin: 16px 0 0;
    display: inline-block;
    text-decoration: none;
    text-align: end;
}

/**/
.articles_empty {
    padding: var(--padding-body);
    color: var(--main-color);
    font-size: 20px;
    font-weight: 300;
    text-align: center;
}

@media only screen and (max-width: 1240px) {
    :root {
        --articles-grid-columns: repeat(2, 1fr);
        --articles-gap: 20px;
    }
}

@media only screen and (max-width: 680px) {
    :root {
        --articles-grid-columns: repeat(1, 1fr);
        --articles-gap: 15px;
        --articles-card-img-height: 200px;
    }

    .articles_promo_title {
        font-size: 28px;
    }

    .articles_promo_descr {
        font-size: 16px;
    }

    .articles_promo_content {
        padding: 30px 5%;
    }
}
