/* ===== Страница новости (макет news-item / news-item-mobile) ===== */

/* Заголовок */
.ni-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.ni-hero .wrap { position: relative; padding-top: 40px; padding-bottom: 200px; }
.ni-hero-nocover .wrap { padding-bottom: 72px; }
.ni-hero-radar { position: absolute; right: -160px; top: -240px; }
.ni-head { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 56px; align-items: flex-start; }
.ni-date { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; border-left: 3px solid var(--accent); padding-left: 20px; }
.ni-day { font-family: Unbounded, sans-serif; font-weight: 800; font-size: 72px; line-height: .85; }
.ni-month { margin-top: 12px; font-size: 14px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-light); }
.ni-year { font-size: 14px; color: var(--on-dark-muted); }
.ni-h1 { flex: 1 1 600px; margin: 0; max-width: 920px; font-family: Unbounded, sans-serif; font-weight: 700; font-size: 56px; line-height: 1.08; letter-spacing: -1.8px; overflow-wrap: anywhere; }

/* Обложка, наезжает на заголовок */
.ni-cover-wrap { position: relative; margin-top: -150px; }
/* Обложка показывается целиком: на многих картинках новостей есть текст, обрезать нельзя */
.ni-cover { border-radius: 28px; overflow: hidden; background: var(--navy-deep); box-shadow: 0 40px 80px -40px rgba(14,34,64,.55); }
.ni-cover img { display: block; width: 100%; height: auto; max-height: 720px; object-fit: contain; }

/* Текст */
.ni-body { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 72px; }
.ni-side { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 28px; }
.ni-back { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 14px; text-decoration: none; }
.ni-share-title { margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.ni-share-list { display: flex; gap: 8px; }
.share { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #C5CFDC; background: #fff; display: inline-flex; align-items: center; justify-content: center; font: 800 12px Manrope, sans-serif; text-decoration: none; color: var(--text); cursor: pointer; padding: 0; }
.share-sm { font-size: 10px; }
.share:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.share.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }

.ni-article { flex: 999 1 640px; min-width: 0; max-width: 780px; }
.ni-lead { margin: 0 0 40px; font-family: Unbounded, sans-serif; font-weight: 500; font-size: 22px; line-height: 1.5; color: var(--text); }
.ni-lead p { margin: 0 0 12px; }
.ni-lead p:last-child { margin-bottom: 0; }
.ni-prose { font-size: 19px; line-height: 1.7; color: #22324A; }
.ni-prose p { margin: 0 0 24px; }
.ni-prose img { border-radius: 16px; }
/* В старых новостях вместо картинок вставлены ссылки на альбом Облака Mail.ru — это не изображения */
.ni-prose img[src*="cloud.mail.ru/public"] { display: none; }
.ni-prose blockquote { margin: 48px 0; padding: 40px 44px; border: 0; border-radius: 24px; background: var(--navy); color: #fff; font-family: Unbounded, sans-serif; font-weight: 500; font-size: 24px; line-height: 1.4; }
.ni-prose blockquote p:last-child { margin-bottom: 0; }

/* Соседние новости */
.ni-pn { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; padding-top: 96px; }
.pn { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
a.pn:hover { border-color: var(--navy); color: var(--text); }
a.pn:hover .ttl { color: var(--accent); }
.pn-right { text-align: right; align-items: flex-end; }
.pn-label { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.pn .ttl { font-family: Unbounded, sans-serif; font-weight: 600; font-size: 20px; line-height: 1.3; }
.pn-off { opacity: .5; }
.pn-off .pn-label, .pn-note { color: var(--muted); }
.pn-note { font-size: 16px; }

/* Ещё новости */
.ni-more { padding-top: 96px; padding-bottom: 112px; }
.ni-more-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.ni-more-head .h2 { margin: 0; }
.ni-more-all { display: none; }
.ni-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; background: #fff; border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--text); border: 1px solid var(--line); }
.card:hover { border-color: var(--navy); color: var(--text); }
.card:hover .ttl { color: var(--accent); }
.card:hover img { transform: scale(1.04); }
.card .ph { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.card-date { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.card .ttl { font-family: Unbounded, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (prefers-reduced-motion: reduce) { .card .ph img { transition: none; } }

@media (max-width: 1239px) {
  .ni-h1 { font-size: 44px; letter-spacing: -1.4px; }
  .ni-hero-radar { opacity: .5; }
}

@media (max-width: 900px) {
  .ni-h1 { font-size: 32px; letter-spacing: -.5px; }
  .ni-prose { font-size: 17px; }
  .ni-prose blockquote { font-size: 20px; }
}

/* Мобильная (макет news-item-mobile) */
@media (max-width: 767px) {
  .ni-hero .wrap { padding-top: 22px; padding-bottom: 120px; }
  .ni-hero-nocover .wrap { padding-bottom: 40px; }
  .ni-hero-radar { width: 320px; height: 320px; right: -140px; top: -120px; opacity: 1; }
  .ni-head { display: block; margin-top: 28px; }
  .ni-date { flex-direction: row; align-items: baseline; gap: 10px; padding-left: 14px; }
  .ni-day { font-size: 34px; line-height: .9; }
  .ni-month { margin-top: 0; font-size: 12px; letter-spacing: 1px; }
  .ni-year { font-size: 12px; }
  .ni-h1 { margin-top: 18px; font-size: 26px; font-weight: 800; line-height: 1.04; letter-spacing: -1px; }

  .ni-cover-wrap { margin-top: -88px; }
  .ni-cover { border-radius: 20px; box-shadow: 0 30px 60px -30px rgba(14,34,64,.55); }

  .ni-body { display: block; padding-top: 20px; }
  .ni-side { max-width: none; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
  .ni-share-title { display: none; }
  .ni-share-list { gap: 6px; }
  .ni-article { padding-top: 24px; }
  .ni-lead { margin-bottom: 22px; font-family: Manrope, sans-serif; font-size: 18px; font-weight: 700; }
  .ni-prose { font-size: 16px; }
  .ni-prose p { margin-bottom: 18px; }
  .ni-prose blockquote { margin: 28px -20px; padding: 28px 20px; border-radius: 0; font-size: 18px; }

  .ni-pn { display: flex; flex-direction: column-reverse; gap: 10px; padding-top: 40px; }
  .pn { gap: 8px; padding: 18px 20px; border-radius: 18px; }
  .pn-right { text-align: left; align-items: flex-start; }
  .pn .ttl { font-size: 16px; }
  .pn-label { font-size: 12px; gap: 8px; }
  .pn-note { font-size: 14px; }

  .ni-more { padding-top: 48px; padding-bottom: 56px; }
  .ni-more-head { margin-bottom: 18px; }
  .ni-more-head .h2 { font-size: 26px; }
  .ni-more-head .pill { display: none; }
  .ni-cards { display: flex; flex-direction: column; gap: 10px; }
  .card { flex-direction: row; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; }
  .card:hover img { transform: none; }
  .card .ph { flex: 0 0 96px; height: 96px; aspect-ratio: auto; border-radius: 12px; }
  .card-body { padding: 0; gap: 6px; min-width: 0; }
  .card-date { font-size: 11px; }
  .card .ttl { font-size: 14px; line-height: 1.3; }
  .ni-more-all { display: inline-flex; width: 100%; margin-top: 18px; }
}

/* Карточка альбома с фотографиями */
.album { display: flex; align-items: center; gap: 24px; margin-top: 16px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.album:hover { border-color: var(--navy); color: var(--text); }
.album-ico { flex: 0 0 64px; height: 64px; border-radius: 18px; background: #FDECE8; display: inline-flex; align-items: center; justify-content: center; }
.album-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.album-title { font-family: Unbounded, sans-serif; font-weight: 700; font-size: 18px; }
.album-note { font-size: 14px; color: var(--muted); }
.album .go { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid currentColor; display: inline-flex; align-items: center; justify-content: center; }
.album:hover .go { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (max-width: 767px) {
  .album { gap: 14px; margin-top: 8px; padding: 16px; border-radius: 18px; }
  .album-ico { flex-basis: 52px; height: 52px; border-radius: 14px; }
  .album-title { font-size: 15px; }
  .album-note { font-size: 13px; }
  .album .go { flex-basis: 40px; width: 40px; height: 40px; }
}
