body.page-articles,
body.page-article {
    min-height: 0;
}

/* Шапка с логотипом */
.articles-header {
    padding: 16px 0;
    background: var(--white);
}

.articles-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(to right, var(--line) 0%, rgba(228, 232, 223, 0) 100%);
    pointer-events: none;
}

.articles-header {
    position: relative;
}

.articles-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: min(1600px, 100%);
    padding-inline: clamp(24px, 4vw, 64px);
}

.articles-header__logo img {
    height: clamp(52px, 6vw, 76px);
    width: auto;
}

/* Общее */
.articles-page,
.article-page {
    padding-top: clamp(48px, 6vw, 80px);
    padding-bottom: var(--section-pad);
}

.articles-page__back,
.article-page__back {
    display: inline-block;
    margin-bottom: 28px;
    font-weight: 600;
    color: var(--green-dark);
}

.articles-page__back:hover,
.article-page__back:hover {
    color: var(--green);
}

.articles-page__head {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.articles-page__title {
    font-family: var(--font-main);
    font-weight: 400;
    font-size: clamp(2.6rem, 5.5vw, 4.25rem);
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
}

.articles-page__subtitle {
    margin-top: 12px;
    color: var(--muted);
    font-size: var(--fs-lead);
}

.articles-page__empty {
    padding: 48px 24px;
    text-align: center;
    color: var(--muted);
    background: var(--bg-soft);
    border-radius: var(--radius);
}

/* Сетка карточек */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.articles-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.articles-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.articles-card__img-wrap {
    aspect-ratio: 16 / 9;
    background: var(--green-light);
}

.articles-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.articles-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 22px 24px;
}

.articles-card__date {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--green);
}

.articles-card__title {
    font-size: var(--fs-h3);
    color: var(--ink);
    transition: color var(--transition);
}

.articles-card:hover .articles-card__title {
    color: var(--green-dark);
}

.articles-card__text {
    color: var(--muted);
}

/* Страница отдельной статьи */
.article-page__inner {
    max-width: 860px;
}

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

.article-single__title {
    font-size: var(--fs-hero);
    line-height: 1.1;
    color: var(--green-dark);
    margin: 12px 0 8px;
}

.article-single__img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 28px;
}

.article-single__content {
    font-size: 1.05rem;
    line-height: 1.7;
}

.article-single__content h2 {
    font-size: var(--fs-h3);
    margin: 32px 0 12px;
}

.article-single__content h3 {
    margin: 24px 0 10px;
}

.article-single__content p {
    margin: 0 0 16px;
}

.article-single__content ul,
.article-single__content ol {
    margin: 0 0 16px;
    padding-left: 22px;
    list-style: disc;
}

.article-single__content ol {
    list-style: decimal;
}

.article-single__content a {
    color: var(--green-dark);
    text-decoration: underline;
}

.article-single__content a:hover {
    color: var(--green);
}

.article-single__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

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

    .article-single__cta .btn {
        width: 100%;
    }
}