/* Раздел статей — контент внутри .container, как на /schedule */

.articles-section,
.articles-section h1,
.articles-section h2,
.articles-section h3,
.articles-section h4,
.articles-section h5,
.articles-section h6,
.articles-page-title,
.article-single__title,
.article-card__title,
.article-single__body,
.article-single__body h1,
.article-single__body h2,
.article-single__body h3,
.article-single__body h4,
.article-single__body h5,
.article-single__body h6,
.articles-section .stat_content,
.articles-section .stat_content h1,
.articles-section .stat_content h2,
.articles-section .stat_content h3 {
    font-family: 'Open Sans', sans-serif;
}

.articles-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding-left: 15px;
    padding-right: 15px;
}

.articles-section .stat_content {
    float: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.articles-page-title {
    font-size: clamp(22px, 4vw, 30px);
    text-align: center;
    color: #484848;
    font-weight: bold;
    line-height: 1.25;
    margin: 30px 0 40px;
}

/* Список статей: заголовок сразу под шапкой (шапка в потоке — без h1-mobile 220px) */
@media (max-width: 991px) {
    .articles-section--list .articles-page-title {
        margin-top: 16px;
        margin-bottom: 24px;
    }
}

.articles-empty {
    text-align: center;
    font-size: 16px;
    color: #666;
    padding: 20px 0 40px;
}

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

.articles-grid__item {
    margin: 0;
    padding: 0;
    min-width: 0;
}

.article-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #484848;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    height: 100%;
    border: 1px solid #eee;
}

@media (hover: hover) {
    .article-card:hover {
        text-decoration: none;
        color: #484848;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
}

.article-card__image-wrap {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e8e6e2;
    flex-shrink: 0;
}

.article-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card__image--placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: #35a69d url('/img/nav-bg.png') left top repeat-x;
    opacity: 0.35;
}

.article-card__title {
    display: block;
    padding: 16px 18px 20px;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    line-height: 1.35;
    color: #484848;
    text-align: center;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.articles-back {
    margin: 10px 0 16px;
    font-size: 14px;
}

@media (max-width: 991px) {
    .articles-section--show .articles-back {
        margin-top: 16px;
        margin-bottom: 16px;
    }
}

.articles-back a {
    color: #24A37C;
    text-decoration: none;
    display: inline-block;
    padding: 4px 0;
}

.articles-back a:hover {
    text-decoration: underline;
}

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

.article-single__hero {
    margin-bottom: 24px;
    border-radius: 8px;
    overflow: hidden;
}

.article-single__image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.article-single__title {
    font-size: clamp(20px, 4.5vw, 28px);
    color: #484848;
    font-weight: bold;
    margin: 0 0 24px;
    text-align: center;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.article-single__body {
    font-size: clamp(14px, 2vw, 15px);
    line-height: 1.65;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-single__body h2,
.articles-section .stat_content h2 {
    font-size: clamp(17px, 3vw, 22px);
    color: #484848;
    margin: 1.5em 0 0.75em;
    line-height: 1.3;
    font-weight: 600;
}

.article-single__body h3,
.articles-section .stat_content h3 {
    font-size: clamp(15px, 2.5vw, 18px);
    color: #484848;
    margin: 1.25em 0 0.5em;
    line-height: 1.35;
    font-weight: 600;
}

.article-single__body p {
    margin: 0 0 1em;
}

.article-single__body ul,
.article-single__body ol {
    padding-left: 1.25em;
    margin: 0 0 1em;
}

.article-single__body a {
    color: #24A37C;
    word-break: break-word;
}

.article-single__body img,
.article-single__body iframe,
.article-single__body video {
    max-width: 100%;
    height: auto;
}

.article-single__body table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 990px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .articles-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .articles-grid {
        gap: 18px;
    }

    .article-single__image {
        max-height: 320px;
    }
}

@media (max-width: 500px) {
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .article-card__title {
        padding: 14px 12px 16px;
        text-align: left;
    }

    .article-single__title {
        text-align: left;
        margin-bottom: 18px;
    }

    .article-single__image {
        max-height: 240px;
        border-radius: 6px;
    }

    .article-single__hero {
        margin-bottom: 18px;
    }
}

@media (max-width: 360px) {
    .articles-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    .article-card__image-wrap {
        aspect-ratio: 16 / 10;
    }
}
