/* ============================================================
   bloginfo v1 — Полезные статьи (архив, категория)
   ============================================================ */

body.page-archive-articles .bloginfo-v1,
body.page-tax-articles .bloginfo-v1 { --section-pt: var(--gap-bcr-to-section); }

.bloginfo-v1 { padding: var(--section-pt, 0px) 0 var(--section-pb, 60px); }

.bloginfo-v1__wrap {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 25px;
}

/* Заголовок — первая строка */
.bloginfo-v1__header {
    order: 1;
    width: 100%;
}

.bloginfo-v1__heading {
    font-weight: 700;
    font-size: 40px;
    line-height: 107%;
    letter-spacing: -0.02em;
    color: var(--text-main-color);
    margin: 0;
}

/* Грид — вторая строка */
.bloginfo-v1__grid {
    order: 2;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Карточка: фото сверху, белый контент снизу, рамка */
.bloginfo-v1__card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
    border: 1px solid var(--color-border);
    text-decoration: none;
}

.bloginfo-v1__card-bg {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 300 / 197;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

/* Контентная зона: колонка, белый фон */
.bloginfo-v1__card-body {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 25px 25px;
    height: auto;
    flex-shrink: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.bloginfo-v1__card-title {
    font-weight: 700;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: -0.01em;
    color: var(--text-main-color);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Desktop: пилюля-кнопка видима, мобильная ссылка скрыта */
.bloginfo-v1__card-btn--desktop {
    width: 150px;
    height: 50px;
    background: var(--color-golden);
    border-radius: 100px;
    font-family: 'LorenzoSans', Arial, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 135%;
    letter-spacing: -0.005em;
    color: #FFFFFF;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity var(--transition-speed);
}

.bloginfo-v1__card-btn--mobile { display: none; }

.bloginfo-v1__card:hover .bloginfo-v1__card-btn--desktop { opacity: 0.85; }

/* Навигация — третья строка, по центру */
.bloginfo-v1__nav {
    order: 3;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.bloginfo-v1__nav-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-golden);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: opacity var(--transition-speed);
    flex-shrink: 0;
}

.bloginfo-v1__nav-btn:hover { opacity: 0.85; }

.bloginfo-v1__nav-btn--disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .bloginfo-v1__wrap {
        max-width: none;
        width: 75vw;
        margin: 0 auto;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
        row-gap: 5vw;
    }

    .bloginfo-v1__header { order: 1; }

    .bloginfo-v1__heading {
        font-size: 25px;
        line-height: 107%;
        letter-spacing: -0.01em;
    }

    /* Грид: 1 колонка */
    .bloginfo-v1__grid {
        order: 2;
        grid-template-columns: 1fr;
        gap: 5vw;
    }

    /* Nav — под карточками (order и justify-content унаследованы с десктопа) */

    .bloginfo-v1__nav-btn {
        width: 13vw;
        height: 13vw;
    }

    /* Карточка — как oneconsinfo-v1__card: белая, фото сверху, контент снизу */
    .bloginfo-v1__card {
        aspect-ratio: unset;
        min-height: unset;
        background: #fff;
        border: 1px solid var(--color-border);
        box-shadow: 0px 2.67vw 9.33vw rgba(152, 152, 152, 0.1);
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Фото: выходит из absolute, становится блочным элементом сверху */
    .bloginfo-v1__card-bg {
        position: static;
        width: 100%;
        height: auto;
        aspect-ratio: 300 / 197;
        object-fit: cover;
        flex-shrink: 0;
    }

    /* Контентная зона: колонка, без blur, светлый фон */
    .bloginfo-v1__card-body {
        position: static;
        height: auto;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 3vw;
        padding: 5vw 5vw 6.25vw;
    }

    .bloginfo-v1__card-title {
        font-size: 15px;
        line-height: 1.35;
        color: var(--text-main-color);
        display: block;
        overflow: visible;
        -webkit-line-clamp: unset;
    }

    /* Mobile: скрыть пилюлю, показать текстовую ссылку */
    .bloginfo-v1__card-btn--desktop { display: none; }

    .bloginfo-v1__card-btn--mobile {
        display: inline;
        font-family: 'LorenzoSans', Arial, sans-serif;
        font-weight: 700;
        font-size: 14px;
        color: var(--color-golden);
        text-decoration: underline;
        text-underline-offset: 0.8vw;
        text-decoration-color: rgba(254, 171, 49, 0.4);
    }

    body.page-archive-articles .bloginfo-v1,
    body.page-tax-articles .bloginfo-v1 {
        padding-bottom: 15vw;
    }
}

/* Single article — кнопка «Назад» оранжевая */
body.page-articles .articles-typical__back-link a {
    color: var(--color-golden);
    font-size: 10px;
}
body.page-articles .articles-typical__back-link a svg,
body.page-articles .articles-typical__back-link a img {
    fill: var(--color-golden);
}
body.page-articles .articles-typical__back-link a svg path {
    fill: var(--color-golden);
}

/* Похожие статьи — белый низ, тёмный текст */
body.page-articles .articles__item::before,
body.page-articles .articles__item::after {
    display: none;
}

/* Карточки по центру страницы */
body.page-articles .articles__container .container-flex {
    justify-content: center;
}

body.page-articles .articles__item {
    background: #fff;
    border: 1px solid var(--color-border);
    justify-content: flex-start;
    padding: 0;
    box-shadow: 0 2px 12px rgba(152, 152, 152, 0.12);
}

/* Изображение: из absolute-фона в статичный блок сверху */
body.page-articles .articles__item .item-img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    flex-shrink: 0;
    z-index: auto;
}

/* Белая зона контента */
body.page-articles .articles__item .item-title {
    color: var(--text-main-color);
    padding: 15px 20px 0;
    z-index: auto;
}

body.page-articles .articles__item .item-link {
    padding: 0 20px 18px;
}

body.page-articles .articles__item .item-link div {
    color: var(--color-golden);
    font-size: 10px;
}

body.page-articles .articles__item .item-link div svg,
body.page-articles .articles__item .item-link div img {
    fill: var(--color-golden);
}

body.page-articles .articles__item .item-link div svg path,
body.page-articles .articles__item .item-link div img path {
    fill: var(--color-golden);
}

@media (max-width: 768px) {
    body.page-articles .articles__item .item-title {
        font-size: 12px;
        line-height: 1.3;
    }

    body.page-articles .articles__item .item-link div {
        font-size: 10px;
    }

    body.page-articles .articles__slider .swiper-container {
        min-height: unset;
    }

    body.page-articles .articles-typical {
        margin-bottom: 0;
    }

    body.page-articles .articles-typical__back-link {
        justify-content: flex-start;
    }

    body.page-articles .articles-typical__back-link a span {
        font-size: 10px;
        line-height: 1;
    }
}
