/* ================================================================
   articles.css — секция Статьи на главной
   ================================================================ */

.fp-articles {
    background: #0b0c0f;
    padding-bottom: 120px;
}

.fp-articles__inner {
    padding: 0 140px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Шапка ───────────────────────────────────────────────────── */
.fp-articles__head {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 0 60px;
}

.fp-articles__title {
    color: var(--white);
    font-family: var(--h2-font-family);
    font-size: var(--h2-font-size);
    line-height: var(--h2-line-height);
    font-weight: var(--h2-font-weight);
    flex-shrink: 0;
    max-width: 476px;
    width:100%;
}

.fp-articles__head-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    max-width: 454px;
}

.fp-articles__desc {
    color: var(--text);
    font-family: var(--text1-font-family);
    font-size: var(--text1-font-size);
    line-height: var(--text1-line-height);
    font-weight: var(--text1-font-weight);
}

/* Фильтры — используем общие классы из filters.css */
.fp-articles__filters {
    display: flex;
    flex-direction: row;
    gap: 6.4px;
    flex-wrap: wrap;
}

/* ── Общие стили карточек ────────────────────────────────────── */
.fp-art__zagolovok {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fp-art__cat {
    color: var(--active);
    font-family: var(--text4-font-family);
    font-size: var(--text4-font-size);
    font-weight: var(--text4-font-weight);
}

.fp-art__title a {
    color: var(--white);
    font-family: var(--h3-font-family);
    font-size: var(--h3-font-size);
    line-height: var(--h3-line-height);
    font-weight: var(--h3-font-weight);
    transition: color 0.2s ease;
}
.fp-art__title a:hover { color: var(--active); }

.fp-art__title--sm a { font-size: 28px; }

.fp-art__excerpt {
    color: var(--text);
    font-family: "Onest", sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 140%;
}

.fp-art__date {
    color: var(--active);
    font-family: var(--podpisi-font-family);
    font-size: var(--podpisi-font-size);
    line-height: var(--podpisi-line-height);
    font-weight: var(--podpisi-font-weight);
}

.fp-art__btn {
    border: 1px solid var(--active);
    padding: 8px 19px 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--active);
    font-family: var(--text-button1-font-family);
    font-size: var(--text-button1-font-size);
    font-weight: var(--text-button1-font-weight);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.fp-art__btn:hover {
    background: var(--active);
    color: var(--button);
}

.fp-art__link {
    color: var(--active);
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.fp-art__link:hover { color: var(--white); }

/* ── Широкая карточка ────────────────────────────────────────── */
.fp-art-featured {
    background: #161820;
    border-top: 1px solid var(--active);
    padding: 40px 36px;
    display: flex;
    flex-direction: row;
    gap: 196px;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease;
}

.fp-art-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--active);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease;
}
.fp-art-featured:hover { background: #1e212c; }
.fp-art-featured:hover::before { transform: scaleX(1); }

.fp-art-featured__text {
    display: flex;
    flex-direction: column;
    gap: 29px;
    flex: 1;
    min-width: 0;
    max-width: 873px;
}

.fp-art-featured__aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
    flex-shrink: 0;
    width: 203px;
}

/* ── Три карточки ────────────────────────────────────────────── */
.fp-art-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.fp-art-card {
    border: 1px solid var(--active);
    border-top: none;
    border-left: none;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 35px;
    position: relative;
    overflow: hidden;
    transition: background 0.25s ease;
}

.fp-art-card:first-child {
    border-left: 1px solid var(--active);
}

.fp-art-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: var(--active);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.4s ease;
}
.fp-art-card:hover { background: #161820; }
.fp-art-card:hover::before { transform: scaleX(1); }

.fp-art-card__body {
    display: flex;
    flex-direction: column;
    gap: 35px;
    flex: 1;
}

.fp-art-card__footer {
    border-top: 0.5px solid rgba(119, 130, 179, 0.8);
    padding-top: 14px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* ── Кнопка все статьи ───────────────────────────────────────── */
.fp-articles__footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 40px;
}

.fp-articles__all-btn {
    background: var(--active);
    padding: 20px 40px;
    color: #000000;
    font-family: var(--text-button1-font-family);
    font-size: var(--text-button1-font-size);
    font-weight: var(--text-button1-font-weight);
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}
.fp-articles__all-btn:hover { opacity: 0.85; }

/* ── Адаптив ─────────────────────────────────────────────────── */
@media (max-width: 1440px) {
    .fp-articles__inner { padding-inline: 80px; }
    .fp-articles__title { width: auto; font-size: 48px; }
    .fp-art-featured { gap: 80px; }
    .fp-art__title--sm a {font-size:24px;}
}

@media (max-width: 1200px) {
    .fp-articles__inner { padding-inline: 40px; }
    .fp-articles__title { font-size: 40px; }
    .fp-art-featured { gap: 48px; }
    .fp-art-featured__aside { width: auto; }
        .fp-art__title--sm a {font-size:20px;}
}

@media (max-width: 900px) {
    .fp-articles__inner { padding-inline: 24px; }
    .fp-articles__head  { flex-direction: column; gap: 24px; }
    .fp-articles__title { font-size: 36px; width: 100%; }
    .fp-articles__head-right { max-width: 100%; }
      .fp-art__title a {font-size:32px;}   
    .fp-art-featured {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 24px;
    }
    .fp-art-featured__aside {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .fp-art-grid { grid-template-columns: 1fr; }
    .fp-art-card { border-left: 1px solid var(--active); }
}

@media (max-width: 480px) {
    .fp-articles__inner { padding-inline: 20px; }
    .fp-articles__title { font-size: 28px; }
    .fp-art__title a    { font-size: 20px; }
    .fp-articles__all-btn { padding: 14px 24px; font-size: 16px; }
}



.portfolio-filter__btn {
    border: 1px solid rgba(148, 148, 148, 0.27);
    padding: 6px 12px;
    color: #949494;
    font-family: var(--text-button2-font-family);
    font-size: var(--text-button2-font-size);
    line-height: var(--text-button2-line-height);
    font-weight: var(--text-button2-font-weight);
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: center;
}

.portfolio-filter__btn.is-active {
    background: rgba(119, 130, 179, 0.05);
    border-color: #7782b3;
    color: #7782b3;
}

.portfolio-filter__btn:hover:not(.is-active) {
    border-color: rgba(148, 148, 148, 0.6);
    color: var(--text);
}
