/* «Новости для бизнеса» — визуальный язык главной woowoo.pro (bento «Что внутри», DS v0.8).
   От news.msn1.ru взят только жанр: фото у каждой новости, главная новость, лента по дням.
   Элементы — как на главной (src/app/page.tsx): карточка rounded 24 · border line-1 · bg ink-3 · p-7 · hover line-3;
   подпись 12px uppercase tracking .18em iris; h3 22–28px semibold; раздел — label + display-clip заголовок.
   Стекла нет (DS: только sticky-бары), градиентная кнопка — одна на экран (полоса внизу). */

.nw-wrap { max-width: 1360px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .nw-wrap { padding: 0 16px; } }
.nw-sec { padding: 56px 0 8px; }
.nw-sec + .nw-sec { padding-top: 40px; }

/* подписи и заголовки — как «Что внутри» на главной */
.nw-label { font-size: 12px; font-weight: 510; letter-spacing: .18em; text-transform: uppercase; color: var(--color-fg-dim); }
.nw-display { margin-top: 12px; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; max-width: 15em; text-wrap: balance;
  background: linear-gradient(180deg, var(--color-fg) 0%, color-mix(in srgb, var(--color-fg) 70%, #9ea0b8) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nw-sub { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--color-fg-muted); max-width: 42em; }
.nw-eb { font-size: 12px; font-weight: 510; letter-spacing: .18em; text-transform: uppercase; color: var(--color-iris-400); text-decoration: none; }
.nw-eb--mint { color: var(--color-mint-500); }
.nw-eb--amber { color: var(--color-amber-500); }
.nw-eb--coral { color: var(--color-coral-400); }
.nw-eb--info { color: var(--color-info-500); }

/* bento-сетка и карточка — один в один с главной */
.nw-bento { margin-top: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.nw-b { grid-column: span 12; position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 24px; border: 1px solid var(--color-line-1); background: var(--color-ink-3); padding: 28px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); transition: border-color .2s, background-color .2s; }
.nw-b:hover { border-color: var(--color-line-3); }
.nw-b--iris { border-color: rgb(91 91 255 / .15); background: linear-gradient(135deg, rgb(124 123 255 / .05), transparent 60%), var(--color-ink-3); }
.nw-b--iris:hover { border-color: rgb(91 91 255 / .25); }
.nw-b--mint { border-color: rgb(52 211 153 / .15); background: linear-gradient(135deg, rgb(52 211 153 / .06), transparent 60%), var(--color-ink-3); }
.nw-b--amber { border-color: rgb(245 201 75 / .18); background: linear-gradient(135deg, rgb(245 201 75 / .06), transparent 60%), var(--color-ink-3); }
@media (min-width: 768px) {
  .s-4 { grid-column: span 4; } .s-5 { grid-column: span 5; } .s-6 { grid-column: span 6; }
  .s-7 { grid-column: span 7; } .s-8 { grid-column: span 8; }
}
@media (min-width: 768px) and (max-width: 1080px) { .s-4 { grid-column: span 6; } }
@media (max-width: 640px) { .nw-b { padding: 20px; } }

.nw-b h3 { margin-top: 8px; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; font-weight: 600; text-wrap: balance; }
.nw-b h3 a { text-decoration: none; }
.nw-b h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }  /* вся карточка — ссылка */
.nw-b p.nw-lead { margin-top: 10px; font-size: 14px; line-height: 1.55; color: var(--color-fg-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-meta { margin-top: auto; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--font-mono); font-size: 11px; color: var(--color-fg-dim); font-variant-numeric: tabular-nums; }
.nw-more-link { position: relative; z-index: 1; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--color-iris-400); text-decoration: none; }
.nw-more-link:hover { color: var(--color-fg); }

/* фото внутри карточки — как вставки-интерфейсы на главной: своё скругление, тонкая рамка */
.nw-ph { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--color-line-1); background: var(--color-ink-2); }
.nw-ph img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nw-b:hover .nw-ph img { transform: scale(1.03); }
.nw-b .nw-ph--top { margin: -12px -12px 18px; aspect-ratio: 16 / 10; }
@media (max-width: 640px) { .nw-b .nw-ph--top { margin: -6px -6px 16px; } }

/* главная новость — большая карточка: текст слева, фото справа (как «Умный помощник») */
.nw-feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: stretch; min-height: 420px;
  background: radial-gradient(70% 90% at 0% 0%, rgb(91 91 255 / .10), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgb(255 122 154 / .06), transparent 60%), var(--color-ink-3);
  border-color: rgb(91 91 255 / .18); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 30px 80px rgb(124 123 255 / .12); }
.nw-feat__txt { display: flex; flex-direction: column; min-width: 0; padding: 8px 4px; }
.nw-feat h2 { margin-top: 10px; font-size: clamp(28px, 3vw, 40px); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.nw-feat h2 a { text-decoration: none; }
.nw-feat h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.nw-feat p.nw-lead { -webkit-line-clamp: 4; font-size: 15px; margin-top: 14px; }
.nw-feat .nw-ph { min-height: 300px; height: 100%; }
@media (max-width: 860px) { .nw-feat { grid-template-columns: minmax(0, 1fr); gap: 20px; } .nw-feat .nw-ph { order: -1; min-height: 0; aspect-ratio: 16 / 10; } }

/* топ недели — список с моно-номерами */
.nw-toplist { margin-top: 16px; display: grid; gap: 2px; counter-reset: t; }
.nw-toplist a { position: relative; z-index: 1; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-top: 1px solid var(--color-line-1); font-size: 14.5px; line-height: 1.4; font-weight: 500; text-decoration: none; color: var(--color-fg); }
.nw-toplist a:first-child { border-top: 0; }
.nw-toplist a:hover span:last-child { color: var(--color-iris-400); }
.nw-toplist .n { font-family: var(--font-mono); font-size: 12px; color: var(--color-fg-dim); padding-top: 2px; }

/* сигнал продукта — как вставки «до / после» на главной */
.nw-sig { margin-top: 18px; position: relative; padding: 16px 18px 16px 20px; border-radius: 14px; border: 1px solid var(--color-line-1); background: var(--color-ink-2); overflow: hidden; display: grid; gap: 6px; }
.nw-sig::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--color-amber-500); }
.nw-sig__src { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-fg-ghost); }
.nw-sig__t { font-size: 15px; font-weight: 600; }
.nw-sig ul { display: grid; gap: 3px; font-family: var(--font-mono); font-size: 12px; color: var(--color-fg-muted); }
.nw-actions { position: relative; z-index: 1; margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }

/* вкладки рубрик — tab strip DS: активная с iris-подсветкой */
.nw-tabs { margin-top: 28px; display: flex; gap: 6px; overflow-x: auto; padding: 4px; border-radius: var(--radius-full); border: 1px solid var(--color-line-1); background: var(--color-ink-2); width: max-content; max-width: 100%; scrollbar-width: none; }
.nw-tabs::-webkit-scrollbar { display: none; }
.nw-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500; color: var(--color-fg-muted); text-decoration: none; transition: color .2s, background-color .2s; }
.nw-tab span { font-family: var(--font-mono); font-size: 11px; color: var(--color-fg-ghost); }
.nw-tab:hover { color: var(--color-fg); }
.nw-tab.is-active { color: var(--color-fg); background: rgb(91 91 255 / .15); box-shadow: inset 0 1px 0 rgb(255 255 255 / .14), 0 0 0 1px rgb(124 123 255 / .35); }

/* разделитель дня */
.nw-day { grid-column: span 12; display: flex; align-items: baseline; gap: 12px; margin-top: 18px; padding-bottom: 6px; }
.nw-day:first-child { margin-top: 0; }
.nw-day .day-n { font-size: 12px; font-weight: 510; letter-spacing: .18em; text-transform: uppercase; color: var(--color-fg); }
.nw-day span:last-child { font-family: var(--font-mono); font-size: 11px; color: var(--color-fg-ghost); }

/* ── страница новости ── */
.nw-art-grid { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 1080px) { .nw-art-grid { grid-template-columns: minmax(0, 1fr); } }
.nw-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-fg-dim); text-decoration: none; }
.nw-back:hover { color: var(--color-fg); }
.nw-art-h { max-width: 860px; }
.nw-art-h .nw-display { font-size: clamp(32px, 4vw, 52px); max-width: 18em; }
.nw-art-h .nw-sub { font-size: 19px; }
.nw-art-meta { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--color-fg-dim); }
.nw-art-meta a { color: var(--color-iris-400); text-decoration: none; }
.nw-art-img { margin-top: 28px; border-radius: 24px; overflow: hidden; border: 1px solid var(--color-line-1); box-shadow: inset 0 1px 0 rgb(255 255 255 / .06); background: var(--color-ink-3); }
.nw-art-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.nw-prose { max-width: 700px; font-size: 17px; line-height: 1.72; color: rgb(244 245 247 / .86); }
.nw-prose p { margin-top: 1.1em; }
.nw-prose h2 { margin: 1.7em 0 .5em; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; color: var(--color-fg); }
.nw-prose ul { margin-top: .8em; padding-left: 22px; list-style: disc; display: grid; gap: .45em; }
.nw-prose li::marker { color: var(--color-iris-400); }
.nw-prose .formula { margin: 1.1em 0; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--color-line-1); background: var(--color-ink-3); font-family: var(--font-mono); font-size: 14px; color: var(--color-fg); overflow-x: auto; }
.nw-points { margin-top: 28px; display: grid; gap: 16px; max-width: 700px; }
.nw-points ul { margin-top: 12px; display: grid; gap: 8px; list-style: none; padding: 0; }
.nw-points li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.55; color: var(--color-fg-muted); }
.nw-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: currentColor; opacity: .9; }
.nw-b--mint .nw-points li::before, .nw-b--mint li::before { color: var(--color-mint-500); }
.nw-dl { margin-left: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: none; color: var(--color-amber-400); }
.nw-src { margin-top: 24px; max-width: 700px; font-size: 13px; color: var(--color-fg-ghost); }
.nw-src a { color: var(--color-fg-dim); }
.nw-art, .nw-aside { min-width: 0; }
.nw-aside { display: grid; gap: 16px; position: sticky; top: 84px; }
@media (max-width: 1080px) { .nw-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); } }
.nw-aside .nw-b h3 { font-size: 19px; }
.nw-kv { display: grid; gap: 12px; margin-top: 4px; }
.nw-kv div { display: grid; gap: 2px; }
.nw-kv dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-fg-ghost); }
.nw-kv dd { margin: 0; font-size: 14.5px; color: var(--color-fg); }
.nw-kv dd a { color: var(--color-iris-400); text-decoration: none; }

/* блок «Новости для бизнеса» на главной */
.nw-home { border-top: 1px solid var(--color-line-1); }

/* карточки вне bento-сетки (бок статьи, выводы) — без растяжки на 12 колонок */
.nw-aside .nw-b, .nw-points .nw-b { grid-column: auto; }

/* «Поделиться» — пилюли-кнопки DS (ghost) */
.nw-shr { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nw-art > .nw-shr { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--color-line-1); }
.nw-shr__k { margin-right: 4px; font-size: 12px; font-weight: 510; letter-spacing: .14em; text-transform: uppercase; color: var(--color-fg-dim); }
.nw-sh { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border-radius: var(--radius-full); border: 1px solid var(--color-line-2); background: var(--color-ink-3); color: var(--color-fg-muted); font: inherit; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; transition: color .2s, border-color .2s, background-color .2s; }
.nw-sh .i { width: 16px; height: 16px; }
.nw-sh:hover { color: var(--color-fg); border-color: var(--color-line-3); background: var(--color-ink-4); }
.nw-sh[hidden] { display: none; }

/* абзац о сервисе внутри текста — часть статьи, а не баннер */
.nw-prose .nw-native { margin-top: 1.4em; padding: 16px 18px 16px 20px; border-left: 3px solid var(--color-iris-400); border-radius: 0 14px 14px 0; background: rgb(91 91 255 / .07); color: var(--color-fg); }
.nw-native__k { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12px; font-weight: 510; letter-spacing: .14em; text-transform: uppercase; color: var(--color-iris-400); }
.nw-native__w { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--color-aurora-1), var(--color-aurora-2) 50%, var(--color-aurora-3)); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0; }
.nw-native a { color: var(--color-iris-400); font-weight: 600; text-decoration: none; }
.nw-native a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* новость: текст + правая колонка (похожие, главное за неделю, возможность) — владелец: «блоки справа зачем убрал?» */
.nw-art-h .nw-display { font-size: clamp(30px, 3.6vw, 46px); }
.nw-aside .nw-b { padding: 22px; }
.nw-mini { margin-top: 14px; display: grid; gap: 12px; }
.nw-mini a { position: relative; z-index: 1; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; text-decoration: none; }
.nw-mini img { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; border: 1px solid var(--color-line-1); }
.nw-mini span { font-size: 14px; line-height: 1.35; font-weight: 500; color: var(--color-fg); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nw-mini a:hover span { color: var(--color-iris-400); }

/* плитки главной — визуал вместо описания */
.hub-big { margin-top: 22px; font-size: clamp(36px, 4.4vw, 56px); line-height: 1; letter-spacing: -.035em; font-weight: 700; font-variant-numeric: tabular-nums; }
.hub-mint { color: var(--color-mint-500); }
.hub-cap { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--color-fg-dim); }
.hub-chips { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--color-line-2); background: var(--color-ink-2); font-size: 14px; color: var(--color-fg-muted); }
.hub-news { margin-top: 18px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; }
.hub-news img { width: 120px; height: 84px; object-fit: cover; border-radius: 12px; border: 1px solid var(--color-line-1); }
.hub-news span { font-size: 15px; line-height: 1.35; color: var(--color-fg-muted); }
