html,
body {
    background: #ffffff;
}

.imp-news-detail-page {
    width: 100%;
    background: #ffffff;
}

.imp-news-detail-page__container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 28px 16px 56px;
    background: #ffffff;
}

.imp-news-detail-page__nav {
    margin-bottom: 22px;
    background: #ffffff;
}

.imp-news-detail-page__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}

.imp-news-detail-page__back:hover {
    background: #e4e7ec;
    color: #101828;
    text-decoration: none;
}

.imp-news-detail-page__back-icon {
    font-size: 18px;
    line-height: 1;
}

.imp-news-detail-page__content {
    min-width: 0;
    background: #ffffff;
}

.imp-news-detail-page__content img {
    max-width: 100%;
    height: auto;
}

.imp-news-detail-page__content iframe,
.imp-news-detail-page__content video {
    max-width: 100%;
}

.imp-news-detail-page__content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

.bx-newsdetail,
.imp-news-article {
    max-width: 980px;
    margin: 0 auto;
    color: #344054;
    background: #ffffff;
}

.bx-newsdetail-block,
.imp-news-article__block {
    min-width: 0;
    background: #ffffff;
}

.imp-news-article__title,
.bx-newsdetail-title.imp-news-article__title {
    margin: 0 0 22px;
    color: #101828;
    font-size: clamp(30px, 4.5vw, 48px);
    line-height: 1.12;
    font-weight: 700;
}

.imp-news-article__flow {
    min-width: 0;
    color: #344054;
    font-size: 18px;
    line-height: 1.75;
    background: #ffffff;
}

.imp-news-article__flow::after {
    content: "";
    display: block;
    clear: both;
}

.imp-news-article__media {
    margin: 0;
    background: #ffffff;
}

.imp-news-article__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
}

.imp-news-article__media iframe {
    max-width: 100%;
}

.imp-news-article__media--wide {
    margin: 0 0 28px;
}

.imp-news-article__content {
    min-width: 0;
    background: #ffffff;
}

.imp-news-article__content p {
    margin: 0 0 18px;
}

.imp-news-article__content h2,
.imp-news-article__content h3,
.imp-news-article__content h4 {
    margin: 32px 0 16px;
    color: #101828;
    line-height: 1.25;
}

.imp-news-article__content ul,
.imp-news-article__content ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.imp-news-article__content li {
    margin-bottom: 8px;
}

.imp-news-article__content a {
    color: #1570ef;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.imp-news-article__content blockquote {
    margin: 28px 0;
    padding: 18px 22px;
    border-left: 4px solid #1570ef;
    border-radius: 12px;
    background: #f9fafb;
    color: #475467;
}

.imp-news-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
}

.imp-news-article__content iframe,
.imp-news-article__content video {
    max-width: 100%;
}

.imp-news-article__content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

/*
 * ВАЖНО:
 * здесь убран border-top, чтобы на детальной странице
 * не было второго разделителя после текста новости.
 */
.imp-news-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 24px;
    padding-top: 0;
    border-top: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.5;
    background: #ffffff;
}

.imp-news-article__meta:empty {
    display: none;
}

.imp-news-article__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.imp-news-article__meta-item i {
    color: #98a2b3;
}

.imp-news-article__rating-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    background: #ffffff;
}

.imp-news-article__rating {
    min-width: 0;
}

.imp-news-article__share-row {
    margin-top: 20px;
    background: #ffffff;
}

/*
 * Разделители у категорий и отзывов отключены,
 * чтобы на странице не плодились лишние линии.
 */
.imp-news-related,
.imp-news-reviews {
    margin-top: 36px;
    padding-top: 0;
    border-top: 0;
    background: #ffffff;
}

.imp-news-related__title {
    margin: 0 0 20px;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #101828;
}

/*
 * Единственный разделитель на детальной странице:
 * только перед блоком “Последние новости”.
 */
.imp-news-last {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #eaecf0;
    background: #ffffff;
}

.imp-news-last__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    background: #ffffff;
}

.imp-news-last__title {
    margin: 0;
    color: #101828;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}

.imp-news-last__all {
    flex: 0 0 auto;
    color: #1570ef;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.imp-news-last__all:hover {
    text-decoration: underline;
}

.imp-news-last-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    background: #ffffff;
}

.imp-news-last-card {
    overflow: hidden;
    min-width: 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.imp-news-last-card__image-link {
    display: block;
    text-decoration: none;
    background: #ffffff;
}

.imp-news-last-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #ffffff;
}

.imp-news-last-card__image--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-weight: 600;
    background: #ffffff;
}

.imp-news-last-card__body {
    padding: 16px;
    background: #ffffff;
}

.imp-news-last-card__date {
    display: block;
    margin-bottom: 8px;
    color: #98a2b3;
    font-size: 13px;
    line-height: 1.4;
}

.imp-news-last-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.imp-news-last-card__title a {
    color: #101828;
    text-decoration: none;
}

.imp-news-last-card__title a:hover {
    text-decoration: underline;
}

.imp-news-last-card__text {
    color: #475467;
    font-size: 14px;
    line-height: 1.55;
}

/*
 * Белый фон списка новостей.
 * Это относится к найденному вами шаблону Chinx news / news.list.
 */
.bx-newslist {
    background: #ffffff;
}

.bx-newslist .row {
    background: #ffffff;
}

.bx-newslist-container {
    background: #ffffff;
}

.bx-newslist-block {
    background: #ffffff;
    border-radius: 16px;
}

.bx-newslist-img,
.bx-newslist-youtube,
.bx-newslist-audio,
.bx-newslist-slider {
    background: #ffffff;
}

.bx-newslist-img img,
.bx-newslist-slider-slide img {
    background: #ffffff;
}

.bx-newslist-title,
.bx-newslist-content,
.bx-newslist-other,
.bx-newslist-comments,
.bx-newslist-more {
    background: #ffffff;
}

@media (min-width: 1025px) {
    .imp-news-article__media--float {
        float: left;
        width: 360px;
        max-width: 38%;
        margin: 4px 30px 18px 0;
    }

    .imp-news-article__media--float img {
        width: 100%;
        max-height: 280px;
        object-fit: cover;
    }

    .imp-news-article__media--wide {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .imp-news-article__media--float {
        float: left;
        width: 320px;
        max-width: 45%;
        margin: 4px 24px 16px 0;
    }

    .imp-news-article__media--float img {
        width: 100%;
        max-height: 240px;
        object-fit: cover;
    }

    .imp-news-article__media--wide {
        width: 100%;
    }

    .imp-news-last-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .imp-news-detail-page__container {
        padding: 20px 12px 40px;
    }

    .imp-news-detail-page__nav {
        margin-bottom: 18px;
    }

    .imp-news-detail-page__back {
        width: 100%;
        justify-content: center;
    }

    .imp-news-article {
        max-width: 100%;
    }

    .imp-news-article__title {
        margin-bottom: 16px;
        font-size: 30px;
        line-height: 1.16;
    }

    .imp-news-article__flow {
        font-size: 16px;
        line-height: 1.7;
    }

    .imp-news-article__media--float,
    .imp-news-article__media--wide {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px;
    }

    .imp-news-article__media--float img,
    .imp-news-article__media--wide img {
        width: 100%;
        max-height: none;
        object-fit: initial;
        border-radius: 14px;
    }

    .imp-news-article__meta {
        display: block;
        margin-top: 20px;
        padding-top: 0;
        border-top: 0;
    }

    .imp-news-article__meta:empty {
        display: none;
    }

    .imp-news-article__meta-item {
        display: flex;
        margin-bottom: 8px;
    }

    .imp-news-related,
    .imp-news-reviews {
        margin-top: 32px;
        padding-top: 0;
        border-top: 0;
    }
}

@media (max-width: 640px) {
    .imp-news-last {
        margin-top: 36px;
        padding-top: 24px;
    }

    .imp-news-last__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .imp-news-last__title {
        font-size: 24px;
    }

    .imp-news-last-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .imp-news-last-card {
        border-radius: 14px;
    }

    .imp-news-last-card__body {
        padding: 14px;
    }
}