.latest-news-block {
    padding: 50px;
}

.latest-news-block__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding: 0 20px;
}

.latest-news-block__title {
    font-size: 30px;
    font-weight: 400;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #00264D;
}

.latest-news-block__more {
    font-weight: 600;
    text-decoration: underline;
    color: #0050D1;
}

.latest-news-block__row {
    display: flex;
    gap: 40px;
}

.latest-news-block__item {
    width: calc(100% / 3 - 26.66px);
}

.news-item {
    cursor: pointer;
}

.news-item__image {
    margin-bottom: 12px;
    display: flex;
    border-radius: 10px;
    overflow: hidden;
}

.news-item__title {
    padding: 0 20px;
    margin-bottom: 5px;
    font-size: 20px;
    color: #0050D1;
}

.news-item__text {
    padding: 0 20px;
    font-size: 16px;
    color: #2E2E2E;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-modal {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: 0.2s ease;
}

.news-modal.active {
    visibility: visible;
    opacity: 1;
}

.news-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.news-modal__inner {
    width: 615px;
    max-width: 100%;
    padding: 30px;
    border-radius: 10px;
    position: relative;
    z-index: 2;
    background-color: #fff;
    max-height: 90dvh;
    overflow: auto;
}

.news-modal__close {
    cursor: pointer;
    background-color: transparent;
    border: 0;
    margin-bottom: 15px;
    padding: 0;
    display: flex;
}

.news-modal__image {
    margin-bottom: 15px;
}

.news-modal__image img {
    width: 100%;
}

.news-modal__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.news-modal__head .version {
    padding-inline-start: 20px;
    font-size: 14px;
    font-weight: 700;
    color: #00264D;
}

.news-modal__head .date {
    font-size: 14px;
    color: #808080;
}

.news-modal__title {
    padding: 0 20px;
    font-size: 20px;
    margin: 0 0 5px;
    color: #0050D1;
}

.news-modal__subtitle {
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0050D1;
}

.news-modal__text {
    padding: 10px 20px;
    font-size: 14px;
    color: #00264D;
    line-height: 1.285;
}

.news-modal__text p {
    margin: 0 0 5px;
}

.news-modal__text p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 1024px) {
    .latest-news-block {
        padding: 20px 0 36px;
    }

    .latest-news-block__title {
        font-size: 18px;
    }

    .latest-news-block__title:before {
        width: 22px;
        height: 24px;
    }

    .latest-news-block__more {
        font-size: 13px;
    }

    .latest-news-block__row {
        gap: 20px;
    }

    .latest-news-block__item {
        width: calc(100% / 3 - 13.33px);
    }
}

@media screen and (max-width: 767px) {
    .latest-news-block {
        padding: 20px 10px 6px;
    }

    .latest-news-block__row {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .latest-news-block__item {
        width: 100%;
        justify-content: center;
        display: flex;
    }

    .latest-news-block__head {
        padding: 0;
    }

    .latest-news-block__more {
        font-size: 12px;
    }

    .latest-news-block__title {
        line-height: 1;
    }

    .news-item__title {
        padding: 0 10px;
        font-size: 18px;
    }

    .news-item__text {
        padding: 0 10px;
    }

    .news-modal__inner {
        padding: 16px;
    }
}