/* Список статей /articles/ (archive-articles.php) */

.articles-page {
    font-family: var(--price-font-serif);
    color: var(--price-color-text);
}

/* ---------- Вступление ---------- */

.articles-page__intro {
    padding: 64px 0 56px;
    border-top: 1px solid var(--price-color-border);
}

.articles-page__title {
    margin: 0;
    font-family: var(--price-font-serif);
    font-weight: 400;
    font-size: clamp(44px, 6vw, 84px);
    line-height: .96;
    letter-spacing: -.01em;
}

@media (max-width: 991px) {
    .articles-page__intro {
        padding: 40px 0 32px;
    }
}

/* ---------- Новая статья ---------- */

.articles-page__top {
    padding: 0 0 100px;
}

.articles-page__feat {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 500px;
    background: var(--ltr-color-cream);
    color: var(--price-color-text);
    text-decoration: none;
}

.articles-page__feat:hover {
    color: var(--price-color-text);
}

.articles-page__feat-pic {
    position: relative;
    overflow: hidden;
    background: #e9e7e3;
}

.articles-page__feat-pic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 25%;
    transition: transform .7s ease;
}

.articles-page__feat:hover .articles-page__feat-pic img {
    transform: scale(1.04);
}

.articles-page__feat-new {
    position: absolute;
    left: 18px;
    top: 18px;
    padding: 9px 12px;
    border-radius: 999px;
    background: var(--price-color-active);
    color: #fff;
    font-family: var(--price-font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.articles-page__feat-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 56px 64px;
}

.articles-page__feat-cat {
    margin: 0 0 18px;
    font-family: var(--price-font-sans);
    font-size: 13px;
    color: var(--price-color-text-secondary);
}

.articles-page__feat-title {
    margin: 0 0 20px;
    font-family: var(--price-font-serif);
    font-weight: 400;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.08;
}

.articles-page__feat-ex {
    max-width: 46ch;
    margin: 0 0 36px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--price-color-text-secondary);
}

.articles-page__feat:hover .ltr-btn--navy {
    background: #1b2244;
}

@media (max-width: 991px) {
    .articles-page__feat-body {
        padding: 36px 32px;
    }
}

@media (max-width: 782px) {
    .articles-page__top {
        padding-bottom: 64px;
    }

    .articles-page__feat {
        grid-template-columns: 1fr;
        min-height: 0;
        background: #fff;
    }

    .articles-page__feat-pic {
        aspect-ratio: 4 / 3.6;
        margin: 0 calc(var(--ltr-gut) * -1);
    }

    .articles-page__feat-body {
        padding: 26px 0 0;
    }

    .articles-page__feat-ex {
        margin-bottom: 28px;
        font-size: 17px;
    }
}

/* ---------- Все статьи: фильтры + сетка ---------- */

.articles-page__list {
    padding: 0 0 110px;
}

.articles-page__list-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
}

.articles-page__found {
    margin: 0;
    font-family: var(--price-font-sans);
    font-size: 14px;
    color: var(--price-color-muted);
}

.articles-page__bar {
    position: sticky;
    top: calc(var(--ltr-adminbar, 0px) + var(--ltr-sticky-offset, 0px));
    z-index: 15;
    transition: top .25s ease;
    margin-bottom: 44px;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    backdrop-filter: saturate(1.4) blur(10px);
    border-top: 1px solid var(--price-color-border);
    border-bottom: 1px solid var(--price-color-border);
}

.articles-page__bar-in {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 76px;
}

.articles-page__chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-right: auto;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.articles-page__chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border: 1px solid var(--price-color-border);
    border-radius: 999px;
    background: #fff;
    color: var(--price-color-text);
    font-family: var(--price-font-sans);
    font-size: 14px;
    cursor: pointer;
    transition: border-color .15s, background .15s, color .15s;
}

.articles-page__chip small {
    font-size: 12px;
    color: var(--price-color-muted);
    transition: color .15s;
}

.articles-page__chip:hover {
    border-color: var(--price-color-active);
}

.articles-page__chip[aria-pressed="true"] {
    background: var(--price-color-active);
    border-color: var(--price-color-active);
    color: #fff;
}

.articles-page__chip[aria-pressed="true"] small {
    color: rgba(255, 255, 255, .6);
}

.articles-page__search {
    position: relative;
    flex: 0 1 300px;
}

.articles-page__search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    stroke: var(--price-color-muted);
    fill: none;
    stroke-width: 1.6;
}

.articles-page__search input {
    width: 100%;
    height: 42px;
    padding: 0 40px 0 44px;
    border: 1px solid var(--price-color-border);
    border-radius: 999px;
    background: #fff;
    font-family: var(--price-font-sans);
    font-size: 14px;
    outline: none;
    transition: border-color .15s;
}

.articles-page__search input:focus {
    border-color: var(--price-color-active);
}

.articles-page__search input::-webkit-search-cancel-button {
    display: none;
}

.articles-page__search-x {
    position: absolute;
    right: 6px;
    top: 50%;
    display: none;
    place-items: center;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: var(--price-color-bg-soft);
    color: var(--price-color-text-secondary);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.articles-page__search.has-q .articles-page__search-x {
    display: grid;
}

.articles-page__sort {
    position: relative;
}

.articles-page__sort select {
    height: 42px;
    padding: 0 40px 0 18px;
    border: 1px solid var(--price-color-border);
    border-radius: 999px;
    background: #fff;
    color: var(--price-color-text);
    font-family: var(--price-font-sans);
    font-size: 14px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.articles-page__sort select:focus {
    border-color: var(--price-color-active);
}

.articles-page__sort::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    width: 7px;
    height: 7px;
    transform: translateY(-70%) rotate(45deg);
    border-right: 1.5px solid var(--price-color-text);
    border-bottom: 1.5px solid var(--price-color-text);
    pointer-events: none;
}

.articles-page__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px 24px;
}

.articles-page__grid .article-card.is-hidden {
    display: none;
}

.articles-page__grid .article-card {
    animation: articlesFadeUp .45s ease both;
}

@keyframes articlesFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.articles-page__empty {
    display: none;
    padding: 60px 20px;
    border: 1px dashed var(--price-color-border);
    text-align: center;
}

.articles-page__empty.is-on {
    display: block;
}

.articles-page__error {
    margin-top: 28px;
    text-align: center;
}

.articles-page__more [aria-disabled="true"] {
    opacity: .6;
    cursor: wait;
}

.articles-page__empty p {
    margin: 0 0 20px;
    font-size: 20px;
}

.articles-page__more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 64px;
}

.articles-page__more[hidden] {
    display: none;
}

.articles-page__more-bar {
    position: relative;
    width: 220px;
    height: 2px;
    overflow: hidden;
    background: var(--price-color-border);
}

.articles-page__more-bar i {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--price-color-accent);
    transition: width .3s;
}

.articles-page__more-txt {
    margin: 0;
    font-family: var(--price-font-sans);
    font-size: 13px;
    color: var(--price-color-muted);
}

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

@media (max-width: 991px) {
    .articles-page__bar {
        margin-bottom: 32px;
    }

    .articles-page__bar-in {
        flex-wrap: wrap;
        gap: 10px;
        min-height: 0;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .articles-page__chips {
        order: 2;
        flex: 0 0 calc(100% + var(--ltr-gut) * 2);
        min-width: 0;
        margin: 0 calc(var(--ltr-gut) * -1);
        padding: 0 var(--ltr-gut);
    }

    .articles-page__search {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 782px) {
    .articles-page__list {
        padding-bottom: 64px;
    }

    .articles-page__list-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .articles-page__grid {
        gap: 40px 14px;
    }
}

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

    .articles-page__sort select {
        padding-right: 34px;
        padding-left: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .articles-page__grid .article-card {
        animation: none;
    }

    .articles-page__feat-pic img {
        transition: none;
    }
}
