/* ---------- токени */
:root {
  --paper: #ffffff; --surface: #ffffff; --ink: #111111; --ink-2: #3d3d3d; --mute: #888888; --line: #d9d9d9;
  --brand: #86061d; --brand-ink: #ffffff; --accent: #d91f12; --band: #efefef; --dark: #2e2e2e; --dark-2: #1f1f1f; --dark-ink: #f3f3f3;
  --hl: #ffda33; --hl-ink: #111111; --hdr-bg: #86061d; --logo-bub: #86061d; --logo-ua: #ffffff;
  --serif: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; /* як у pravda.com.ua (прохання замовниці 23.09) */
  --sans: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 6px; --wrap: 1280px; --shadow: 0 1px 2px rgba(20,23,28,.06), 0 8px 24px rgba(20,23,28,.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --paper: #121212; --surface: #1a1a1a; --ink: #f0f0f0; --ink-2: #bdbdbd; --mute: #8f8f8f; --line: #2f2f2f;
  --brand: #b0102d; --brand-ink: #ffffff; --accent: #b0102d; --band: #202020; --dark: #0c0c0c; --dark-2: #1a1a1a; --hl: #ffda33; --hl-ink: #111111; --hdr-bg: #5c0012; --logo-bub: #b0102d; --logo-ua: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark; } }
:root[data-theme="dark"] {
  --paper: #121212; --surface: #1a1a1a; --ink: #f0f0f0; --ink-2: #bdbdbd; --mute: #8f8f8f; --line: #2f2f2f;
  --brand: #b0102d; --brand-ink: #ffffff; --accent: #b0102d; --band: #202020; --dark: #0c0c0c; --dark-2: #1a1a1a; --hl: #ffda33; --hl-ink: #111111; --hdr-bg: #5c0012; --logo-bub: #b0102d; --logo-ua: #ffffff;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark; }

/* ---------- база */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: var(--r); }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 1px solid var(--brand); border-radius: var(--r);
  background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 15px; cursor: pointer; transition: filter .15s, background .15s; }
.btn:hover { filter: brightness(1.12); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); filter: none; }
.btn-block { width: 100%; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink); }
.icon-btn:hover { background: var(--band); }

/* ---------- шапка */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); transition: transform .25s; }
.hdr-top { background: var(--hdr-bg); color: rgba(255,255,255,.82); font-size: 13px; }
.hdr-top-in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 16px; }
.hdr-date { display: inline-block; } .hdr-date::first-letter { text-transform: uppercase; }
.hdr-util { display: flex; gap: 18px; align-items: center; }
.hdr-util a:hover { color: #fff; }
.tip-link { display: inline-flex; gap: 6px; align-items: center; color: #fff; font-weight: 500; }
.tip-link svg { color: #fff; }
.hdr-main-in { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.hdr-main .logo { color: var(--ink); }
.logo-svg { display: block; height: 34px; width: auto; }
.logo-svg .lg-word { fill: currentColor; } .logo-svg .lg-bub { fill: var(--logo-bub); } .logo-svg .lg-ua { fill: var(--logo-ua); }
.nav-types { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav-types a { padding: 8px 12px; font-weight: 600; font-size: 15.5px; border-radius: var(--r); white-space: nowrap; }
.nav-types a:hover { background: var(--band); }
.nav-types a[aria-current] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.hdr-tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin-left: 8px; font-size: 13px; font-weight: 600; }
.lang a { padding: 5px 11px; border-radius: 999px; color: var(--mute); }
.lang a[aria-current] { background: var(--brand); color: var(--brand-ink); }
.lang a:not([aria-current]):hover { color: var(--ink); }
.hdr-rubrics { border-top: 1px solid var(--line); }
.rub-nav { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; min-height: 42px; align-items: center; }
.rub-nav::-webkit-scrollbar { display: none; }
.rub-nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; padding: 10px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; text-transform: uppercase; letter-spacing: .06em; }
.rub-nav a:hover, .rub-nav a[aria-current] { color: var(--ink); border-color: var(--accent); }
.burger { display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.burger span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.search-bar { border-top: 1px solid var(--line); background: var(--surface); padding: 14px 0; }
.search-form, .f-q { display: flex; gap: 10px; }
input[type="search"], input[type="text"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 9px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: transparent; }
.drawer { position: fixed; inset: 0; z-index: 45; background: var(--surface); overflow-y: auto; padding: 130px 24px 40px; }
.drawer-in { display: flex; flex-direction: column; max-width: 520px; margin: 0 auto; }
.drawer a { padding: 11px 0; font: 600 20px/1.3 var(--serif); border-bottom: 1px solid var(--line); }
.drawer-h { margin: 26px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); }

/* ---------- службові дрібниці */
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--mute); margin-top: auto; padding-top: 6px; }
.meta > * + *::before { content: "·"; margin-right: 12px; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); }
.k-type { color: var(--ink-2); }
.k-type + .k-rub::before, .flag + .k-rub::before { content: ""; }
.flag { background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 3px; letter-spacing: .06em; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.flag-lg { display: inline-block; font-size: 12px; padding: 4px 10px; margin-bottom: 14px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 22px; padding-top: 14px; border-top: 3px solid var(--ink); }
.sec-head h2 { font-size: 28px; }
.sec-head h2 a:hover { color: var(--brand); }
.sec-head-sm { border-top-width: 2px; margin-bottom: 8px; padding-top: 10px; }
.sec-head-sm h2 { font: 700 14px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .1em; display: flex; align-items: center; gap: 8px; }
.sec-all { font-size: 14px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.sec-all:hover { text-decoration: underline; }
.sec-links { display: flex; gap: 18px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
main > section { margin-top: 56px; }
main > section:first-of-type { margin-top: 28px; }

/* ---------- зображення і картки */
.pic { position: relative; display: block; overflow: hidden; border-radius: var(--r); background: var(--band); }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
a:hover .pic img { transform: scale(1.035); }
.pic-ph { position: absolute; inset: 0; background: repeating-linear-gradient(135deg, var(--band) 0 14px, var(--line) 14px 15px); }
.badge-media { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; background: rgba(10,12,15,.78); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(4px); }
.card { display: flex; min-width: 0; }
.card-link { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.card-body { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-title { font: 600 19px/1.27 var(--serif); letter-spacing: -.005em; }
.card-link:hover .card-title, .line a:hover .line-title, .hero a:hover .hero-title, .feed-item a:hover span, .focus-item a:hover .focus-title, .op a:hover .op-title, .dos a:hover .dos-title { color: var(--brand); }
.card-lead { font-size: 14.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-sm .card-title { font-size: 16px; }
.card-lg .card-title { font-size: 27px; line-height: 1.2; }
.card-lg .card-lead { font-size: 16px; -webkit-line-clamp: 4; }
.card-row .card-link { flex-direction: row; gap: 16px; align-items: flex-start; }
.card-row .pic { width: 150px; flex: none; aspect-ratio: 4 / 3 !important; }
.card-row .card-title { font-size: 17px; }
.card-dark { color: var(--dark-ink); }
.card-dark .kicker, .card-dark .card-link:hover .card-title { color: #9db9ff; }
.card-dark .meta { color: #969da8; }
.grid { display: grid; gap: 36px 28px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- головна: верх */
.top { display: grid; grid-template-columns: 290px minmax(0, 1fr) 300px; gap: 36px; align-items: start; }
.top-feed { position: sticky; top: 160px; }
.feed { list-style: none; margin: 0 0 16px; padding: 0; max-height: min(640px, calc(100vh - 290px)); overflow-y: auto; scrollbar-width: thin; }
.feed-item a { display: grid; grid-template-columns: 58px 1fr; gap: 4px 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.38; }
.feed-item time { font-size: 13px; color: var(--mute); font-variant-numeric: tabular-nums; padding-top: 1px; grid-row: span 2; }
.feed-item.is-focus span { font-weight: 600; }
.feed-item.is-focus time { color: var(--accent); font-weight: 600; }
.feed-ic { color: var(--mute); grid-column: 2; }
.hero a { display: flex; flex-direction: column; gap: 16px; }
.hero-body { display: flex; flex-direction: column; gap: 10px; }
.hero-title { font: 700 38px/1.12 var(--serif); letter-spacing: -.02em; text-wrap: balance; }
.hero-lead { font-size: 17px; color: var(--ink-2); line-height: 1.5; }
.top-sub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.focus-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 18px 8px; margin-bottom: 28px; box-shadow: var(--shadow); }
.focus-box .sec-head { border-top: 0; color: var(--accent); }
.focus-item a { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.focus-n { font: 700 26px/1 var(--serif); color: var(--line); min-width: 22px; }
.focus-title { display: block; font: 600 16px/1.3 var(--serif); }
.line a { display: flex; flex-direction: column; gap: 5px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.line-title { font: 600 16px/1.32 var(--serif); }

/* ---------- смуги */
.band { background: var(--band); padding: 44px 0 52px; }
.band-dark { background: var(--dark); color: var(--dark-ink); }
.band-dark .sec-head { border-color: var(--dark-ink); }
.band-dark .sec-all { color: #9db9ff; }
.op-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }
.op a { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 4px 22px; border-left: 1px solid var(--line); }
.op:first-child a { padding-left: 0; border-left: 0; }
.op-author { display: flex; align-items: center; gap: 12px; }
.op-author b { display: block; font-size: 14.5px; line-height: 1.2; }
.op-author i { display: block; font-style: normal; font-size: 12.5px; color: var(--mute); line-height: 1.3; margin-top: 2px; }
.op-title { font: 600 italic 18px/1.3 var(--serif); }
.ava { border-radius: 50%; object-fit: cover; flex: none; }
.ava-ph { display: inline-grid; place-items: center; background: var(--brand); color: var(--brand-ink); font-weight: 600; letter-spacing: .02em; }
.rub-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; }
.rub-rest { display: flex; flex-direction: column; gap: 22px; }
.rub-rest .card + .card { padding-top: 22px; border-top: 1px solid var(--line); }
.dos-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.dos a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 22px 20px 24px; border-left: 1px solid var(--line); transition: background .15s; }
.dos:first-child a { border-left: 0; }
.dos a:hover { background: var(--band); }
.dos-ph { display: block; aspect-ratio: 4 / 3; margin: -22px -20px 4px; overflow: hidden; background: var(--band); }
.dos-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.dos-ph .ava, .dos-ph .ava-ph { width: 100% !important; height: 100% !important; border-radius: 0; font-size: 34px; }
/* секція одразу після темної стрічки (Фото / Досьє): відступ, щоб її верхня лінія не прилипала до стрічки */
.band + section { margin-top: 44px; }
.dos-title { font: 600 18px/1.25 var(--serif); }
.dos-lead { font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- списки */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--mute); padding: 22px 0 0; }
.crumbs a:hover { color: var(--brand); }
.list-head { padding: 18px 0 22px; }
.list-head h1 { font-size: 44px; }
.list-head h1 small { font: 400 18px var(--sans); color: var(--mute); }
.list-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.list-lead { margin: 12px 0 0; max-width: 720px; color: var(--ink-2); font-size: 17px; }
.author-card { display: flex; gap: 22px; align-items: center; }
.author-card p { margin: 6px 0 0; color: var(--ink-2); max-width: 640px; }
.author-card .author-pos { color: var(--brand); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.filters { margin-bottom: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.f-q { margin-bottom: 14px; max-width: 720px; }
.f-more summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: 14px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; list-style: none; user-select: none; }
.f-more summary::-webkit-details-marker { display: none; }
.f-more[open] summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.f-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-top: 16px; }
.f-row label, .form-box label, .c-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.f-row label { width: 190px; }
.f-actions { display: flex; gap: 8px; padding-bottom: 4px; }
.f-tags { border: 0; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.f-tags legend { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; background: var(--surface); }
.chip input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.found { color: var(--ink-2); }
.empty { padding: 60px 0; text-align: center; color: var(--ink-2); font-size: 17px; }
.more-wrap { display: flex; justify-content: center; margin-top: 44px; }
.btn-more { min-width: 260px; }
.btn-more[aria-busy="true"] { opacity: .6; pointer-events: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 22px; margin: 22px 0 0; font-size: 14px; color: var(--mute); }
.pager a { color: var(--brand); font-weight: 600; }

/* ---------- матеріал */
.art-layout { max-width: 1000px; }
.art-head { padding: 14px 0 26px; max-width: 860px; }
.art-head h1 { font-size: 46px; line-height: 1.1; letter-spacing: -.022em; }
.art-lead { margin: 18px 0 0; font: 400 21px/1.5 var(--serif); color: var(--ink-2); }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; font-size: 14px; color: var(--mute); }
.art-lang { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }
.art-lang:hover { border-color: var(--brand); }
.art-cover { margin: 0 0 34px; }
.art-cover img { width: 100%; border-radius: var(--r); background: var(--band); }
figcaption { font-size: 13.5px; color: var(--mute); margin-top: 9px; line-height: 1.4; }
.yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #000 center / cover no-repeat; cursor: pointer; overflow: hidden; }
.yt::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.25); transition: background .2s; }
.yt:hover::after { background: rgba(0,0,0,.1); }
.yt-play { position: absolute; z-index: 1; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; padding-left: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.yt iframe, .embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
.art-cols { display: grid; grid-template-columns: 56px minmax(0, 720px); gap: 44px; justify-content: start; }
.share-rail { position: sticky; top: 170px; align-self: start; display: flex; flex-direction: column; gap: 10px; }
.sh { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-2); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.sh:hover { color: #fff; border-color: transparent; }
.sh-fb:hover { background: #1877f2; } .sh-tg:hover { background: #229ed9; } .sh-copy:hover { background: var(--ink); color: var(--paper); }
.share-inline { display: none; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; color: var(--mute); }
.share-inline .sh { width: auto; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.prose { font: 400 19px/1.72 var(--serif); color: var(--ink); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.15em; }
.prose p { margin-bottom: 0; }
.prose h2 { font-size: 28px; margin-top: 1.7em; }
.prose h3 { font-size: 22px; margin-top: 1.5em; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 6px 0 6px 26px; border-left: 4px solid var(--accent); font-style: italic; font-size: 22px; line-height: 1.5; }
.prose img { border-radius: var(--r); }
.prose figure { margin-left: 0; margin-right: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose table { width: 100%; border-collapse: collapse; font: 15px/1.4 var(--sans); display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: #000; }
.art-source { margin: 28px 0 0; font: 15px/1.5 var(--sans); color: var(--mute); } .art-source a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.art-foot { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.byline { display: flex; flex-wrap: wrap; gap: 16px 44px; }
.by { display: flex; align-items: center; gap: 12px; }
.by i { display: block; font-style: normal; font-size: 11.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--mute); }
.by b { display: block; font-size: 16px; line-height: 1.25; }
.by em { display: block; font-style: normal; font-size: 13px; color: var(--ink-2); }
.by:hover b { color: var(--brand); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.tags a { display: inline-block; padding: 6px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); background: var(--surface); }
.tags a:hover { border-color: var(--brand); color: var(--brand); }
.gal { margin-top: 40px; }
.gal-h { font-size: 24px; margin-bottom: 16px; }
.gal-h small, .comments h2 small { font: 500 14px var(--sans); color: var(--mute); margin-left: 6px; }
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gal-item { display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--band); cursor: zoom-in; }
.gal-item:first-child { grid-column: span 2; grid-row: span 2; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.05); }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8,9,11,.96); display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; color: #fff; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100vh; height: 100dvh; padding: 56px 0 64px; min-width: 0; }
.lb-fig img { max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; flex: 0 1 auto; border-radius: 2px; }
.lb-fig figcaption { color: #cfd3d8; text-align: center; font-size: 15px; max-width: 760px; padding: 0 12px; min-height: 22px; }
.lb button { background: none; border: 0; color: #fff; cursor: pointer; }
.lb-nav { font-size: 52px; height: 100%; opacity: .7; } .lb-nav:hover { opacity: 1; }
.lb-x { position: absolute; top: 8px; right: 14px; font-size: 40px; line-height: 1; width: 48px; height: 48px; z-index: 2; }
.lb-count { position: absolute; top: 18px; left: 22px; margin: 0; font-size: 14px; color: #aab0b8; font-variant-numeric: tabular-nums; }

/* ---------- коментарі й форми */
.comments { margin-top: 52px; padding-top: 12px; border-top: 3px solid var(--ink); }
.comments h2 { font-size: 26px; margin-bottom: 20px; }
.c-list { list-style: none; margin: 0 0 30px; padding: 0; }
.c-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-head { display: flex; gap: 12px; align-items: baseline; margin: 0 0 4px; }
.c-head time { font-size: 13px; color: var(--mute); }
.c-body { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.c-empty { color: var(--mute); }
.c-form, .form-box form { display: flex; flex-direction: column; gap: 14px; }
.c-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.c-form h3 { font-size: 19px; }
.c-form .btn, .form-box .btn { align-self: flex-start; }
.hp { position: absolute !important; left: -9999px; }
.note { padding: 12px 16px; border-radius: var(--r); font-size: 15px; border: 1px solid; }
.note-ok { background: color-mix(in srgb, #1e8e4e 12%, var(--surface)); border-color: color-mix(in srgb, #1e8e4e 40%, var(--surface)); }
.note-err { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 40%, var(--surface)); }
.page-in { max-width: 780px; padding: 16px 0 20px; }
.page-in h1 { font-size: 42px; margin-bottom: 26px; }
.form-box { margin-top: 30px; }
.form-lead { font-size: 18px; color: var(--ink-2); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-consent { font-size: 13px; color: var(--mute); margin: 0; }
.nf { text-align: center; padding: 50px 24px 10px; }
.nf-code { font: 700 120px/1 var(--serif); color: var(--line); margin: 0; }
.nf h1 { font-size: 34px; margin-bottom: 10px; }
.nf p { color: var(--ink-2); }

/* ---------- підвал */
.ftr { margin-top: 80px; background: var(--dark); color: #aeb4bd; font-size: 14.5px; }
.ftr-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 52px; padding-bottom: 40px; }
.ftr nav { display: flex; flex-direction: column; gap: 9px; }
.ftr a:hover { color: #fff; }
.ftr-h { margin: 0 0 8px; color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.logo-ftr { color: #fff; margin-bottom: 16px; }
.logo-ftr .logo-svg .lg-bub { fill: #fff; } .logo-ftr .logo-svg .lg-ua { fill: #86061d; }
.ftr-brand p { max-width: 380px; }
.ftr-brand .ftr-h { margin-top: 22px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #2c333c; border-radius: 50%; }
.social a:hover { background: #fff; color: var(--dark); }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid #252b33; font-size: 13px; }
.ftr-bottom p { margin: 0; }
.cookie { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; }
.cookie p { margin: 0; } .cookie a { color: var(--brand); text-decoration: underline; }

/* ---------- адаптив */
@media (max-width: 1180px) {
  .top { grid-template-columns: 270px minmax(0, 1fr); }
  .top-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
  .focus-box { margin-bottom: 0; }
  .nav-types a { padding: 8px 9px; font-size: 15px; }
  .op-grid { grid-template-columns: repeat(3, 1fr); row-gap: 30px; } .op:nth-child(4) a { padding-left: 0; border-left: 0; }
  .dos-grid { grid-template-columns: repeat(3, 1fr); } .dos:nth-child(n+4) a { border-top: 1px solid var(--line); } .dos:nth-child(4) a { border-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .burger { display: inline-flex; }
  .nav-types, .hdr-top .hdr-util a:not(.tip-link) { display: none; }
  .hdr-main-in { gap: 10px; min-height: 60px; }
  .logo-svg { height: 28px; }
  .top { grid-template-columns: 1fr; gap: 40px; }
  .top-main { order: -1; }
  .top-feed { position: static; } .feed { max-height: none; }
  .feed-item:nth-child(n+9) { display: none; }
  .hero-title { font-size: 30px; }
  .rub-grid { grid-template-columns: 1fr; gap: 26px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-cols { grid-template-columns: minmax(0, 1fr); }
  .share-rail { display: none; } .share-inline { display: flex; }
  .art-head h1 { font-size: 34px; } .art-lead { font-size: 19px; }
  .list-head h1, .page-in h1 { font-size: 34px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hdr-top { display: none; }
  .rub-nav { gap: 20px; }
  #searchBtn { display: none; }
  .lang { margin-left: 2px; } .lang a { padding: 5px 9px; }
  .logo-word { font-size: 18px; letter-spacing: .1em; }
  main > section { margin-top: 44px; }
  .hero-title { font-size: 26px; } .hero-lead { font-size: 16px; }
  .top-sub { grid-template-columns: 1fr; gap: 18px; }
  .top-sub .card-link { flex-direction: row; gap: 14px; } .top-sub .pic { width: 120px; flex: none; aspect-ratio: 4 / 3 !important; }
  .top-side { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 28px; }
  .band .grid-4 { grid-template-columns: 1fr 1fr; gap: 22px 14px; } .band .grid-4 .card-title { font-size: 16px; }
  .op-grid { grid-template-columns: 1fr; row-gap: 0; }
  .op a, .op:nth-child(4) a { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); } .op:first-child a { border-top: 0; padding-top: 0; }
  .dos-grid { grid-template-columns: 1fr; } .dos a { border-left: 0 !important; border-top: 1px solid var(--line); } .dos:first-child a { border-top: 0; }
  .card-lg .card-title { font-size: 23px; }
  .card-row .pic { width: 112px; } .card-row .card-title { font-size: 16px; }
  .sec-head h2 { font-size: 24px; }
  .art-head h1 { font-size: 28px; } .art-lead { font-size: 18px; }
  .art-cover { margin-left: -16px; margin-right: -16px; } .art-cover img, .yt { border-radius: 0; } .art-cover figcaption { padding: 0 16px; }
  .prose { font-size: 18px; line-height: 1.68; } .prose h2 { font-size: 24px; } .prose blockquote { font-size: 19px; padding-left: 18px; }
  .gal-grid { grid-template-columns: repeat(2, 1fr); }
  .lb { grid-template-columns: 44px 1fr 44px; } .lb-nav { font-size: 38px; }
  .list-head h1, .page-in h1 { font-size: 30px; }
  .f-row label { width: calc(50% - 7px); } .form-2 { grid-template-columns: 1fr; }
  .author-card { flex-direction: column; align-items: flex-start; }
  .ftr-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .cookie { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-more { width: 100%; }
}

/* ---------- зміст досьє, автор колонки над текстом «Думки» */
.toc { margin: 0 0 28px; padding: 18px 22px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r); background: var(--surface); font-family: var(--sans); }
.toc h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--mute); }
.toc ol { margin: 0; padding-left: 20px; }
.toc-long ol { columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--brand); text-decoration: underline; }
.prose h2[id] { scroll-margin-top: 90px; }
.byline-top { margin: 18px 0 4px; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
