@media (max-width: 600px) {
    .mainpage-news .news__container {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .mainpage-news .news__item-container {
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        gap: 8px;
        align-items: stretch;
    }

    main.index-page .mainpage-news .news__item:nth-child(3) {
        display: flex !important;
    }

    .mainpage-news .news__item {
        flex: 0 0 255px;
        min-width: 255px;
        width: 255px;
        margin: 0;
        align-self: stretch;
    }

    .mainpage-news .news__item img {
        height: 130px;
        object-fit: cover;
        flex-shrink: 0;
    }

    .mainpage-news .news__text {
        flex: 1 1 auto;
        min-height: 200px;
        height: auto;
        box-sizing: border-box;
    }

    .mainpage-news .news__text p {
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}
