/* Раздел «Новини»: лента (category-news.php) и новость (single-news.php). Шрифт — от темы. */
:root {
    --news-navy: #252D55;
    --news-blue: #1C54F4;
    --news-muted: #8E93AE;
    --news-text2: #5D6386;
    --news-line: #E4E7F2;
    --news-soft: #F4F6FC;
    --news-hot: #E8453C;
}

/* ===== общие ===== */
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--news-muted); margin-bottom: 6px; }
.news-meta time { font-variant-numeric: tabular-nums; }
.news-tag { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--news-blue); background: var(--news-soft); padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.news-hot { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--news-hot); padding: 3px 8px; border-radius: 4px; }

/* ===== лента ===== */
.news-h1 { font-size: clamp(24px, 3.6vw, 40px); line-height: 1.2; font-weight: 700; color: var(--news-navy); margin: 40px 0 10px; }
.news-lead { color: var(--news-text2); margin: 0 0 30px; max-width: 640px; }
/* дата дня — всегда в одну строку («30 листопада», «30 сентября») */
.news-day { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 32px; padding: 22px 0; border-top: 1px solid var(--news-line); }
.news-day__date { position: sticky; top: 100px; align-self: start; min-width: 170px; white-space: nowrap; }
.news-day__date b { display: block; font-size: 20px; font-weight: 800; color: var(--news-navy); white-space: nowrap; }
.news-day__date span { font-size: 13px; color: var(--news-muted); white-space: nowrap; }
.news-day__list { border-left: 2px solid var(--news-line); min-width: 0; }
.news-item { position: relative; padding: 0 0 22px 24px; }
.news-item:last-child { padding-bottom: 0; }
.news-item::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--news-blue); }
.news-item.is-important::before { background: var(--news-hot); border-color: var(--news-hot); }
.news-item__title { margin: 0 0 4px; font-size: 18px; line-height: 1.35; font-weight: 700; }
.news-item__title a { color: var(--news-navy); text-decoration: none; }
.news-item__title a:hover { color: var(--news-blue); }
.news-item__desc { margin: 0; color: var(--news-text2); font-size: 14px; max-width: 70ch; }
.news-empty { color: var(--news-muted); padding: 30px 0; }

/* ===== новость ===== */
.news-back { display: inline-block; margin: 30px 0 22px; color: var(--news-blue); font-weight: 600; text-decoration: none; }
.news-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
.news-single__title { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2; font-weight: 800; color: var(--news-navy); margin: 6px 0 18px; }
.news-when { display: inline-flex; gap: 8px; align-items: center; border: 2px solid var(--news-blue); color: var(--news-navy); border-radius: 12px; padding: 8px 14px; font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.news-when b { color: var(--news-blue); font-weight: 800; }
.news-brief { background: var(--news-soft); border-radius: 16px; padding: 22px 24px; margin-bottom: 28px; }
.news-brief h2 { margin: 0 0 12px; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; color: var(--news-navy); }
.news-brief dl { margin: 0; display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 16px; }
.news-brief dt { font-weight: 700; font-size: 14px; color: var(--news-navy); }
.news-brief dd { margin: 0; font-size: 15px; }
.news-body { font-size: 17px; line-height: 1.7; max-width: 70ch; }
.news-src { border-top: 1px solid var(--news-line); margin-top: 28px; padding-top: 16px; font-size: 14px; color: var(--news-text2); }
.news-src a { color: var(--news-blue); font-weight: 600; }
.news-share { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 18px; }
.news-share__icons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.news-share__lbl { font-size: 13px; color: var(--news-muted); margin-right: 4px; }
.news-ico { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid var(--news-line); background: #fff; color: var(--news-navy);
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; text-decoration: none;
    transition: background .15s, color .15s, border-color .15s; }
.news-ico--tg:hover { background: #229ED9; border-color: #229ED9; color: #fff; }
.news-ico--vb:hover { background: #7360F2; border-color: #7360F2; color: #fff; }
.news-ico--fb:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.news-ico--li:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.news-ico--cp:hover, .news-ico--cp.is-done { background: var(--news-navy); border-color: var(--news-navy); color: #fff; }
.news-gsrc { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--news-line); border-radius: 24px; padding: 9px 16px 9px 12px;
    font-size: 14px; font-weight: 600; color: var(--news-navy); background: #fff; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.news-gsrc:hover { border-color: #4285F4; box-shadow: 0 1px 6px rgba(66, 133, 244, .25); }
.news-cta { background: var(--news-navy); color: #fff; border-radius: 16px; padding: 24px; display: grid; gap: 12px; margin-top: 28px; }
.news-cta b { font-size: 19px; line-height: 1.3; }
.news-cta span { opacity: .85; font-size: 14px; }
.news-cta__btn { justify-self: start; }
.news-side { display: flex; flex-direction: column; gap: 24px; align-self: start; position: sticky; top: 100px; }
.news-box { background: var(--news-soft); border-radius: 16px; padding: 22px; }
.news-box h4 { margin: 0 0 14px; font-size: 17px; color: var(--news-navy); }
.news-mini { display: flex; flex-direction: column; gap: 14px; }
.news-mini a { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--news-navy); text-decoration: none; }
.news-mini a:hover { color: var(--news-blue); }
.news-mini span { display: block; font-size: 12px; color: var(--news-muted); font-weight: 500; margin-top: 2px; }
.news-cal { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.news-cal li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: start; }
.news-cal__d { background: #fff; border-radius: 10px; text-align: center; padding: 6px 0; line-height: 1.1; }
.news-cal__d b { display: block; font-size: 20px; font-weight: 800; color: var(--news-navy); }
.news-cal__d span { font-size: 11px; text-transform: uppercase; color: var(--news-muted); font-weight: 700; }
.news-cal__x { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--news-navy); text-decoration: none; }
.news-cal__x small { display: block; font-weight: 500; color: var(--news-muted); font-size: 12px; margin-top: 2px; }

@media (max-width: 860px) {
    .news-single__grid { grid-template-columns: minmax(0, 1fr); }
    .news-side { position: static; }
}
@media (max-width: 640px) {
    .news-day { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .news-day__date { position: static; }
    .news-brief dl { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
    .news-brief dd { margin-bottom: 8px; }
}

/* В теме h2 { font-size: 28px !important } — внутри раздела перебиваем своим !important */
.bip-news .news-feed h2.news-item__title { font-size: 20px !important; line-height: 1.35; font-weight: 700; margin: 0 0 4px; }
.bip-news .news-feed h2.news-item__title a { font-size: inherit; line-height: inherit; font-weight: inherit; }
.bip-news .news-brief h2 { font-size: 15px !important; line-height: 1.3; letter-spacing: .06em; margin: 0 0 12px; }
.bip-news .news-box h4 { font-size: 17px; line-height: 1.3; }
.bip-news .news-item__desc { font-size: 15px; line-height: 1.5; }

/* ===== Вид как в макете: свой шрифт и текст, без стилей статей темы (.article_body) ===== */
.bip-news { --news-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
.bip-news .news-feed, .bip-news .news-h1, .bip-news .news-lead, .bip-news.news-single { font-family: var(--news-font); color: var(--news-navy); }
.bip-news .news-feed :not(i), .bip-news.news-single :not(i) { font-family: inherit; }

/* заголовки: в теме h1–h4 с !important */
.bip-news h1.news-h1, .bip-news h1.news-single__title { font-size: clamp(26px, 3.6vw, 40px) !important; line-height: 1.2; }
.bip-news .news-lead { font-size: 15px; line-height: 1.5; font-weight: 400; }
.bip-news .news-meta, .bip-news .news-meta time, .bip-news .news-meta span { font-size: 13px; line-height: 1.4; font-weight: 500; }
.bip-news .news-meta .news-tag, .bip-news .news-meta .news-hot { font-size: 11px; font-weight: 700; }
.bip-news .news-day__date span { font-weight: 500; }
.bip-news .news-item__desc { font-weight: 400; color: var(--news-text2); }
.bip-news .news-brief dt, .bip-news .news-brief dd { line-height: 1.45; }
.bip-news .news-brief dd { font-weight: 400; }
.bip-news .news-box h4 { font-size: 17px !important; font-weight: 700; margin: 0 0 14px; }
.bip-news .news-mini a { font-weight: 600; }
.bip-news .news-cta b { font-size: 19px; line-height: 1.3; font-weight: 700; }

/* текст новости */
.bip-news .news-body { font-size: 17px; line-height: 1.7; color: var(--news-navy); max-width: 70ch; }
.bip-news .news-body p { font-size: 17px; line-height: 1.7; font-weight: 400; margin: 0 0 16px; text-align: left; }
.bip-news .news-body h2 { font-size: 24px !important; line-height: 1.3; font-weight: 700; margin: 32px 0 12px; }
.bip-news .news-body h3 { font-size: 20px !important; line-height: 1.35; font-weight: 700; margin: 26px 0 10px; }
.bip-news .news-body h4 { font-size: 18px !important; line-height: 1.4; font-weight: 700; margin: 22px 0 8px; }
.bip-news .news-body ul { list-style: disc; padding-left: 22px; margin: 0 0 16px; }
.bip-news .news-body ol { list-style: decimal; padding-left: 24px; margin: 0 0 16px; counter-reset: none; }
.bip-news .news-body ol li::before, .bip-news .news-body ul li::before { content: none !important; }
.bip-news .news-body li { font-size: 17px; line-height: 1.6; font-weight: 400; padding: 0 0 6px; }
.bip-news .news-body li::marker { color: var(--news-blue); }
.bip-news .news-body a { color: var(--news-blue); text-decoration: underline; text-underline-offset: 2px; }
.bip-news .news-body strong, .bip-news .news-body b { font-weight: 700; line-height: inherit; }
.bip-news .news-body img { max-width: 100%; height: auto; border-radius: 12px; }
.bip-news .news-body table { display: block; overflow-x: auto; width: 100%; border: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.bip-news .news-body th, .bip-news .news-body td { border: 1px solid var(--news-line); padding: 10px 12px; text-align: left; vertical-align: top; font-size: 15px; }
.bip-news .news-body th, .bip-news .news-body tr:first-child td { background: var(--news-soft); font-weight: 700; }
.bip-news .news-body td p, .bip-news .news-body th p { font-size: 15px; margin: 0; line-height: 1.5; }

/* плашки good_sign / warning_sign / bad_sign — как в макете */
.bip-news .news-body .good_sign, .bip-news .news-body .warning_sign, .bip-news .news-body .bad_sign { border: 0; border-radius: 12px; padding: 16px 20px; margin: 0 0 18px; font-size: 16px; }
.bip-news .news-body .warning_sign { background: #FFF4D6; }
.bip-news .news-body .good_sign { background: #E6F6EC; }
.bip-news .news-body .bad_sign { background: #FDECEC; }
.bip-news .news-body .good_sign::before, .bip-news .news-body .warning_sign::before, .bip-news .news-body .bad_sign::before { content: none; }
.bip-news .news-body .good_sign p, .bip-news .news-body .warning_sign p, .bip-news .news-body .bad_sign p { font-size: 16px; margin: 0 0 8px; }
.bip-news .news-body .good_sign > :last-child, .bip-news .news-body .warning_sign > :last-child, .bip-news .news-body .bad_sign > :last-child { margin-bottom: 0; }

/* в новостях нет оглавления и рейтинга (фильтры сняты в includes/content.php; это — страховка) */
.bip-news #ez-toc-container, .bip-news .ez-toc-v2_0_87, .bip-news .kk-star-ratings { display: none !important; }

@media (max-width: 640px) {
    .bip-news .news-body, .bip-news .news-body p, .bip-news .news-body li { font-size: 16px; }
    .bip-news .news-body h2 { font-size: 21px !important; }
}

/* кружок ровно по центру линии ленты: размер с рамкой, центр на середине 2px-линии (x = -1px) */
.bip-news .news-item::before { box-sizing: border-box; width: 14px; height: 14px; left: -1px; top: 5px; transform: translateX(-50%); }

/* CTA-баннеры блога (bip-cta.css) внутри новостей: их шрифт e-Ukraine, а не шрифт раздела; отступы под колонки */
.bip-news.news-single .bip-cta, .bip-news.news-single .bip-cta :not(i) { font-family: "e-Ukraine", system-ui, sans-serif; }
.bip-news .news-cta-wrap { margin: 32px 0 0; }
.bip-news .news-cta-side { margin: 0; }
.bip-news .news-cta-side .bip-cta--compact { flex-wrap: wrap; gap: 16px; padding: 20px; }
.bip-news .news-cta-side .bip-cta__content { flex-basis: calc(100% - 76px); }
.bip-news .news-cta-side .bip-cta__btn { width: 100%; justify-content: space-between; }

/* ===== «Коротко» — три карточки: что изменилось / кого касается / что сделать ===== */
.bip-news .news-brief { background: #fff; border: 1px solid var(--news-line); border-radius: 24px; padding: 22px; margin: 0 0 32px;
    box-shadow: 0 12px 32px -20px rgba(37, 45, 85, .35); }
.bip-news .news-brief__head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 16px; }
.bip-news .news-brief__bolt { width: 32px; height: 32px; border-radius: 10px; background: #FFE9A8; color: #E8A400; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bip-news .news-brief__bolt svg { width: 18px; height: 18px; }
.bip-news .news-brief__title { font-size: 18px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--news-navy); }
.bip-news .news-brief__sub { font-size: 13px; font-weight: 500; color: var(--news-muted); }
.bip-news .news-brief__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bip-news .news-brief__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bip-news .news-brief__grid--1 { grid-template-columns: minmax(0, 1fr); }
.bip-news .news-brief__item { border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bip-news .news-brief__ico { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.bip-news .news-brief__ico svg { width: 22px; height: 22px; }
.bip-news p.news-brief__label { margin: 0; font-size: 12px; line-height: 1.3; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bip-news p.news-brief__text { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 500; }
/* что изменилось — голубая */
.bip-news .news-brief__item.is-what { background: #EAF0FF; color: var(--news-navy); }
.bip-news .is-what .news-brief__ico { background: var(--news-blue); color: #fff; }
.bip-news .is-what .news-brief__label { color: var(--news-blue); }
/* кого касается — светлая */
.bip-news .news-brief__item.is-who { background: var(--news-soft); color: var(--news-navy); }
.bip-news .is-who .news-brief__ico { background: #fff; color: var(--news-navy); box-shadow: inset 0 0 0 1px var(--news-line); }
.bip-news .is-who .news-brief__label { color: var(--news-text2); }
/* что сделать — тёмная, главное действие */
.bip-news .news-brief__item.is-todo { background: var(--news-navy); color: #fff; }
.bip-news .is-todo .news-brief__ico { background: #3DD68C; color: var(--news-navy); }
.bip-news .is-todo .news-brief__label { color: #9DB8FF; }
.bip-news .is-todo .news-brief__text { color: #fff; }

@media (max-width: 760px) {
    .bip-news .news-brief__grid, .bip-news .news-brief__grid--2 { grid-template-columns: minmax(0, 1fr); }
    .bip-news .news-brief__item { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
    .bip-news .news-brief__item .news-brief__text { flex-basis: 100%; }
    .bip-news .news-brief { padding: 16px; border-radius: 20px; }
}

/* кнопки CTA — <button> (открывают попап): сброс стилей кнопки */
.bip-news button.bip-cta__btn { border: 0; cursor: pointer; font-family: "e-Ukraine", system-ui, sans-serif; text-align: left; }
/* колонка: отступ сверху задаёт news.js (под шапкой сайта); выше экрана — не липнет */
.bip-news .news-side { top: 160px; transition: top .15s ease; }
.bip-news .news-side.is-static { position: static; }
.bip-news .news-box h4 a { color: inherit; text-decoration: none; }
.bip-news .news-box h4 a:hover { color: var(--news-blue); }
.bip-news .news-box__more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--news-blue); text-decoration: none; }
.bip-news .news-box__more:hover { text-decoration: underline; }
.bip-news .news-cta-side .bip-cta__title { white-space: nowrap; }
@media (max-width: 860px) { .bip-news .news-side { top: auto; } }

/* «Зверніть увагу» — дисклеймер под источником */
.bip-news .news-note { margin: 18px 0 0; padding: 14px 18px; border: 1px solid var(--news-line); border-radius: 14px; background: #fff; }
.bip-news .news-note p { margin: 0; font-size: 13px; line-height: 1.55; font-weight: 400; color: var(--news-text2); }
.bip-news .news-note b { color: var(--news-navy); font-weight: 700; }

/* ===== 1.4: крошки, теги-ссылки, фильтры, календарь, «Читайте також», оценка, Telegram ===== */
.bip-news .news-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 30px 0 18px; font-size: 13px; font-weight: 500; }
.bip-news .news-crumbs a { color: var(--news-muted); text-decoration: none; }
.bip-news .news-crumbs a:hover { color: var(--news-blue); }
.bip-news .news-crumbs a:last-child { color: var(--news-navy); }
.bip-news .news-crumbs__sep { color: var(--news-line); }
.bip-news a.news-tag { text-decoration: none; }
.bip-news a.news-tag:hover { background: var(--news-blue); color: #fff; }
.bip-news .news-updated { color: var(--news-muted); }

.bip-news .news-when { flex-wrap: wrap; }
.bip-news .news-when__cal { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--news-blue); text-decoration: none; border-left: 1px solid var(--news-line); padding-left: 12px; white-space: nowrap; }
.bip-news .news-when__cal:hover { text-decoration: underline; }

.bip-news .news-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.bip-news .news-chip { border: 1px solid var(--news-line); border-radius: 20px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--news-navy); background: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.bip-news .news-chip:hover { border-color: var(--news-blue); }
.bip-news .news-chip.is-active { background: var(--news-navy); border-color: var(--news-navy); color: #fff; }

.bip-news .news-related { margin: 30px 0 0; padding: 22px 24px; border-radius: 18px; background: var(--news-soft); max-width: 70ch; }
.bip-news p.news-related__title { margin: 0 0 12px; font-size: 18px; line-height: 1.3; font-weight: 800; color: var(--news-navy); }
.bip-news .news-related ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bip-news .news-related li { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--news-line); padding-bottom: 10px; font-size: 15px; line-height: 1.45; }
.bip-news .news-related li:last-child { border-bottom: 0; padding-bottom: 0; }
.bip-news .news-related li::before { content: none !important; }
.bip-news .news-related a { color: var(--news-navy); font-weight: 600; text-decoration: none; }
.bip-news .news-related a:hover { color: var(--news-blue); }
.bip-news .news-related span { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--news-muted); }

.bip-news .news-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 14px; color: var(--news-navy); }
.bip-news .news-feedback__q { font-weight: 600; }
.bip-news .news-feedback__btn { border: 1px solid var(--news-line); background: #fff; border-radius: 20px; padding: 6px 18px; font: inherit; font-weight: 600; color: var(--news-navy); cursor: pointer; }
.bip-news .news-feedback__btn:hover { border-color: var(--news-blue); color: var(--news-blue); }
.bip-news .news-feedback__thanks { color: #1F9D61; font-weight: 600; }

.bip-news .news-tg { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; background: #EAF5FC; }
.bip-news .news-tg__ico { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #229ED9; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.bip-news p.news-tg__text { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--news-navy); }
.bip-news .news-tg__btn { flex: none; background: #229ED9; color: #fff; border-radius: 24px; padding: 9px 18px; font-size: 14px; font-weight: 700; text-decoration: none; }
.bip-news .news-tg__btn:hover { filter: brightness(1.08); }
@media (max-width: 560px) {
    .bip-news .news-tg { flex-wrap: wrap; }
    .bip-news .news-tg__btn { width: 100%; text-align: center; }
    .bip-news .news-related li { flex-direction: column; gap: 2px; }
}

/* ===== 1.4.1: «Читайте також» — карточки; «Новина була корисною?» — карточка с кнопками ===== */
.bip-news .news-related { margin: 36px 0 0; padding: 0; background: none; border-radius: 0; max-width: none; }
.bip-news .news-related__head { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.bip-news .news-related__ico { width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--news-soft); color: var(--news-blue); display: inline-flex; align-items: center; justify-content: center; }
.bip-news .news-related__ico svg { width: 20px; height: 20px; }
.bip-news p.news-related__title { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 800; color: var(--news-navy); }
.bip-news .news-related__all { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--news-blue); text-decoration: none; white-space: nowrap; }
.bip-news .news-related__all:hover { text-decoration: underline; }
.bip-news .news-related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bip-news .news-rel-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 132px; padding: 18px 54px 18px 18px;
    border: 1px solid var(--news-line); border-radius: 18px; background: #fff; text-decoration: none; color: var(--news-navy);
    transition: border-color .2s, box-shadow .2s, transform .2s; }
.bip-news .news-rel-card:hover { border-color: var(--news-blue); box-shadow: 0 14px 30px -18px rgba(28, 84, 244, .55); transform: translateY(-2px); }
.bip-news .news-rel-card__type { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--news-soft); color: var(--news-text2); }
.bip-news .news-rel-card.is-news .news-rel-card__type { background: #EAF0FF; color: var(--news-blue); }
.bip-news .news-rel-card__title { font-size: 15px; line-height: 1.45; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bip-news .news-rel-card__go { position: absolute; right: 14px; bottom: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--news-soft); color: var(--news-blue);
    display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s, transform .25s; }
.bip-news .news-rel-card__go svg { width: 16px; height: 16px; }
.bip-news .news-rel-card:hover .news-rel-card__go { background: var(--news-blue); color: #fff; transform: rotate(45deg); }

.bip-news .news-feedback { display: block; margin: 20px 0 0; padding: 16px 18px; border: 1px solid var(--news-line); border-radius: 18px; background: #fff; }
.bip-news .news-feedback__ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.bip-news .news-feedback__q { font-size: 16px; font-weight: 700; color: var(--news-navy); }
.bip-news .news-feedback__btns { display: inline-flex; gap: 8px; }
.bip-news .news-feedback__btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--news-line); background: #fff; border-radius: 24px; padding: 9px 18px;
    font: inherit; font-size: 14px; font-weight: 700; color: var(--news-navy); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.bip-news .news-feedback__btn svg { width: 18px; height: 18px; }
.bip-news .news-feedback__btn.is-yes:hover { background: #E6F6EC; border-color: #1F9D61; color: #1F9D61; }
.bip-news .news-feedback__btn.is-no:hover { background: #FDECEC; border-color: var(--news-hot); color: var(--news-hot); }
.bip-news .news-feedback__thanks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 15px; color: var(--news-navy); }
.bip-news .news-feedback__thanks[hidden], .bip-news .news-feedback__ask[hidden], .bip-news .news-feedback__more[hidden] { display: none; }
.bip-news .news-feedback__thanks b { color: #1F9D61; }
.bip-news .news-feedback__more { color: var(--news-text2); }
.bip-news .news-feedback__ask-btn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--news-blue); cursor: pointer; text-decoration: underline; }
@media (max-width: 640px) {
    .bip-news .news-related__grid { grid-template-columns: minmax(0, 1fr); }
    .bip-news .news-rel-card { min-height: 0; }
    .bip-news .news-feedback__btns { width: 100%; }
    .bip-news .news-feedback__btn { flex: 1; justify-content: center; }
}
/* старое правило «.news-related span» (подписи списка) не должно трогать карточки */
.bip-news .news-related .news-rel-card__title { flex: initial; font-size: 15px; line-height: 1.45; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--news-navy); }
.bip-news .news-related .news-rel-card__go { font-size: 0; letter-spacing: 0; }
.bip-news .news-related .news-rel-card:hover .news-rel-card__title { color: var(--news-blue); }

/* ===== 1.6: «Я – ФОП 1–2 / ФОП 3 / ТОВ», метка «Стосується вас», блок на главной ===== */
.news-forme[hidden], .news-forme-box[hidden], .bip-home-news [hidden] { display: none !important; }
.news-forme { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #1F9D61; background: #E6F6EC; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.news-item.is-for-me:not(.is-important)::before { border-color: #1F9D61; background: #1F9D61; }

.news-persona { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -10px 0 26px; font-size: 14px; }
.news-persona__lbl { font-weight: 700; color: var(--news-navy); }
.news-persona__seg { display: inline-flex; gap: 4px; background: var(--news-soft); border-radius: 10px; padding: 3px; }
.news-persona__seg button { border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; color: var(--news-text2); padding: 6px 12px; border-radius: 7px; line-height: 1.2; white-space: nowrap; }
.news-persona__seg button:hover { color: var(--news-blue); }
.news-persona__seg button.is-on { background: #fff; color: var(--news-navy); box-shadow: 0 1px 4px rgba(37, 45, 85, .15); }
.news-persona.is-compact { margin: 0; }

.news-forme-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: var(--news-soft); border-radius: 12px; padding: 10px 14px; margin: 0 0 20px; font-size: 14px; font-weight: 600; color: var(--news-navy); }
.news-forme-box .news-persona__lbl { display: none; }
.news-forme-box.is-yes { background: #E6F6EC; color: #1F7A4D; }
.news-forme-box.is-yes .news-forme-box__txt::before { content: "✓ "; font-weight: 800; }
.news-forme-box.is-yes .news-persona__seg, .news-forme-box.is-no .news-persona__seg { background: rgba(255, 255, 255, .6); }

/* --- главная: шрифт темы, свои цвета --- */
.bip-home-news { padding: 10px 0 50px; color: var(--news-navy); }
.bip-home-news a { text-decoration: none; }
.bip-home-news .hn-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.bip-home-news .hn-head .title { margin: 0; }
.bip-home-news .hn-all { font-weight: 700; color: var(--news-blue); white-space: nowrap; }
.bip-home-news .hn-duo { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bip-home-news .hn-feed { background: #fff; border: 1px solid var(--news-line); border-radius: 16px; padding: 4px 20px; }
.bip-home-news .hn-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--news-line); color: var(--news-navy); }
.bip-home-news .hn-row:last-child { border-bottom: 0; }
.bip-home-news .hn-row:hover .hn-title { color: var(--news-blue); }
.bip-home-news .hn-time { font-size: 13px; font-weight: 600; color: var(--news-muted); padding-top: 2px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bip-home-news .hn-body { display: block; min-width: 0; }
.bip-home-news .hn-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.bip-home-news .hn-title { display: block; font-size: 16px; line-height: 1.4; font-weight: 700; transition: color .2s; }

.bip-home-news .hn-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bip-home-news .hn-cal { background: var(--news-navy); color: #fff; border-radius: 16px; padding: 18px; }
.bip-home-news .hn-tabs { display: flex; gap: 16px; margin: 0 0 14px; }
.bip-home-news .hn-tab { border: 0; background: none; cursor: pointer; font: inherit; font-size: 15px; font-weight: 700; color: rgba(255, 255, 255, .55); padding: 0 0 5px; border-bottom: 2px solid transparent; }
.bip-home-news .hn-tab:hover { color: #fff; }
.bip-home-news .hn-tab.is-on { color: #fff; border-bottom-color: #9DB8FF; }
.bip-home-news .hn-seg { display: flex; gap: 4px; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 3px; margin: 0 0 14px; }
.bip-home-news .hn-seg button { flex: 1; border: 0; background: transparent; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; padding: 6px 4px; border-radius: 7px; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.bip-home-news .hn-seg button.is-on { background: #fff; color: var(--news-navy); }
.bip-home-news .hn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bip-home-news .hn-list li { display: block; margin: 0; padding: 0; }
.bip-home-news .hn-list li::before { display: none; }
.bip-home-news .hn-list li, .bip-home-news .hn-list li > a { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; line-height: 1.35; color: #fff; }
.bip-home-news .hn-list li:has(> a) { display: block; }
.bip-home-news .hn-list li > a:hover .hn-x { text-decoration: underline; }
.bip-home-news .hn-d { background: rgba(255, 255, 255, .1); border-radius: 10px; text-align: center; padding: 5px 0; line-height: 1.1; }
.bip-home-news .hn-d b { display: block; font-size: 18px; font-weight: 800; }
.bip-home-news .hn-d span { font-size: 10px; text-transform: uppercase; opacity: .75; font-weight: 700; }
.bip-home-news .hn-x { min-width: 0; }
.bip-home-news .hn-cd { display: block; font-style: normal; font-size: 11px; font-weight: 700; color: #9DB8FF; margin-top: 2px; }
.bip-home-news .hn-cd.is-soon { color: #FFB4AE; }
.bip-home-news .hn-sub { display: block; margin-top: 16px; text-align: center; font-size: 13px; font-weight: 700; background: var(--news-blue); color: #fff; border-radius: 22px; padding: 10px 12px; }
.bip-home-news .hn-sub:hover { background: #1645CC; color: #fff; }
.bip-home-news .hn-sub-alt { display: block; margin-top: 8px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .65); text-decoration: underline !important; }
.bip-home-news .hn-sub-alt:hover { color: #fff; }
.bip-home-news .hn-empty { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .7); }
.bip-home-news .hn-tg { display: flex; align-items: center; gap: 12px; background: #EAF5FC; border-radius: 16px; padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--news-navy); }
.bip-home-news .hn-tg__ico { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #229ED9; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; }
.bip-home-news .hn-tg:hover { color: #229ED9; }

@media (max-width: 900px) {
    .bip-home-news .hn-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .bip-home-news .hn-feed { padding: 2px 14px; }
    .bip-home-news .hn-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .news-persona__seg button { padding: 6px 9px; }
}
/* 1.6.1: «Стосується, якщо є працівники» — жёлтая */
.news-forme.is-maybe { color: #9A6200; background: #FFF4E0; }
.news-item.is-for-me:not(.is-important):has(.news-forme.is-maybe)::before { border-color: #E5A100; background: #E5A100; }
.news-forme-box.is-maybe { background: #FFF4E0; color: #7A4E00; }
.news-forme-box.is-no { color: var(--news-text2); }
.news-forme-box.is-maybe .news-persona__seg { background: rgba(255, 255, 255, .6); }

/* 1.6.3: лента — карточка «Хто ви?» вместо голого переключателя */
.bip-news [hidden] { display: none !important; }
.news-pcard { background: var(--news-soft); border-radius: 16px; padding: 16px 18px; margin: -6px 0 28px; max-width: 760px; font-family: var(--news-font); color: var(--news-navy); }
.news-pcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.news-pcard__q { font-size: 16px; font-weight: 800; }
.news-pcard .news-persona__seg { background: #fff; }
.news-pcard .news-persona__seg button.is-on { background: var(--news-navy); color: #fff; box-shadow: none; }
.news-pcard__hint { margin: 10px 0 0; font-size: 14px; color: var(--news-text2); line-height: 1.5; }
.news-pcard__res { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; font-size: 14px; line-height: 1.5; }
.news-pcard__only { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.news-pcard__only input { width: 16px; height: 16px; accent-color: var(--news-blue); margin: 0; }
.news-pcard__dl { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--news-line); font-size: 14px; }
.news-pcard__dl-lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--news-muted); width: 100%; }
.news-pcard__dl b { color: var(--news-blue); white-space: nowrap; }
.news-pcard__dl .hn-cd { font-style: normal; font-size: 12px; font-weight: 700; color: var(--news-blue); }
.news-pcard__dl .hn-cd.is-soon { color: var(--news-hot); }
.news-pcard__sub { margin-left: auto; font-weight: 700; color: var(--news-blue) !important; text-decoration: none !important; white-space: nowrap; }
.news-pcard__sub:hover { text-decoration: underline !important; }
.news-item.is-other { opacity: .55; }
@media (max-width: 600px) { .news-pcard__sub { margin-left: 0; } }

/* 1.7: «Було → Стало» — таблица (семантика для Google), вид карточками */
.bip-news .news-bs { background: #fff; border: 1px solid var(--news-line); border-radius: 16px; padding: 18px 20px; margin: 0 0 28px; }
.bip-news table.news-bs__t { display: block; width: 100%; border: 0 !important; border-collapse: separate; margin: 0; background: none; font-size: 15px; }
.bip-news .news-bs__t caption { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; text-align: left; caption-side: top; color: var(--news-navy); }
.bip-news .news-bs__ico { display: inline-flex; flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--news-soft); color: var(--news-blue); align-items: center; justify-content: center; }
.bip-news .news-bs__ico svg { width: 18px; height: 18px; }
.bip-news .news-bs__title { font-weight: 800; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.bip-news .news-bs__date { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--news-text2); white-space: nowrap; }
.bip-news .news-bs__t thead, .bip-news .news-bs__t tbody { display: block; }
.bip-news .news-bs__t tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 36px; row-gap: 4px; background: none !important; border: 0 !important; }
.bip-news .news-bs__t tbody tr + tr { margin-top: 10px; }
.bip-news .news-bs__t th, .bip-news .news-bs__t td { display: block; border: 0 !important; background: none; padding: 0; text-align: left; vertical-align: top; }
.bip-news .news-bs__t thead th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--news-muted); padding-bottom: 2px; }
.bip-news .news-bs__t thead th:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.bip-news .news-bs__t thead th:last-child { color: var(--news-blue); }
.bip-news .news-bs__t tbody th { grid-column: 1 / -1; font-size: 13px; font-weight: 500; color: var(--news-text2); }
.bip-news .news-bs__t tbody th.is-empty { display: none; }
.bip-news .news-bs__t td.news-bs__was, .bip-news .news-bs__t td.news-bs__now { border-radius: 10px !important; padding: 10px 12px; line-height: 1.4; position: relative; }
.bip-news .news-bs__t td.news-bs__was { background: var(--news-soft); color: var(--news-text2); }
.bip-news .news-bs__t td.news-bs__was.is-num { text-decoration: line-through; text-decoration-color: var(--news-muted); }
.bip-news .news-bs__t td.news-bs__now { background: #EAF0FF; color: var(--news-navy); font-weight: 700; }
.bip-news .news-bs__t td.news-bs__now::before { content: "→"; position: absolute; left: -26px; top: 50%; transform: translateY(-50%); color: var(--news-blue); font-weight: 800; font-size: 18px; }
.bip-news .news-bs__t td.news-bs__now small { font-size: 12px; font-weight: 600; color: var(--news-blue); white-space: nowrap; }
@media (max-width: 600px) {
    .bip-news .news-bs__t thead { display: none; }
    .bip-news .news-bs__t tr { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
    .bip-news .news-bs__t tbody th { margin-bottom: -18px; }
    .bip-news .news-bs__t td.news-bs__now::before { left: 50%; top: -20px; transform: translateX(-50%) rotate(90deg); }
}
