.nml-nr {
    padding: 80px 0;
    background: var(--color-bg);
}

.nml-nr__heading {
    margin: 0 0 48px;
    font-size: 48px;
    line-height: 56px;
    font-weight: 700;
    color: #0B101F;
}

.nml-nr__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ── Карточка ── */
.nml-nr__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 20px 20px;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    background: var(--color-bg);
    box-shadow: 0px 1px 2px 0px #4C83F333;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nml-nr__card:hover {
    border-color: #889CF1;
    box-shadow: 0px 2px 4px 0px #4C83F33D;
}

.nml-nr__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.nml-nr__date {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-transform: uppercase;
    color: #303D60;
}

/* Цвет тега приходит инлайном в --nml-nr-color, как в ленте и на записи. */
.nml-nr__badge {
    flex-shrink: 0;
    padding: 2px 12px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: var(--nml-nr-color, var(--color-text-tertiary));
}

.nml-nr__title {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    color: #0B101F;
}

.nml-nr__text {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #303D60;
}

.nml-nr__nav-row {
    display: none;
}

@media (max-width: 768px) {
    .nml-nr {
        padding: 40px 0;
    }

    .nml-nr__heading {
        margin-bottom: 32px;
        font-size: 32px;
        line-height: 40px;
    }

    /* Swiper смонтирован — возвращаем ему flex-раскладку вместо сетки. */
    .nml-nr__list {
        display: flex;
        gap: 0;
    }

    .nml-nr__slide {
        height: auto; /* карточки тянутся на высоту слайда */
    }

    .nml-nr__card {
        padding: 20px;
    }

    .nml-nr__title {
        font-size: 20px;
        line-height: 28px;
    }

    .nml-nr__text {
        font-size: 15px;
        line-height: 22px;
    }

    /* Стрелки по краям — как в навигации табов ленты. */
    .nml-nr__nav-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-top: 24px;
    }

    .nml-nr__nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 1px solid var(--lines-blue, #889CF1);
        border-radius: 12px;
        background: var(--color-bg);
        color: var(--color-primary);
        cursor: pointer;
        transition: border-color 0.2s, color 0.2s;
    }

    .nml-nr__nav.swiper-button-disabled {
        opacity: 0.4;
        pointer-events: none;
    }

}
