/*--------------------------------------------------------------
# Страница статьи
--------------------------------------------------------------*/

.article-page {
    width: 100%;

    padding: 24px 0 60px;
}


/*--------------------------------------------------------------
# Статья
--------------------------------------------------------------*/

.article-page__article {
    width: 100%;
    max-width: 1100px;

    margin: 0 auto;
}


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

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


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

.article-page__label {
    display: inline-block;

    margin-bottom: 12px;

    padding-left: 12px;

    color: #00743C;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;

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

    border-left: 3px solid #00743C;
}


/*--------------------------------------------------------------
# Заголовок
--------------------------------------------------------------*/

.article-page__title {
    position: relative;

    display: inline-block;

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

    margin: 0;
    padding-bottom: 12px;

    color: #222;

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

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

    position: absolute;

    left: 0;
    bottom: 0;

    width: 65px;
    height: 3px;

    background: #00743C;

    border-radius: 3px;
}


/*--------------------------------------------------------------
# Основное изображение
--------------------------------------------------------------*/

.article-page__image-wrapper {
    position: relative;

    width: 100%;

    margin-bottom: 36px;

    overflow: hidden;

    background: #fafafa;

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

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

.article-page__image {
    display: block;

    width: 100%;
    height: auto;

    max-height: 600px;

    object-fit: cover;
}


/*--------------------------------------------------------------
# Содержимое статьи
--------------------------------------------------------------*/

.article-page__content {
    max-width: 820px;

    margin: 0 auto;

    color: #555;

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


/*--------------------------------------------------------------
# Абзацы
--------------------------------------------------------------*/

.article-page__content p {
    margin: 0 0 20px;
}

.article-page__content p:last-child {
    margin-bottom: 0;
}


/*--------------------------------------------------------------
# Заголовок второго уровня
--------------------------------------------------------------*/

.article-page__content h2 {
    position: relative;

    margin: 42px 0 20px;
    padding-left: 16px;

    color: #222;

    font-size: 26px;
    line-height: 1.3;
    font-weight: 700;
}

.article-page__content h2::before {
    content: "";

    position: absolute;

    left: 0;
    top: 3px;
    bottom: 3px;

    width: 3px;

    background: #00743C;

    border-radius: 2px;
}


/*--------------------------------------------------------------
# Заголовок третьего уровня
--------------------------------------------------------------*/

.article-page__content h3 {
    margin: 32px 0 14px;

    color: #222;

    font-size: 21px;
    line-height: 1.35;
    font-weight: 700;
}


/*--------------------------------------------------------------
# Списки
--------------------------------------------------------------*/

.article-page__content ul,
.article-page__content ol {
    margin: 0 0 24px;

    padding-left: 24px;
}

.article-page__content li {
    margin-bottom: 9px;
}

.article-page__content li:last-child {
    margin-bottom: 0;
}


/*--------------------------------------------------------------
# Ссылки
--------------------------------------------------------------*/

.article-page__content a {
    color: #00743C;

    text-decoration: underline;
    text-decoration-color: rgba(0, 116, 60, .35);
    text-underline-offset: 3px;

    transition:
        color .2s ease,
        text-decoration-color .2s ease;
}

.article-page__content a:hover {
    color: #005c30;

    text-decoration-color: #005c30;
}


/*--------------------------------------------------------------
# Изображения внутри статьи
--------------------------------------------------------------*/

.article-page__content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 28px auto;

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

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


/*--------------------------------------------------------------
# Цитата
--------------------------------------------------------------*/

.article-page__content blockquote {
    margin: 28px 0;

    padding: 18px 22px;

    color: #555;

    background: #f4faf6;

    border-left: 4px solid #00743C;
    border-radius: 0 4px 4px 0;
}

.article-page__content blockquote p:last-child {
    margin-bottom: 0;
}


/*--------------------------------------------------------------
# Таблица
--------------------------------------------------------------*/

.article-page__content table {
    width: 100%;

    margin: 28px 0;

    border-collapse: collapse;

    font-size: 15px;
}

.article-page__content th,
.article-page__content td {
    padding: 12px 14px;

    border: 1px solid #ddd;

    text-align: left;
    vertical-align: top;
}

.article-page__content th {
    color: #222;
    font-weight: 700;

    background: #f4faf6;
}


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

@media (max-width: 991px) {

    .article-page__article {
        max-width: 100%;
    }

}


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

@media (max-width: 768px) {

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


    /*----------------------------------------------------------
       Header
    ----------------------------------------------------------*/

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


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

        font-size: 11px;
    }


    .article-page__title {
        font-size: 24px;
        line-height: 1.35;

        padding-bottom: 10px;
    }


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


    /*----------------------------------------------------------
       Image
    ----------------------------------------------------------*/

    .article-page__image-wrapper {
        margin-bottom: 28px;

        border-radius: 4px;
    }


    .article-page__image {
        max-height: 420px;
    }


    /*----------------------------------------------------------
       Content
    ----------------------------------------------------------*/

    .article-page__content {
        font-size: 16px;
        line-height: 1.7;
    }


    .article-page__content h2 {
        margin-top: 34px;
        margin-bottom: 17px;

        font-size: 23px;
    }


    .article-page__content h3 {
        margin-top: 28px;

        font-size: 19px;
    }


    .article-page__content img {
        margin: 22px auto;
    }

}


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

@media (max-width: 480px) {

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


    .article-page__title {
        font-size: 22px;
        line-height: 1.35;
    }


    .article-page__content {
        font-size: 15px;
        line-height: 1.7;
    }


    .article-page__content h2 {
        font-size: 21px;
    }


    .article-page__content h3 {
        font-size: 18px;
    }


    .article-page__content blockquote {
        padding: 15px 17px;
    }


    .article-page__content table {
        display: block;

        overflow-x: auto;

        white-space: nowrap;
    }

}
