/* Раздел «Новости» (№1305): список, страница новости и блок «Последняя новость» на главной.
   Макета не было: шапка и отступы — из razdel.css, карточка — по образцу карточек историй на главной (.scard).
   Место под фото (.nw-ph) стоит, пока нет фото от клиента: светлая рамка с подписью, не рисованная картинка.
   Фото придёт — внутрь .nw-ph ставится <img> (рамка держит пропорцию 16:9, подпись прячется). Перелом 900 — компьютер. */

.nw-date { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--blue); }

/* место под фото */
.nw-ph { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius); background: linear-gradient(135deg, var(--sky-2), var(--sky)); }
.nw-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-ph__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-3); }
.nw-ph__in svg { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linejoin: round; opacity: .7; }
.nw-ph img + .nw-ph__in { display: none; }

/* карточка новости: список и главная */
.nw-list { display: grid; gap: 16px; }
.nw-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.nw-card .nw-ph { border-radius: 0; }
.nw-card__text { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.nw-card h2, .nw-card h3 { margin-top: 8px; font-size: 19px; line-height: 1.22; letter-spacing: 0; }
.nw-card__link { text-decoration: none; }
.nw-card__link::after { content: ""; position: absolute; inset: 0; }
.nw-card__lead { display: -webkit-box; margin: 10px 0 0; overflow: hidden; font-size: 15px; line-height: 1.5; color: var(--ink-2); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nw-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; font-size: 14.5px; font-weight: 700; color: var(--blue); }
.nw-card__more .ico { width: 14px; height: 14px; }
.nw-card:hover { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--blue); }

/* шапка страницы новости и списка */
.nw-head { padding-bottom: 6px; }
.nw-head .nw-date { margin-top: 22px; }
.nw-title { margin-top: 10px; max-width: 900px; font-size: 28px; line-height: 1.12; letter-spacing: -.02em; }
.nw-lead { margin: 16px 0 0; max-width: 820px; font-size: 17px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.nw-sec { padding-top: 28px; }

/* текст новости */
.nw-article { display: grid; gap: 26px; }
.nw-ph--big { box-shadow: var(--shadow); }
.nw-text { max-width: 760px; }
.nw-text > p { margin: 0; font-size: 16.5px; line-height: 1.65; color: var(--ink-2); }
.nw-text > p + p { margin-top: 14px; }
.nw-text b { color: var(--ink); }
.nw-text > h2 { margin: 32px 0 12px; font-size: 22px; line-height: 1.2; }
.nw-quote { margin: 26px 0; padding: 18px 20px; border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; background: var(--sky); }
.nw-quote p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.55; color: var(--ink); }
.nw-foot { display: grid; gap: 14px; max-width: 760px; padding-top: 8px; border-top: 1px solid var(--line); }
.nw-foot .btn { justify-self: start; margin-top: 14px; }
.nw-next { display: block; font-weight: 700; line-height: 1.35; text-decoration: none; color: var(--ink); }
.nw-next small { display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.nw-next:hover { color: var(--blue); }

/* фото Дианы (06.11): портретная обложка ШОС, фото в тексте, пара кадров в тексте */
.nw-ph--tall { aspect-ratio: 901 / 1280; max-width: 440px; }
.nw-fig, .nw-gal { margin: 24px 0; }
.nw-fig img, .nw-gal img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.nw-fig--tall { max-width: 440px; }
.nw-gal { display: grid; gap: 10px; }
.nw-gal figure { margin: 0; }

/* блок «Последняя новость» на главной */
.nw-home__head { margin-bottom: 22px; }
.nw-home__all { width: 100%; margin-top: 18px; }

@media (min-width: 640px) {
  .nw-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 640px) and (max-width: 899px) {
  .nw-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .nw-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1040px; }
  .nw-card__text { padding: 20px 22px 22px; }
  .nw-card h2, .nw-card h3 { font-size: 21px; }

  .nw-head .nw-date { margin-top: 30px; font-size: 14.5px; }
  .nw-title { margin-top: 12px; font-size: 46px; line-height: 1.06; }
  .nw-lead { margin-top: 20px; font-size: 19px; }
  .nw-sec { padding-top: 36px; }
  .nw-article { gap: 40px; }
  .nw-ph--big { max-width: 860px; border-radius: 28px; }
  .nw-ph--tall { max-width: 480px; }
  .nw-fig, .nw-gal { margin: 32px 0; }
  .nw-text > p { font-size: 17.5px; }
  .nw-text > h2 { margin-top: 40px; font-size: 28px; }
  .nw-quote { padding: 24px 28px; }
  .nw-quote p { font-size: 19px; }
  .nw-foot { grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
  .nw-foot .btn { margin-top: 18px; }
  .nw-next { margin-top: 18px; text-align: right; }

  .nw-home__head { margin-bottom: 34px; }
  .nw-card--wide { flex-direction: row; }
  .nw-card--wide .nw-ph { flex: 0 0 52%; aspect-ratio: auto; min-height: 340px; }
  .nw-card--wide .nw-card__text { padding: 34px 38px 34px; }
  .nw-card--wide h3 { font-size: 28px; line-height: 1.15; }
  .nw-card--wide .nw-card__lead { font-size: 16.5px; }
  .nw-home__all { width: auto; margin-top: 24px; }
}
