/*--------------------------------------------------------------
# Общая страница статей
--------------------------------------------------------------*/

.articles-page {
    width: 100%;

    padding: 24px 0 60px;
}


/*--------------------------------------------------------------
# Заголовок страницы
--------------------------------------------------------------*/

.articles-page__header {
    margin-bottom: 30px;
}


.articles-page__title {
    position: relative;

    display: inline-block;

    width: fit-content;
    max-width: 100%;

    margin: 0 0 16px;
    padding-bottom: 12px;

    color: #222;

    font-size: 32px;
    font-weight: 600;
    line-height: 1.35;
}

.articles-page__title::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 65px;
    height: 3px;

    background: #00743C;

    border-radius: 3px;
}


.articles-page__description {
    max-width: 800px;

    margin: 0;

    color: #666;

    font-size: 17px;
    line-height: 1.7;
}


/*--------------------------------------------------------------
# Список статей
--------------------------------------------------------------*/

.articles-page__list {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


/*--------------------------------------------------------------
# Карточка статьи
--------------------------------------------------------------*/

.articles-page__item {
    position: relative;

    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);

    min-width: 0;
    min-height: 230px;

    overflow: hidden;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 4px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, .08);

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}


.articles-page__item::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    bottom: 0;

    width: 5px;

    background: #00743C;

    z-index: 2;
}


.articles-page__item:hover {
    border-color: #00743C;

    transform: translateY(-3px);

    box-shadow:
        0 8px 18px rgba(0, 0, 0, .12);
}


/*--------------------------------------------------------------
# Изображение
--------------------------------------------------------------*/

.articles-page__image-link {
    display: block;

    min-width: 0;
    min-height: 230px;

    text-decoration: none;
}


.articles-page__image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 230px;

    overflow: hidden;

    background: #fafafa;

    border-right: 1px solid #e5e5e5;
}


.articles-page__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .35s ease;
}


.articles-page__item:hover .articles-page__image {
    transform: scale(1.025);
}


/*--------------------------------------------------------------
# Контент
--------------------------------------------------------------*/

.articles-page__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;

    padding: 30px 36px 28px 36px;
}


/*--------------------------------------------------------------
# Метка
--------------------------------------------------------------*/

.articles-page__label {
    display: inline-block;

    margin-bottom: 12px;

    color: #00743C;

    font-size: 12px;
    line-height: 1;

    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .08em;
}


/*--------------------------------------------------------------
# Заголовок статьи
--------------------------------------------------------------*/

.articles-page__item-title {
    margin: 0 0 16px;

    color: #222;

    font-size: 23px;
    line-height: 1.4;

    font-weight: 600;
}


.articles-page__item-title a {
    color: #222;

    text-decoration: none;

    transition:
        color .2s ease;
}


.articles-page__item-title a:hover {
    color: #00743C;
}


/*--------------------------------------------------------------
# Краткое описание
--------------------------------------------------------------*/

.articles-page__excerpt {
    max-width: 900px;

    margin-bottom: 22px;

    color: #666;

    font-size: 16px;
    line-height: 1.65;
}


/*--------------------------------------------------------------
# Читать статью
--------------------------------------------------------------*/

.articles-page__more {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: auto;

    color: #00743C;

    font-size: 14px;
    line-height: 1;

    font-weight: 600;

    text-decoration: none;

    transition:
        color .2s ease,
        gap .2s ease;
}


.articles-page__more:hover {
    gap: 12px;

    color: #005c30;
}


.articles-page__more span {
    font-size: 18px;
    line-height: 1;
}


/*--------------------------------------------------------------
# Карточка без изображения
--------------------------------------------------------------*/

.articles-page__item:not(:has(.articles-page__image-link)) {
    display: block;
}


.articles-page__item:not(:has(.articles-page__image-link)) .articles-page__content {
    min-height: 230px;
}


/*--------------------------------------------------------------
# Пустой список
--------------------------------------------------------------*/

.articles-page__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 280px;

    padding: 40px;

    text-align: center;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 4px;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, .08);
}


.articles-page__empty-icon {
    margin-bottom: 18px;

    color: #00743C;

    font-size: 42px;
}


.articles-page__empty-title {
    margin: 0 0 10px;

    color: #222;

    font-size: 22px;
    font-weight: 600;
}


.articles-page__empty-text {
    margin: 0;

    color: #777;

    font-size: 15px;
    line-height: 1.6;
}


/*--------------------------------------------------------------
# Планшеты
--------------------------------------------------------------*/

@media (max-width: 991px) {

    .articles-page__item {
        grid-template-columns: 240px minmax(0, 1fr);

        min-height: 210px;
    }


    .articles-page__image-link,
    .articles-page__image-wrapper {
        min-height: 210px;
    }


    .articles-page__content {
        padding: 26px 28px 24px 30px;
    }


    .articles-page__item-title {
        font-size: 21px;
    }

}


/*--------------------------------------------------------------
# Mobile
--------------------------------------------------------------*/

@media (max-width: 768px) {

    .articles-page {
        padding: 20px 0 40px;
    }


    .articles-page__header {
        margin-bottom: 24px;
    }


    .articles-page__title {
        margin-bottom: 12px;

        padding-bottom: 10px;

        font-size: 24px;
    }


    .articles-page__title::after {
        width: 55px;
        height: 3px;
    }


    .articles-page__description {
        font-size: 16px;
        line-height: 1.65;
    }


    .articles-page__list {
        gap: 16px;
    }


    /*----------------------------------------------------------
       Карточка
       ----------------------------------------------------------*/

    .articles-page__item {
        display: block;

        min-height: 0;
    }


    .articles-page__item::before {
        width: 4px;
    }


    /*----------------------------------------------------------
       Изображение
       ----------------------------------------------------------*/

    .articles-page__image-link {
        min-height: 0;
    }


    .articles-page__image-wrapper {
        height: 240px;
        min-height: 0;

        border-right: none;
        border-bottom: 1px solid #e5e5e5;
    }


    /*----------------------------------------------------------
       Контент
       ----------------------------------------------------------*/

    .articles-page__content {
        min-height: 0;

        padding: 24px 22px 24px 27px;
    }


    .articles-page__label {
        margin-bottom: 10px;

        font-size: 11px;
    }


    .articles-page__item-title {
        margin-bottom: 14px;

        font-size: 20px;
    }


    .articles-page__excerpt {
        margin-bottom: 20px;

        font-size: 15px;
        line-height: 1.6;
    }


    .articles-page__item:not(:has(.articles-page__image-link)) .articles-page__content {
        min-height: 0;
    }

}


/*--------------------------------------------------------------
# Маленькие мобильные
--------------------------------------------------------------*/

@media (max-width: 480px) {

    .articles-page {
        padding-top: 18px;
        padding-bottom: 40px;
    }


    .articles-page__title {
        font-size: 22px;
    }


    .articles-page__description {
        font-size: 15px;
    }


    .articles-page__image-wrapper {
        height: 210px;
    }


    .articles-page__content {
        padding: 21px 18px 21px 23px;
    }


    .articles-page__item-title {
        font-size: 18px;
        line-height: 1.4;
    }


    .articles-page__excerpt {
        font-size: 14.5px;
    }


    .articles-page__empty {
        min-height: 240px;

        padding: 30px 20px;
    }

}
