/* =============================================================
   «Нація» — оформлення інтернет-видання (natsiya.com)
   UA: Публічні сторінки: головна, стрічка новин, рубрики, публікація, блоги.
   UA: Файл підключається останнім і перекриває успадковані стилі маркетплейсу.
   EN: The public pages: home, news feed, sections, a publication, the blogs.
   EN: The file is loaded last and overrides the inherited marketplace styles.
   ============================================================= */

:root {
  --nt-bg:        #ffffff;
  --nt-surface:   #ffffff;
  --nt-surface-2: #f6f7f9;
  --nt-ink:       #14161a;
  --nt-ink-2:     #565d68;
  --nt-ink-3:     #7b828d;
  --nt-line:      #e3e6ea;
  --nt-line-2:    #eef0f3;
  --nt-accent:    #b32318;
  --nt-accent-h:  #8f1a12;
  --nt-shadow:    0 1px 2px rgba(20,22,26,.05), 0 8px 24px rgba(20,22,26,.06);
  --nt-serif:     Georgia, "PT Serif", "Noto Serif", "Times New Roman", serif;
  --nt-sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --nt-wrap:      1220px;
  --nt-gut:       20px;
  --nt-r:         4px;
}

[data-am-theme="dark"] {
  --nt-bg:        #101215;
  --nt-surface:   #16191d;
  --nt-surface-2: #1c2025;
  --nt-ink:       #eceef1;
  --nt-ink-2:     #a8b0bb;
  --nt-ink-3:     #828a95;
  --nt-line:      #2a2f36;
  --nt-line-2:    #22262c;
  --nt-accent:    #ff6a5c;
  --nt-accent-h:  #ff8a7e;
  --nt-shadow:    0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
}

/* ---------- база ---------- */
body.am {
  background: var(--nt-bg);
  color: var(--nt-ink);
  font-family: var(--nt-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.am a { color: inherit; }
.nt-wrap {
  width: 100%; max-width: var(--nt-wrap); margin: 0 auto;
  /* UA: поля ніколи не менші за «безпечну зону» телефона з вирізом (альбомна орієнтація) */
  padding-left: max(var(--nt-gut), env(safe-area-inset-left));
  padding-right: max(var(--nt-gut), env(safe-area-inset-right));
}

/* UA: ---- захист від горизонтального виповзання ----
   UA: один завеликий елемент (довге слово, таблиця, вставка) розсуває сторінку на телефоні:
   UA: браузер зменшує масштаб, і поля обабіч стискаються в ніщо. Тут усе, що вміє вилізти, змушене
   UA: вкладатися в ширину екрана.
   EN: ---- the guard against the horizontal overflow ----
   EN: a single oversized element (a long word, a table, an embed) widens the page on a phone: the browser
   EN: scales it down and the side margins shrink to nothing. Everything prone to it is kept within the screen. */
html { overflow-x: clip; }
.nt-page, .nt-main, .nt-cols, .nt-cols > *, .nt-art__cols, .nt-art__cols > *, .nt-feed, .nt-aside { min-width: 0; }
.nt-prose img, .nt-prose video, .nt-prose iframe, .nt-prose table, .nt-prose pre { max-width: 100%; }
.nt-prose iframe, .nt-prose video { width: 100%; }
.nt-prose table { display: block; overflow-x: auto; }
.nt-prose pre { overflow-x: auto; }
.nt-h, .nt-art__h1, .nt-lede, .nt-prose p, .nt-crumbs, .nt-meta { overflow-wrap: break-word; }
.nt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nt-hide { display: none !important; }

/* =============================================================
   ШАПКА
   ============================================================= */
.nt-top {
  border-bottom: 1px solid var(--nt-line-2);
  background: var(--nt-surface);
  font-size: 12.5px;
  color: var(--nt-ink-3);
}
.nt-top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.nt-top__date { text-transform: uppercase; letter-spacing: .08em; }
.nt-top__links { display: flex; align-items: center; gap: 16px; }
.nt-top__links a { text-decoration: none; color: var(--nt-ink-3); }
.nt-top__links a:hover { color: var(--nt-accent); }

.nt-mast { background: var(--nt-surface); border-bottom: 1px solid var(--nt-line); }
.nt-mast__in {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 18px; padding-block: 18px 16px;
}
.nt-brand { justify-self: center; text-align: center; text-decoration: none; display: block; }
.nt-brand__n {
  font-family: var(--nt-serif); font-weight: 700; font-size: 44px; line-height: 1;
  letter-spacing: .01em; color: var(--nt-ink); display: block;
}
.nt-brand__s {
  display: block; margin-top: 6px; font-size: 11px; letter-spacing: .26em;
  text-transform: uppercase; color: var(--nt-ink-3);
}
.nt-mast__l, .nt-mast__r { display: flex; align-items: center; gap: 10px; }
.nt-mast__r { justify-content: flex-end; }

.nt-search { display: flex; align-items: center; gap: 6px; max-width: 280px; width: 100%; }
.nt-search__f {
  display: flex; align-items: center; gap: 8px; width: 100%;
  border: 1px solid var(--nt-line); border-radius: 999px; padding: 7px 14px;
  background: var(--nt-bg);
}
.nt-search__f:focus-within { border-color: var(--nt-accent); }
.nt-search input {
  border: 0; background: none; outline: none; width: 100%; font: inherit; font-size: 14px; color: var(--nt-ink);
}
.nt-search button { border: 0; background: none; cursor: pointer; color: var(--nt-ink-2); padding: 0; display: flex; }
.nt-search button:hover { color: var(--nt-accent); }

.nt-btn {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  font-size: 14px; font-weight: 600; padding: 8px 15px; border-radius: 999px;
  border: 1px solid var(--nt-line); color: var(--nt-ink); background: var(--nt-surface);
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}
.nt-btn:hover { border-color: var(--nt-accent); color: var(--nt-accent); text-decoration: none; }
.nt-btn--solid { background: var(--nt-accent); border-color: var(--nt-accent); color: #fff; }
.nt-btn--solid:hover { background: var(--nt-accent-h); border-color: var(--nt-accent-h); color: #fff; }
.nt-btn--sm { font-size: 13px; padding: 6px 12px; }

.nt-nav { background: var(--nt-surface); border-bottom: 2px solid var(--nt-ink); }
.nt-nav__in { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nt-nav__in::-webkit-scrollbar { display: none; }
.nt-nav a {
  display: inline-block; padding: 11px 13px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; color: var(--nt-ink); white-space: nowrap; border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}
.nt-nav a:hover { color: var(--nt-accent); }
.nt-nav a.is-on { border-bottom-color: var(--nt-accent); color: var(--nt-accent); }
.nt-nav a.nt-nav__blogs { color: var(--nt-ink-2); font-weight: 500; }
.nt-nav a.nt-nav__blogs::before {
  content: ""; display: inline-block; width: 1px; height: 14px; margin-right: 13px;
  background: var(--nt-line); vertical-align: -2px;
}

/* =============================================================
   ТИПОВІ ЕЛЕМЕНТИ
   ============================================================= */
.nt-kick {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--nt-accent); text-decoration: none; margin-bottom: 8px;
}
.nt-kick:hover { color: var(--nt-accent-h); text-decoration: none; }
.nt-kick--ed { color: var(--nt-ink); }
.nt-kick--ed::before {
  content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--nt-accent); margin-right: 7px; vertical-align: 1px;
}
.nt-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 12.5px; color: var(--nt-ink-3); margin: 8px 0 0;
}
.nt-meta span + span::before { content: "·"; margin-right: 10px; color: var(--nt-line); }
.nt-dot { color: var(--nt-line); }

.nt-h {
  font-family: var(--nt-serif); font-weight: 700; color: var(--nt-ink);
  margin: 0; letter-spacing: -.01em;
}
a.nt-h:hover, .nt-h a:hover { color: var(--nt-accent); text-decoration: none; }
.nt-lede { color: var(--nt-ink-2); font-size: 15.5px; line-height: 1.55; margin: 10px 0 0; }

.nt-cov {
  display: block; position: relative; overflow: hidden; border-radius: var(--nt-r);
  background: var(--nt-surface-2); aspect-ratio: 16 / 9;
}
.nt-cov img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.nt-cov:hover img { transform: scale(1.03); }
.nt-cov__ph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  font-family: var(--nt-serif); font-size: 48px; color: var(--nt-ink-3);
  background: linear-gradient(135deg, var(--nt-surface-2), var(--nt-line-2));
}

/* =============================================================
   ГОЛОВНА
   ============================================================= */
.nt-main { padding-block: 0 56px; }

/* --- верхній блок: головна новина + дві поруч + колонка «Останні» --- */
.nt-lead { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 36px; padding: 28px 0 0; }
.nt-lead__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }

.nt-story--xl .nt-cov { aspect-ratio: 16 / 8.2; margin-bottom: 16px; }
.nt-story--xl .nt-h { font-size: clamp(30px, 4vw, 46px); line-height: 1.1; }
.nt-story--xl .nt-lede { font-size: 17.5px; max-width: 46em; }

.nt-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.nt-story--md .nt-cov { aspect-ratio: 16 / 9; margin-bottom: 12px; }
.nt-story--md .nt-h { font-size: 21px; line-height: 1.25; }
.nt-story--md .nt-lede { font-size: 14.5px; }

/* колонка «Останні новини» */
.nt-rail { border-left: 1px solid var(--nt-line); padding-left: 26px; }
.nt-rail__h {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--nt-ink); padding-bottom: 10px; border-bottom: 2px solid var(--nt-ink); margin: 0 0 4px;
}
.nt-rail__h a { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--nt-accent); text-decoration: none; font-weight: 600; }
/* UA: заголовок дня у стрічці «Останні новини»: матеріали згруповані по датах, щоб було видно,
   UA: де закінчується сьогоднішній день. Цифра праворуч — скільки матеріалів того дня у стрічці. */
/* EN: a day heading inside the "Latest" column: the items are grouped by date so it is clear where
   EN: today ends. The number on the right is how many of that day's items the column shows. */
.nt-live__day {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 8px; padding-top: 12px;
  border-top: 1px solid var(--nt-line);
  font: 600 11px/1 var(--nt-sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--nt-muted);
}
.nt-live__day:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.nt-live__day time { color: var(--nt-ink); }
.nt-live__day i { margin-left: auto; font-style: normal; font-weight: 600; letter-spacing: 0; color: var(--nt-muted); }
.nt-box .nt-live__day { margin: 14px 0 6px; padding-top: 10px; }
.nt-box .nt-live__day:first-of-type { margin-top: 2px; }
.nt-live { list-style: none; margin: 0; padding: 0; }
.nt-live li { border-bottom: 1px solid var(--nt-line-2); padding: 11px 0; }
.nt-live li:last-child { border-bottom: 0; }
.nt-live a { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; text-decoration: none; align-items: start; }
.nt-live time { font-size: 12.5px; font-weight: 700; color: var(--nt-accent); font-variant-numeric: tabular-nums; padding-top: 2px; }
.nt-live b { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--nt-ink); }
.nt-live a:hover b { color: var(--nt-accent); }
.nt-live small { display: block; color: var(--nt-ink-3); font-size: 12px; margin-top: 3px; }

/* --- рядок карток --- */
/* UA: ряди карток — гнучкі, а не сітка з фіксованими колонками: скільки б карток не було (дві, три,
   UA: п'ять), вони добирають ширину й заповнюють рядок. Сітка лишала порожні клітинки в останньому
   UA: рядку — саме це й виглядало як великі проміжки на головній.
   EN: the card rows are flexible rather than a fixed-column grid: however many cards there are, they take
   EN: the width and fill the row. A grid left empty cells in the last row — that is what read as the gaps. */
.nt-strip { display: flex; flex-wrap: wrap; gap: 24px; padding: 30px 0 0; margin-top: 30px; border-top: 1px solid var(--nt-line); }
.nt-strip > * { flex: 1 1 230px; min-width: 0; }
.nt-story--sm .nt-cov { aspect-ratio: 16 / 10; margin-bottom: 10px; }
.nt-story--sm .nt-h { font-size: 17px; line-height: 1.3; }

/* --- заголовок секції --- */
.nt-sec { margin: 44px 0 0; }
.nt-sec__h {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 3px solid var(--nt-ink); padding-top: 10px; margin: 0 0 18px;
}
.nt-sec__t { font-family: var(--nt-serif); font-size: 24px; font-weight: 700; margin: 0; }
.nt-sec__t a { text-decoration: none; }
.nt-sec__a { font-size: 13.5px; font-weight: 600; color: var(--nt-accent); text-decoration: none; white-space: nowrap; }
.nt-sec__a:hover { color: var(--nt-accent-h); text-decoration: none; }

/* рубричний блок: великий матеріал + список */
.nt-block { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; }
/* UA: у рубриці лише один матеріал — блок стає на всю ширину, без порожньої колонки збоку */
.nt-block--solo { grid-template-columns: minmax(0, 1fr); }
.nt-block--solo .nt-story--md { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.nt-block--solo .nt-story--md .nt-cov { grid-row: span 3; }
.nt-block--solo .nt-story--md:not(:has(.nt-cov)) { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .nt-block--solo .nt-story--md { grid-template-columns: minmax(0, 1fr); } .nt-block--solo .nt-story--md .nt-cov { grid-row: auto; } }
.nt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.nt-list li { border-bottom: 1px solid var(--nt-line-2); padding-bottom: 14px; }
.nt-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.nt-list a { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 13px; text-decoration: none; align-items: start; }
.nt-list .nt-cov { aspect-ratio: 4 / 3; border-radius: 3px; }
.nt-list b { font-weight: 600; font-size: 15.5px; line-height: 1.33; display: block; }
.nt-list a:hover b { color: var(--nt-accent); }
.nt-list small { color: var(--nt-ink-3); font-size: 12px; display: block; margin-top: 5px; }

/* --- думки --- */
.nt-opin { display: flex; flex-wrap: wrap; gap: 24px; }
.nt-opin > * { flex: 1 1 270px; min-width: 0; }
.nt-quote {
  background: var(--nt-surface-2); border-radius: var(--nt-r); padding: 22px 22px 20px;
  border-left: 3px solid var(--nt-accent);
}
.nt-quote .nt-h { font-size: 19px; line-height: 1.3; font-style: italic; }
.nt-quote .nt-meta { margin-top: 14px; }

/* --- блоги читачів (супутній сервіс) --- */
.nt-blogs { margin-top: 48px; background: var(--nt-surface-2); border-radius: 8px; padding: 26px 26px 30px; }
.nt-blogs__h { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 6px; }
.nt-blogs__t { font-family: var(--nt-serif); font-size: 22px; margin: 0; }
.nt-blogs__p { color: var(--nt-ink-2); font-size: 14.5px; margin: 0 0 20px; max-width: 60ch; }
.nt-blogs__grid { display: flex; flex-wrap: wrap; gap: 22px; }
.nt-blogs__grid > * { flex: 1 1 220px; min-width: 0; }
.nt-bcard { background: var(--nt-surface); border: 1px solid var(--nt-line-2); border-radius: 6px; padding: 16px; }
.nt-bcard .nt-h { font-size: 16px; line-height: 1.3; }
.nt-by { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--nt-ink-2); }
.nt-by img, .nt-by .blw-ava, .nt-by .nt-ava {
  width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none;
}
.nt-ava {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--nt-accent); color: #fff; font-size: 11px; font-weight: 700;
}
.nt-authors { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.nt-authors a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 13.5px;
  background: var(--nt-surface); border: 1px solid var(--nt-line-2); border-radius: 999px; padding: 5px 13px 5px 5px;
}
.nt-authors a:hover { border-color: var(--nt-accent); color: var(--nt-accent); }

/* --- рубрики плиткою --- */
.nt-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-cats a {
  display: inline-flex; align-items: baseline; gap: 7px; text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid var(--nt-line); border-radius: 999px; padding: 7px 14px; color: var(--nt-ink);
}
.nt-cats a:hover { border-color: var(--nt-accent); color: var(--nt-accent); }
.nt-cats a.is-on { background: var(--nt-ink); border-color: var(--nt-ink); color: var(--nt-bg); }
.nt-cats i { font-style: normal; font-size: 12px; color: var(--nt-ink-3); }
.nt-cats a.is-on i { color: inherit; opacity: .7; }

/* --- рекламні місця --- */
.nt-ad { margin: 34px 0 0; text-align: center; }
.nt-ad > * { max-width: 100%; }
.nt-ad--rail { margin: 22px 0 0; }

/* =============================================================
   СТРІЧКА / РУБРИКА
   ============================================================= */
.nt-page { padding-block: 26px 60px; }
.nt-crumbs { font-size: 12.5px; color: var(--nt-ink-3); margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 7px; }
.nt-crumbs a { text-decoration: none; color: var(--nt-ink-3); }
.nt-crumbs a:hover { color: var(--nt-accent); }

.nt-phead { border-bottom: 3px solid var(--nt-ink); padding-bottom: 14px; margin-bottom: 24px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.nt-phead h1 { font-family: var(--nt-serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.08; margin: 0; }
.nt-phead h1 small { font-size: 15px; color: var(--nt-ink-3); font-weight: 400; font-family: var(--nt-sans); }
.nt-phead p { margin: 8px 0 0; color: var(--nt-ink-2); font-size: 15px; max-width: 66ch; }

.nt-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.nt-feed { display: grid; gap: 26px; }
.nt-row { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; padding-bottom: 26px; border-bottom: 1px solid var(--nt-line-2); }
.nt-row:last-child { border-bottom: 0; }
.nt-row .nt-h { font-size: 23px; line-height: 1.22; }
.nt-row .nt-lede { font-size: 14.5px; }
.nt-row--feat { grid-template-columns: minmax(0, 1fr); }
/* UA: найсвіжіший матеріал стоїть першою карткою всередині стрічки, тому відступи між ним і
   UA: наступною новиною дає сама сітка .nt-feed. Коли вище є блок «Від редакції», стрічку
   UA: відбиваємо від нього, щоб велика картка не склеювалася з переліком. */
/* EN: the newest item is the first card inside the feed, so the gap between it and the next item comes
   EN: from the .nt-feed grid itself. When an editorial block sits above, the feed is set off from it so
   EN: the big card does not stick to that list. */
.nt-sec + .nt-feed { margin-top: 34px; }
.nt-row--feat .nt-cov { aspect-ratio: 16 / 7.5; margin-bottom: 14px; }
.nt-row--feat .nt-h { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; }

.nt-aside { display: grid; gap: 26px; align-content: start; position: sticky; top: 16px; }
.nt-box { border: 1px solid var(--nt-line); border-radius: 6px; padding: 18px; background: var(--nt-surface); }
.nt-box h2 { font-family: var(--nt-serif); font-size: 17px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--nt-line-2); }
.nt-box--cta { background: var(--nt-ink); color: var(--nt-bg); border-color: var(--nt-ink); }
.nt-box--cta h2 { color: inherit; border-bottom-color: rgba(255,255,255,.18); }
.nt-box--cta p { color: rgba(255,255,255,.76); font-size: 14px; margin: 0 0 16px; }
[data-am-theme="dark"] .nt-box--cta { background: var(--nt-surface-2); color: var(--nt-ink); }
[data-am-theme="dark"] .nt-box--cta p { color: var(--nt-ink-2); }
.nt-box--cta .nt-btn { width: 100%; justify-content: center; background: var(--nt-accent); border-color: var(--nt-accent); color: #fff; }

.nt-num { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 14px; }
.nt-num li { counter-increment: n; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.nt-num li::before {
  content: counter(n); font-family: var(--nt-serif); font-size: 20px; font-weight: 700;
  color: var(--nt-line); line-height: 1.1;
}
.nt-num a { text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.33; }
.nt-num a:hover { color: var(--nt-accent); }
.nt-num small { display: block; color: var(--nt-ink-3); font-size: 12px; font-weight: 400; margin-top: 4px; }

.nt-sorts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.nt-sorts a {
  font-size: 13px; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--nt-line); color: var(--nt-ink-2);
}
.nt-sorts a.is-on { background: var(--nt-ink); color: var(--nt-bg); border-color: var(--nt-ink); }
.nt-sorts a:hover { border-color: var(--nt-accent); color: var(--nt-accent); }

.nt-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 34px 0 0; }
.nt-pager a, .nt-pager span {
  min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--nt-line); border-radius: 4px; text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 0 10px;
}
.nt-pager a:hover { border-color: var(--nt-accent); color: var(--nt-accent); }
.nt-pager .is-on { background: var(--nt-ink); border-color: var(--nt-ink); color: var(--nt-bg); }

.nt-empty { text-align: center; padding: 60px 20px; color: var(--nt-ink-2); }
.nt-empty h2 { font-family: var(--nt-serif); font-size: 24px; margin: 0 0 10px; color: var(--nt-ink); }

/* =============================================================
   СТОРІНКА ПУБЛІКАЦІЇ
   ============================================================= */
/* UA: матеріал займає всю ширину свого стовпця сторінки — текст не тулиться у вузьку смугу.
   EN: the article takes the full width of its page column — the text no longer sits in a narrow strip. */
.nt-art { max-width: none; margin: 0; }
.nt-art__h { margin-bottom: 22px; }
.nt-art__h h1 { font-family: var(--nt-serif); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; margin: 6px 0 0; letter-spacing: -.015em; }
.nt-art__lede { font-size: 19px; line-height: 1.5; color: var(--nt-ink-2); margin: 16px 0 0; font-family: var(--nt-serif); }
.nt-art__by {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0 0;
  padding: 14px 0; border-top: 1px solid var(--nt-line); border-bottom: 1px solid var(--nt-line);
  font-size: 13.5px; color: var(--nt-ink-2);
}
.nt-art__by b { color: var(--nt-ink); font-size: 14px; }
.nt-art__by .nt-by { margin: 0; }
.nt-art__hero { margin: 22px 0 26px; }
.nt-art__hero img { width: 100%; height: auto; display: block; border-radius: var(--nt-r); }
.nt-art__hero figcaption { font-size: 12.5px; color: var(--nt-ink-3); margin-top: 8px; }

.nt-prose { font-family: var(--nt-serif); font-size: 19px; line-height: 1.72; color: var(--nt-ink); }
.nt-prose p { margin: 0 0 22px; }
.nt-prose h2 {
  font-family: var(--nt-serif); font-size: 25px; line-height: 1.25; margin: 36px 0 14px; font-weight: 700;
}
.nt-prose h3 { font-size: 20px; margin: 28px 0 12px; }
.nt-prose ul, .nt-prose ol { margin: 0 0 22px; padding-left: 24px; }
.nt-prose li { margin: 0 0 10px; }
.nt-prose a { color: var(--nt-accent); text-decoration: underline; text-underline-offset: 2px; }
.nt-prose a:hover { color: var(--nt-accent-h); }
.nt-prose img { max-width: 100%; height: auto; border-radius: var(--nt-r); margin: 10px 0 22px; }
.nt-prose blockquote {
  margin: 26px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--nt-accent);
  font-style: italic; color: var(--nt-ink-2);
}
.nt-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em;
  background: var(--nt-surface-2); padding: 2px 6px; border-radius: 3px;
}
.nt-prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 16px; font-family: var(--nt-sans); }
.nt-prose th, .nt-prose td { border: 1px solid var(--nt-line); padding: 9px 12px; text-align: left; }

/* ---------- поділитися: кружечки з іконками ---------- */
.nt-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 30px 0 0; padding-top: 20px; border-top: 1px solid var(--nt-line); position: relative; }
.nt-share__l { font-size: 13px; color: var(--nt-ink-3); margin-right: 2px; }
.nt-sh {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid var(--nt-line); background: var(--nt-surface); color: var(--nt-ink-2);
  cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.nt-sh svg { width: 19px; height: 19px; fill: currentColor; display: block; }
.nt-sh:hover { color: #fff; transform: translateY(-1px); }
.nt-sh--fb:hover { background: #1877f2; border-color: #1877f2; }
.nt-sh--x:hover  { background: #14171a; border-color: #14171a; }
.nt-sh--tg:hover { background: #2aabee; border-color: #2aabee; }
.nt-sh--wa:hover { background: #25d366; border-color: #25d366; }
.nt-sh--vb:hover { background: #7360f2; border-color: #7360f2; }
.nt-sh--cp:hover { background: var(--nt-ink); border-color: var(--nt-ink); }
.nt-sh:focus-visible { outline: 2px solid var(--nt-accent); outline-offset: 2px; }
.nt-share__ok {
  font-size: 13px; color: #fff; background: var(--nt-ink); border-radius: 999px; padding: 5px 12px;
  opacity: 0; transform: translateY(4px); transition: opacity .18s, transform .18s; pointer-events: none;
}
.nt-share.is-copied .nt-share__ok { opacity: 1; transform: none; }

/* ---------- сторінка матеріалу: текст + бічна панель ---------- */
.nt-art__cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.nt-art__main { min-width: 0; }
.nt-aside--art { position: sticky; top: 76px; display: grid; gap: 20px; }
.nt-side__list { list-style: none; margin: 0; padding: 0; }
.nt-side__list li + li { border-top: 1px solid var(--nt-line-2); }
.nt-side__list a { display: flex; gap: 10px; padding: 9px 0; text-decoration: none; align-items: baseline; }
.nt-side__list time { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--nt-accent); font-variant-numeric: tabular-nums; }
.nt-side__list span { font-size: 14px; line-height: 1.4; color: var(--nt-ink); }
.nt-side__list a:hover span { color: var(--nt-accent); }
@media (max-width: 1180px) {
  .nt-foot__in { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nt-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .nt-art__cols { grid-template-columns: 1fr; gap: 34px; }
  .nt-aside--art { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

.nt-note { background: var(--nt-surface-2); border-left: 3px solid var(--nt-accent); padding: 12px 16px; font-size: 14px; border-radius: 0 var(--nt-r) var(--nt-r) 0; margin: 0 0 18px; }

.nt-authorbox {
  display: flex; gap: 16px; align-items: flex-start; margin: 34px 0 0; padding: 20px;
  background: var(--nt-surface-2); border-radius: 8px;
}
.nt-authorbox img, .nt-authorbox .nt-ava { width: 52px; height: 52px; border-radius: 50%; flex: none; font-size: 18px; }
.nt-authorbox h2 { font-family: var(--nt-serif); font-size: 18px; margin: 0 0 4px; }
.nt-authorbox p { margin: 0; font-size: 14px; color: var(--nt-ink-2); }

.nt-rel { margin: 46px 0 0; }
/* UA: Було flex із «розтягнути залишок»: коли матеріалів не кратно кількості стовпчиків,
   UA: останній у нижньому рядку розтягувався на всю ширину — і його знімок ставав велетенським.
   UA: Сітка з однаковими колонками тримає всі картки одного розміру, а неповний рядок просто
   UA: лишається неповним.
   EN: It was a flex row that stretched the remainder: when the material does not divide by the
   EN: number of columns, the last card of the bottom row spread across the whole width and its
   EN: photo grew enormous. A grid of equal columns keeps every card the same size and simply
   EN: leaves an incomplete row incomplete. */
.nt-rel__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.nt-rel__grid > * { min-width: 0; }

/* =============================================================
   ПІДВАЛ
   ============================================================= */
.nt-foot { background: var(--nt-surface); border-top: 3px solid var(--nt-ink); margin-top: 60px; padding: 36px 0 30px; }
.nt-foot__in { display: grid; grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.nt-foot__brand .nt-brand__n { font-size: 30px; }
.nt-foot__brand p { color: var(--nt-ink-2); font-size: 14px; margin: 12px 0 0; max-width: 42ch; }
.nt-foot h3 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--nt-ink-3); margin: 0 0 12px; }
.nt-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.nt-foot a { text-decoration: none; font-size: 14.5px; color: var(--nt-ink-2); }
.nt-foot a:hover { color: var(--nt-accent); }
.nt-foot__bot {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--nt-line-2);
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--nt-ink-3);
}
.nt-foot__bot a { font-size: 13px; }

/* нижня панель на телефоні */
.nt-tab { display: none; }

/* =============================================================
   АДАПТИВ
   ============================================================= */
@media (max-width: 1100px) {
  .nt-lead { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .nt-rail { border-left: 0; padding-left: 0; border-top: 1px solid var(--nt-line); padding-top: 20px; }
  .nt-cols { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .nt-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; }
}
@media (max-width: 860px) {
  /* два рядки: назва + дії, під ними пошук на всю ширину */
  .nt-mast__in {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand actions" "search search";
    gap: 10px 12px; padding-block: 12px;
  }
  .nt-brand { grid-area: brand; justify-self: start; text-align: left; }
  .nt-mast__r { grid-area: actions; }
  .nt-mast__l { grid-area: search; }
  .nt-brand__n { font-size: 30px; }
  .nt-brand__s { letter-spacing: .2em; font-size: 10px; margin-top: 3px; }
  .nt-search { max-width: none; }
  .nt-top__date { display: none; }
  .nt-block { grid-template-columns: minmax(0, 1fr); }
  .nt-opin > * { flex-basis: 100%; }
  .nt-art__lede { font-size: 17px; }
  .nt-prose { font-size: 18px; }
}
@media (max-width: 640px) {
  :root { --nt-gut: 20px; }
  .nt-pair { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .nt-strip > * { flex-basis: 100%; }
  .nt-blogs__grid > * { flex-basis: 100%; }
  .nt-blogs { padding: 20px 16px 24px; }
  .nt-aside { grid-template-columns: minmax(0, 1fr); }
  .nt-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .nt-row .nt-h { font-size: 20px; }
  .nt-rel__grid { grid-template-columns: minmax(0, 1fr); }
  .nt-foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .nt-foot__brand { grid-column: 1 / -1; }
  .nt-story--xl .nt-h { font-size: 27px; }
  .nt-story--xl .nt-lede { font-size: 15.5px; }
  .nt-search__f { padding: 6px 12px; }
  .nt-mast__r .nt-btn:not(.nt-btn--solid) { display: none; }
  body.am { padding-bottom: 58px; }
  /* нижня панель */
  .nt-tab {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--nt-surface); border-top: 1px solid var(--nt-line); padding-bottom: env(safe-area-inset-bottom);
  }
  .nt-tab a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 8px 4px 7px; font-size: 11px; text-decoration: none; color: var(--nt-ink-2);
  }
  .nt-tab a.is-on { color: var(--nt-accent); }
  .nt-tab svg { width: 20px; height: 20px; }
}

/* друк */
@media print {
  .nt-top, .nt-nav, .nt-mast__l, .nt-mast__r, .nt-share, .nt-foot, .nt-tab, .nt-ad, .nt-rel { display: none !important; }
  body.am { background: #fff; color: #000; }
  .nt-prose { font-size: 12pt; }
}

/* =============================================================
   УСПАДКОВАНІ БЛОКИ В НОВОМУ ОФОРМЛЕННІ
   UA: рекламні місця (am_ad_slot), блок автора й коментарі під публікацією.
   EN: the ad slots (am_ad_slot), the author box and the comments under a publication.
   ============================================================= */
.am-adslot {
  display: flex; align-items: center; gap: 16px; text-decoration: none;
  border: 1px dashed var(--nt-line); border-radius: 6px; padding: 18px 20px;
  background: var(--nt-surface); color: var(--nt-ink-2); text-align: left;
  transition: border-color .15s, color .15s;
}
.am-adslot:hover { border-color: var(--nt-accent); color: var(--nt-accent); text-decoration: none; }
.am-adslot__ico { color: var(--nt-accent); flex: none; display: flex; }
.am-adslot__tx { display: block; }
.am-adslot__tx b { display: block; font-size: 15px; color: var(--nt-ink); margin-bottom: 3px; }
.am-adslot__tx span { font-size: 13px; color: var(--nt-ink-3); }
.am-adslot__tx em { font-style: normal; opacity: .75; white-space: nowrap; }
.am-adslot__btn {
  margin-left: auto; flex: none; font-size: 13px; font-weight: 600; color: var(--nt-accent);
  border: 1px solid var(--nt-line); border-radius: 999px; padding: 7px 14px; background: var(--nt-bg);
}
.am-adslot--v { flex-direction: column; text-align: center; }
.am-adslot--v .am-adslot__btn { margin: 4px 0 0; }
.am-adslot--v .am-adslot__tx { text-align: center; }

/* блок автора, оцінки й коментарі (am_bl_post_box) */
.nt-art .blw, .nt-art + .blw { margin-top: 30px; }
.nt-art .blw-author, .blw-author {
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: var(--nt-surface-2); border-radius: 8px; border: 0;
}
.blw-k, .blw-role { font-size: 12px; color: var(--nt-ink-3); }
.blw-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; font-size: 14px; color: var(--nt-ink-2); }
.blw-avg { font-family: var(--nt-serif); font-size: 22px; font-weight: 700; color: var(--nt-ink); }
.blc, .blc-form, .blc-list { font-family: var(--nt-sans); }
.blc h2, .blc-h { font-family: var(--nt-serif); font-size: 22px; }

/* кнопки успадкованих блоків у стилі видання */
.nt-art .am-btn, .nt-page .am-btn {
  border-radius: 999px; border: 1px solid var(--nt-line); background: var(--nt-surface);
  color: var(--nt-ink); font-weight: 600; font-size: 14px; padding: 8px 15px; text-decoration: none;
}
.nt-art .am-btn--primary, .nt-page .am-btn--primary {
  background: var(--nt-accent); border-color: var(--nt-accent); color: #fff;
}

/* =============================================================
   ЄДИНА ПАЛІТРА ДЛЯ УСПАДКОВАНИХ СТОРІНОК
   UA: Довідка, контакти, реклама, кабінет і решта сторінок користуються змінними
   UA: --c-* з allmarket.css. Перевизначаємо їх під оформлення видання, щоб усе
   UA: виглядало однаково, не переписуючи старої розмітки.
   EN: The help, contacts, advertising, the dashboard and the other pages use the
   EN: --c-* variables from allmarket.css. They are redefined for the publication's
   EN: design so everything matches without rewriting the old markup.
   ============================================================= */
:root {
  --c-primary: #b32318;
  --c-primary-hover: #8f1a12;
  --c-on-primary: #ffffff;
  --c-accent: #b32318;
  --c-on-accent: #ffffff;
  --c-soft: #faf2f0;
  --c-soft-line: #efd9d5;
  --c-focus: #e39b93;

  --c-ink: #14161a;
  --c-text: #14161a;
  --c-text-2: #4a515b;
  --c-muted: #565d68;
  --c-faint: #99a0aa;
  --c-bg: #ffffff;
  --c-surface: #ffffff;
  --c-surface-2: #f6f7f9;
  --c-line: #e3e6ea;
  --c-line-strong: #cdd3da;
  --c-track: #eef0f3;

  --c-dark: #14161a;
  --c-on-dark: #ffffff;

  --g-hero: linear-gradient(120deg, #1b1d22, #33363d);
  --c-on-hero: #ffffff;
  --c-on-hero-2: rgba(255,255,255,.82);
  --g-topbar: #ffffff;
  --c-on-topbar: #565d68;

  --c-footer: #14161a;
  --c-on-footer: #c9c5bd;
  --c-footer-title: #ffffff;
  --c-footer-line: #2b2e34;
  --c-footer-ph: #9a958c;

  --f-display: Georgia, "PT Serif", "Noto Serif", "Times New Roman", serif;
  --f-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-am-theme="dark"] {
  --c-primary: #ff6a5c;
  --c-primary-hover: #ff8a7e;
  --c-ink: #eceef1;
  --c-text: #eceef1;
  --c-text-2: #b6bdc7;
  --c-muted: #a8b0bb;
  --c-bg: #101215;
  --c-surface: #16191d;
  --c-surface-2: #1c2025;
  --c-line: #2a2f36;
  --c-line-strong: #363c45;
  --c-dark: #0b0d10;
  --c-soft: #241c1b;
  --c-soft-line: #3a2a27;
  --c-footer: #0b0d10;
}
/* засічкові заголовки на успадкованих сторінках */
.am-main h1, .am-main h2, .am-main h3,
.am-page h1, .am-page h2, .am-page h3 { letter-spacing: -.01em; }

/* підпис до фото й блок джерела в матеріалах агента новин */
.nt-prose .nt-credit {
  margin: -14px 0 26px; font-size: 13px; line-height: 1.5; color: var(--nt-ink-3);
  font-family: var(--nt-sans);
}
.nt-prose .nt-credit a { color: var(--nt-ink-3); border-bottom: 1px solid var(--nt-line); }
.nt-prose .nt-credit a:hover { color: var(--nt-accent); border-color: currentColor; }
.nt-prose .nt-src {
  margin-top: 30px; padding: 14px 16px; border-left: 3px solid var(--nt-accent);
  background: var(--nt-surface-2); font-family: var(--nt-sans); font-size: 14px;
  line-height: 1.6; color: var(--nt-ink-2);
}
.nt-prose .nt-src a { color: var(--nt-accent); border: 0; font-weight: 600; }

/* логотип видання в шапці й підвалі */
.nt-brand__img { display: block; width: auto; height: 62px; margin: 0 auto; }
.nt-brand--foot .nt-brand__img { height: 44px; margin: 0; }
/* у темній темі — окремий, світліший варіант логотипа (у підвалі завжди темний варіант: тло підвалу темне) */
.nt-brand__img--d { display: none; }
[data-am-theme="dark"] .nt-brand__img--l { display: none; }
[data-am-theme="dark"] .nt-brand__img--d { display: block; }
@media (max-width: 860px) { .nt-brand__img { height: 46px; margin: 0; } }
@media (max-width: 640px) { .nt-brand__img { height: 38px; } }

/* ---------- теги ---------- */
.nt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 0; }
.nt-tags > span { color: var(--nt-dim); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.nt-tags a, .nt-tagcloud a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--nt-line); background: var(--nt-card); color: var(--nt-ink);
  font-size: 14px; text-decoration: none; transition: border-color .15s, color .15s, background .15s;
}
.nt-tags a:hover, .nt-tagcloud a:hover { border-color: var(--nt-accent); color: var(--nt-accent); }
.nt-tagcloud { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.nt-tagcloud a i { font-style: normal; font-size: 12px; color: var(--nt-dim); }
.nt-tagcloud a:hover i { color: inherit; }
.nt-tagcloud a.is-on { border-color: var(--nt-accent); background: var(--nt-accent); color: #fff; }
.nt-tagcloud a.is-on i { color: rgba(255,255,255,.75); }
/* на сторінці «Теми» розмір напису залежить від кількості матеріалів */
.nt-tagcloud:not(.nt-tagcloud--side) a[data-n="1"] { font-size: 14px; }
.nt-tagcloud:not(.nt-tagcloud--side) a { font-size: 16px; }
.nt-tagcloud--side { margin: 0; }
.nt-tagcloud--side a { font-size: 13px; padding: 4px 10px; }
.nt-box__more { margin: 12px 0 0; font-size: 14px; }
.nt-box__more a { color: var(--nt-accent); text-decoration: none; }
.nt-box__more a:hover { text-decoration: underline; }

/* =============================================================
   ВИРІВНЮВАННЯ ТЕКСТУ ПО ШИРИНІ
   UA: Суцільний текст — у матеріалах, лідах, картках, бічних блоках і сторінках CMS —
   UA: вирівнюється по обидва краї. Разом із вирівнюванням обов'язкові переноси (hyphens: auto,
   UA: працюють завдяки lang="uk" у <html>), інакше в українських текстах із довгими словами
   UA: між словами з'являлися б «ріки» з порожнечі. Заголовки, підписи, меню й таблиці не чіпаємо.
   EN: The running text — in the articles, the ledes, the cards, the side boxes and the CMS pages —
   EN: is justified. Justification requires hyphenation (hyphens: auto, working thanks to lang="uk"
   EN: on <html>), otherwise Ukrainian's long words tear "rivers" of white space between the words.
   EN: The headings, the captions, the menus and the tables are left alone.
   ============================================================= */
.nt-prose,
.nt-prose p,
.nt-prose li,
.nt-prose blockquote,
.nt-art__lede,
.nt-lede,
.nt-box p,
.nt-authorbox p,
.nt-empty,
.nt-phead p,
.am-prose, .am-prose p, .am-prose li,
.hp-prose, .hp-prose p, .hp-prose li {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  hyphenate-limit-chars: 7 4 3;      /* не розриваємо короткі слова */
  overflow-wrap: break-word;         /* довге посилання не вилазить за колонку */
}
/* останній рядок абзацу лишається звичайним, його не розтягуємо */
.nt-prose p, .nt-prose li, .nt-art__lede, .nt-lede, .nt-box p, .am-prose p, .hp-prose p { text-align-last: start; }
/* те, що вирівнювати не можна: підписи до фото, службові рядки, таблиці, кнопки */
.nt-prose figcaption, .nt-prose .nt-cap, .nt-prose th, .nt-prose td,
.nt-meta, .nt-art__by, .nt-crumbs, .nt-box__more, .nt-cats, .nt-tagcloud, .nt-tags,
.nt-box--cta p, .nt-sec__t, .nt-h {
  text-align: left;
  hyphens: manual;
}
/* на вузьких екранах колонка занадто мала: вирівнювання по ширині там шкодить читанню */
@media (max-width: 560px) {
  .nt-prose, .nt-prose p, .nt-prose li, .nt-prose blockquote,
  .nt-art__lede, .nt-lede, .nt-box p, .nt-authorbox p, .nt-empty,
  .am-prose, .am-prose p, .am-prose li, .hp-prose, .hp-prose p, .hp-prose li {
    text-align: left;
  }
}

/* ---------- підпис до фото та запит правовласника ---------- */
.nt-prose .nt-credit { font-family: var(--nt-sans); font-size: 13.5px; color: var(--nt-ink-3); margin: -12px 0 22px; text-align: left; }
.nt-prose .nt-credit--gone { font-style: italic; }
.nt-credit__claim { white-space: nowrap; margin-left: 6px; border-bottom: 1px dotted currentColor; text-decoration: none !important; color: var(--nt-ink-3) !important; }
.nt-credit__claim:hover { color: var(--nt-accent) !important; border-bottom-color: var(--nt-accent); }
.nt-prose .nt-src { font-family: var(--nt-sans); font-size: 14px; color: var(--nt-ink-2); border-top: 1px solid var(--nt-line); padding-top: 14px; }

.nt-narrow { max-width: 1040px; }
.nt-pc__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.nt-pc__form { display: grid; gap: 16px; }
.nt-pc__fs { border: 1px solid var(--nt-line); border-radius: 10px; padding: 14px 16px; margin: 0; display: grid; gap: 10px; }
.nt-pc__fs legend { font-size: 13px; color: var(--nt-ink-3); padding: 0 6px; }
.nt-pc__radio { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.nt-pc__radio input { margin-top: 4px; flex: none; }
.nt-pc__radio small { display: block; color: var(--nt-ink-3); font-size: 13px; }
.nt-pc__row { display: grid; gap: 5px; }
.nt-pc__row label { font-weight: 600; font-size: 14px; }
.nt-pc__row label i { color: var(--nt-accent); font-style: normal; }
.nt-pc__row small { color: var(--nt-ink-3); font-size: 12.5px; }
.nt-pc__row input, .nt-pc__row textarea {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--nt-line);
  border-radius: 8px; background: var(--nt-surface); color: var(--nt-ink); width: 100%;
}
.nt-pc__row input:focus, .nt-pc__row textarea:focus { outline: 2px solid var(--nt-accent); outline-offset: 1px; border-color: transparent; }
.nt-pc__two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nt-pc__agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.nt-pc__agree input { margin-top: 3px; flex: none; }
.nt-pc__act { display: flex; flex-wrap: wrap; gap: 10px; }
.nt-btn--ghost { background: none; color: var(--nt-ink-2); border: 1px solid var(--nt-line); }
.nt-pc__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nt-pc__err { border: 1px solid #d33; border-radius: 10px; padding: 12px 16px; background: rgba(211,51,51,.06); }
.nt-pc__err ul { margin: 6px 0 0; padding-left: 20px; }
.nt-pc__side { display: grid; gap: 18px; }
.nt-pc__img { width: 100%; height: auto; border-radius: 6px; display: block; margin: 0 0 10px; }
.nt-pc__meta { font-size: 13.5px; color: var(--nt-ink-2); margin: 4px 0 0; }
.nt-pc__gone { color: var(--nt-accent); }
.nt-pc__how { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.nt-pc__how li { margin: 0 0 7px; }
.nt-pc__law { font-size: 12.5px; color: var(--nt-ink-3); margin: 12px 0 0; }
.nt-pc__ok h2 { margin-top: 0; }
@media (max-width: 900px) { .nt-pc__grid { grid-template-columns: 1fr; } .nt-pc__two { grid-template-columns: 1fr; } }

/* ---------- регіони ---------- */
.nt-reggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(252px, 1fr)); gap: 14px; margin: 8px 0 30px; }
/* UA: картка краю: ліворуч герб, праворуч назва й лічильник матеріалів */
.nt-regcard {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--nt-line); border-radius: 10px;
  background: var(--nt-surface); text-decoration: none; transition: border-color .15s, transform .12s;
}
.nt-regcard:hover { border-color: var(--nt-accent); transform: translateY(-1px); }
/* UA: «Дніпропетровщина» — одне довге слово: дозволяємо перенос, щоб воно не вилазило з картки */
.nt-regcard__t { display: grid; gap: 3px; min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.nt-regcard b { font-size: 17px; color: var(--nt-ink); font-family: var(--nt-serif); }
.nt-regcard span { font-size: 13px; color: var(--nt-ink-2); }
.nt-regcard i { font-size: 12.5px; color: var(--nt-ink-3); font-style: normal; }
.nt-regcard:hover b { color: var(--nt-accent); }
.nt-regcard--city { background: var(--nt-surface-2); }
/* UA: герб вписуємо у квадрат, пропорції не ламаємо — щити бувають і вузькі, і широкі */
.nt-regcard__coat {
  width: 56px; height: 56px; object-fit: contain; display: block;
  transition: transform .12s;
}
.nt-regcard:hover .nt-regcard__coat { transform: scale(1.06); }
/* UA: картка без герба не має провалюватися — текст займає всю ширину */
.nt-regcard--nocoat { grid-template-columns: minmax(0, 1fr); }
/* UA: герб краю в шапці його сторінки */
.nt-phead--coat { flex-wrap: nowrap; align-items: center; }
.nt-phead--coat > div { flex: 1 1 auto; min-width: 0; }
.nt-phead__coat { width: 72px; height: 72px; object-fit: contain; flex: 0 0 auto; display: block; }
@media (max-width: 560px) {
  .nt-phead__coat { width: 54px; height: 54px; }
}
/* UA: у темній темі щити з білим полем і тонким контуром зливаються з тлом —
   UA: кладемо їх на світлу підкладку, як на папері */
[data-am-theme="dark"] .nt-regcard__coat,
[data-am-theme="dark"] .nt-phead__coat {
  background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .nt-regcard, .nt-regcard__coat { transition: none; }
  .nt-regcard:hover { transform: none; }
  .nt-regcard:hover .nt-regcard__coat { transform: none; }
}
/* ---------- дворівневе меню: верхня смуга — основна, нижня — підменю регіонів ---------- */
.nt-nav__reg { font-weight: 700; }
/* смуга підменю зʼявляється лише під час наведення на пункт «Регіони» */
.nt-nav2 { background: var(--nt-surface-2); border-top: 1px solid var(--nt-line-2); }
.nt-nav2[hidden] { display: none; }
/* сама смуга лягає поверх сторінки, щоб текст під меню не стрибав */
.nt-nav { position: relative; }
.nt-nav2 { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; box-shadow: 0 10px 22px rgba(20,22,26,.08); }
/* запасний варіант без JS: сучасні браузери показують смугу і самим CSS */
.nt-nav__in:has(.nt-nav__reg:hover) ~ .nt-nav2 { display: block; }
.nt-nav2__in {
  display: flex; flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; padding-top: 6px; padding-bottom: 6px;
}
.nt-nav2__in::-webkit-scrollbar { display: none; }
.nt-nav2 a {
  display: inline-block; padding: 3px 10px; font-size: 13.5px; color: var(--nt-ink-2);
  text-decoration: none; white-space: nowrap;
}
.nt-nav2 a:hover { color: var(--nt-accent); }
.nt-nav2 a.is-on { color: var(--nt-accent); font-weight: 700; }
.nt-nav2 a + a::before {
  content: "|"; display: inline-block; margin: 0 10px 0 -10px; color: var(--nt-line); pointer-events: none;
}
.nt-nav2__all { font-weight: 700; color: var(--nt-ink) !important; }
.nt-nav2__all:hover { color: var(--nt-accent) !important; }
@media (max-width: 760px) { .nt-nav2 a { font-size: 13px; padding: 3px 8px; } .nt-nav2 a + a::before { margin: 0 8px 0 -8px; } }

/* UA: дуже вузькі екрани (старі телефони) — поля трохи менші, щоб текст не стискався */
@media (max-width: 360px) {
  :root { --nt-gut: 16px; }
}

/* UA: сторінки на портальному контейнері (юридичні, довідка, контакти) — ті самі поля, що й у новинах,
   UA: і так само не заходять під виріз екрана. */
.am-container {
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}
@media (max-width: 640px) { :root { --gutter: 20px; } }

/* ---------- головна: смужка країв під новинами регіонів ---------- */
.nt-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.nt-chips a {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 12px; font-size: 13.5px;
  border: 1px solid var(--nt-line); border-radius: 999px; color: var(--nt-ink-2); text-decoration: none;
  background: var(--nt-surface);
}
.nt-chips a:hover { border-color: var(--nt-accent); color: var(--nt-accent); }
.nt-chips a i { font-style: normal; font-size: 11.5px; color: var(--nt-dim); }
/* UA: крихітний герб у «пігулці» краю на головній */
.nt-chips__coat { width: 18px; height: 18px; object-fit: contain; align-self: center; }
[data-am-theme="dark"] .nt-chips__coat { background: rgba(255, 255, 255, .92); border-radius: 4px; padding: 1px; }
.nt-chips__all { border-style: dashed; font-weight: 600; }

/* ---------- головна: «Популярне» нумерованим переліком ---------- */
.nt-rank { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 34px; counter-reset: rank; }
.nt-rank li { counter-increment: rank; border-bottom: 1px solid var(--nt-line-2); }
.nt-rank li:last-child, .nt-rank li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
/* UA: непарний останній пункт займає обидві колонки, щоб праворуч не лишалося порожньо */
.nt-rank li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.nt-rank a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 13px 0; text-decoration: none; }
.nt-rank a::before {
  content: counter(rank); font-family: var(--nt-serif); font-size: 24px; font-weight: 700;
  color: var(--nt-line); line-height: 1;
}
.nt-rank a:hover::before { color: var(--nt-accent); }
.nt-rank__t b { display: block; font-size: 16px; font-weight: 600; color: var(--nt-ink); line-height: 1.35; }
.nt-rank a:hover .nt-rank__t b { color: var(--nt-accent); }
.nt-rank__t small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--nt-ink-3); }
@media (max-width: 760px) { .nt-rank { grid-template-columns: minmax(0, 1fr); gap: 0; } .nt-rank li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--nt-line-2); } }
