body {
    background-color: #313338;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: #F2F3F5;
    margin: 0;
    padding-top: 82px;
}

.articles-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.articles-page__container {
    flex: 1;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 40px 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── PAGE HEADER ─────────────────────────────────────────── */

.page-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.page-header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.page-path {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-path__link {
    font-size: 12px;
    color: #80848E;
    text-decoration: none;
}
.page-path__link:hover { color: #B5BAC1; }

.page-path__separator { color: #80848E; font-size: 12px; }

.page-path__current {
    font-size: 12px;
    color: #B5BAC1;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: #F2F3F5;
}

/* ── FILTERS ─────────────────────────────────────────────── */
.articles-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.articles-categories {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
}

.articles-categories__toggle { display: none; }

.articles-categories__dropdown {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex-wrap: wrap;
}

.articles-filters__item {
    padding: 5px 12px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    background: transparent;
    color: #80848E;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.articles-filters__item--active {
    background: #5865F2;
    color: #fff;
    border-color: #5865F2;
}

.articles-filters__item:hover:not(.articles-filters__item--active) {
    border-color: rgba(255,255,255,0.25);
    color: #F2F3F5;
    background: #383A40;
}

/* ── NEWS GRID ───────────────────────────────────────────── */
.news-section__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

/* ── NO ARTICLES ─────────────────────────────────────────── */
.no-articles {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    background: #2B2D31;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
}

.no-articles__icon-wrap {
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 18px;
    margin-bottom: 20px;
    color: #5865F2;
}

.no-articles__svg {
    color: #5865F2;
    flex-shrink: 0;
}

.no-articles__title {
    font-size: 16px;
    font-weight: 700;
    color: #F2F3F5;
    margin: 0 0 8px;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.no-articles__description {
    font-size: 13px;
    color: #80848E;
    margin: 0 0 24px;
    line-height: 1.6;
}

.no-articles__reset {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid rgba(88, 101, 242, 0.5);
    border-radius: 6px;
    color: #5865F2;
    font-size: 13px;
    font-weight: 600;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.no-articles__reset:hover {
    background: rgba(88, 101, 242, 0.12);
    border-color: #5865F2;
    color: #fff;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1200px) {
    .news-section__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .articles-page__container { padding: 20px 16px 40px; }
    .news-section__grid { grid-template-columns: repeat(2, 1fr); }

    .articles-categories__toggle {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 5px 12px;
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 4px;
        background: transparent;
        color: #B5BAC1;
        font-size: 12px;
        cursor: pointer;
        font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    }

    .articles-categories__dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        z-index: 100;
        background: #2B2D31;
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 4px;
        padding: 4px;
        flex-direction: column;
        gap: 2px;
        min-width: 180px;
    }

    .articles-categories--open .articles-categories__dropdown { display: flex; }

    .articles-categories__dropdown .articles-filters__item {
        width: 100%;
        text-align: left;
    }
}

@media (max-width: 480px) {
    .news-section__grid { grid-template-columns: 1fr; }
}
