

/* 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.detail/erma_news_detail/style.css?179033986613351*/
/* Детальная новость использует согласованную сетку страницы privacy. */

@media (min-width: 901px) {
    .page-news-detail .site-breadcrumbs {
        right: auto;
        width: 38%;
        overflow: hidden;
    }

    .page-news-detail .breadcrumbs-nav {
        position: relative;
        overflow: hidden;
    }

    .page-news-detail .breadcrumbs-nav::after {
        position: absolute;
        z-index: 2;
        top: 0;
        right: 0;
        bottom: 0;
        width: clamp(64px, 7vw, 120px);
        background: linear-gradient(270deg, #fff 10%, rgb(255 255 255 / 0));
        content: '';
        pointer-events: none;
    }

    .page-news-detail .breadcrumbs {
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .page-news-detail .breadcrumbs__item {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

.news-detail {
    --news-gap: 60px;
    --news-heading-gap: 30px;
    --news-subheading-gap: 20px;
    --news-quote-gap: 30px;

    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 773fr) minmax(0, 1067fr);
    min-height: 60vh;
    padding: 144px 40px 120px;
    overflow: hidden;
    background: var(--ui-white);
}

/*
 * Размеры сняты с кадров «Новостная карточка»:
 * 1920 — базовые правила, 1366 — max-width: 1400, 768 — max-width: 900, 360 — max-width: 600.
 * Колонка текста 1067 / 756 / вся ширина; вертикальный ритм между блоками 60 / 50 / 40 / 40.
 */

.news-detail__side {
    position: relative;
}

.news-detail__watermark {
    position: absolute;
    top: 231px;
    left: -141px;
    width: 845px;
    max-width: none;
    height: 728px;
    pointer-events: none;
    user-select: none;
}

.news-detail__content {
    position: relative;
    z-index: 1;
    min-width: 0;
}

/* Размер H1 задаёт animations.js (82 / 58 / 48 / 28). */
.news-detail__title {
    margin: 0;
    color: rgba(0, 88, 141, 1);
    font-family: var(--ui-display);
    font-style: normal;
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: .95;
    text-transform: uppercase;
}

.news-detail__cover {
    margin: var(--news-gap) 0 0;
    aspect-ratio: 1067 / 570;
    overflow: hidden;
    background: rgba(19, 19, 19, .05);
}

.news-detail__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Лид и текст — стиль Paragraph: 20 / 16 / 14 / 12, строки до 790px на 1920. */
.news-detail__lead,
.news-detail__body {
    color: rgba(19, 19, 19, .7);
    font-family: var(--ui-font);
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
}

.news-detail__lead {
    max-width: 790px;
    margin: var(--news-gap) 0 0;
    text-wrap: pretty;
}

/* ---------- Типографика тела статьи ---------- */

.news-detail__body { margin-top: var(--news-gap); }

.news-detail__body > *:first-child { margin-top: 0; }
.news-detail__body > *:last-child { margin-bottom: 0; }

.news-detail__body p {
    max-width: 790px;
    margin: 0 0 20px;
}

.news-detail__body h2,
.news-detail__body h3,
.news-detail__body h4 {
    color: var(--ui-black);
    font-family: var(--ui-display);
    font-style: normal;
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: 1;
    text-transform: uppercase;
}

/* Подзаголовок раздела — H2: 72 / 52 / 38 / 24. */
.news-detail__body h2 {
    margin: var(--news-gap) 0 var(--news-heading-gap);
    font-size: 72px;
}

/* Малый подзаголовок — H4: 32 / 22 / 20 / 16. */
.news-detail__body h3,
.news-detail__body h4 {
    margin: var(--news-gap) 0 var(--news-subheading-gap);
    font-size: 32px;
}

.news-detail__body a {
    color: var(--ui-black);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-detail__body a:hover { color: var(--ui-pink); }

/* Картинка в тексте занимает всю колонку, пропорции как у обложки. */
.news-detail__body p:has(> img:only-child) { max-width: none; }

.news-detail__body img {
    display: block;
    width: 100%;
    height: auto;
    margin: var(--news-gap) 0;
    aspect-ratio: 1067 / 570;
    object-fit: cover;
}

.news-detail__body p > img:only-child { margin: 0; }
.news-detail__body p:has(> img:only-child) { margin: var(--news-gap) 0; }

/* Списки: маркер 6px или номер в квадрате 24px, текст с отступом 34px. */
.news-detail__body ul,
.news-detail__body ol {
    max-width: 790px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.news-detail__body ol { counter-reset: news-list; }

.news-detail__body li {
    position: relative;
    min-height: 24px;
    margin: 0 0 5px;
    padding: 0 0 0 34px;
}

.news-detail__body ul > li::before {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #e50051;
    content: "";
}

.news-detail__body ol > li { counter-increment: news-list; }

.news-detail__body ol > li::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    color: inherit;
    content: counter(news-list) ".";
    font-weight: inherit;
    text-align: center;
}

/* Цитата: линия сверху, текст стилем H3 (48 / 34 / 28 / 20), подпись — Paragraph. */
.news-detail__body blockquote {
    margin: var(--news-gap) 0;
    padding: var(--news-quote-gap) 0 0;
    border-top: 1px solid rgba(19, 19, 19, .15);
}

.news-detail__body blockquote p {
    max-width: none;
    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-detail__body blockquote cite {
    display: block;
    margin-top: var(--news-quote-gap);
    color: rgba(19, 19, 19, .7);
    font-style: normal;
}

.news-detail__body blockquote cite::before { content: "— "; }

/*
 * Врезка-«карточка автора» (макет: серый блок, радиус 5, поля 30 / 30 / 20 / 15, между логотипом и текстом 30 / 30 / 30 / 15):
 * <div class="news-note"><strong>Имя, должность</strong> цитата</div>.
 * Слева красный знак бренда 100 / 100 / 80 / 30 (assets/img/news/author-logo.svg); если в врезке есть своя <img> —
 * она выводится вместо знака как аватар. Имя — H5 (28 / 20 / 18 / 14), текст — Paragraph, между ними 15 (на 360 — 10).
 */
.news-detail__body .news-note {
    --note-logo: 100px;
    display: grid;
    align-items: center;
    gap: 15px 30px;
    grid-template-columns: var(--note-logo) minmax(0, 1fr);
    margin: var(--news-gap) 0;
    padding: 30px;
    border-radius: 5px;
    background: rgba(19, 19, 19, .05);
    color: rgba(19, 19, 19, .7);
}

.news-detail__body .news-note::before {
    display: block;
    width: var(--note-logo);
    height: var(--note-logo);
    border-radius: 2px;
    background: url("/local/templates/erma/components/bitrix/news.detail/erma_news_detail/../../../../assets/img/news/author-logo.svg") center / cover no-repeat;
    content: "";
    grid-row: span 2;
}

.news-detail__body .news-note:has(> img)::before { display: none; }

.news-detail__body .news-note > img {
    width: var(--note-logo);
    height: var(--note-logo);
    margin: 0;
    border-radius: 2px;
    aspect-ratio: 1;
    object-fit: cover;
    grid-row: span 2;
}

.news-detail__body .news-note strong,
.news-detail__body .news-note b {
    display: block;
    align-self: end;
    color: var(--ui-black);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
}

/* Ссылки после текста (свойство LINKS): по одной в строке, между ними 10. */
.news-detail__links {
    display: flex;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

/* Карточка автора из свойств: если заполнено только одно поле, оно по центру рядом со знаком. */
.news-detail__body .news-note--author:not(:has(> strong)) > span,
.news-detail__body .news-note--author:not(:has(> span)) > strong {
    align-self: center;
    grid-row: span 2;
}

/* ---------- Поделиться: заголовок H4, иконки 60 / 60 / 60 / 45 через 15 / 15 / 15 / 5 ---------- */

.news-detail__share {
    --share-icon: 60px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: var(--news-gap);
    padding-top: var(--news-gap);
    border-top: 1px solid #c5c5c6;
}

/* Подпись — H4: 32 / 22 / 20 / 16. */
.news-detail__share-label {
    color: var(--ui-black);
    font-family: var(--ui-display);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: 1;
    text-transform: uppercase;
}

.news-detail__share-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.news-detail__share-button {
    display: inline-flex;
    width: var(--share-icon);
    height: var(--share-icon);
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 2px;
    background: rgba(19, 19, 19, .05);
    color: rgba(19, 19, 19, .7);
    transition: color .2s ease, background-color .2s ease;
}

.news-detail__share-button svg {
    display: block;
    width: 100%;
    height: 100%;
}

.news-detail__share-button:hover,
.news-detail__share-button:focus-visible {
    background: rgba(19, 19, 19, 0.15);
}

/* 1366 */
@media (max-width: 1400px) {
    .news-detail {
        --news-gap: 50px;

        grid-template-columns: minmax(0, 550fr) minmax(0, 756fr);
        padding: 112px 30px 100px;
    }

    .news-detail__watermark { top: 180px; left: -130px; width: 620px; height: 534px; }

    .news-detail__cover { aspect-ratio: 756 / 570; }
    .news-detail__lead,
    .news-detail__body { font-size: 16px; }
    .news-detail__lead,
    .news-detail__body p,
    .news-detail__body ul,
    .news-detail__body ol { max-width: none; }

    .news-detail__body h2 { font-size: 52px; }
    .news-detail__body h3,
    .news-detail__body h4 { font-size: 22px; }
    .news-detail__body img { aspect-ratio: 756 / 570; }
    /* Строка 19px в квадрате маркера 24px — опускаем текст к центру маркера. */
    .news-detail__body li { padding-top: 2px; }
    .news-detail__body ol > li::before { top: 2px; }
    .news-detail__body blockquote p { font-size: 34px; }

    .news-detail__body .news-note strong,
    .news-detail__body .news-note b { font-size: 20px; }

    .news-detail__share-label { font-size: 22px; }
}

/* 768: заголовок под хлебными крошками, текст на всю ширину */
@media (max-width: 900px) {
    .news-detail {
        --news-gap: 40px;

        display: block;
        min-height: 0;
        padding: 120px 20px 90px;
    }

    .news-detail__side { position: static; }
    .news-detail__watermark { top: 260px; left: 0; width: 480px; height: 414px; transform: translateX(-30%); }
    .news-detail__content { margin-top: 20px; }

    .news-detail__cover { margin-top: 20px; aspect-ratio: 728 / 450; }
    .news-detail__lead,
    .news-detail__body { font-size: 14px; }

    .news-detail__body h2 { font-size: 38px; }
    .news-detail__body h3,
    .news-detail__body h4 { font-size: 20px; }
    .news-detail__body img { aspect-ratio: 728 / 450; }
    .news-detail__body li { padding-top: 3px; }
    .news-detail__body ol > li::before { top: 3px; }
    .news-detail__body blockquote p { font-size: 28px; }

    .news-detail__body .news-note {
        --note-logo: 80px;
        padding: 20px;
    }


    .news-detail__body .news-note strong,
    .news-detail__body .news-note b { font-size: 18px; }

    .news-detail__share-label { font-size: 20px; }
}

/* 360 */
@media (max-width: 600px) {
    .news-detail {
        --news-heading-gap: 20px;
        --news-subheading-gap: 15px;
        --news-quote-gap: 20px;

        padding: 106px 15px 70px;
    }

    .news-detail__watermark { top: 330px; left: 50%; width: 330px; height: 284px; transform: translateX(-50%); }
    .news-detail__content { margin-top: 0; }

    .news-detail__cover { aspect-ratio: 330 / 260; }
    .news-detail__lead,
    .news-detail__body { font-size: 12px; }

    .news-detail__body h2 { font-size: 24px; }
    .news-detail__body h3,
    .news-detail__body h4 { font-size: 16px; }
    .news-detail__body img { aspect-ratio: 330 / 260; }
    .news-detail__body li { padding-top: 5px; }
    .news-detail__body ol > li::before { top: 5px; }
    .news-detail__body blockquote p { font-size: 20px; }

    .news-detail__body .news-note {
        --note-logo: 30px;
        align-items: start;
        gap: 10px 15px;
        padding: 15px;
    }


    .news-detail__body .news-note strong,
    .news-detail__body .news-note b { font-size: 14px; }

    .news-detail__share { --share-icon: 45px; gap: 15px; }
    .news-detail__share-label { font-size: 16px; }
    .news-detail__share-list { gap: 5px; }
}

/* End */
/* /local/templates/erma/components/bitrix/news/erma/style.css?17901039242977 */
/* /local/templates/erma/components/bitrix/news.detail/erma_news_detail/style.css?179033986613351 */
