/*  ARTICLES PAGE */
.articles-page {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    flex: 1;
    padding: 0 24px 80px;
}

/*  HERO */
.articles-hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 52px 0 48px;
    text-align: center;
}

.articles-hero p {
    max-width: 620px;
    margin: 18px auto 0;
    color: var(--text-gray);
    font-size: 18px;
    line-height: 1.6;
}

/*  FILTERS */
.articles-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 48px;
}

.article-filter {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-gray);
    padding: 8px 16px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.article-filter:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.25);
    background: var(--primary-soft);
}

.article-filter.active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

/*  SECTION HEADER */
.articles-section {
    width: 100%;
}

.articles-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 22px;
}

.articles-section-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 24px;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: -0.4px;
}

.articles-count {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
}

/*  ARTICLES GRID */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/*  ARTICLE CARD */
.article-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

/*  COVER */
.article-cover-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
    height: 260px; /* фиксированная высота */
    border-radius: 12px 12px 0 0;
}

.article-cover {
    position: relative;
    height: 220px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.article-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* картинка заполнит блок, обрезая лишнее */
    display: block;
    transition: transform 0.3s ease;
}

.article-card:hover .article-cover-image {
    transform: scale(1.05);
}

/*  COVER #1 — RESUME */
.article-cover-resume {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
}

.cover-document {
    position: relative;
    width: 150px;
    height: 178px;
    padding: 24px 18px;
    background: var(--white);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 5px;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
    transform: rotate(-3deg);
}

.cover-document-header {
    width: 55px;
    height: 9px;
    margin-bottom: 18px;
    border-radius: 3px;
    background: var(--primary);
}

.cover-document-line {
    width: 100%;
    height: 5px;
    margin-bottom: 9px;
    border-radius: 3px;
    background: #e2e8f0;
}

.cover-document-line.short {
    width: 55%;
}

.cover-document-line.medium {
    width: 75%;
}

.cover-highlight {
    width: 75%;
    height: 24px;
    margin: 15px 0;
    border-radius: 4px;
    background: var(--primary-soft);
    border-left: 3px solid var(--primary);
}

/*  COVER #2 — CAREER */
.article-cover-career {
    background: linear-gradient(135deg, #f5f3ff 0%, #eff6ff 100%);
}

.cover-window {
    width: 190px;
    height: 135px;
    background: var(--white);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.10);
    overflow: hidden;
}

.cover-window-top {
    height: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-bottom: 1px solid #f1f5f9;
}

.cover-window-top span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #cbd5e1;
}

.cover-window-content {
    display: flex;
    gap: 14px;
    padding: 22px;
}

.cover-avatar {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 8px;
    background: var(--primary-soft);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.cover-lines {
    flex: 1;
}

.cover-lines span {
    display: block;
    height: 6px;
    margin-bottom: 9px;
    border-radius: 3px;
    background: #e2e8f0;
}

.cover-lines span:first-child {
    width: 80%;
}

.cover-lines span:nth-child(2) {
    width: 100%;
}

.cover-lines span:nth-child(3) {
    width: 60%;
}

/*  COVER #3 — INTERVIEW */
.article-cover-interview {
    background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.cover-chat {
    position: relative;
    width: 150px;
    height: 130px;
}

.cover-chat-question,
.cover-chat-answer {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: 800;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
}

.cover-chat-question {
    top: 4px;
    left: 10px;
    color: var(--primary);
    background: var(--white);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.cover-chat-answer {
    right: 5px;
    bottom: 5px;
    color: var(--white);
    background: var(--primary);
}

/*  COVER #4 — CHECKLIST */
.cover-checklist {
    width: 190px;
    padding: 22px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.10);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.check-row:last-child {
    margin-bottom: 0;
}

.check {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
}

.check-row .check:not(:empty) {
    background: var(--primary);
    border-color: var(--primary);
}

.check-row > span:last-child {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
}

/*  COVER #5 — PATH */
.cover-path {
    display: flex;
    align-items: center;
    width: 190px;
}

.path-dot {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid #cbd5e1;
}

.path-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 0 7px var(--primary-soft);
}

.path-line {
    height: 3px;
    flex: 1;
    background: #cbd5e1;
}

/*  COVER #6 — INTERVIEW CARD */
.cover-interview-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: var(--white);
    border: 1px solid rgba(37, 99, 235, 0.08);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.10);
}

.interview-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--primary);
    font-size: 16px;
    font-weight: 800;
}

.interview-text {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 700;
}

/*  CARD CONTENT */
.article-card-body {
    display: flex;
    flex-direction: column;
    padding: 20px 20px 18px;
    min-height: 245px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
}

.article-category {
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-reading-time {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

.article-card-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.25px;
}

.article-card-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card-title a:hover {
    color: var(--primary);
}

.article-card-description {
    margin: 10px 0 0;
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.55;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 18px;
    color: var(--text-muted);
    font-size: 12px;
}

.article-read-link {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.article-read-link:hover {
    background: #dbeafe;
    transform: translateX(2px);
}

/*  PAGINATION */
.articles-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 52px;
}

.pagination-button {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-gray);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.pagination-button:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.25);
    background: var(--primary-soft);
}

.pagination-button.active {
    color: var(--white);
    background: var(--primary);
    border-color: var(--primary);
}

.pagination-dots {
    padding: 0 4px;
    color: var(--text-muted);
    font-size: 14px;
}

.pagination-next {
    font-size: 17px;
}

/*  FOOTER */
.articles-footer {
    border-top: 1px solid var(--border);
    background: var(--white);
}

.articles-footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 24px;
    color: var(--text-muted);
    font-size: 13px;
}

/*  TABLET */
@media (max-width: 1000px) {
    .articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/*  MOBILE */
@media (max-width: 650px) {
    .articles-page {
        padding: 0 16px 60px;
    }

    .articles-hero {
        padding: 48px 0 34px;
    }

    .articles-hero h1 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .articles-hero p {
        font-size: 16px;
    }

    .articles-filters {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        margin-bottom: 36px;
        scrollbar-width: none;
    }

    .articles-filters::-webkit-scrollbar {
        display: none;
    }

    .article-filter {
        flex-shrink: 0;
    }

    .articles-section-header {
        margin-bottom: 18px;
    }

    .articles-section-header h2 {
        font-size: 21px;
    }

    .articles-count {
        display: none;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-cover {
        height: 190px;
    }

    .article-card-body {
        min-height: 220px;
    }
}

/*  SMALL MOBILE */
@media (max-width: 420px) {
    .articles-hero h1 {
        font-size: 30px;
    }

    .articles-hero p {
        font-size: 15px;
    }

    .article-cover {
        height: 180px;
    }
}