/*------------------
    Новости: лента «Журнал» (templates/articles.tpl), страница новости (templates/article.tpl),
    окно подписки (base/subscribe.tpl). Логика — js/news.js
------------------*/
.news_feed,
.news_after,
.news_other,
#subscribe_modal
{
    font-family: 'CeraPro', Arial, sans-serif;
}

.news_feed a,
.news_other a
{
    text-decoration: none;

    color: inherit;
}

.news_feed svg,
.news_other svg,
.news_after svg
{
    flex-shrink: 0;

    width: 18px;
    height: 18px;

    fill: currentColor;
}

.news_feed [hidden],
.news_other [hidden]
{
    display: none !important;
}


/* Шапка раздела: последние публикации */
.news_head_list
{
    width: calc(50% - 40px);
    max-width: 600px;
    margin-top: -40px;

    font-family: 'CeraPro', Arial, sans-serif;
}

.news_head_list .lbl
{
    margin-bottom: 18px;

    color: #9bbdda;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.news_head_list .lst a
{
    display: grid;
    align-items: center;
    grid-template-columns: 110px 1fr 24px;
    gap: 16px;

    padding: 20px 0;

    transition: padding .25s;
    text-decoration: none;

    color: #fff;
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.news_head_list .lst a:last-child
{
    border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.news_head_list .lst a:hover
{
    padding-left: 8px;
}

.news_head_list .d
{
    color: #9bbdda;

    font-size: 16px;
    font-weight: 700;
}

.news_head_list .t
{
    font-size: 20px;
    line-height: 1.3;
}

.news_head_list svg
{
    width: 20px;
    height: 20px;

    fill: #9bbdda;
}


/* Общие элементы карточек */
.news_feed .meta,
.news_other .meta
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;

    color: #85868c;

    font-size: 15px;
}

.news_feed .meta span,
.news_other .meta span
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.news_feed .meta svg,
.news_other .meta svg
{
    fill: #6d7995;
}

.news_feed .meta .tag,
.news_other .meta .tag
{
    padding: 6px 12px;

    color: #6d7995;
    border-radius: 20px;
    background: #ecf2ff;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
}

.news_feed .ph,
.news_other .ph
{
    position: relative;

    overflow: hidden;

    border-radius: 20px;
    background: #ecf2ff;
}

.news_feed .ph img,
.news_other .ph img
{
    display: block;

    width: 100%;
    height: 100%;

    transition: transform .5s ease;

    object-fit: cover;
}

.news_feed a:hover .ph img,
.news_other a:hover .ph img
{
    transform: scale(1.04);
}


/* Фильтр по рубрикам */
.news_chips
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;

    margin: 0 0 36px;
}

.news_chips button
{
    padding: 10px 18px;

    cursor: pointer;
    transition: all .2s;

    color: #6d7995;
    border: 1px solid #c7cee1;
    border-radius: 30px;
    background: #fff;

    font: 600 15px/1 'CeraPro', Arial, sans-serif;
}

.news_chips button:hover
{
    color: #151824;
    border-color: #6d7995;
}

.news_chips button.on
{
    color: #fff;
    border-color: #6d7995;
    background: #6d7995;
}


/* Свежая новость */
.news_feat
{
    display: grid;
    align-items: center;
    grid-template-columns: 1.25fr 1fr;
    gap: 48px;

    margin-bottom: 56px;
}

.news_feat .ph
{
    aspect-ratio: 16 / 10;
}

.news_feat h2
{
    margin: 18px 0 16px;

    color: #151824;

    font-family: 'Jeko', 'CeraPro', Arial, sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
}

.news_feat p
{
    margin: 0 0 28px;

    color: #6d7995;

    font-size: 18px;
    line-height: 1.55;
}

.news_feat .btnx
{
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 16px 28px;

    transition: background .2s;

    color: #fff;
    border-radius: 10px;
    background: #6d7995;

    font-size: 15px;
    font-weight: 700;
}

.news_feat:hover .btnx
{
    background: #151824;
}


/* Сетка карточек */
.news_feed .news_grid,
.news_other .news_grid
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;

    margin: 0;
}

.news_card
{
    display: flex;
    flex-direction: column;
}

.news_card .ph
{
    aspect-ratio: 3 / 2;
    margin-bottom: 20px;
}

.news_card h3
{
    margin: 12px 0 10px;

    transition: color .2s;

    color: #151824;

    font-size: 21px;
    font-weight: 400;
    line-height: 1.3;
}

.news_card:hover h3
{
    color: #6d7995;
}

.news_card p
{
    display: -webkit-box;
    overflow: hidden;

    margin: 0;

    color: #85868c;

    font-size: 15px;
    line-height: 1.5;

    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}


/* Блок подписки под лентой */
.news_subscribe
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-top: 64px;
    padding: 36px 44px;

    border-radius: 20px;
    background: #ecf2ff;
}

.news_subscribe b
{
    display: block;

    margin-bottom: 6px;

    color: #151824;

    font-family: 'Jeko', 'CeraPro', Arial, sans-serif;
    font-size: 26px;
}

.news_subscribe span
{
    color: #6d7995;

    font-size: 16px;
}

.news_subscribe button
{
    flex-shrink: 0;

    padding: 16px 28px;

    cursor: pointer;
    transition: background .2s;

    color: #fff;
    border: 0;
    border-radius: 10px;
    background: #6d7995;

    font: 700 15px/1 'CeraPro', Arial, sans-serif;
}

.news_subscribe button:hover
{
    background: #151824;
}


/* Страница новости: шапка */
.read_progress
{
    position: fixed;
    z-index: 10000;
    top: 0;
    left: 0;

    width: 0;
    height: 4px;

    pointer-events: none;

    background: linear-gradient(90deg, #9bbdda, #6d7995);
}

.article_meta
{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 18px;
}

.page_head .article_meta .views_badge
{
    margin-top: 0;
}

.article_meta .pill
{
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 16px 8px 12px;

    color: #fff;
    border-radius: 20px;
    background: rgba(255, 255, 255, .14);

    font: 700 16px/1 'CeraPro', Arial, sans-serif;
}

.article_meta .pill[hidden]
{
    display: none;
}

.article_meta .pill svg
{
    width: 18px;
    height: 18px;

    fill: #9bbdda;
}


/* Страница новости: текст */
.news_article .text_block
{
    max-width: 860px;
    margin: 0 auto;

    color: #2a2e3d;

    font-size: 19px;
    line-height: 1.65;
}

.news_article .text_block p
{
    margin-bottom: 1.1em;
}

.news_article .text_block p.lead
{
    color: #6d7995;

    font-size: 23px;
    line-height: 1.5;
}

.news_article .text_block p a,
.news_article .text_block li a
{
    transition: color .2s;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    color: #6d7995;
}

.news_article .text_block p a:hover,
.news_article .text_block li a:hover
{
    color: #151824;
}

/* Обложка новости «не обрезать» (TV cover_fit): рисунок/схема целиком на белом фоне */
.page_head .img.img--contain
{
    padding: 20px;

    background: #fff;

    object-fit: contain;
}


/* Предпросмотр документа: <a class="doc_preview" href="файл.pdf" data-preview="картинка.jpg" data-caption="…"> (js/news.js) */
.text_block a.doc_preview
{
    text-decoration: underline dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    cursor: zoom-in;
}

.text_block a.doc_preview:after
{
    display: inline-block;

    width: 15px;
    height: 15px;
    margin-left: 5px;

    content: '';
    vertical-align: -2px;

    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236d7995' d='M6 2h9l5 5v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8 1.5V8h4.5zM8 12h8v1.6H8zm0 3.5h8v1.6H8z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.doc_tip
{
    position: fixed;
    z-index: 10001;

    width: 300px;
    padding: 10px;

    transition: opacity .18s, transform .18s;
    transform: translateY(6px);
    pointer-events: none;

    opacity: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(21, 24, 36, .25);
}

.doc_tip.show
{
    transform: none;

    opacity: 1;
}

.doc_tip img
{
    display: block;

    width: 100%;
    height: auto;

    border: 1px solid #e6eef6;
    border-radius: 6px;
}

.doc_tip span
{
    display: block;

    margin-top: 8px;

    color: #6d7995;

    font: 13px/1.35 'CeraPro', Arial, sans-serif;
    text-align: center;
}

.fancybox__caption a.doc_dl
{
    color: #9bbdda;
    text-decoration: underline;
}


.news_article .text_block .news_title
{
    margin: 0 0 24px;

    color: #151824;

    font-family: 'Jeko', 'CeraPro', Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: none;
}


/* Фотогалерея в тексте новости: <div class="news_gallery [news_gallery--mosaic]"><a href data-fancybox data-caption><img></a>…</div>
   Обычная — плитки 3 в ряд; --mosaic — 2 горизонтальных слева + вертикальное справа во всю высоту */
.news_article .news_gallery
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;

    margin: 36px 0 40px;
}

.news_article .news_gallery a
{
    position: relative;

    display: block;
    overflow: hidden;

    aspect-ratio: 4 / 3;

    cursor: zoom-in;

    border-radius: 16px;
    background: #ecf2ff;
}

.news_article .news_gallery img
{
    position: absolute;
    inset: 0;

    width: 100%;
    max-width: none;
    height: 100% !important;

    transition: transform .5s ease;

    border-radius: 0;

    object-fit: cover;
}

.news_article .news_gallery a:hover img
{
    transform: scale(1.04);
}

.news_article .news_gallery a:after
{
    position: absolute;
    right: 14px;
    bottom: 14px;

    width: 42px;
    height: 42px;

    content: '';
    transition: .25s;
    transform: scale(.8);

    opacity: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%236d7995' d='M10 2a8 8 0 0 1 6.3 12.9l5.4 5.4-1.4 1.4-5.4-5.4A8 8 0 1 1 10 2zm0 2a6 6 0 1 0 0 12 6 6 0 0 0 0-12zm1 2v3h3v2h-3v3H9v-3H6V9h3V6z'/%3E%3C/svg%3E") center / 20px no-repeat;
}

.news_article .news_gallery a:hover:after
{
    transform: none;

    opacity: 1;
}

.news_article .news_gallery--mosaic
{
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: 1fr 1fr;

    height: 620px;
}

.news_article .news_gallery--mosaic a
{
    aspect-ratio: auto;
}

.news_article .news_gallery--mosaic a:nth-child(3)
{
    grid-column: 2;
    grid-row: 1 / span 2;
}

.news_article .text_block img
{
    max-width: 100%;
    height: auto;

    border-radius: 20px;
}


/* Страница новости: поделиться и заявка */
.news_after .cont
{
    max-width: 900px;
    margin: 8px auto 0;
}

.news_share
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;

    padding: 26px 0;

    border-top: 1px solid #ecf2ff;
    border-bottom: 1px solid #ecf2ff;
}

.news_share b
{
    margin-right: 8px;

    color: #151824;

    font-size: 16px;
}

.news_share a,
.news_share button
{
    display: inline-flex;
    align-items: center;

    padding: 10px 16px;

    cursor: pointer;
    transition: all .2s;
    text-decoration: none;

    color: #6d7995;
    border: 1px solid #c7cee1;
    border-radius: 30px;
    background: #fff;

    font: 600 14px/1 'CeraPro', Arial, sans-serif;
}

.news_share a:hover,
.news_share button:hover
{
    color: #151824;
    border-color: #6d7995;
}

.news_share .subscribe_btn
{
    margin-left: auto;

    color: #fff;
    border-color: #6d7995;
    background: #6d7995;
}

.news_share .subscribe_btn:hover
{
    color: #fff;
    border-color: #151824;
    background: #151824;
}

.news_cta
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    margin-top: 48px;
    padding: 40px 44px;

    color: #fff;
    border-radius: 20px;
    background: #6d7995;
}

.news_cta b
{
    display: block;

    margin-bottom: 8px;

    font-family: 'Jeko', 'CeraPro', Arial, sans-serif;
    font-size: 28px;
    line-height: 1.15;
}

.news_cta span
{
    color: #e6eef6;

    font-size: 16px;
    line-height: 1.5;
}

.news_cta button
{
    flex-shrink: 0;

    padding: 18px 30px;

    cursor: pointer;
    transition: background .2s;

    color: #151824;
    border: 0;
    border-radius: 10px;
    background: #fff;

    font: 700 15px/1 'CeraPro', Arial, sans-serif;
}

.news_cta button:hover
{
    background: #9bbdda;
}


/* Другие новости */
.news_other
{
    margin-top: 80px;
}

.news_other .hd
{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 32px;
}

.news_other .hd .title
{
    color: #6d7995;

    font-family: 'Jeko', 'CeraPro', Arial, sans-serif;
    font-size: 40px;
    font-weight: 700;
    text-transform: uppercase;
}

.news_other .more
{
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #6d7995;

    font-size: 15px;
    font-weight: 700;
}

.news_other .more svg
{
    transition: transform .25s;
}

.news_other .more:hover svg
{
    transform: translateX(4px);
}


/* Окно подписки */
#subscribe_modal .subscribe_lead
{
    margin: 16px 0 26px;

    color: #6d7995;

    font-size: 16px;
    line-height: 1.5;
}

#subscribe_modal .fields .line + .line
{
    margin-top: 14px;
}

#subscribe_modal .field_error
{
    color: #d64545;

    font-size: 14px;
    line-height: 1.4;
}

#subscribe_modal .field_error:not(:empty)
{
    margin-top: 6px;
}

#subscribe_modal .agrees
{
    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-bottom: 14px;
}

#subscribe_modal .subscribe_topics
{
    margin: 22px 0 6px;
}

#subscribe_modal .subscribe_topics .lbl
{
    margin-bottom: 10px;

    color: #85868c;

    font-size: 14px;
}

#subscribe_modal .topics
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#subscribe_modal .topics label
{
    position: relative;

    cursor: pointer;
}

#subscribe_modal .topics input
{
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}

#subscribe_modal .topics span
{
    display: inline-block;

    padding: 9px 14px;

    transition: all .2s;

    color: #6d7995;
    border: 1px solid #c7cee1;
    border-radius: 30px;
    background: #fff;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;
}

#subscribe_modal .topics input:checked + span
{
    color: #fff;
    border-color: #6d7995;
    background: #6d7995;
}

#subscribe_modal .topics input:focus-visible + span
{
    outline: 2px solid #9bbdda;
    outline-offset: 2px;
}

#subscribe_modal .subscribe_ok
{
    padding: 20px 0;
}

#subscribe_modal .subscribe_ok[hidden],
#subscribe_modal .subscribe_form_wrap[hidden]
{
    display: none;
}

#subscribe_modal .ok_ico
{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;
    margin-bottom: 24px;

    border-radius: 50%;
    background: #ecf2ff;
}

#subscribe_modal .ok_ico svg
{
    width: 32px;
    height: 32px;

    fill: #6d7995;
}

#subscribe_modal .subscribe_ok p
{
    margin: 0 0 28px;

    color: #6d7995;

    font-size: 17px;
    line-height: 1.55;
}

#subscribe_modal .subscribe_ok p b
{
    color: #151824;
}

#subscribe_modal .subscribe_ok_btn
{
    padding: 16px 36px;

    cursor: pointer;
    transition: background .2s;
    letter-spacing: .04em;

    color: #fff;
    border: 0;
    border-radius: 10px;
    background: #6d7995;

    font: 700 15px/1 'CeraPro', Arial, sans-serif;
}

#subscribe_modal .subscribe_ok_btn:hover
{
    background: #151824;
}


@media (max-width: 1023px)
{
    .news_feat
    {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .news_feed .news_grid,
    .news_other .news_grid
    {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px)
{
    .news_head_list
    {
        width: 100%;
        margin-top: 0;
    }

    .news_head_list .lst a
    {
        grid-template-columns: 1fr 20px;
        gap: 4px 12px;

        padding: 14px 0;
    }

    .news_head_list .d
    {
        grid-column: 1;

        font-size: 14px;
    }

    .news_head_list .t
    {
        grid-column: 1;

        font-size: 17px;
    }

    .news_head_list svg
    {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .news_feat h2
    {
        font-size: 28px;
    }

    .news_feat p
    {
        font-size: 16px;
    }

    .news_feed .news_grid,
    .news_other .news_grid
    {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .news_chips
    {
        flex-wrap: nowrap;
        justify-content: flex-start;

        margin: 0 -20px 28px;
        padding: 0 20px;
        overflow-x: auto;
    }

    .news_chips button
    {
        flex-shrink: 0;
    }

    .news_subscribe,
    .news_cta
    {
        flex-direction: column;
        align-items: flex-start;

        padding: 28px 24px;
    }

    .news_subscribe b,
    .news_cta b
    {
        font-size: 22px;
    }

    .news_article .text_block
    {
        font-size: 17px;
    }

    .news_article .text_block p.lead
    {
        font-size: 19px;
    }

    .news_article .text_block .news_title
    {
        font-size: 26px;
    }

    .news_article .news_gallery,
    .news_article .news_gallery--mosaic
    {
        grid-template-columns: 1fr;
        grid-template-rows: none;

        height: auto;
    }

    .news_article .news_gallery a,
    .news_article .news_gallery--mosaic a
    {
        aspect-ratio: 3 / 2;
    }

    .news_article .news_gallery--mosaic a:nth-child(3)
    {
        grid-column: auto;
        grid-row: auto;

        aspect-ratio: 4 / 5;
    }

    .news_article .news_gallery a:after
    {
        width: 36px;
        height: 36px;

        transform: none;

        opacity: 1;
    }

    .news_share .subscribe_btn
    {
        margin-left: 0;
    }

    .news_other .hd .title
    {
        font-size: 26px;
    }
}
