.articles-page {
    width: 1100px;
    max-width: 100%;
    margin: 0 auto;
    padding: 30px 20px;
}

.articles-page-title {
    font-size: 2rem;
    margin: 0 0 20px 0;
    color: #fff;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 12px;
}

.articles-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.articles-toolbar .articles-page-title {
    margin: 0;
    border: none;
    padding: 0;
}

.articles-search-form {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 500px;
}

.articles-search-form-wide {
    max-width: 800px;
    margin-bottom: 20px;
}

.articles-search-input {
    flex: 1;
    padding: 10px 14px;
    background: #1a1a2e;
    color: #eee;
    border: 1px solid #4a90e2;
    border-radius: 4px;
    font-size: 14px;
}

.articles-search-input:focus {
    outline: none;
    border-color: #6aa8f0;
    background: #1f2340;
}

.articles-search-btn {
    padding: 10px 20px;
    background: #4a90e2;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.articles-search-btn:hover {
    background: #3a7dc9;
}

.articles-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #26314e;
    border-radius: 6px;
}

.articles-controls-label {
    color: #aaa;
    font-size: 13px;
    margin-right: 6px;
}

.articles-sort {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.articles-sort-btn {
    padding: 6px 12px;
    background: #1a1a2e;
    color: #ccc;
    border: 1px solid #3d4870;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
    cursor: pointer;
}

.articles-sort-btn:hover {
    border-color: #4a90e2;
    color: #4a90e2;
}

.articles-sort-btn.active {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
}

.articles-total {
    color: #aaa;
    font-size: 13px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.article-card {
    background: #26314e;
    border-radius: 8px;
    padding: 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #3d4870;
    transition: all 0.2s;
    position: relative;
    min-height: 220px;
}

.article-card:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.article-card-premium {
    border-color: #f7931a;
}

.article-card-premium:hover {
    border-color: #ffab4a;
}

.article-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f7931a;
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-title {
    font-size: 1.05rem;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.4;
    font-weight: 600;
}

.article-card:hover .article-card-title {
    color: #4a90e2;
}

.article-card-premium:hover .article-card-title {
    color: #ffab4a;
}

.article-card-annotation {
    color: #bbb;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px 0;
    flex: 1;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    color: #888;
    font-size: 12px;
    padding-top: 12px;
    border-top: 1px solid #3d4870;
}

.articles-empty {
    padding: 40px 20px;
    text-align: center;
    background: #26314e;
    border-radius: 8px;
    color: #aaa;
    font-size: 15px;
}

.articles-empty a {
    color: #4a90e2;
    text-decoration: none;
}

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

/* Пагинация */
.articles-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.page-link {
    min-width: 38px;
    padding: 8px 12px;
    background: #26314e;
    color: #ccc;
    border: 1px solid #3d4870;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.15s;
    display: inline-block;
}

a.page-link:hover {
    border-color: #4a90e2;
    color: #4a90e2;
}

.page-link.active {
    background: #4a90e2;
    color: #fff;
    border-color: #4a90e2;
    cursor: default;
}

/* Заглушка "доступно по тарифу" */
.article-restricted {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px;
    background: #26314e;
    border-radius: 8px;
    text-align: center;
}

.article-restricted-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #f7931a;
    color: #fff;
    border-radius: 50%;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
}

.article-restricted h1 {
    color: #fff;
    margin: 0 0 20px 0;
    font-size: 1.8rem;
}

.article-restricted-card {
    background: #1a1a2e;
    border: 1px solid #3d4870;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.article-restricted-title {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.2rem;
}

.article-restricted-annotation {
    color: #bbb;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}

.article-restricted-msg {
    color: #ccc;
    font-size: 15px;
    line-height: 1.55;
    margin: 20px 0;
}

.article-restricted-msg strong {
    color: #fff;
}

.article-restricted-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.article-restricted-actions .btn-primary,
.article-restricted-actions .btn-secondary {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
}

.article-restricted-actions .btn-primary {
    background: #4a90e2;
    color: #fff;
}

.article-restricted-actions .btn-primary:hover {
    background: #3a7dc9;
}

.article-restricted-actions .btn-secondary {
    background: #3d4870;
    color: #ccc;
}

.article-restricted-actions .btn-secondary:hover {
    background: #4a5a90;
}

.article-not-found {
    max-width: 600px;
    margin: 40px auto;
    padding: 40px;
    background: #26314e;
    border-radius: 8px;
    text-align: center;
}

.article-not-found h1 {
    color: #fff;
    margin: 0 0 16px 0;
}

.article-not-found p {
    color: #aaa;
    margin-bottom: 24px;
}

/* Активная кнопка раздела в шапке */
.header-btn-active {
    background: #4a90e2 !important;
    color: #fff !important;
}

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

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

    .articles-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .articles-search-form {
        max-width: none;
    }
}
