.bm-feed {
    margin-bottom: var(--bm-space-5);
}

.bm-feed__items {
    display: flex;
    flex-direction: column;
}

.bm-feed--side .bm-feed__items {
    gap: var(--bm-space-5);
}

.bm-feed--list .bm-post-card {
    margin-bottom: var(--bm-space-5);
    padding-bottom: var(--bm-space-5);
    border-bottom: 1px solid var(--bm-line);
}

.bm-feed--list .bm-post-card:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/* ==========================================================================
   Wrapper-2: блок «Новости» на главной (front-page)
   ========================================================================== */

.bm-home-news {
    margin-bottom: var(--bm-space-0);
}

/* Верхний ряд: 2 больших карточки */
.bm-home-news__featured {
    margin-bottom: var(--bm-space-5);
}

.bm-home-news__featured .bm-feed__items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--bm-space-6);
}

.bm-home-news__featured .bm-feed__items>* {
    flex: 0 0 calc((100% - var(--bm-space-6)) / 2);
    max-width: calc((100% - var(--bm-space-6)) / 2);
}

.bm-home-news__featured .bm-post-card {
    flex-direction: column;
}

.bm-home-news__featured .bm-post-card__media {
    flex: 0 0 auto;
    width: 100%;
    height: var(--bm-size-post-media-hero);
    min-height: var(--bm-size-post-media-hero);
}

.bm-home-news__featured .bm-post-card__image {
    height: var(--bm-size-post-media-hero);
}

/* Нижний ряд: 4 маленьких карточки в сетке 2×2 */
.bm-home-news__list .bm-feed__items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--bm-space-5) var(--bm-space-6);
}

.bm-home-news__list .bm-feed__items>* {
    flex: 0 0 calc((100% - var(--bm-space-6)) / 2);
    max-width: calc((100% - var(--bm-space-6)) / 2);
}

.bm-home-news__list .bm-post-card {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--bm-space-4);
}

.bm-home-news__list .bm-post-card__media {
    flex: 0 0 auto;
    width: 150px;
    aspect-ratio: 503 / 360;
    min-height: 107px;
}

.bm-home-news__list .bm-post-card__title {
    font-size: var(--bm-font-size-sm);
    line-height: var(--bm-line-tight);
}

.bm-home-news__list .bm-post-card__excerpt {
    display: none;
}

@media (max-width: 1018px) {
    .bm-home-news__featured .bm-feed__items {
        gap: var(--bm-space-3);
    }

    .bm-home-news__featured .bm-feed__items>* {
        flex-basis: 100%;
        max-width: 100%;
    }

    .bm-home-news__list .bm-feed__items {
        gap: var(--bm-space-3);
    }

    .bm-home-news__featured .bm-post-card__media {
        height: var(--bm-size-post-media);
    }

    .bm-feed.bm-home-news__list {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    .bm-home-news__list .bm-feed__items>* {
        flex-basis: 100%;
        max-width: 100%;
    }

    .bm-post-card__meta time {
        font-size: var(--bm-font-size-xs);
        line-height: 1.8;
    }
}

@media (max-width: 767px) {
    .bm-home-news--mobile-single-feature .bm-home-news__featured .bm-feed__items>.bm-post-card:not(:first-child) {
        flex-direction: row;
        align-items: flex-start;
        gap: var(--bm-space-4);
    }

    .bm-home-news--mobile-single-feature .bm-home-news__featured .bm-feed__items>.bm-post-card:not(:first-child) .bm-post-card__media {
        flex: 0 0 min(42vw, 130px);
        width: min(42vw, 130px);
        height: 110px;
        min-height: 110px;
    }

    .bm-home-news--mobile-single-feature .bm-home-news__featured .bm-feed__items>.bm-post-card:not(:first-child) .bm-post-card__title {
        margin-bottom: var(--bm-space-3);
        font-size: var(--bm-font-size-sm);
        line-height: var(--bm-line-tight);
    }

    .bm-home-news--mobile-single-feature .bm-home-news__featured .bm-feed__items>.bm-post-card:not(:first-child) .bm-post-card__excerpt {
        display: none;
    }
}

/* ==========================================================================
   Wrapper-3: блок «Партнёрские материалы» на главной (front-page)
   ========================================================================== */

.bm-home-partners {
    margin-bottom: var(--bm-space-5);
}

.bm-home-partners__items {
    margin-bottom: var(--bm-space-6);
}

.bm-home-partners__items .bm-feed__items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--bm-space-7);
}

.bm-home-partners--columns-4 .bm-home-partners__items .bm-feed__items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--bm-space-6);
}

.bm-home-partners__items .bm-post-card {
    flex-direction: column;
    gap: var(--bm-space-3);
    min-width: 0;
}

.bm-home-partners__items .bm-post-card__media {
    width: 100%;
    flex-basis: auto;
    min-height: var(--bm-size-post-media-card);
}

.bm-home-partners--columns-4 .bm-home-partners__items .bm-post-card__media {
    aspect-ratio: 4 / 3;
    min-height: 0;
}

.bm-home-partners__items .bm-post-card__title {
    font-size: var(--bm-font-size-xl);
    line-height: var(--bm-line-tight);
}

.bm-home-partners--columns-4 .bm-home-partners__items .bm-post-card__title {
    font-size: var(--bm-font-size-lg);
}

.bm-home-partners__items .bm-post-card__excerpt {
    font-size: var(--bm-font-size-sm);
    -webkit-line-clamp: 5;
}

.bm-home-partners__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--bm-space-6);
}

@media (min-width: 1019px) {
    .bm-home-partners--columns-3 .bm-home-partners__items .bm-post-card__media {
        min-height: 0;
    }
}

@media (max-width: 1018px) {
    .bm-home-partners__items .bm-feed__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bm-home-partners--columns-4 .bm-home-partners__items .bm-feed__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bm-home-partners__items .bm-post-card__media {
        min-height: var(--bm-size-post-media);
    }

    .bm-home-partners--columns-4 .bm-home-partners__items .bm-post-card__media {
        min-height: 0;
    }
}

@media (max-width: 767px) {

    .bm-home-partners__items .bm-feed__items,
    .bm-home-partners--columns-4 .bm-home-partners__items .bm-feed__items {
        grid-template-columns: 1fr;
        gap: var(--bm-space-3);
    }

    .bm-home-partners--columns-4 .bm-home-partners__items .bm-post-card__media {
        aspect-ratio: 16 / 10;
    }

    .bm-home-partners--columns-4 .bm-home-partners__items .bm-post-card__title {
        font-size: var(--bm-font-size-xl);
    }

    .bm-home-partners__actions {
        justify-content: center;
    }
}

.bm-home-advertorials__viewport {
    min-width: 0;
}

.bm-home-advertorials__dots {
    display: none;
}

@media (max-width: 767px) {
    .bm-home-advertorials__items {
        margin-bottom: var(--bm-space-4);
    }

    .bm-home-advertorials__viewport {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .bm-home-advertorials__viewport::-webkit-scrollbar {
        display: none;
    }

    .bm-home-advertorials .bm-home-advertorials__track {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
        gap: var(--bm-space-3);
        flex-direction: row;
    }

    .bm-home-advertorials .bm-post-card {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .bm-home-advertorials__dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-top: var(--bm-space-4);
    }

    .bm-home-advertorials__dot {
        width: 12px;
        height: 12px;
        padding: 0;
        border: 0;
        border-radius: var(--bm-radius-pill);
        background: var(--bm-muted);
        cursor: pointer;
        opacity: .7;
        transition:
            width var(--bm-transition-fast),
            background-color var(--bm-transition-fast),
            opacity var(--bm-transition-fast);
    }

    .bm-home-advertorials__dot.is-active {
        width: 72px;
        background: var(--bm-accent);
        opacity: 1;
    }

    .bm-home-advertorials__dot:focus-visible {
        outline: 2px solid var(--bm-accent-dark);
        outline-offset: 3px;
    }
}

.bm-home-technologies__viewport {
    min-width: 0;
}

.bm-home-technologies__dots {
    display: none;
}

@media (max-width: 767px) {
    .bm-home-technologies__items {
        margin-bottom: var(--bm-space-4);
    }

    .bm-home-technologies__viewport {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .bm-home-technologies__viewport::-webkit-scrollbar {
        display: none;
    }

    .bm-home-technologies .bm-home-technologies__track {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
        gap: var(--bm-space-3);
        flex-direction: row;
    }

    .bm-home-technologies .bm-post-card {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }

    .bm-home-technologies__dots {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-top: var(--bm-space-4);
    }

    .bm-home-technologies__dot {
        width: 12px;
        height: 12px;
        padding: 0;
        border: 0;
        border-radius: var(--bm-radius-pill);
        background: var(--bm-muted);
        cursor: pointer;
        opacity: .7;
        transition:
            width var(--bm-transition-fast),
            background-color var(--bm-transition-fast),
            opacity var(--bm-transition-fast);
    }

    .bm-home-technologies__dot.is-active {
        width: 72px;
        background: var(--bm-accent);
        opacity: 1;
    }

    .bm-home-technologies__dot:focus-visible {
        outline: 2px solid var(--bm-accent-dark);
        outline-offset: 3px;
    }
}

/* ==========================================================================
   Wrapper-5: блок «Alegerea redacției» — тёмная секция с большими цифрами
   ========================================================================== */

.bm-home-editor {
    margin: var(--bm-space-10) 0 var(--bm-space-5);
    padding: var(--bm-space-5) 0;
    background: var(--bm-text);
    color: var(--bm-white);
}

.bm-home-editor .bm-archive__header {
    background: none;
}

.bm-home-editor .bm-archive__title-text {
    color: var(--bm-white);
}

.bm-home-editor .bm-archive__title-link:hover .bm-archive__title-text {
    color: var(--bm-accent);
}

.bm-home-editor__items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--bm-space-6);
    margin: 0;
    padding: 0;
    list-style: none;
}

.bm-home-editor__item {
    display: flex;
    align-items: center;
    gap: var(--bm-space-4);
}

.bm-home-editor__number {
    flex: 0 0 auto;
    color: var(--bm-accent);
    font-size: var(--bm-font-size-number);
    font-weight: var(--bm-weight-extrabold);
    line-height: var(--bm-line-flat);
}

.bm-home-editor__title {
    flex: 1;
    margin: 0;
    color: var(--bm-white);
    font-size: var(--bm-font-size-lg);
    font-weight: var(--bm-weight-bold);
    line-height: var(--bm-line-snug);
}

.bm-home-editor__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--bm-transition-fast);
}

.bm-home-editor__title a:hover {
    color: var(--bm-accent);
}

@media (max-width: 1018px) {
    .bm-home-editor__items {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--bm-space-7);
    }
}

@media (max-width: 767px) {
    .bm-home-editor__items {
        grid-template-columns: 1fr;
        gap: var(--bm-space-3);
    }

    .bm-home-editor__number {
        font-size: 72px;
    }

    .bm-home-editor__item .bm-home-editor__title {
        font-size: var(--bm-font-size-base);
    }

    .single .bm-latest__item-title,
    .single .bm-post-card__title,
    .single .bm-home-news__list .bm-post-card__title,
    .single .bm-home-editor__item .bm-home-editor__title {
        font-size: var(--bm-font-size-base);
    }
}

/* ==========================================================================
   Wrapper-6: блок «Спецпроект» — светлая секция, 2 карточки с альтернативной
   раскладкой (картинка снизу у нечётных, в середине у чётных).
   ========================================================================== */

.bm-home-spec {
    margin-bottom: var(--bm-space-5);
    padding: var(--bm-space-5) 0 var(--bm-space-10);
    background: var(--bm-soft);
}

.bm-home-spec .bm-archive__header {
    background: none;
}

.bm-home-spec__items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--bm-space-10);
}

.bm-home-spec__item {
    display: flex;
    flex-direction: column;
    gap: var(--bm-space-4);
}

/* Альтернативная раскладка: чётные карточки выносят картинку выше
   (между тегом и заголовком) через flex order. */
.bm-home-spec__item:nth-child(even) .bm-home-spec__media {
    order: 1;
}

.bm-home-spec__item:nth-child(even) .bm-home-spec__title {
    order: 2;
}

.bm-home-spec__item:nth-child(even) .bm-home-spec__excerpt {
    order: 3;
}

.bm-home-spec__tag {
    align-self: flex-start;
    color: var(--bm-accent);
    font-size: var(--bm-font-size-2xl);
    font-weight: var(--bm-weight-extrabold);
    text-decoration: none;
    transition: color var(--bm-transition-fast);
}

.bm-home-spec__tag:hover {
    color: var(--bm-accent-dark);
}

.bm-home-spec__title {
    margin: 0;
    font-size: var(--bm-font-size-xl);
    font-weight: var(--bm-weight-bold);
    line-height: var(--bm-line-snug);
}

.bm-home-spec__title a {
    color: var(--bm-text);
    text-decoration: none;
    transition: color var(--bm-transition-fast);
}

.bm-home-spec__title a:hover {
    color: var(--bm-accent);
}

.bm-home-spec__excerpt {
    color: var(--bm-text-secondary);
    font-size: var(--bm-font-size-md);
    line-height: var(--bm-line-normal);
}

.bm-home-spec__media {
    display: block;
    overflow: hidden;
    transition: opacity var(--bm-transition-fast);
}

.bm-home-spec__media:hover {
    opacity: .9;
}

.bm-home-spec__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

@media (max-width: 1018px) {
    .bm-home-spec__items {
        gap: var(--bm-space-7);
    }
}

@media (max-width: 767px) {
    .bm-home-spec {
        padding: var(--bm-space-5) 0;
        margin-bottom: var(--bm-space-5);
    }

    .bm-home-spec__item {
        gap: var(--bm-space-3);
    }

    .bm-home-spec__items {
        grid-template-columns: 1fr;
        gap: var(--bm-space-5);
    }

    /* На мобиле выравниваем порядок — все карточки с картинкой внизу.
       Альтернативность теряет смысл при 1 колонке. */
    .bm-home-spec__item:nth-child(even) .bm-home-spec__media,
    .bm-home-spec__item:nth-child(even) .bm-home-spec__title,
    .bm-home-spec__item:nth-child(even) .bm-home-spec__excerpt {
        order: 0;
    }
}

/* ==========================================================================
   Wrapper-8: video slider
   ========================================================================== */

.bm-home-video {
    --bm-video-gap: var(--bm-space-4);
    --bm-video-card: calc((100% - (var(--bm-video-gap) + var(--bm-video-gap) + var(--bm-video-gap))) / 4);

    padding: 0 0 var(--bm-space-10);
}

.bm-home-video .bm-archive__header {
    margin-bottom: var(--bm-space-5);
}

.bm-home-video__slider {
    position: relative;
    width: 100%;
}

.bm-home-video__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.bm-home-video__viewport::-webkit-scrollbar {
    display: none;
}

.bm-home-video__track {
    display: grid;
    grid-auto-columns: var(--bm-video-card);
    grid-auto-flow: column;
    gap: var(--bm-video-gap);
}

.bm-home-video__item {
    min-width: 0;
    scroll-snap-align: start;
}

.bm-home-video__link {
    display: block;
    color: var(--bm-text);
    text-decoration: none;
}

.bm-home-video__media {
    position: relative;
    display: block;
    aspect-ratio: 230 / 425;
    overflow: hidden;
    border-radius: var(--bm-radius-sm);
    background: var(--bm-soft);
}

.bm-home-video__media iframe {
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    width: calc(100% + 18px);
    height: 100%;
    border: 0;
    transform: translateX(-50%);
}

.bm-home-video__title {
    margin: var(--bm-space-3) 0 0;
    color: var(--bm-text);
    font-size: var(--bm-font-size-xs);
    font-weight: var(--bm-weight-bold);
    line-height: var(--bm-line-tight);
}

.bm-home-video__link:hover .bm-home-video__title {
    color: var(--bm-accent-dark);
}

.bm-home-video__arrow {
    position: absolute;
    z-index: 2;
    top: 44%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(85, 85, 85, .48);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color var(--bm-transition-fast);
}

.bm-home-video__arrow:hover,
.bm-home-video__arrow:focus-visible {
    background: rgba(85, 85, 85, .72);
}

.bm-home-video__arrow:focus-visible {
    outline: 2px solid var(--bm-accent);
    outline-offset: 3px;
}

.bm-home-video__arrow--prev {
    left: -18px;
}

.bm-home-video__arrow--next {
    right: -18px;
}

.bm-home-video__arrow span {
    width: 12px;
    height: 12px;
    border-top: 3px solid var(--bm-white);
    border-right: 3px solid var(--bm-white);
}

.bm-home-video__arrow--prev span {
    margin-left: 4px;
    transform: rotate(-135deg);
}

.bm-home-video__arrow--next span {
    margin-right: 4px;
    transform: rotate(45deg);
}

@media (max-width: 1180px) {
    .bm-home-video {
        --bm-video-card: calc((100% - (var(--bm-video-gap) + var(--bm-video-gap))) / 3);
    }

    .bm-home-video__arrow--prev {
        left: -16px;
    }

    .bm-home-video__arrow--next {
        right: -16px;
    }
}

@media (max-width: 767px) {
    .bm-home-video {
        --bm-video-gap: var(--bm-space-3);
        --bm-video-card: calc((100% - var(--bm-video-gap)) / 2);

        padding: var(--bm-space-10) 0 var(--bm-space-12);
    }

    .bm-home-video .bm-archive__header {
        margin-bottom: var(--bm-space-5);
    }

    .bm-home-video__arrow {
        width: 32px;
        height: 32px;
    }

    .bm-home-video__arrow--prev {
        left: -14px;
    }

    .bm-home-video__arrow--next {
        right: -14px;
    }

    .category .bm-feed--list .bm-post-card,
    .tag .bm-feed--list .bm-post-card,
    .bm-archive--tag .bm-feed--list .bm-post-card,
    .bm-archive--blog .bm-feed--list .bm-post-card {
        margin-bottom: 0;
        gap: var(--bm-space-3);

    }

    .category .bm-feed--list .bm-post-card:not(:last-child),
    .tag .bm-feed--list .bm-post-card:not(:last-child),
    .bm-archive--tag .bm-feed--list .bm-post-card:not(:last-child),
    .bm-archive--blog .bm-feed--list .bm-post-card:not(:last-child) {
        padding-bottom: var(--bm-space-3);
    }
}

@media (max-width: 520px) {
    .bm-home-video {
        --bm-video-card: 78%;
        padding: 0 0 var(--bm-space-3);
    }

    .bm-home-video__viewport {
        margin-right: calc(-1 * var(--bm-space-7) / 2);
        padding-right: calc(var(--bm-space-7) / 2);
    }

    .bm-home-video__arrow--prev {
        left: -12px;
    }

    .bm-home-video__arrow--next {
        right: -12px;
    }
}

.bm-post-card {
    display: flex;
    gap: var(--bm-space-5);
    color: var(--bm-text);
}

.bm-post-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    flex: 0 0 30%;
    min-height: 204px;
    aspect-ratio: 503 / 360;
    text-decoration: none;
}

.bm-post-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.bm-post-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.bm-post-card__title {
    margin: 0 0 var(--bm-space-2);
    font-family: var(--bm-font);
    font-size: var(--bm-font-size-3xl);
    font-weight: var(--bm-weight-extrabold);
    font-synthesis: none;
    line-height: var(--bm-line-title);
}

.bm-post-card__title a {
    color: var(--bm-text);
    text-decoration: none;
    transition: color var(--bm-transition-fast);
}

.bm-post-card:hover .bm-post-card__title a,
.bm-post-card__title a:hover {
    color: var(--bm-accent);
}

.bm-post-card__meta {
    display: flex;
    align-items: center;
    gap: var(--bm-space-5);
    color: var(--bm-muted);
    font-size: var(--bm-font-size-md);
}

.single .bm-post-card__body .bm-post-card__meta {
    margin-top: var(--bm-space-3);
}

.bm-post-card__category,
.bm-latest__category {
    position: relative;
    display: inline-block;
    padding-bottom: var(--bm-space-1);
    color: var(--bm-accent);
    font-weight: var(--bm-weight-bold);
    text-decoration: none;
}

.bm-post-card__category::after,
.bm-latest__category::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0px;
    width: 0;
    height: 2px;
    background: var(--bm-accent);
    transition: width var(--bm-transition-fast);
}

.bm-post-card__category:hover::after,
.bm-latest__category:hover::after {
    width: 100%;
}

.bm-post-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin-top: var(--bm-space-3);
    color: var(--bm-text-secondary);
    font-size: var(--bm-font-size-md);
    line-height: var(--bm-line-normal);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.bm-post-card__actions {
    margin-top: var(--bm-space-5);
}

/* ==========================================================================
   Дизайн-система: кнопки
   ========================================================================== */

.bm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-family: var(--bm-font);
    line-height: var(--bm-line-flat);
    text-decoration: none;
    transition: background-color var(--bm-transition-fast), color var(--bm-transition-fast);
}

.bm-button--pill {
    min-height: var(--bm-size-button);
    padding: 0 var(--bm-space-6);
    border: 1px solid var(--bm-accent);
    border-radius: var(--bm-radius-pill);
    background: var(--bm-white);
    color: var(--bm-accent);
    font-size: var(--bm-font-size-md);
    font-weight: var(--bm-weight-medium);
}

.bm-button--pill:hover {
    background: var(--bm-accent);
    color: var(--bm-white);
}

.bm-button--wide {
    min-width: var(--bm-size-latest-button);
}

.bm-scroll-top {
    position: fixed;
    right: var(--bm-space-7);
    bottom: var(--bm-space-7);
    z-index: 80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--bm-size-button);
    height: var(--bm-size-button);
    padding: 0;
    border: 1px solid var(--bm-accent);
    border-radius: 50%;
    background: var(--bm-white);
    color: var(--bm-accent);
    box-shadow: 0 12px 28px rgba(86, 77, 74, .16);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(var(--bm-space-3));
    transition:
        opacity var(--bm-transition-fast),
        visibility var(--bm-transition-fast),
        transform var(--bm-transition-fast),
        background-color var(--bm-transition-fast),
        color var(--bm-transition-fast),
        border-color var(--bm-transition-fast);
}

.bm-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bm-scroll-top:hover,
.bm-scroll-top:focus-visible {
    border-color: var(--bm-accent);
    background: var(--bm-accent);
    color: var(--bm-white);
}

.bm-scroll-top:focus-visible {
    outline: 2px solid var(--bm-accent-dark);
    outline-offset: 3px;
}

.bm-scroll-top span {
    width: 12px;
    height: 12px;
    margin-top: var(--bm-space-1);
    border-top: 3px solid currentColor;
    border-left: 3px solid currentColor;
    transform: rotate(45deg);
}

.bm-feed--hero .bm-post-card {
    align-items: stretch;
}

.bm-feed--hero .bm-post-card__media {
    order: 1;
    flex-basis: 53%;
    min-height: var(--bm-size-post-media-hero);
}

.bm-feed--hero .bm-post-card__body {
    padding-right: var(--bm-space-8);
    overflow: visible;
}

.bm-feed--hero .bm-post-card__excerpt {
    margin: var(--bm-space-5) var(--bm-space-5) 0 0;
}

.bm-feed--side .bm-post-card {
    flex-direction: column;
    gap: var(--bm-space-3);
}

.bm-feed--side .bm-post-card__media {
    flex-basis: auto;
    width: 100%;
    min-height: 301px;
    aspect-ratio: 503 / 360;
}

.bm-feed--side .bm-post-card__title {
    font-size: var(--bm-font-size-2xl);
    line-height: var(--bm-line-tight);
}

.bm-latest {
    margin-bottom: var(--bm-space-8);
}

.bm-latest__title {
    margin: 0 0 var(--bm-space-1);
    color: var(--bm-text);
    font-size: var(--bm-font-size-lg);
    font-weight: var(--bm-weight-extrabold);
    line-height: var(--bm-line-tight);
    text-transform: uppercase;
}

.bm-latest__items {
    display: flex;
    flex-direction: column;
    gap: var(--bm-space-2);
}

.bm-single .bm-layout__side .bm-latest__item:not(:last-child) {
    border-bottom: 1px solid var(--bm-line);
    padding-bottom: var(--bm-space-2);
}

.bm-latest__item-title {
    margin: var(--bm-space-1) 0 0;
    font-size: var(--bm-font-size-base);
    font-weight: var(--bm-weight-bold);
    line-height: var(--bm-line-snug);
}

.bm-latest__item-title a {
    color: var(--bm-text);
    text-decoration: none;
}

.bm-latest__item-title a:hover {
    color: var(--bm-accent);
}

.bm-latest__actions {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--bm-space-6);
}

.bm-subscribe__title {
    margin: 0 0 var(--bm-space-5);
    color: var(--bm-text);
    font-size: var(--bm-font-size-2xl);
    font-weight: var(--bm-weight-semibold);
    line-height: var(--bm-line-relaxed);
    text-align: center;
}

.bm-subscribe__field {
    display: flex;
    gap: var(--bm-space-3);
}

.bm-subscribe__input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: var(--bm-space-3) var(--bm-space-5);
    border: 1px solid var(--bm-border-field);
    border-radius: var(--bm-radius-lg);
    background: var(--bm-white);
    font-family: var(--bm-font);
    font-size: var(--bm-font-size-sm);
}

.bm-subscribe__input:focus {
    outline: none;
    border-color: var(--bm-accent);
}

.bm-subscribe__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--bm-space-6);
    border: 0;
    border-radius: var(--bm-radius-lg);
    background: var(--bm-accent);
    color: var(--bm-white);
    cursor: pointer;
    font-family: var(--bm-font);
    font-size: var(--bm-font-size-sm);
    transition: background-color var(--bm-transition-fast);
}

.bm-subscribe__button:hover {
    background: var(--bm-dark);
}

/* Вертикальная компоновка формы для узкого sidebar (используется в wrapper-2). */
.bm-subscribe--stacked .bm-subscribe__field {
    flex-direction: column;
}

.bm-subscribe--stacked .bm-subscribe__button {
    width: 100%;
    padding: var(--bm-space-3) var(--bm-space-5);
    border: 1px solid var(--bm-accent);
    border-radius: var(--bm-radius-pill);
    background: var(--bm-white);
    color: var(--bm-accent);
    font-weight: var(--bm-weight-medium);
}

.bm-subscribe--stacked .bm-subscribe__button:hover {
    background: var(--bm-accent);
    color: var(--bm-white);
}

.bm-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--bm-space-2);
    margin: var(--bm-space-5) 0 var(--bm-space-10);
}

.bm-pagination a,
.bm-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--bm-size-button);
    height: var(--bm-size-button);
    padding: 0 var(--bm-space-3);
    border: 1px solid var(--bm-border-muted);
    border-radius: var(--bm-radius-pill);
    background: var(--bm-white);
    color: var(--bm-text);
    font-size: var(--bm-font-size-sm);
    font-weight: var(--bm-weight-medium);
    text-decoration: none;
    transition: all var(--bm-transition-fast);
}

.bm-pagination a:hover,
.bm-pagination [aria-current] {
    border-color: var(--bm-accent);
    background: var(--bm-accent);
    color: var(--bm-white);
}

.bm-empty {
    padding: var(--bm-space-8) var(--bm-space-5);
    border: 1px solid var(--bm-border-empty);
    color: var(--bm-text-empty);
    font-size: var(--bm-font-size-sm);
    text-align: center;
}

@media (max-width: 1018px) {
    .bm-feed--side .bm-feed__items {
        display: flex;
        flex-flow: row wrap;
        gap: var(--bm-space-6);
    }

    .bm-feed--side .bm-post-card {
        flex: 1 1 calc(50% - 12px);
        min-width: var(--bm-size-feed-card-min);
    }

    .bm-latest__item-title {
        font-size: var(--bm-font-size-md);
        margin-top: 0;
    }

    .bm-latest__category {
        font-size: var(--bm-font-size-xs);
        padding-bottom: 0;
    }


}

@media (max-width: 767px) {

    .bm-post-card,
    .bm-feed--hero .bm-post-card {
        flex-direction: column;
        gap: var(--bm-space-3);

    }

    .bm-post-card__media,
    .bm-feed--hero .bm-post-card__media {
        order: 0;
        flex-basis: auto;
        width: 100%;
        min-height: var(--bm-size-post-media-mobile);
    }

    /* .bm-feed--hero .bm-post-card__media {
        margin-left: calc(-100vw / 2 + 100% / 2);
        margin-right: calc(-100vw / 2 + 100% / 2);
        max-width: 100vw;
        width: 100vw;
    } */

    .bm-feed--hero .bm-post-card__body {
        padding-right: 0;
    }

    .bm-feed--hero .bm-post-card__title,
    .bm-feed--list .bm-post-card__title,
    .bm-feed--side .bm-post-card__title {
        font-size: var(--bm-font-size-2xl);
    }

    .bm-feed--side .bm-feed__items {
        display: flex;
        flex-direction: column;
    }

    .bm-subscribe__field {
        flex-direction: column;
    }

    .bm-subscribe__button {
        min-height: var(--bm-space-12);
    }

    .bm-post-card__excerpt {
        display: none;
    }

    .bm-home-news {
        margin-bottom: var(--bm-space-5);
    }

    .bm-home-editor {
        margin-top: var(--bm-space-5);
        margin-bottom: var(--bm-space-5);
    }

    .bm-button--wide {
        min-height: 36px;
    }

    .bm-latest {
        margin-bottom: var(--bm-space-5);
    }

    .bm-latest__title {
        margin: 0 0 var(--bm-space-3);
    }

    .bm-home-news__featured .bm-post-card__media {
        height: auto;
        min-height: auto;
    }

    .bm-post-card__category,
    .bm-latest__category {
        padding-bottom: 0;
    }

    .bm-post-card__category::after,
    .bm-latest__category::after {
        content: none;
    }

    .bm-post-card__title {
        font-size: var(--bm-font-size-lg);
    }

    .bm-subscribe__title {
        font-size: var(--bm-font-size-lg);
    }

}

@media (max-width: 480px) {
    .bm-post-card__meta {
        gap: var(--bm-space-3);
        font-size: var(--bm-font-size-xs);
    }

    .bm-home-news__list .bm-post-card__media {
        width: 130px;
    }

    .single .bm-post-card__body .bm-post-card__meta {
        margin-top: 0;
    }

    .bm-feed--hero .bm-post-card__title,
    .bm-feed--list .bm-post-card__title,
    .bm-feed--side .bm-post-card__title {
        font-size: var(--bm-font-size-lg);
        margin-right: 0;
    }

    .bm-feed {
        margin-bottom: var(--bm-space-3);
    }



    .bm-pagination {
        margin-bottom: var(--bm-space-10);
    }

    .bm-pagination a,
    .bm-pagination span {
        min-width: var(--bm-size-pagination-sm);
        height: var(--bm-size-pagination-sm);
        font-size: var(--bm-font-size-xs);
    }

}
