/**
green old - #1C8A48;
green new - #008D47;
 */

.mb-addition__body {
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    min-height: 330px;
    height: max-content;
    align-items: flex-start;
}

.mb-page.mb-page--content-green .mb-addition__body a {
    color: #39BC9D;
}

.mb-page.mb-page--content-blue .mb-addition__body a {
    color: #41C0D9;
}

.gp-contest-intro-bg {
    background-repeat: repeat;
    background-position: left top;
    background-size: contain;
}

.mb-addition__body ul {
    list-style: disc;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    row-gap: 8px;
}

.mb-addition__body h3 {
    font-size: 1.6rem;
    font-weight: 600;
}

.mb-addition__body-link {
    color: #E7343F;
}

.mb-page.contest--dark-blue .mb-addition .mb-title-h2 {
    color: #23325C;
}

.mb-page.contest--dark-blue .mb-download-link {
    color: #1C8A48;
}

.mb-page.contest--dark-blue .mb-download-link svg path {
    stroke: #1C8A48;
}

.mb-page.contest--dark-blue .mb-instruction__icon.mb--inst-icon {
    background-image: url("../icons/instruction_icon_green.svg");
}

.mb-annotation.--documents .mb-annotation__bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
    row-gap: 12px;
}

.mb-document__item {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mb-document__item-link {
    display: flex;
    column-gap: 10px;
    align-items: center;
    text-decoration: none;
    width: 100%;
}

.mb-document-is-archive {
    text-align: right;
}

.stl-fw-bold {
    color: #404040;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
}

.mb-dop-info-sum {
    display: flex;
    padding: 2px 3px;
    font-family: "Montserrat Bold", sans-serif;
    background: #39BC9D;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #FFF;
    font-size: 30px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    max-width: max-content;
    width: auto;
}

.mb-title-h2.color-black {
    color: #404040;
}

.mb-addition__body ul.stl-list-none-style {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.gp-news-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    row-gap: 24px;
}


.gp-news-list__body {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}


.gp-news-list__item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    transition: box-shadow 0.2s ease;
    text-decoration: none;
}

.gp-news-list__item.hidden {
    display: none;
}

.gp-news-list__item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


.gp-news-list__item-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    flex-shrink: 0;
}

.gp-news-list__item-img .mb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: top center;
    transition: transform 0.3s ease;
}

.gp-news-list__item:hover .mb-img {
    transform: scale(1.03);
}


.gp-news-list__item-content {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.gp-btn-container {
    display: flex;
    align-items: center;
    justify-content: center;
}


.gp-news-list__item-date {
    font-size: 13px;
    line-height: 1.4;
}

.gp-news-list__item-date.mb--color {
    color: #E03642;
}


.gp-news-list__item-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
}


.gp-news-list__item-text {
    font-size: 14px;
    line-height: 1.6;
    color: #666666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gp-news-detail {
    display: flex;
    flex-direction: column;
    width: 100%;
    row-gap: 24px;
}

.gp-news-detail__header {
    margin-bottom: 24px;
}

.gp-news-detail__date {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.gp-news-detail__img {
    width: 100%;
}

.gp-news-detail__img img {
    max-width: 100%;
    height: auto;
    max-height: 380px;
}

.gp-news-detail__content {
    margin-bottom: 40px;
    gap: 3px;
}

.gp-news-detail__content.mb--text-body p {
    margin-bottom: 10px;
}

.mb--text-body {
    font-size: 16px;
    line-height: 1.75;
    color: #333333;
}

.mb--text-body p {
    margin: 0 0 16px;
}

.mb--text-body p:last-child {
    margin-bottom: 0;
}

.mb--text-body h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 32px 0 12px;
}

.mb--text-body h3 {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 24px 0 10px;
}

.mb--text-body ul,
.mb--text-body ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.mb--text-body li {
    margin-bottom: 6px;
}

.mb--text-body img {
    max-width: 100%;
    border-radius: 6px;
    display: block;
    margin: 24px 0;
}

.mb--text-body a {
    color: #E03642;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mb--text-body a:hover {
    opacity: 0.75;
}

.gp-news-detail__back {
    border-top: 1px solid #e8e8e8;
    padding-top: 24px;
}

.gp-news-detail__back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.gp-news-detail__back-link.mb--color {
    color: #E03642;
}

.gp-news-detail__back-link:hover {
    opacity: 0.7;
}

.breadcrumbs {
    display: flex;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 5px;
    row-gap: 10px;
}

.breadcrumbs .breadcrumbs__link {
    color: #E03642;
}

.breadcrumbs__link-dir {
    display: inline-flex;
    margin-left: 5px;
}

.--mb-btn-more {
    width: 100%;
    max-width: 170px;
}

.mb-page.mb-page--content-blue .gp-news-list__item-date.mb--color {
    color: #41C0D9;
}

.mb-page.mb-page--content-blue .gp-news-detail__back-link.mb--color {
    color: #41C0D9;
}

.mb-page.mb-page--content-blue .breadcrumbs .breadcrumbs__link {
    color: #41C0D9;
}

.mb-page.mb-page--content-green .gp-news-list__item-date.mb--color {
    color: #39BC9D;
}

.mb-page.mb-page--content-green .gp-news-detail__back-link.mb--color {
    color: #39BC9D;
}

.mb-page.mb-page--content-green .breadcrumbs .breadcrumbs__link {
    color: #39BC9D;
}


.mb-page.contest--dark-blue .gp-news-list__item-date.mb--color {
    color: #1C8A48;
}

.mb-page.contest--dark-blue .gp-news-detail__back-link.mb--color {
    color: #1C8A48;
}

.mb-page.contest--dark-blue .breadcrumbs .breadcrumbs__link {
    color: #1C8A48;
}

.mb-page.contest--dark-blue .mb-title-h2.mb--color {
    color: #23325C;
}

.mb-document-description {
    text-decoration: none;
}

.mb-annotation__bottom:hover a.mb-document-description {
    text-decoration: underline;
}

.mb-annotation .mb-annotation__body .mb--text-body p {
    margin-bottom: 0;
}

/* --- Адаптив --- */

@media (max-width: 1024px) {
    .gp-news-list__body {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .mb--text-body {
        font-size: 15px;
    }

    .gp-news-detail {
        padding: 20px 0 32px;
    }
}

@media (max-width: 600px) {
    .gp-news-list__body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .--mb-btn-more {
        max-width: 100%;
    }
}
