:root {
    --prevtext-fz: 14px;
    --prevtext-lh: 1.25;
    --prevtext-rows: 3;
}

.page__main .news {
    padding-top: 48px;
    padding-bottom: 20px;
    position: relative;
    z-index: 2;
}

.news {
    max-width: 100%;
    display: column;
    -webkit-columns: 2;
    -moz-columns: 2;
    columns: 2;
    gap: var(--gap);
    position: relative;
    z-index: 2;
}

.news-group {
    border-radius: 1rem;
    background: var(--white);
    position: relative;
    z-index: 1;
}

/*.news-group::before {
    background:var(--white);
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 92%;
    z-index: -1;
    -webkit-box-shadow: 0px 10px 16px -11px rgb(20 29 31 / 30%);
    box-shadow: 0px 10px 16px -11px rgb(20 29 31 / 30%);
    border-radius: 4px;
}*/

.news-group__header {
    position: relative;
    padding: 24px 32px 16px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.news-group__header::before {
    background: var(--border-color);
    content: '';
    position: absolute;
    bottom: 0;
    left: 32px;
    width: calc(100% - 64px);
    height: 1px
}

.news-group__header h3 {
    font-weight: 700;
    font-size: 18px;
    line-height: 150%;
}

.news-group__header a {
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    white-space: nowrap;
}

.news-group__body {
    padding: 8px 0 16px;
}


.news > * {
    break-inside: avoid;
    margin-bottom: var(--gap);
}

.news-list {
    word-wrap: break-word;
}

.news-list img.preview_picture {
    float: left;
    margin: 0 4px 6px 0;
}

.news-date-time {
    color: #486DAA;
}

.news__block {
    height: auto;
    max-height: fit-content;
    margin-top: 32px;
}

.news__block:nth-child(1) {
    margin-top: 0;
}

.news--grid {
    margin-top: 48px;
    display: flex;
    flex-flow: column wrap;
    margin-bottom: 70px;
}

.masonry-2-col {
    column-count: 2;
    column-gap: 32px;
    flex-flow: column wrap;
}

.news__block {
    height: auto;
    /*box-shadow: 0 0 30px rgba(20, 29, 31,0.1);*/
    border-radius: 8px;
    background-color: var(--white);
    padding-top: 24px;
    position: relative;
}

.news__block::before {
    content: '';
    position: absolute;
    width: calc(100% - 16px);
    height: 92%;
    left: 8px;
    bottom: 0;
    z-index: -1;
    -webkit-box-shadow: 4px 4px 16px 0px rgb(20 29 31 / 30%);
    -moz-box-shadow: 4px 4px 16px 0px rgba(20, 29, 31, 0.3);
    box-shadow: 4px 4px 16px 0px rgb(20 29 31 / 30%);
}

.news__block a:hover {
    text-decoration: none;
}

.news__block a:hover .preview__text::before {
    background: linear-gradient(to right, rgba(255, 255, 255, 0), #484545 100%);
    transition: all 0s ease 0s;
}

.news-sect__head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap);
}

.news__list {
    padding: 12px 0;
}

.news__name {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
}

.link__all {
    color: var(--primary-color);
    font-size: 14px;
    text-align: right;
}

.link__all:hover {
    color: #52747a
}

.news__block .date
    /*,.notification__news .date*/
{
    margin-top: 5px;
    font-size: 12px;
    color: var(--gray2-color);
    min-width: 65px;
}


.news__link--container {
    /*padding-bottom: 32px;
    padding-top: 4px;*/
    padding: 24px 0 8px;
    transition: all 0.3s ease 0s;
}

.news__link--container:hover {

}

.news__link {
    display: flex;
    padding: var(--gap);
    transition: all 0.3s ease 0s;
    border-radius: var(--border-radius-card);
    overflow: hidden;
}

.news__link:hover {
    background-color: #484545;
    cursor: pointer;
    text-decoration: none;
}

.news__image {
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    /*justify-content: center;*/
}

.news__image img {
    max-width: 60px;
    min-width: 60px;
    max-height: 60px;
    min-height: 60px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.news__image img.noimage {
    object-fit: contain;
    padding: .5rem;
}

.news__info {
    min-width: 160px;
    margin-left: 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.news__info a {
    color: #3D575C;
}

.news__link .date {
    color: var(--gray2-color);
    margin-top: 5px;
    font-size: 12px;
}

.preview__text {
    font-size: var(--prevtext-fz);
    line-height: var(--prevtext-lh);
    font-weight: 200;
    color: #ffffffa3;
    background-color: transparent;
    width: 100%;
    border: none;
    overflow: hidden;
    resize: none;
    position: relative;
    display: block;
    pointer-events: none;
    padding-left: 0;
    padding-right: 0;
    margin-top: 4px;
    height: calc(var(--prevtext-rows) * var(--prevtext-fz) * var(--prevtext-lh));
}

.preview__text::before {
    /*content: "";*/
    text-align: right;
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 1.2em;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white 100%);
    transition: all 0s ease 0s;
}

.news__list--container::-webkit-scrollbar {
    color: red;
}


.news__current-house .news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(568px, 1fr));
    gap: var(--gap);
    align-items: stretch;
    justify-content: center;
}

.news__current-house .news__block {
    margin-top: 0;
}

@media (max-width: 2160px) and (min-width: 992px) {
    .news__current-house ._container {
        max-width: 1820px;
        width: 100%;
        padding: 0 24px;
    }
}

@media (max-width: 992px) {
    .news {
        -webkit-columns: 1;
        -moz-columns: 1;
        columns: 1;
    }
}

@media (max-width: 768px) {
    .masonry-2-col {
        column-count: 1;
        margin: 0 15px;
    }
}

@media (max-width: 479px) {
    .news-group {
        margin-left: -15px;
        margin-right: -15px;
    }

    .news-group__header {
        padding: 24px 16px 8px;
    }

    .news-group__header::before {
        left: 16px;
        width: calc(100% - 32px);
    }

    .news__link {
        padding: 16px;
    }

    .news__info {
        margin-left: 16px;
    }
}

@media (max-width: 320px) {
    .masonry-2-col {
        max-width: 90%;
    }
}
