

/* Start:/local/templates/erma/components/bitrix/news/erma/style.css?17901039242977*/
/*
 * Оболочка раздела «Новости».
 * Лента новостей оформляется в news.list/erma_news, карточка — в news.detail/erma_news_detail.
 * Размеры по кадрам «Новости компании»: 1920 — база, 1366 — max-width: 1400,
 * 768 — max-width: 900, 360 — max-width: 600.
 * Шрифт и цвет H1 и лида задаёт общий слой ui.css, кегль — animations.js.
 */

.news-page {
    width: min(calc(100% - 80px), var(--ui-container));
    min-height: 60vh;
    margin-inline: auto;
    padding: 144px 0 96px;
    background: var(--ui-white);
}

/* Заголовок и тулбар стоят в правой колонке ленты: 1067 из 1840 и 756 из 1306 (58%). */
.news-page__heading {
    width: 58%;
    margin: 0 0 30px auto;
}

.news-page__heading h1 { margin: 0 0 40px; }
.news-page__heading p { margin: 0; text-wrap: pretty; }

/* «Показать: 5 | 15 | 30 | всё» — Button text 20 / 16 / 14 / 12. */
.news-page__toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 80px;
    color: rgba(19, 19, 19, .5);
    font-family: var(--ui-font);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.news-page__toolbar-options {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-page__toolbar-link {
    position: relative;
    color: rgba(19, 19, 19, .3);
    transition: color .2s ease;
}

.news-page__toolbar-link + .news-page__toolbar-link { padding-left: 17px; }

/* Разделитель 2px: высота 24 / 16 / 14 / 12 — на 1920 чуть выше строки, дальше по кеглю. */
.news-page__toolbar-link + .news-page__toolbar-link::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 2px;
    height: 1.2em;
    background: rgba(19, 19, 19, .15);
    content: "";
    transform: translateY(-50%);
}

.news-page__toolbar-link:hover { color: var(--ui-black); }
.news-page__toolbar-link.is-active { color: var(--ui-blue); }

@media (max-width: 1400px) {
    .news-page {
        width: calc(100% - 60px);
        padding: 112px 0 72px;
    }

    .news-page__heading h1 { margin-bottom: 30px; }
    .news-page__toolbar { margin-top: 60px; font-size: 16px; }
    .news-page__toolbar-link + .news-page__toolbar-link::before { height: 1em; }
}

@media (max-width: 900px) {
    .news-page {
        width: calc(100% - 40px);
        padding: 140px 0 64px;
    }

    .news-page__heading {
        width: 100%;
        margin-bottom: 20px;
    }

    .news-page__heading h1 { margin-bottom: 20px; }
    .news-page__toolbar { font-size: 14px; }
}

@media (max-width: 600px) {
    .news-page {
        width: calc(100% - 30px);
        padding: 108px 0 48px;
    }

    .news-page__heading h1 { margin-bottom: 15px; }
    .news-page__toolbar { font-size: 12px; }
}

/* End */


/* Start:/local/templates/erma/components/bitrix/news.list/erma_news/style.css?17902739725487*/
/*
 * Лента новостей по кадрам «Новости компании».
 * 1920 / 1366: строка-таблица из трёх ячеек — номер, обложка, текст (309 / 464 / 1067 из 1840,
 * пропорции на 1366 те же), линии #c5c5c6, поля 40 / 30.
 * 768: обложка 160×160 слева, текст справа; 360: только текст, без обложки.
 * Шкала: дата и «Подробнее» — Button text (20 / 16 / 14 / 12), заголовок — H3 (48 / 34 / 28 / 20),
 * анонс — Paragraph (20 / 16 / 14 / 12).
 */

.news-list {
    border-top: 1px solid #c5c5c6;
}

.news-item {
    display: grid;
    align-items: stretch;
    grid-template-columns: minmax(0, 252.3fr) minmax(0, 464fr) minmax(0, 1067fr);
    border-bottom: 1px solid #c5c5c6;
    transition: background-color .2s ease;
}

.news-item:hover { background: rgba(19, 19, 19, .05); }

.news-item__index {
    padding: 40px;
    color: rgba(19, 19, 19, .5);
    font-family: var(--ui-font);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.news-item__media {
    display: block;
    padding: 40px;
    border-right: 1px solid #c5c5c6;
    border-left: 1px solid #c5c5c6;
}

.news-item__media a,
.news-item__media img {
    display: block;
    width: 100%;
}

/* Обложка 384×340 на 1920 и 270×240 на 1366. */
.news-item__media img {
    aspect-ratio: 384 / 340;
    height: auto;
    object-fit: cover;
    background: rgba(19, 19, 19, .05);
    transition: transform .3s cubic-bezier(.2, .6, .2, 1);
}

.news-item__media a { overflow: hidden; }
.news-item:hover .news-item__media img { transform: scale(1.03); }

.news-item__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 40px;
}

.news-item__date,
.news-item__more {
    font-family: var(--ui-font);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.news-item__date {
    margin: 0 0 20px;
    color: rgba(19, 19, 19, .7);
}

.news-item__title {
    margin: 0;
    color: var(--ui-black);
    font-family: var(--ui-display);
    font-size: 48px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: 1;
    text-transform: uppercase;
}

.news-item__title a { transition: color .2s ease; }
.news-item__title a:hover { color: var(--ui-blue); }

.news-item__text {
    max-width: 604px;
    margin: auto 0 0;
    padding-top: 40px;
    color: rgba(19, 19, 19, .7);
    font-family: var(--ui-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.news-item__more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: 30px;
    color: var(--ui-blue);
}

/* Когда анонса нет, «Подробнее» всё равно прижимается к низу строки. */
.news-item__title + .news-item__more { margin-top: auto; padding-top: 40px; }

/* Стрелка в SVG белая — красим её цветом ссылки через маску. */
.news-item__more .product-pager__arrow {
    width: 20px;
    height: 20px;
    background: currentcolor;
    -webkit-mask: url("/local/templates/erma/components/bitrix/news.list/erma_news/../../../../assets/img/ui/arrow-right.svg") 50% / contain no-repeat;
    mask: url("/local/templates/erma/components/bitrix/news.list/erma_news/../../../../assets/img/ui/arrow-right.svg") 50% / contain no-repeat;
}
.news-item__more:hover { color: var(--ui-pink); }

.news-list__empty {
    margin: 0;
    padding: 40px 0;
    color: rgba(19, 19, 19, .5);
    font-size: 20px;
}

/* 1366 */
@media (max-width: 1400px) {
    .news-item__index,
    .news-item__media,
    .news-item__body { padding: 30px; }

    .news-item__index,
    .news-item__date,
    .news-item__more { font-size: 16px; }

    .news-item__media img { aspect-ratio: 270 / 240; }
    .news-item__date { margin-bottom: 15px; }
    .news-item__title { font-size: 34px; }
    .news-item__text { max-width: none; padding-top: 30px; font-size: 16px; }
    .news-item__more { margin-top: 20px; }
    .news-item__more .product-pager__arrow { width: 16px; height: 16px; }
}

/* 768: номер убираем, обложка 160×160 слева */
@media (max-width: 900px) {
    .news-item {
        gap: 30px;
        grid-template-columns: 160px minmax(0, 1fr);
        padding: 30px 0;
    }

    .news-item:hover { background: none; }
    .news-item__index { display: none; }

    .news-item__media {
        align-self: start;
        padding: 0;
        border: 0;
    }

    .news-item__media img { aspect-ratio: 1 / 1; }

    .news-item__body {
        min-height: 220px;
        padding: 0;
    }

    .news-item__date,
    .news-item__more { font-size: 14px; }

    .news-item__title { font-size: 28px; }
    .news-item__text { padding-top: 20px; font-size: 14px; }
    .news-item__more .product-pager__arrow { width: 15px; height: 15px; }
}

/* 360: только текст */
@media (max-width: 600px) {
    .news-item {
        display: block;
        padding: 30px 0;
    }

    .news-item__media { display: none; }
    .news-item__body { min-height: 0; }

    .news-item__date,
    .news-item__more { font-size: 12px; }

    .news-item__title { font-size: 20px; }
    .news-item__text { padding-top: 20px; font-size: 12px; }
    .news-item__more { margin-top: 15px; }
    .news-item__more .product-pager__arrow { width: 12px; height: 12px; }
}

/* End */
/* /local/templates/erma/components/bitrix/news/erma/style.css?17901039242977 */
/* /local/templates/erma/components/bitrix/news.list/erma_news/style.css?17902739725487 */
