/* ============================================================================
   Новости — /{lang}/news и /{lang}/news/{slug}
   Подключается только на этих страницах (libs-in-head.tpl). Палитра и шрифты —
   docs/BRAND.md: Stapel для заголовков, Manrope для текста, золото #ffb232.
   Разметка тела статьи (news/{slug}/{lang}.html) использует классы .n* ниже.
   ========================================================================== */

:root {
  --nw-gold: #ffb232;
  --nw-gold-soft: #f4c97a;
  --nw-cream: #f0e6d6;
  --nw-text: #cfc4b6;
  --nw-muted: #9a8f86;
  --nw-panel: #1a0d10;
  --nw-panel-2: #24101a;
  --nw-line: rgba(255, 178, 50, .16);
  --nw-line-hi: rgba(255, 178, 50, .38);
  --nw-red: #c41e1e;
  --nw-ok: #5dcaa5;
}

section.news {
  background: radial-gradient(70% 45% at 50% 0%, rgba(201, 3, 0, .22), transparent 70%),
              radial-gradient(40% 30% at 85% 10%, rgba(255, 178, 50, .06), transparent 70%),
              linear-gradient(180deg, #2a0407 0%, #120004 40%, #090001 100%);
  color: var(--nw-text);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding: 150px 0 110px;
}
section.news::after { display: none; }
.body-other main { min-height: 60vh; }

.news__wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- шапка раздела / статьи ---------- */
.news__kicker {
  margin: 0 0 14px;
  font-family: "Stapel", "Stapel Fallback", sans-serif;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--nw-gold-soft);
  opacity: .9;
}
.news__h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.05;
  color: var(--nw-gold);
}
.news__sub {
  margin: 16px 0 0;
  max-width: 680px;
  font-size: 18px;
  color: var(--nw-text);
}
.news__head { margin-bottom: 44px; }
.news__empty { padding: 60px 0; text-align: center; color: var(--nw-muted); }

/* ---------- список: карточки ---------- */
.news__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.ncard {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--nw-line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--nw-panel-2), var(--nw-panel));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
  color: var(--nw-text);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), border-color .25s;
}
.ncard:hover { transform: translateY(-3px); border-color: var(--nw-line-hi); color: var(--nw-text); }
.ncard--lead { grid-column: 1 / -1; flex-direction: row; }
.ncard__media { display: block; flex: 0 0 auto; overflow: hidden; background: #000; }
.ncard--lead .ncard__media { flex-basis: 52%; }
.ncard__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1200 / 630; }
.ncard__body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.ncard--lead .ncard__body { justify-content: center; padding: 34px 36px; }
.ncard__meta { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--nw-muted); }
.ncard__title {
  font-family: "Stapel", "Stapel Fallback", sans-serif;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--nw-gold);
}
.ncard--lead .ncard__title { font-size: 30px; }
.ncard__lead { font-size: 15px; color: var(--nw-text); }
.ncard__more { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--nw-gold-soft); }

.news__follow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--nw-line);
  font-size: 14px;
}
.news__follow-label { color: var(--nw-muted); }
.news__follow-link {
  padding: 8px 14px;
  border: 1px solid var(--nw-line);
  border-radius: 999px;
  color: var(--nw-cream);
  font-weight: 600;
}
.news__follow-link:hover { border-color: var(--nw-line-hi); color: var(--nw-gold); }

/* ---------- статья ---------- */
/* Колонка статьи (860px) центрируется всей обёрткой: 860 + 2×24 отступа. Иначе она прижималась
   к левому краю 1100px-обёртки, и справа оставалось больше воздуха, чем слева. */
.news--article .news__wrap { max-width: 908px; }
.news__crumbs { margin-bottom: 26px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.news__crumbs a { color: var(--nw-muted); }
.news__crumbs a:hover { color: var(--nw-gold); }
.news__crumbs-sep { margin: 0 8px; color: var(--nw-line-hi); }
.article__head { max-width: 860px; margin-bottom: 30px; }
.article__h1 { font-size: 44px; }
.article__lead { margin: 18px 0 0; font-size: 18px; color: var(--nw-cream); }
.article__meta { margin: 16px 0 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--nw-muted); }
.article__cover {
  /* та же колонка, что заголовок и текст (860px): обложка на всю ширину обёртки торчала правее текста */
  max-width: 860px;
  margin: 0 0 40px;
  border: 1px solid var(--nw-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.article__cover img { width: 100%; display: block; }

.article__body { max-width: 860px; }
.article__body > p { margin: 0 0 16px; }
.article__body a { color: var(--nw-gold-soft); text-decoration: underline; text-decoration-color: rgba(255, 178, 50, .35); text-underline-offset: 3px; }
.article__body a:hover { color: var(--nw-gold); text-decoration-color: currentColor; }
.article__body h2 {
  margin: 56px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--nw-line);
  font-size: 26px;
  line-height: 1.15;
  scroll-margin-top: 110px;
}
.article__body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.article__body h3 {
  margin: 26px 0 10px;
  font-size: 15px;
  letter-spacing: .08em;
  color: var(--nw-gold-soft);
}
.article__body strong, .article__body b { color: var(--nw-cream); font-weight: 700; }

.article__foot { margin-top: 56px; }
.article__back {
  display: inline-block;
  font-family: "Stapel", "Stapel Fallback", sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nw-gold);
}
.article__back:hover { color: #fff; }

/* ---------- содержание ---------- */
.ntoc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.ntoc li { margin: 0; }
.ntoc a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid var(--nw-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .02);
  font-family: "Stapel", "Stapel Fallback", sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nw-cream);
}
.ntoc a:hover { border-color: var(--nw-line-hi); color: var(--nw-gold); }

/* ---------- блоки внутри статьи ---------- */
.nnote {
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 1px solid var(--nw-line-hi);
  border-left: 3px solid var(--nw-gold);
  border-radius: 12px;
  background: rgba(255, 178, 50, .06);
  color: var(--nw-cream);
  font-size: 15px;
}
.nnote--red { border-color: rgba(196, 30, 30, .5); border-left-color: var(--nw-red); background: rgba(196, 30, 30, .08); }

.ngrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0 0 18px; }
.nb {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--nw-line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0)), var(--nw-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.nb--wide { grid-column: 1 / -1; }
.nb__title {
  margin: 0 0 10px;
  font-family: "Stapel", "Stapel Fallback", sans-serif;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nw-gold);
}
.nb__title .ntag { vertical-align: 2px; margin-left: 8px; }
.nb p { margin: 0 0 8px; }
.nb p:last-child { margin-bottom: 0; }

.nlist { margin: 0 0 18px; padding: 0; list-style: none; }
.nlist li { position: relative; margin: 0 0 8px; padding-left: 20px; }
.nlist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--nw-gold);
  opacity: .8;
}
.nb .nlist { margin-bottom: 0; }
.nb .nlist li { margin-bottom: 6px; font-size: 15px; }
.nlist--cols { columns: 2; column-gap: 28px; }
.nlist--cols li { break-inside: avoid; }

/* предмет с иконкой */
.nitem {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
  color: var(--nw-cream);
  font-weight: 600;
  white-space: nowrap;
}
.nitem img {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid rgba(255, 178, 50, .3);
  background: #000;
  display: inline-block;
}
a.nitem { text-decoration: none; }
a.nitem:hover { color: var(--nw-gold); }

/* было → стало */
.nchip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid var(--nw-line);
  background: rgba(255, 255, 255, .03);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: 1px;
  color: var(--nw-cream);
}
.nchip s { color: var(--nw-muted); text-decoration: line-through; }
.nchip b { color: var(--nw-ok); font-weight: 700; }
.nchip--up b { color: var(--nw-ok); }
.nchip--gold b { color: var(--nw-gold); }

/* серверный тег */
.ntag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-family: "Stapel", "Stapel Fallback", sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #120000;
  background: var(--nw-gold);
}
.ntag--spark { background: #4fb5e6; }
.ntag--muted { background: rgba(255, 255, 255, .12); color: var(--nw-cream); }

/* таблицы */
.ntable-wrap { overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.ntable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ntable th, .ntable td { padding: 10px 12px; border-bottom: 1px solid var(--nw-line); text-align: left; vertical-align: top; }
.ntable th {
  font-family: "Stapel", "Stapel Fallback", sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nw-gold-soft);
  font-weight: 500;
  white-space: nowrap;
}
.ntable td:first-child { color: var(--nw-cream); font-weight: 600; }
.ntable tr:last-child td { border-bottom: 0; }
.ntable .num { white-space: nowrap; }

/* карты легенд / коллекции: плотная сетка карточек-мини */
.nmini { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 0 0 18px; }
.nmini > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--nw-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  font-size: 14px;
}
.nmini img { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 6px; border: 1px solid rgba(255, 178, 50, .3); background: #000; }
.nmini b { display: block; color: var(--nw-cream); }
.nmini small { display: block; color: var(--nw-muted); font-size: 12.5px; line-height: 1.45; }

/* CTA внизу статьи */
.ncta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 36px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--nw-line-hi);
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(196, 30, 30, .18), rgba(255, 178, 50, .06));
  color: var(--nw-cream);
}
.ncta__btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--nw-gold);
  color: #120000 !important;
  font-family: "Stapel", "Stapel Fallback", sans-serif;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.ncta__btn:hover { filter: brightness(1.1); }

/* ---------- адаптив ---------- */
@media (max-width: 1440px) {
  section.news { padding-top: 120px; }
}
@media (max-width: 900px) {
  .news__grid { grid-template-columns: 1fr; }
  .ncard--lead { flex-direction: column; }
  .ncard--lead .ncard__media { flex-basis: auto; }
  .ncard--lead .ncard__body { padding: 24px 26px 26px; }
  .ncard--lead .ncard__title { font-size: 24px; }
  .ngrid { grid-template-columns: 1fr; }
  .nlist--cols { columns: 1; }
}
@media (max-width: 700px) {
  section.news { padding: 96px 0 70px; font-size: 15px; }
  .news__wrap { padding: 0 16px; }
  .news__h1, .article__h1 { font-size: 30px; }
  .news__sub, .article__lead { font-size: 16px; }
  .article__body h2 { font-size: 21px; margin-top: 40px; }
  .ncard__body { padding: 18px; }
  .nb { padding: 14px 16px; }
  .nitem { white-space: normal; }
}

/* таблица магазина клана: первый столбец с rowspan — уровень, вторая колонка — предмет */
.ntable td[rowspan] { font-family: "Stapel", "Stapel Fallback", sans-serif; font-size: 18px; color: var(--nw-gold); vertical-align: middle; text-align: center; }
.ntable td .nitem { white-space: normal; }
