

/* Start:/local/templates/ural_2026/components/bitrix/news/news/bitrix/news.list/.default/style.css?17882611765029*/
/* —— News list —— */
.news {
    padding-top: 0;
    padding-bottom: 0;
}

.news__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 21px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* —— Card —— */
.news-card {
    display: flex;
    flex-direction: column;
    min-height: 623px;
    background: #fff;
    border: 1px solid #d9d9d9;

    margin-bottom: 0;
    margin-top: 0;
    line-height: normal;
}

.news-card__image {
    display: block;
    width: calc(100% - 62px);
    max-width: 350px;
    height: 250px;
    margin: 27px auto 0;
    overflow: hidden;
    flex-shrink: 0;
}

.news-card__image img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;*/
    object-fit: contain;
}

/* Нет изображения — пустое место (Desktop / Tablet) */
.news-card__image:not(:has(img)) {
    pointer-events: none;
}

.news-card:not(:has(.news-card__image))::before {
    content: "";
    display: block;
    width: calc(100% - 62px);
    max-width: 350px;
    height: 250px;
    margin: 27px auto 0;
    flex-shrink: 0;
}

.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: calc(100% - 70px);
    max-width: 343px;
    margin: 16px auto 0;
    padding-bottom: 27px;
    line-height: 1.6;
}

.page .news-card__title {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.6;
    color: #ec621f;
}

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

.page .news-card__excerpt {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: #333;
}

.news-card__more {
    font-size: 15px;
    font-weight: 500;
    color: #ec621f;
}

.news-card__more:hover {
    text-decoration: underline;
}

.news-card__date {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    color: #8c8c8c;
}

/* —— Show more (mobile only) —— */
.news__more {
    display: none;
}

/* —— Pagination —— */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.pagination__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
    color: #fff;
    background: #ec621f;
    transition: background-color 0.2s ease;
}

.pagination__link:hover {
    background: #d4561a;
}

.pagination__link--current {
    background: #c0c0c0;
    pointer-events: none;
}

.pagination__link--current:hover {
    background: #c0c0c0;
}

/* —— Tablet —— */
@media (max-width: 1023px) {
    .news {
        padding-top: 0;
    }

    .news__list {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .news-card__image {
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        height: 216px;
        margin-top: 23px;
    }

    .news-card:not(:has(.news-card__image))::before {
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        height: 216px;
        margin-top: 23px;
    }

    .news-card__body {
        width: calc(100% - 48px);
        max-width: calc(100% - 48px);
        margin-top: 22px;
    }

    .pagination {
        margin-top: 30px;
    }
}

@media screen and (max-width: 767px) {
    .page-content:has(.page-text .news) {
        padding-top: 0;
    }
}

/* —— Mobile —— */
@media (max-width: 640px) {
    .page-title__heading {
        font-size: 26px;
    }

    .news {
        padding-top: 20px;
    }

    .news__list {
        grid-template-columns: 1fr;
        gap: 20px;
        justify-items: center;
    }

    .news-card {
        width: 100%;
        max-width: 345px;
        min-height: 0;
    }

    .news-card__image {
        width: calc(100% - 43px);
        max-width: 302px;
        height: 216px;
        margin-top: 23px;
    }

    /* На mobile пустое место под картинку не резервируем */
    .news-card__image:not(:has(img)),
    .news-card:not(:has(.news-card__image))::before {
        display: none;
    }

    .news-card:not(:has(.news-card__image img)) .news-card__body {
        margin-top: 23px;
    }

    .news-card__body {
        width: calc(100% - 43px);
        max-width: 302px;
        margin-top: 22px;
    }

    .news__more {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 345px;
        height: 49px;
        margin: 20px auto 0;
        border: 1px solid #ec621f;
        background: #fff;
        font-family: inherit;
        font-size: 20px;
        font-weight: 500;
        color: #ec621f;
        cursor: pointer;
        transition: background-color 0.2s ease, color 0.2s ease;
    }

    .news__more:hover {
        background: #ec621f;
        color: #fff;
    }

    .pagination {
        justify-content: center;
        margin-top: 20px;
    }
}
/* End */
/* /local/templates/ural_2026/components/bitrix/news/news/bitrix/news.list/.default/style.css?17882611765029 */
