/* =========================================================================
   news-archive.css — компактные архивы /news и /blog/dota2.
   Оформление в духе blog-new.css, но со своим префиксом .bt-na,
   чтобы не задевать остальные страницы.
   ========================================================================= */

.bt-na {
    --na-card: #ffffff;
    --na-ink: #1c2b42;
    --na-ink-soft: #5d6b81;
    --na-muted: #8a94a3;
    --na-line: #e6eaf0;
    --na-line-soft: #f0f3f8;
    --na-bg: #f8f9fc;
    --na-brand: #cc1d14;
    --na-accent: #ffda33;
    --na-green: #2f9a4d;
    --na-blue: #2a5a9f;
    --na-radius: 18px;
    --na-shadow: 0 6px 24px rgba(19, 31, 53, .07);
    --na-shadow-sm: 0 3px 12px rgba(19, 31, 53, .05);
    width: 100%;
    max-width: 1180px;
    padding-left: 14px;
    padding-right: 14px;
    color: var(--na-ink);
}

.bt-na *,
.bt-na *::before,
.bt-na *::after {
    box-sizing: border-box;
}

.bt-na p {
    margin: 0 0 12px;
    color: #33415a;
    line-height: 1.65;
}

.bt-na p:last-child {
    margin-bottom: 0;
}

.bt-na .breadcrumb {
    margin: 6px 0 10px !important;
    padding-left: 0 !important;
}

/* ---------- Общие элементы ---------- */
.bt-na__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff3c4;
    color: #6f5500;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bt-na__eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--na-green);
    box-shadow: 0 0 0 3px rgba(47, 154, 77, .18);
}

.bt-na__section {
    margin-top: 14px;
    padding: 22px 24px;
    border: 1px solid var(--na-line);
    border-radius: var(--na-radius);
    background: var(--na-card);
    box-shadow: var(--na-shadow);
}

.bt-na__section-head {
    margin-bottom: 14px;
}

.bt-na__listing-top {
    margin-bottom: 0;
}

.bt-na__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.bt-na__title {
    position: relative;
    margin: 0;
    padding-left: 14px;
    color: var(--na-ink);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    text-align: left;
}

.bt-na__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--na-brand), var(--na-accent));
}

.bt-na__subtitle {
    margin: 8px 0 0 !important;
    color: var(--na-ink-soft);
    font-size: 13.5px;
    line-height: 1.55;
}

.bt-na__count {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid var(--na-line);
    border-radius: 999px;
    background: #f6f8fc;
    color: var(--na-muted);
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

/* ---------- Первый экран ---------- */
.bt-na__hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
    align-items: center;
    gap: 22px;
    padding: 18px 22px;
    border: 1px solid var(--na-line);
    border-radius: var(--na-radius);
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 58%, #fff8e1 100%);
    box-shadow: var(--na-shadow);
}

.bt-na__hero::before,
.bt-na__hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.bt-na__hero::before {
    width: 240px;
    height: 240px;
    right: -80px;
    top: -110px;
    background: rgba(255, 218, 51, .22);
}

.bt-na__hero::after {
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -110px;
    background: rgba(42, 90, 159, .07);
}

.bt-na__hero-body,
.bt-na__hero-art {
    position: relative;
    z-index: 1;
}

.bt-na__hero h1 {
    margin: 0 0 8px;
    color: var(--na-ink);
    font-size: clamp(26px, 3.2vw, 34px);
    line-height: 1.12;
    font-weight: 850;
    letter-spacing: -.015em;
    text-align: left;
}

.bt-na__lead {
    max-width: 70ch;
    margin: 0 0 12px !important;
    color: var(--na-ink-soft);
    font-size: 14.5px;
    line-height: 1.55;
}

.bt-na__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bt-na__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #d7e1f0;
    border-radius: 10px;
    background: #fff;
    color: var(--na-ink) !important;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-shadow: var(--na-shadow-sm);
    transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}

.bt-na__btn:hover {
    transform: translateY(-1px);
    border-color: #c6d4e8;
    box-shadow: 0 6px 16px rgba(19, 31, 53, .1);
}

.bt-na__btn--primary {
    border-color: var(--na-brand);
    background: var(--na-brand);
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(204, 29, 20, .24);
}

.bt-na__btn--primary:hover {
    border-color: #a9160f;
    background: #b71a12;
}

.bt-na__hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt-na__hero-art img {
    display: block;
    width: 100%;
    max-width: 260px;
    height: auto;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(19, 31, 53, .12));
}

/* ---------- Поиск ---------- */
.bt-na__toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.bt-na__search-wrap {
    position: relative;
    flex: 1 1 340px;
    max-width: 560px;
    min-width: 0;
}

.bt-na__search.search-containerm {
    position: relative;
    top: auto;
    left: auto;
    display: block;
    width: 100%;
    margin: 0;
    z-index: 2;
}

.bt-na__search .search-barm {
    display: flex;
    align-items: center;
    height: 42px;
    margin: 0;
    padding: 0 5px 0 0;
    border: 1px solid var(--na-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
}

.bt-na__search .search-barm:focus-within {
    border-color: var(--na-blue);
    box-shadow: 0 0 0 3px rgba(42, 90, 159, .13);
}

.bt-na__search .searchBoxm {
    align-self: stretch;
    height: auto;
    min-width: 0;
    padding: 0 12px;
    font-size: 14px;
    line-height: 1.2;
}

.bt-na__search .searchBtn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
}

.bt-na__search .searchBtn svg {
    width: 18px;
    height: 18px;
}

.bt-na__search-wrap .autocomplete-suggestionmsh {
    top: 100%;
    left: 0;
    right: 0;
    border-radius: 0 0 12px 12px;
    z-index: 20;
}

@media screen and (min-width: 641px) {
    .bt-na__listing-top {
        display: flex;
        align-items: flex-end;
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 14px;
    }

    .bt-na__listing-top .bt-na__section-head {
        margin-bottom: 0;
    }

    .bt-na__listing-top .bt-na__toolbar {
        flex: 0 1 520px;
        margin-bottom: 0;
    }
}

@media screen and (min-width: 641px) and (max-width: 900px) {
    .bt-na__listing-top {
        flex-wrap: wrap;
    }

    .bt-na__listing-top .bt-na__toolbar {
        flex: 1 1 100%;
    }
}

/* ---------- Фильтры-разделы ---------- */
.bt-na__chips {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0 0 16px;
    padding-bottom: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.bt-na__chips::-webkit-scrollbar {
    display: none;
}

.bt-na__chip {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 34px;
    white-space: nowrap;
    padding: 6px 12px;
    border: 1px solid var(--na-line);
    border-radius: 999px;
    background: #f8f9fc;
    color: #33415a !important;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.bt-na__chip:hover {
    border-color: #c6d4e8;
    background: #f1f5fb;
}

.bt-na__chip.is-active {
    border-color: var(--na-brand);
    background: var(--na-brand);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(204, 29, 20, .24);
}

/* ---------- Карточки ---------- */
.bt-na__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.bt-na__card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--na-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--na-shadow-sm);
    transition: transform .14s ease, border-color .15s ease, box-shadow .15s ease;
}

.bt-na__card:hover {
    transform: translateY(-2px);
    border-color: #d7e1f0;
    box-shadow: 0 10px 26px rgba(19, 31, 53, .1);
}

.bt-na__card-img {
    display: block;
    overflow: hidden;
    aspect-ratio: 325 / 208;
    background: #eef1f6;
    text-decoration: none;
}

.bt-na__card-img img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: top;
    transition: transform .25s ease;
}

.bt-na__card:hover .bt-na__card-img img {
    transform: scale(1.03);
}

.bt-na__card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    padding: 12px 14px 14px;
}

.bt-na__card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
}

.bt-na__card-type {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #e8eef9;
    color: #315aa6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.bt-na__card--news .bt-na__card-type {
    background: #e7f4e4;
    color: #3f7a35;
}

.bt-na__card--school .bt-na__card-type {
    background: #fdf1dc;
    color: #9a5b00;
}

.bt-na__card-date {
    color: var(--na-muted);
    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.2;
}

.bt-na__card-title {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--na-ink) !important;
    font-size: 14.5px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none !important;
    transition: color .15s ease;
}

.bt-na__card-title:hover {
    color: var(--na-brand) !important;
}

.bt-na__empty {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 32px 20px;
    border: 1px dashed #d7e1f0;
    border-radius: 14px;
    background: #fbfcfe;
    text-align: center;
}

.bt-na__empty strong {
    color: var(--na-ink);
    font-size: 15px;
    font-weight: 800;
}

.bt-na__empty span {
    color: var(--na-ink-soft);
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- Пагинация и «Показать ещё» ---------- */
.bt-na__load-more-wrap {
    display: flex;
    justify-content: center;
    margin: 20px 0 6px;
}

.bt-na__load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 0;
    padding: 10px 28px;
    border: 1px solid rgba(204, 29, 20, .28);
    border-radius: 999px;
    background: #fff;
    color: var(--na-brand);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: var(--na-shadow-sm);
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .12s ease;
}

.bt-na__load-more:hover:not(:disabled) {
    border-color: var(--na-brand);
    background: #fff6f5;
    box-shadow: 0 6px 16px rgba(204, 29, 20, .14);
    transform: translateY(-1px);
}

.bt-na__load-more:disabled {
    opacity: .7;
    cursor: wait;
    transform: none;
}

.bt-na__pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.bt-na__page,
.bt-na__page-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--na-line);
    border-radius: 8px;
    background: #fff;
    color: var(--na-ink) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.bt-na__page:hover,
.bt-na__page-arrow:hover {
    border-color: #c6d4e8;
    background: #f1f5fb;
}

.bt-na__page.is-current {
    border-color: var(--na-brand);
    background: var(--na-brand);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(204, 29, 20, .24);
}

.bt-na__page-arrow {
    border-radius: 50%;
    font-size: 18px;
}

.bt-na__page-arrow.is-disabled {
    opacity: .4;
    pointer-events: none;
}

.bt-na__page-ellipsis {
    padding: 0 2px;
    color: var(--na-muted);
    font-size: 13px;
}

/* ---------- Адаптив ---------- */
@media screen and (min-width: 641px) {
    .bt-na__hero .bt-na__eyebrow {
        display: none;
    }

    .bt-na__chips.is-scrollable {
        cursor: grab;
    }

    .bt-na__chips.is-dragging {
        cursor: grabbing;
        -webkit-user-select: none;
        user-select: none;
    }

    .bt-na__chips.is-dragging .bt-na__chip {
        cursor: grabbing;
    }
}

@media screen and (max-width: 900px) {
    .bt-na__hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .bt-na__hero-art {
        display: none;
    }

    .bt-na__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    .bt-na {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bt-na__hero {
        gap: 0;
        padding: 14px 12px;
        border-radius: 14px;
    }

    .bt-na__hero .bt-na__eyebrow,
    .bt-na__lead,
    .bt-na__hero-art {
        display: none;
    }

    .bt-na__hero h1 {
        margin-bottom: 0;
        font-size: clamp(22px, 6.4vw, 26px);
    }

    .bt-na__hero-actions {
        gap: 6px;
        margin-top: 10px;
    }

    .bt-na__btn {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 11.5px;
    }

    .bt-na__section {
        padding: 18px 15px;
        border-radius: 14px;
    }

    .bt-na__title {
        font-size: 19px;
    }

    .bt-na__subtitle {
        display: none;
    }

    .bt-na__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .bt-na__card-img {
        aspect-ratio: 16 / 11;
    }

    .bt-na__chips {
        gap: 6px;
        margin-bottom: 14px;
    }

    .bt-na__chip {
        min-height: 32px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .bt-na__toolbar {
        display: none;
    }

    .bt-na__load-more {
        width: 100%;
    }

    .bt-na__page,
    .bt-na__page-arrow {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bt-na__btn,
    .bt-na__card,
    .bt-na__card-img img,
    .bt-na__load-more {
        transition: none;
    }
}

/* Рейтинг на /blog/dota2 */
.bt-na__rating .rating_block {
    margin-top: 0 !important;
}

/* ---------- Блок «Betteam новости» на главной ---------- */
.bt-na--home-news {
    max-width: none;
}

.bt-na--home-news .bt-na__grid {
    margin: 0;
}

.bt-na--home-news .date_select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px !important;
}

.bt-na--home-news .date_select > a {
    display: inline-flex;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    text-align: left;
}

.bt-na--home-news .date_select > a > span,
.bt-na--home-news .date_select > span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 !important;
    padding: 6px 12px;
    border: 1px solid var(--na-line);
    border-radius: 999px;
    background: #f8f9fc;
    color: #33415a;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.bt-na--home-news .date_select span.current {
    border-color: var(--na-brand);
    background: var(--na-brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(204, 29, 20, .24);
}

@media screen and (max-width: 640px) {
    .bt-na--home-news .date_select {
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .bt-na--home-news .date_select::-webkit-scrollbar {
        display: none;
    }

    .bt-na--home-news .date_select > a > span,
    .bt-na--home-news .date_select > span {
        flex: 0 0 auto;
        min-height: 32px;
        padding: 6px 10px;
        font-size: 12px;
    }
}
