/* ==========================================================================
   Світловодськ · шаблон sv2026
   Один файл стилів. Порядок: токени → база → каркас → шапка → блоки →
   новина → службові сторінки → підвал → адаптив.
   ========================================================================== */

/* ---------- Токени ---------- */
:root {
  --red: #CC0000;
  --red-dark: #A30000;
  --red-soft: #FCE8E8;
  --red-text: #CC0000;
  --line-soft: #ECE8E2;
  --line-softer: #F0EDE8;
  --on-ink: #FFFFFF;
  --link-line: rgba(204, 0, 0, .45);
  --ink: #16171A;
  --ink-2: #34302C;
  --muted: #625D57;
  --line: #E5E1DB;
  --line-2: #D6D0C7;
  --bg: #F5F3EF;
  --surface: #FFFFFF;
  --dark: #16171A;
  --ph: #DCD6CD;

  --font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 8px;
  --radius-sm: 4px;
  --wrap: 1280px;
  --gutter: 16px;
  --gap: 24px;
  --shadow: 0 1px 2px rgba(22, 23, 26, .06), 0 8px 24px rgba(22, 23, 26, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 24px; --gap: 28px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; --gap: 32px; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-text); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--ink); color: var(--on-ink); padding: 10px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 8px; color: #fff; }

/* Картинки з плавним збільшенням при наведенні */
.media { position: relative; display: block; overflow: hidden; border-radius: var(--radius-sm); background: var(--ph); }
.media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--poster { aspect-ratio: 210 / 297; }
.media--portrait { aspect-ratio: 3 / 4; }
.card:hover .media img, .media:hover img { transform: scale(1.05); }
.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* Позначки над заголовками */
.label { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1; color: var(--muted); }
.label + .label::before { content: "·"; margin: 0 6px; color: var(--line-2); }
.label--red { color: var(--red-text); }
.label--ink { color: var(--ink); }
.labels { display: flex; flex-wrap: wrap; align-items: center; min-height: 11px; }
.badge { display: inline-block; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; padding: 5px 9px; border-radius: var(--radius-sm); text-transform: uppercase; line-height: 1; }

.meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.meta__views { display: inline-flex; align-items: center; gap: 4px; }
.meta__views svg { width: 15px; height: 15px; }

/* Заголовок блоку */
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--line-2); padding-bottom: 12px; margin-bottom: 20px; }
.block-head h2, .block-head .block-title { text-transform: uppercase; letter-spacing: .02em; }
.block-head h2, .block-head .block-title { font-size: 24px; }
.block-head a.more { font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.block-head a.more:hover { color: var(--red-text); }
@media (min-width: 1200px) { .block-head h2, .block-head .block-title { font-size: 28px; } }

/* Рекламні місця */
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0 auto; }
.ad:empty { display: none; }
.ad-note { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ad img { display: block; }
.ad-strip { margin: 32px 0; text-align: center; overflow: hidden; }
.ad-strip:empty { display: none; margin: 0; }

/* ---------- Службовий рядок ---------- */
.topbar { background: var(--dark); color: #D9D5CF; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; gap: 20px; min-height: 36px; }
.topbar a { color: #D9D5CF; }
.topbar a:hover { color: #fff; }
.topbar__date { white-space: nowrap; }
.topbar__weather a { display: inline-flex; align-items: center; gap: 8px; }
.topbar__weather svg { width: 16px; height: 16px; }
.topbar__spacer { flex: 1; }
.topbar__links { display: none; gap: 20px; }
.topbar__social { display: flex; gap: 4px; }
.topbar__social a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; }
.topbar__social a:hover { background: rgba(255, 255, 255, .1); }
.topbar__social svg { width: 15px; height: 15px; fill: currentColor; }
@media (max-width: 767px) { .topbar__date, .topbar__social { display: none; } }
@media (min-width: 1024px) { .topbar__links { display: flex; } }

/* ---------- Шапка ---------- */
.header { background: var(--surface); position: relative; z-index: 50; }
.header__row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; min-height: 64px; }
.header__left { justify-self: start; display: flex; align-items: center; gap: 12px; }
.header__right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.logo { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; line-height: 1; flex-shrink: 0; }
.logo__name { font-size: 24px; font-weight: 800; letter-spacing: 0; color: var(--red-text); }
.logo__tagline { font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.logo:hover .logo__name { color: var(--red-dark); }
.logo img { display: block; height: 28px; width: auto; }
.header__ad { display: none; justify-content: center; margin: 0; padding-top: 16px; }
.header__ad:empty { display: none !important; }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--bg); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }
.btn-support { height: 44px; padding: 0 18px; border-radius: 22px; background: var(--red); color: #fff; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; transition: background .2s; }
.btn-support:hover { background: var(--red-dark); color: #fff; }
.btn-support svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-support__text { display: none; }
.menu-toggle { border: 0; }
@media (min-width: 768px) { .btn-support__text { display: inline; } }
@media (min-width: 1024px) {
  .header__row { min-height: 120px; gap: 32px; }
  .header__left { gap: 16px; }
  .logo__name { font-size: 42px; }
  .logo__tagline { font-size: 12px; }
  .logo img { height: 56px; }
  .header__ad { display: flex; }
  .menu-toggle { display: none; }
}

/* ---------- Головне меню ---------- */
.nav { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 40; }
.nav__list { display: none; list-style: none; margin: 0; padding: 0; align-items: center; gap: 30px; font-size: 16px; font-weight: 700; }
.nav__item { position: relative; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 16px 0; background: none; border: 0; cursor: pointer; font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .01em; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav__link:hover, .nav__link.is-active { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__item.is-open .nav__link svg { transform: rotate(180deg); }
.nav__spacer { flex: 1; }
.nav__all { font-size: 14px; font-weight: 600; color: var(--muted); }
.nav--mobile-row { display: flex; }
@media (min-width: 1024px) {
  .nav__list { display: flex; }
  .nav--mobile-row { display: none; }
}

/* Випадне меню рубрик */
.mega { position: absolute; left: -24px; top: 100%; min-width: 620px; background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: 20px 24px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility .2s; }
.nav__item:hover > .mega, .nav__item:focus-within > .mega, .nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px 20px; font-size: 15px; font-weight: 600; }
.mega__list a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line-softer); }
.mega__list a.is-active { color: var(--red-text); }
.mega__foot { margin-top: 14px; font-size: 14px; }
.mega__foot a { color: var(--red-text); font-weight: 700; }

/* Мобільне меню (шухляда) */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; overflow: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(22, 23, 26, .5); opacity: 0; transition: opacity .25s; border: 0; width: 100%; cursor: pointer; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); background: var(--surface); overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer__body { padding: 8px 16px 32px; }
.drawer__main { list-style: none; margin: 0; padding: 0; font-size: 18px; font-weight: 700; text-transform: uppercase; }
.drawer__main a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-softer); }
.drawer__title { margin: 20px 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer__cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; font-size: 15px; font-weight: 600; }
.drawer__cats a { display: block; padding: 9px 0; }
.drawer__support { margin-top: 24px; width: 100%; justify-content: center; }
body.no-scroll { overflow: hidden; }

/* Мобільний рядок розділів під шапкою */
.quicknav { overflow-x: auto; scrollbar-width: none; }
.quicknav::-webkit-scrollbar { display: none; }
.quicknav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; font-size: 15px; font-weight: 700; white-space: nowrap; text-transform: uppercase; }
.quicknav a { display: block; padding: 12px 0; }
.quicknav a.is-active { color: var(--red-text); box-shadow: inset 0 -3px 0 var(--red); }

/* ---------- У фокусі ---------- */
.focus { background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.focus .wrap { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.focus__label { flex-shrink: 0; }
.focus__list { list-style: none; margin: 0; padding: 4px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.focus__list::-webkit-scrollbar { display: none; }
.focus__list li { flex-shrink: 0; scroll-snap-align: start; }
.chip { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 18px; font-size: 13px; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.chip:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }

/* ---------- Сітка головної ---------- */
.page { padding: 24px 0 0; }
@media (min-width: 1024px) { .page { padding-top: 36px; } }
.home-top { display: grid; gap: var(--gap); grid-template-areas: "main" "feed" "picks" "pop"; }
.home-picks { grid-area: picks; }
.home-main { grid-area: main; display: grid; gap: var(--gap); min-width: 0; align-content: start; }
.home-feed { grid-area: feed; }
.home-pop { grid-area: pop; }
.home-blogs { grid-area: blogs; min-width: 0; }
.home-blogs .blogs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 1199px) { .home-feed .feed__item:nth-child(n+16) { display: none; } }
@media (min-width: 1200px) {
  .home-top { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); grid-template-areas: "main feed" "picks pop"; align-items: start; }
  .home-feed { align-self: stretch; contain: size; }
  .home-feed .feed__list {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    margin-right: -10px; padding: 0 10px 56px 0;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 72px), transparent);
  }
  .home-feed .feed__list::-webkit-scrollbar { display: none; }

  .home-feed .feed__more { border-top: 0; }
}
.home-feed .feed__more { font-weight: 400; }
.home-lead { display: grid; gap: var(--gap); }
@media (min-width: 768px) {
  .home-lead { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
}

.section { margin-top: 48px; }
@media (min-width: 1024px) { .section { margin-top: 64px; } }

/* Головна новина */
.hero { position: relative; display: block; border-radius: var(--radius); overflow: hidden; color: #fff; background: var(--dark); min-height: 380px; }
.hero:hover { color: #fff; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.hero:hover img { transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, .55) 35%, rgba(10, 10, 10, 0) 65%); pointer-events: none; }
.hero__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.hero__title { font-size: 26px; line-height: 1.18; font-weight: 700; }
.hero .meta { color: #D9D5CF; }
@media (min-width: 768px) {
  .hero { min-height: 0; aspect-ratio: 16 / 9; }
  .hero__body { padding: 32px; }
  .hero__title { font-size: 34px; }
}

/* Стрічка новин */
.feed { background: var(--surface); border-radius: var(--radius); padding: 16px 20px 8px; display: flex; flex-direction: column; min-width: 0; }
.feed .block-head { margin-bottom: 4px; align-items: center; }
.feed .block-head h2 { font-size: 18px; }
.feed__list { list-style: none; margin: 0; padding: 0; }
.feed__item { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.feed__item:last-child { border-bottom: 0; }
.feed__date { flex-shrink: 0; width: 40px; font-size: 13px; font-weight: 400; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.feed__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feed__title { font-size: 15px; line-height: 1.35; font-weight: 400; }
.feed__title.is-bold { font-weight: 700; }
.feed--scroll .feed__list { max-height: 640px; overflow-y: auto; scrollbar-width: thin; }
.feed__more { display: block; text-align: center; padding: 12px 0 8px; font-size: 14px; font-weight: 700; color: var(--red-text); border-top: 1px solid var(--line-soft); }

/* Картки */
.cards { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card__title { font-size: 18px; line-height: 1.3; font-weight: 700; }
.card--sm .card__title { font-size: 16px; }
.card__lead { font-size: 15px; color: var(--muted); }

/* Рядок з мініатюрою */
.row-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.row-item .media { flex-shrink: 0; width: 112px; aspect-ratio: 3 / 2; }
.row-item__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-item__title { font-size: 16px; line-height: 1.3; font-weight: 700; }
.row-item:hover .row-item__title { color: var(--red-text); }

/* Бічна колонка */
.sidebar { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.sidebar .ad { width: 100%; }
.sidebar .bus-w { max-width: none; margin: 0; }
.sidebar__sticky { position: sticky; top: 72px; display: flex; flex-direction: column; gap: var(--gap); }
.panel { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; }
.panel .block-head { margin-bottom: 4px; }
.panel .block-head h2 { font-size: 18px; }

/* Читають */
.popular { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.popular__item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); counter-increment: pop; }
.popular__item:last-child { border-bottom: 0; }
.popular__item::before { content: counter(pop); font-size: 28px; font-weight: 800; line-height: 1; color: var(--red-text); width: 22px; flex-shrink: 0; }
.popular__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.popular__title { font-size: 15px; line-height: 1.35; font-weight: 600; }

/* Вкладки «Останні / Читають» у бічній колонці */
.tabs__bar { display: flex; gap: 20px; border-bottom: 2px solid var(--line-2); margin-bottom: 4px; }
.tabs__btn { background: none; border: 0; padding: 0 0 10px; font-size: 16px; font-weight: 700; color: var(--muted); cursor: pointer; position: relative; text-transform: uppercase; letter-spacing: .02em; }
.tabs__btn[aria-selected="true"] { color: var(--ink); }
.tabs__btn[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--red); }
.tabs__panel[hidden] { display: none; }

/* Вибір редакції */

.picks .block-head { border-color: rgba(255, 255, 255, .25); }
.picks .block-head a.more { color: #BDB6AB; }
.picks .label { color: #F0A9A6; }
.picks .card:hover { color: #fff; }
.picks .media { background: #3A3531; }


/* Алея Слави */
.alley__lead { margin: -8px 0 20px; font-size: 15px; color: var(--muted); max-width: 720px; }
.alley__viewport { overflow: hidden; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.alley__track { display: flex; gap: 20px; width: max-content; animation: alley 90s linear infinite; }
.alley__viewport:hover .alley__track, .alley__viewport:focus-within .alley__track { animation-play-state: paused; }
@keyframes alley { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-card { width: 150px; display: flex; flex-direction: column; gap: 8px; }
.hero-card .media { border-radius: var(--radius-sm); }
.hero-card .media img { filter: grayscale(.15); }
.hero-card .media::after { content: ""; position: absolute; top: 0; right: 12px; width: 9px; height: 30px; background: var(--ink); }
.hero-card__name { font-size: 15px; font-weight: 700; line-height: 1.25; }
.hero-card__year { font-size: 13px; color: var(--muted); }
@media (min-width: 768px) { .hero-card { width: 176px; } }
@media (prefers-reduced-motion: reduce) {
  .alley__track { animation: none; }
  .alley__viewport { overflow-x: auto; }
}

/* Блоки розділів на головній */
.sections { display: grid; gap: 48px var(--gap); }
@media (min-width: 900px) { .sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sec-lead { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.sec-lead .card__title { font-size: 22px; line-height: 1.25; font-weight: 800; }

/* Блоги */
.blogs { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .blogs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .blogs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.blog-card { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 16px; transition: box-shadow .2s; }
.blog-card:hover { box-shadow: var(--shadow); color: var(--ink); }
.blog-card__photo { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--ph); }
.blog-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.blog-card__author { font-size: 13px; font-weight: 700; color: var(--red-text); }
.blog-card__title { font-size: 16px; line-height: 1.3; font-weight: 700; }
.blog-card:hover .blog-card__title { text-decoration: underline; text-underline-offset: 3px; }

/* Афіша */
.posters { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .posters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.posters .card__title { font-size: 16px; }

/* Підтримка */
.support { background: var(--red); color: #fff; border-radius: 12px; padding: 28px 20px; display: grid; gap: 20px; align-items: center; }
.support h2 { font-size: 26px; line-height: 1.15; }
.support p { margin: 8px 0 0; color: #FBE3E2; font-size: 16px; max-width: 640px; }
.support__actions { display: flex; flex-direction: column; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 28px; border-radius: 25px; font-weight: 800; font-size: 16px; transition: background .2s, color .2s; }
.btn--white { background: #fff; color: #16171A; }
.btn--white:hover { background: #F5F3EF; color: #16171A; }
.btn--outline { border: 2px solid #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--red-text); }
@media (min-width: 900px) {
  .support { grid-template-columns: minmax(0, 1fr) auto; padding: 48px; }
  .support h2 { font-size: 34px; }
}

/* ---------- Сторінка розділу / пошуку ---------- */
.layout { display: grid; gap: var(--gap); }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; } }
.content-col { min-width: 0; }
.speedbar { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.speedbar a { color: var(--muted); }
.speedbar a:hover { color: var(--red-text); }
.show-news > h1, .page-title, .blog-authinfo h1 { font-size: 30px; margin: 0 0 20px; }
@media (min-width: 768px) { .show-news > h1, .page-title, .blog-authinfo h1 { font-size: 38px; } }
.blog-authinfo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 24px; }
.blog-authinfo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.blog-authinfo + i, .show-news > i, .blog-authinfo i { display: block; color: var(--muted); font-style: normal; margin: -12px 0 20px; }
.blog-profile-card { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; }
.blog-profile-socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.blog-social-btn { display: inline-block; padding: 7px 13px; border: 1px solid var(--line); border-radius: 18px; font-size: 13px; font-weight: 600; }
.regblog { margin: 24px 0; font-weight: 700; }
.regblog a { color: var(--red-text); }

.list { display: flex; flex-direction: column; }
.list-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); align-items: start; }
.list-item:first-child { border-top: 0; padding-top: 0; }
.list-item__title { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 4px 0 6px; }
.list-item:hover .list-item__title { color: var(--red-text); }
.list-item__lead { font-size: 15px; color: var(--muted); margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 768px) {
  .list-item { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .list-item__title { font-size: 21px; }
}

/* Пагінація (DLE і BlockPro) */
.navigation, .pagination, .bp-pager, .basenavi { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0; font-weight: 700; }
.navigation a, .navigation span, .pagination a, .pagination span, .basenavi a, .basenavi span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.navigation span, .pagination span.current, .basenavi .navigation span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.navigation a:hover, .pagination a:hover, .basenavi a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- Повна новина ---------- */
.article { background: var(--surface); border-radius: var(--radius); padding: 20px; }
@media (min-width: 768px) { .article { padding: 36px 48px 40px; } }
.article__cat { margin-bottom: 12px; }
.article__cat a { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); }
.article__title { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: 0; margin: 8px 0 16px; }
@media (min-width: 768px) { .article__title { font-size: 40px; } }
@media (min-width: 1200px) { .article__title { font-size: 44px; } }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.article__author { font-weight: 700; color: var(--ink); }
.article__edit a { color: var(--red-text); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.share__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.share__btn:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.share__btn svg { width: 17px; height: 17px; fill: currentColor; }
.share__btn.is-copied { background: var(--red); border-color: var(--red-text); color: #fff; }

.article__lead { font-size: 20px; line-height: 1.5; font-weight: 600; margin-bottom: 24px; }
.article__lead img, .article__lead .highslide img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); margin: 0 0 20px; }
.article__lead p:last-child { margin-bottom: 0; }

/* Текст матеріалу */
.prose { font-size: 19px; line-height: 1.55; overflow-wrap: break-word; }
.prose > * { max-width: 100%; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose a, .article__lead a, .static-text a { color: inherit; text-decoration: none; box-shadow: inset 0 -2px var(--link-line); transition: color .15s, box-shadow .15s; }
.prose a:hover, .article__lead a:hover, .static-text a:hover { color: var(--red-text); box-shadow: inset 0 -2px var(--red-text); }
.prose img { display: block; border-radius: var(--radius-sm); margin: 1.2em auto; }
.prose img[style*="float"], .prose img[align] { margin: .3em 0 1em; }
.prose blockquote, .prose .quote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); font-size: 20px; font-weight: 600; line-height: 1.5; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-sm); margin: 1.2em 0; }
.prose .highslide { display: block; }
@media (max-width: 767px) { .prose { font-size: 18px; } }

/* Міні-галерея всередині тексту (збирається скриптом) */
.inline-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 1.4em 0; }
.inline-gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inline-gallery a, .inline-gallery > img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm); }
.inline-gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0; transition: transform .5s var(--ease); cursor: zoom-in; }
.inline-gallery a:hover img, .inline-gallery > img:hover { transform: scale(1.04); }
@media (max-width: 559px) { .inline-gallery--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Галерея під текстом (поле gallery) */
.gallery { margin: 28px 0; }
.gallery__stage { position: relative; }
.gallery__track { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-sm); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track > * { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 3 / 2; background: var(--dark); display: flex; align-items: center; justify-content: center; }
.gallery__track img { width: 100%; height: 100%; object-fit: contain; margin: 0; border-radius: 0; cursor: zoom-in; }
.gallery__btn { color: #16171A; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow); }
.gallery__btn svg { width: 20px; height: 20px; }
.gallery__btn--prev { left: 12px; }
.gallery__btn--next { right: 12px; }
.gallery__count { margin-top: 8px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* Перегляд фото на весь екран */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10, 10, 10, .95); display: none; align-items: center; justify-content: center; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; }
.lightbox__close, .lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .24); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox svg { width: 22px; height: 22px; }
.lightbox__count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #BDB6AB; font-size: 14px; }

/* Реклама всередині тексту */
.ad-intext { margin: 1.6em 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }

/* Підвал матеріалу */
.article__credits { margin-top: 28px; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.article__credits a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.notice { margin: 20px 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); font-size: 14px; color: var(--ink-2); }
.notice--warn { background: #FFF1F0; color: #7A1010; font-weight: 600; text-align: center; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; font-size: 13px; }
.tags__label { font-weight: 700; color: var(--muted); margin-right: 4px; }
.tags a { display: inline-block; padding: 6px 12px; border-radius: 16px; background: var(--bg); font-weight: 600; }
.tags a:hover { background: var(--ink); color: var(--on-ink); }
.article__tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.google-src { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 24px; font-size: 14px; font-weight: 600; background: var(--surface); }
.google-src:hover { border-color: var(--ink); color: var(--ink); }
.google-src svg { width: 20px; height: 20px; flex-shrink: 0; }
.google-src strong { color: var(--red-text); }
.print-link { font-size: 13px; color: var(--muted); }
.support-inline { margin-top: 28px; background: var(--red-soft); border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.support-inline p { margin: 0; font-weight: 700; font-size: 17px; max-width: 460px; }
.support-inline .btn { height: 46px; background: var(--red); color: #fff; }
.support-inline .btn:hover { background: var(--red-dark); color: #fff; }
.after-article { margin-top: 48px; display: flex; flex-direction: column; gap: 48px; }

/* Старі модулі DLE всередині тексту */
.storenumber { margin: 24px 0; }
.ratebox2 ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; align-items: center; }

/* Короткі новини DLE (пошук, теги, архів) */
.story { background: var(--surface); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.story__title { font-size: 21px; line-height: 1.3; }
.story__title a:hover { color: var(--red-text); }
.story__cat a { color: var(--red-text); font-weight: 700; }
.story__short { font-size: 15px; color: var(--ink-2); overflow: hidden; }
.story__short img { max-width: 240px; float: left; margin: 4px 16px 8px 0; border-radius: var(--radius-sm); }
@media (max-width: 559px) { .story__short img { float: none; max-width: 100%; margin: 0 0 10px; } }

/* ---------- Статична сторінка ---------- */
.static { background: var(--surface); border-radius: var(--radius); padding: 20px; }
@media (min-width: 768px) { .static { padding: 36px 48px 40px; } }
.static-title h1 { font-size: 30px; margin-bottom: 20px; }
@media (min-width: 768px) { .static-title h1 { font-size: 38px; } }

/* Повідомлення DLE ({info}) */
.berrors { background: var(--surface); border-left: 4px solid var(--red); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; }

/* ---------- Партнери ---------- */
.partners { margin-top: 64px; padding: 32px 0; border-top: 1px solid var(--line); }
.partners__grid { display: grid; gap: 24px; align-items: center; }
.partners__title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; font-weight: 700; }
.partners__grant { display: flex; gap: 16px; align-items: center; font-size: 13px; color: var(--muted); max-width: 720px; }
.partners__grant img { width: 96px; height: auto; flex-shrink: 0; }
@media (min-width: 1024px) { .partners__grid { grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 40px; } }

/* ---------- Підвал ---------- */
.footer { background: var(--dark); color: #BDB6AB; margin-top: 0; font-size: 14px; }
.footer a { color: #D9D5CF; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; gap: 32px; padding: 48px 0 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.footer__logo { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: 0; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__head { color: #fff; font-weight: 700; margin-bottom: 2px; }
.footer__legal { border-top: 1px solid #34302C; padding: 20px 0 32px; font-size: 12px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px; }
.footer__legal p { margin: 0; }
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
  .footer__brand { grid-column: auto; }
}

/* Кнопка «Вгору» */
.to-top { color: var(--on-ink) !important; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--on-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .25s, visibility .25s; box-shadow: var(--shadow); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Пошук (Google по сайту) ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 250; background: rgba(22, 23, 26, .92); display: none; align-items: flex-start; justify-content: center; padding: 18vh 16px 0; }
.search-overlay.is-open { display: flex; }
.search-box { width: 100%; max-width: 720px; display: flex; gap: 8px; }
.search-box input { flex: 1; min-width: 0; height: 56px; border: 0; border-radius: 28px; padding: 0 24px; font: inherit; font-size: 18px; }
.search-box button { height: 56px; padding: 0 28px; border: 0; border-radius: 28px; background: var(--red); color: #fff; font-weight: 800; cursor: pointer; }
.search-box button:hover { background: var(--red-dark); }
.search-close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search-close svg { width: 22px; height: 22px; }

/* Некролог: стриманий режим сторінки */
body.obituary .hero, body.obituary .article { filter: grayscale(.2); }


/* ---------- Темна тема ---------- */
:root[data-theme="dark"] {
  --red-text: #FF6B66;
  --red-soft: #3A1D1D;
  --ink: #ECE9E4;
  --ink-2: #D3CFC9;
  --muted: #A7A29B;
  --line: #34363B;
  --line-2: #47494F;
  --line-soft: #2A2C30;
  --line-softer: #26282C;
  --bg: #121314;
  --surface: #1C1D20;
  --dark: #0A0A0B;
  --ph: #2B2D31;
  --on-ink: #16171A;
  --link-line: rgba(255, 107, 102, .5);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
:root[data-theme="dark"] .notice--warn { background: #3A1D1D; color: #FFD9D6; }
:root[data-theme="dark"] .hero-card .media img, :root[data-theme="dark"] .media img { filter: brightness(.92); }
:root[data-theme="dark"] .bus-w { filter: invert(.92) hue-rotate(180deg); }

/* Перемикач день/ніч */
.theme-switch { position: relative; flex-shrink: 0; width: 56px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; }
.theme-switch::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 28px; border-radius: 14px; background: var(--line); transition: background .25s; }
.theme-switch__knob { position: relative; margin-left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); display: flex; align-items: center; justify-content: center; transition: transform .25s var(--ease); }
.theme-switch__knob svg { width: 14px; height: 14px; }
.theme-switch .i-moon { display: none; }
.theme-switch:hover::before { background: var(--line-2); }
:root[data-theme="dark"] .theme-switch__knob { transform: translateX(28px); }
:root[data-theme="dark"] .theme-switch .i-sun { display: none; }
:root[data-theme="dark"] .theme-switch .i-moon { display: block; }
.header__sep { display: none; width: 1px; height: 28px; background: var(--line); }
.header__left .theme-switch { display: none; }
.drawer__theme { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; }
@media (min-width: 560px) { .header__left .theme-switch { display: inline-flex; } }
@media (max-width: 399px) { .header__left [data-search-open] { display: none; } .logo__name { font-size: 21px; } }
@media (min-width: 1024px) { .header__sep { display: block; } }
@media (prefers-reduced-motion: reduce) { .theme-switch__knob, .theme-switch::before { transition: none; } }


/* Іконки типу матеріалу після заголовка */
.ticons { display: inline; margin-left: 6px; white-space: nowrap; }
.ticons:empty { display: none; }
.ti { display: inline-block; vertical-align: 0; margin-left: 4px; color: var(--muted); line-height: 0; }
.ticons .ti:first-child { margin-left: 0; }
.feed .ti { color: var(--red-text); }
.ti svg { width: 0.75em; height: 0.75em; }
.hero .ti svg { width: 0.6em; height: 0.6em; }
.ti--red { color: var(--red-text); }
.hero .ti { color: #FF5A52; }
.picks .ti { color: rgba(255, 255, 255, .85); }
.article__title .ticons { margin-left: 10px; }
.article__title .ti { margin-left: 8px; }
.article__title .ti svg { width: 0.7em; height: 0.7em; }


/* Горталка топ-новин */
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.hero-slider { cursor: grab; touch-action: pan-y; user-select: none; }
.hero-slider.is-dragging { cursor: grabbing; }
.hero-slider__track { display: flex; will-change: transform; transition: transform .7s var(--ease); }
.hero-slider__track.no-anim, .hero-slider__track.no-anim .hero__body { transition: none !important; }
.hero-slider__track > .hero { flex: 0 0 100%; border-radius: 0; }
.hero-slider .hero img { -webkit-user-drag: none; }
.hero-slider .hero__body { opacity: 0; transform: translateY(40px); transition: opacity .45s ease, transform .6s var(--ease); }
.hero-slider .hero.is-active .hero__body { opacity: 1; transform: none; transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .hero-slider__track, .hero-slider .hero__body { transition: none; } }
.hero-slider__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; background: none; color: rgba(235, 232, 227, .55); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .2s, color .2s; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.hero-slider__btn svg { width: 28px; height: 28px; }
.hero-slider__btn--prev { left: 8px; }
.hero-slider__btn--next { right: 8px; }
.hero-slider:hover .hero-slider__btn, .hero-slider__btn:focus-visible { opacity: 1; }
.hero-slider__btn:hover { color: rgba(255, 255, 255, .9); }
.hero-slider__dots { position: absolute; top: 16px; right: 16px; z-index: 2; display: flex; gap: 6px; }
.hero-slider__dot { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgba(255, 255, 255, .45); cursor: pointer; position: relative; }
.hero-slider__dot::before { content: ""; position: absolute; inset: -12px -2px; }
.hero-slider__dot[aria-current="true"] { background: #fff; }
@media (hover: none) { .hero-slider__btn { display: none; } }

/* Друк */
@media print {
  .topbar, .header, .nav, .focus, .sidebar, .footer, .share, .support-inline, .after-article, .to-top, .ad, .ad-strip { display: none !important; }
  body { background: #fff; }
  .article { padding: 0; }
}

/* RSS у стрічці */
.rss-link { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; color: #F26522; align-self: center; margin-right: -4px; }
.rss-link svg { width: 18px; height: 18px; fill: currentColor; }
.rss-link:hover { color: var(--red-text); }

/* Лід у топ-новині — з'являється при наведенні */
.hero__lead { display: grid; grid-template-rows: 0fr; opacity: 0; margin-top: -12px; font-size: 17px; line-height: 1.45; color: #E8E4DE; text-shadow: 0 1px 2px rgba(0, 0, 0, .5); transition: grid-template-rows .45s var(--ease), opacity .35s ease, margin-top .45s var(--ease); }
.hero__lead > span { overflow: hidden; min-height: 0; max-width: 820px; }
@media (hover: hover) and (min-width: 768px) {
  .hero:hover .hero__lead, .hero:focus-visible .hero__lead { grid-template-rows: 1fr; opacity: 1; margin-top: 0; }
}
@media (max-width: 767px) { .hero__lead { display: none; } }

/* Додаткові топи: тінь під фото при наведенні */
.home-main .card .media { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.home-main .card:hover .media { box-shadow: 0 14px 28px -10px rgba(20, 16, 12, .45), 0 4px 10px -4px rgba(20, 16, 12, .25); transform: translateY(-3px); }
:root[data-theme="dark"] .home-main .card:hover .media { box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .85), 0 4px 10px -4px rgba(0, 0, 0, .6); }

.home-main .card .ti { color: var(--red-text); }

/* Пошук у шапці — розміром як перемикач теми */
.header__left .icon-btn { width: 28px; height: 28px; }
.header__left .icon-btn svg { width: 15px; height: 15px; }

/* Алея Слави — темна підкладка на всю ширину сторінки */
html { overflow-x: hidden; }
body { overflow-x: clip; }
.alley--dark { position: relative; isolation: isolate; color: #F2EFEA; padding: 48px 0 56px; }
.alley--dark::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: calc(100vw - var(--sbw, 0px)); margin-left: calc((100vw - var(--sbw, 0px)) / -2); background: linear-gradient(90deg, #000000 0%, #333333 100%); }
.alley--dark .block-head { border-color: rgba(255, 255, 255, .22); }
.alley--dark .block-head h2 { color: #fff; }
.alley--dark .block-head a.more { color: #BDB6AB; }
.alley--dark .block-head a.more:hover { color: #fff; }
.alley--dark .alley__lead { color: #BDB6AB; }
.alley--dark .hero-card, .alley--dark .hero-card:hover { color: #F2EFEA; }
.alley--dark .hero-card .media { background: #222; }
.alley--dark .hero-card .media img { filter: grayscale(1); transition: filter .5s ease, transform .6s var(--ease); }
.alley--dark .hero-card:hover .media img, .alley--dark .hero-card:focus-visible .media img { filter: grayscale(0); }
.alley--dark .hero-card .media::after { background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); }
@media (min-width: 1024px) { .alley--dark { padding: 64px 0 72px; } }

/* Рубрики в топах */
.badge--cat { background: rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); margin-left: 6px; }
.hero .labels { gap: 6px 0; }
.card__cats { position: absolute; z-index: 1; bottom: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.card__cats:empty { display: none; }
.card__cat { background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius-sm); line-height: 1.3; }

/* Мобільна кнопка «Підтримати» — сердечко в колі */
@media (max-width: 767px) {
  .header__right .btn-support { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .header__right .btn-support svg { width: 20px; height: 20px; }
}

/* Карусель Алеї Слави — від краю до краю браузера */
.alley--dark .alley__viewport { margin-left: calc(50% - (100vw - var(--sbw, 0px)) / 2); margin-right: calc(50% - (100vw - var(--sbw, 0px)) / 2); padding: 0; }

/* Алея Слави: без жалобних стрічок, лічильник, перетягування */
.hero-card .media::after, .alley--dark .hero-card .media::after { display: none; }
.alley__count { font-size: 15px; color: #BDB6AB; white-space: nowrap; }
.alley__count b { color: #fff; font-size: 22px; font-weight: 800; margin-left: 4px; }
.alley__track.is-js { animation: none; will-change: transform; }
.alley__viewport { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.alley__viewport img { -webkit-user-drag: none; }
@media (prefers-reduced-motion: reduce) { .alley__viewport { overflow: hidden; } }

/* Вибір редактора — червоний градієнт, горталка по 2 матеріали */
.picks { background: linear-gradient(135deg, #CC0000 0%, #990000 100%); color: #fff; border-radius: var(--radius); padding: 20px; min-width: 0; }
.picks a, .picks a:hover { color: #fff; }
.picks__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid rgba(255, 255, 255, .28); }
.picks__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.picks__head h2 svg { width: 20px; height: 20px; fill: none; stroke: #fff; }
.picks__nav { display: flex; align-items: center; gap: 6px; }
.picks__btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, opacity .2s; }
.picks__btn svg { width: 16px; height: 16px; }
.picks__btn:hover { background: rgba(255, 255, 255, .15); }
.picks__btn[disabled] { opacity: .35; cursor: default; background: none; }
.picks__foot { display: flex; justify-content: flex-end; margin-top: 16px; }
.picks__more { font-size: 14px; font-weight: 600; opacity: .85; }
.picks__more:hover { opacity: 1; }
.picks__track { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; user-select: none; -webkit-user-select: none; }
.picks__track::-webkit-scrollbar { display: none; }
.picks__track.is-dragging { scroll-snap-type: none; }
.picks__track img { -webkit-user-drag: none; }
@media (min-width: 768px) { .picks__track { grid-auto-columns: calc((100% - 20px) / 2); } }
.picks__card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.picks__title { font-size: 20px; line-height: 1.25; font-weight: 700; }
.picks__cat { margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.picks__cat:empty { display: none; }
.picks__meta, .picks .meta { color: rgba(255, 255, 255, .72); }
.picks .media { background: rgba(0, 0, 0, .2); }
.picks .media img { transition: transform .6s var(--ease); }
.picks__card:hover .media img { transform: scale(1.05); }
.picks__card:hover .picks__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 1024px) { .picks { padding: 24px 28px; } }

.picks-side { display: flex; flex-direction: column; gap: var(--gap); }
.follow { background: var(--surface); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.follow__title { margin: 0 0 8px; font-weight: 700; font-size: 17px; line-height: 1.3; }
.follow__link { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-weight: 600; }
.follow__link::after { content: "→"; color: var(--muted); transition: transform .2s, color .2s; }
.follow__link:last-child { border-bottom: 0; }
.follow__link:hover { color: var(--red-text); }
.follow__link:hover::after { color: var(--red-text); transform: translateX(3px); }

/* Блоги — смуга на всю ширину, горталка */
.blogs-band { position: relative; isolation: isolate; margin-top: 48px; padding: 40px 0 44px; }
.blogs-band::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: calc(100vw - var(--sbw, 0px)); margin-left: calc((100vw - var(--sbw, 0px)) / -2); background: var(--band, #EFEBE6); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
:root[data-theme="dark"] .blogs-band::before { background: #1A1917; }
@media (min-width: 1024px) { .blogs-band { margin-top: 64px; padding: 48px 0 52px; } }
.car-nav { display: flex; align-items: center; gap: 6px; }
.car-btn { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, opacity .2s; }
.car-btn svg { width: 16px; height: 16px; }
.car-btn:hover { background: var(--bg); }
.car-btn[disabled] { opacity: .35; cursor: default; }
.car-nav .more { margin-left: 8px; }
.blogs-track { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; user-select: none; -webkit-user-select: none; padding: 4px 0 12px; }
.blogs-track::-webkit-scrollbar { display: none; }
.blogs-track.is-dragging { scroll-snap-type: none; }
.blogs-track img { -webkit-user-drag: none; }
@media (min-width: 560px) { .blogs-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (min-width: 900px) { .blogs-track { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (min-width: 1200px) { .blogs-track { grid-auto-columns: calc((100% - 60px) / 4); } }
.blogs-track .blog-card { scroll-snap-align: start; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 20px 20px; }
.blogs-track .blog-card__photo { width: 112px; height: 112px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); margin-bottom: 4px; }
.blogs-track .blog-card__title { font-size: 17px; }
.blogs-track .meta { justify-content: center; margin-top: auto; }

/* «Вибір редактора» і «Читають зараз» — однакові за висотою */
@media (min-width: 1200px) {
  .home-picks, .home-pop { align-self: stretch; }
  .home-pop > .panel { flex: 1; }
}
/* Під блогами: рубрики ліворуч, права колонка (автобуси, соцмережі, реклама) */
.home-lower { display: grid; gap: var(--gap); }
@media (min-width: 1200px) { .home-lower { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: start; } }

/* Вибір редактора: тінь під фото при наведенні */
.picks .media { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.picks__card:hover .media { box-shadow: 0 16px 30px -10px rgba(40, 0, 0, .65), 0 4px 10px -4px rgba(40, 0, 0, .45); transform: translateY(-3px); }
.picks__track { padding-top: 4px; padding-bottom: 14px; margin-bottom: -14px; }

/* Горталки — контейнери для прихованих (absolute) елементів, щоб нічого не вилазило за межі сторінки */
.picks__track, .blogs-track, .alley__viewport, .hero-slider, .feed__list, .focus__list, .quicknav { position: relative; }

/* Блоги: м'який дзеркальний градієнт, заголовок по центру, «Усі блоги» внизу праворуч */
.blogs-band::before { background: linear-gradient(to bottom, var(--bg) 0%, #E6E0D8 50%, var(--bg) 100%) !important; border: 0 !important; }
:root[data-theme="dark"] .blogs-band::before { background: linear-gradient(to bottom, var(--bg) 0%, #22201D 50%, var(--bg) 100%) !important; }
.blogs-band__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 24px; }
.blogs-band__head h2 { grid-column: 2; margin: 0; text-align: center; text-transform: uppercase; letter-spacing: .02em; font-size: 24px; }
@media (min-width: 1200px) { .blogs-band__head h2 { font-size: 28px; } }
.blogs-band__head .car-nav { grid-column: 3; justify-self: end; }
.blogs-band__foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.blogs-band__foot .more { font-size: 14px; font-weight: 600; color: var(--muted); }
.blogs-band__foot .more:hover { color: var(--red-text); }
/* портрет: легке збільшення з поворотом і кольорове кільце */
.blogs-track .blog-card__photo { overflow: visible; background: none; transition: box-shadow .35s var(--ease); }
.blogs-track .blog-card__photo img { border-radius: 50%; transition: transform .45s var(--ease); }
.blogs-track .blog-card:hover .blog-card__photo { box-shadow: 0 0 0 5px var(--surface), 0 0 0 9px var(--red-soft, #F6DCDA); }
.blogs-track .blog-card:hover .blog-card__photo img { transform: scale(1.07) rotate(-6deg); }
.blogs-track .blog-card { overflow: hidden; }

/* Вибір редактора: лід */
.picks__lead { font-size: 15px; line-height: 1.45; color: rgba(255, 255, 255, .85); }

/* Топ-горталка: висоту задає сама горталка (Safari інакше «губить» слайд після зміни ширини вікна) */
@media (min-width: 768px) {
  .hero-slider { aspect-ratio: 16 / 9; }
  .hero-slider__track { height: 100%; align-items: stretch; }
  .hero-slider__track > .hero { aspect-ratio: auto; height: 100%; min-height: 0; }
}

/* Блоги: темніший градієнт, посилання внизу, підйом картки з тінню */
.blogs-band::before { background: linear-gradient(to bottom, var(--bg) 0%, #D8CEC1 50%, var(--bg) 100%) !important; }
:root[data-theme="dark"] .blogs-band::before { background: linear-gradient(to bottom, var(--bg) 0%, #2C2824 50%, var(--bg) 100%) !important; }
.blogs-band__head h2 a { color: inherit; }
.blogs-band__head h2 a:hover { color: var(--red-text); }
.blogs-band__foot { justify-content: space-between; }
.blogs-track { padding: 12px 28px 44px; margin: -12px -28px 0; scroll-padding-inline: 28px; }
.blogs-track .blog-card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.blogs-track .blog-card:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -14px rgba(40, 30, 20, .35), 0 6px 14px -6px rgba(40, 30, 20, .18); }
:root[data-theme="dark"] .blogs-track .blog-card:hover { box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .8), 0 6px 14px -6px rgba(0, 0, 0, .5); }
.blogs-track .blog-card:hover .blog-card__photo img { transform: scale(1.16) rotate(-6deg); }

/* «Читають зараз»: 5 записів рівномірно на всю висоту панелі */
@media (min-width: 1200px) {
  .home-pop > .panel { display: flex; flex-direction: column; }
  .home-pop .popular { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
  .home-pop .popular__item { flex: 1; align-items: center; }
}

/* Менші відступи навколо смуги «Блоги» */
.blogs-band { margin-top: 20px; padding: 28px 0 24px; }
@media (min-width: 1024px) { .blogs-band { margin-top: 28px; padding: 36px 0 28px; } }
.blogs-band__foot { position: relative; z-index: 1; margin-top: -20px; }
.blogs-band + .home-lower { margin-top: 20px; }
@media (min-width: 1024px) { .blogs-band + .home-lower { margin-top: 28px; } }

/* Горталки: неповні картки біля країв приховані */
.blogs-track > *, .picks__track > * { transition: opacity .3s ease, transform .35s var(--ease), box-shadow .35s var(--ease); }
.blogs-track > .is-out, .picks__track > .is-out { opacity: 0; }

/* Блоги: біла підкладка картки починається з середини портрета */
.blogs-track .blog-card { position: relative; isolation: isolate; overflow: visible; background: none; padding-top: 0; box-shadow: none !important; }
.blogs-track .blog-card::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 56px; bottom: 0; background: var(--surface); border-radius: var(--radius); transition: box-shadow .35s var(--ease); }
.blogs-track .blog-card:hover::before { box-shadow: 0 22px 40px -14px rgba(40, 30, 20, .35), 0 6px 14px -6px rgba(40, 30, 20, .18); }
:root[data-theme="dark"] .blogs-track .blog-card:hover::before { box-shadow: 0 22px 40px -14px rgba(0, 0, 0, .8), 0 6px 14px -6px rgba(0, 0, 0, .5); }
.blogs-track .blog-card__photo { box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.blogs-track .blog-card:hover .blog-card__title { text-decoration: none; color: var(--red-text); }
.blogs-track .blog-card__title { transition: color .2s; }
.blogs-track { padding-top: 22px; margin-top: -22px; }

/* Блоги: кольорова обводка портрета при наведенні, градієнтна картка */
.blogs-track .blog-card__photo { transition: box-shadow .35s var(--ease); }
.blogs-track .blog-card:hover .blog-card__photo { box-shadow: 0 0 0 4px #B59E84, 0 0 0 5px #9C8468; }
.blogs-track .blog-card::before { background: linear-gradient(to bottom, #FFFFFF 0%, #F5F5F5 100%); }
:root[data-theme="dark"] .blogs-track .blog-card::before { background: linear-gradient(to bottom, #2A2927 0%, #1E1D1B 100%); }
:root[data-theme="dark"] .blogs-track .blog-card:hover .blog-card__photo { box-shadow: 0 0 0 4px #8C7760, 0 0 0 5px #6E5C48; }

/* Блоги: постійна обводка портрета + легка тінь при наведенні */
.blogs-track .blog-card__photo { box-shadow: 0 0 0 4px #FFFFFF, 0 0 0 5px #CFC4B6; }
.blogs-track .blog-card:hover .blog-card__photo { box-shadow: 0 0 0 4px #B59E84, 0 0 0 5px #9C8468, 0 14px 22px -6px rgba(60, 40, 20, .4); }
:root[data-theme="dark"] .blogs-track .blog-card__photo { box-shadow: 0 0 0 4px #2A2927, 0 0 0 5px #4A4540; }
:root[data-theme="dark"] .blogs-track .blog-card:hover .blog-card__photo { box-shadow: 0 0 0 4px #8C7760, 0 0 0 5px #6E5C48, 0 14px 22px -6px rgba(0, 0, 0, .7); }

/* Портрет збільшується разом з обводкою (раніше фото перекривало кільце) */
.blogs-track .blog-card__photo { transition: box-shadow .35s var(--ease), transform .45s var(--ease); }
.blogs-track .blog-card:hover .blog-card__photo img { transform: none; }
.blogs-track .blog-card:hover .blog-card__photo { transform: scale(1.14) rotate(-5deg); }

/* Блоги: стрілки обабіч назви, посилання внизу по центру з крапкою */
.blogs-band__head { display: flex; justify-content: center; align-items: center; gap: 20px; }
.blogs-band__head h2 { grid-column: auto; }
.blogs-band__foot { justify-content: center; align-items: center; gap: 14px; }
.blogs-band__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .7; }

/* Блоги: обводка портрета без тонкої лінії; стрілки — лише шеврони */
.blogs-track .blog-card__photo { box-shadow: 0 0 0 4px #FFFFFF; }
.blogs-track .blog-card:hover .blog-card__photo { box-shadow: 0 0 0 4px #B59E84, 0 14px 22px -6px rgba(60, 40, 20, .4); }
:root[data-theme="dark"] .blogs-track .blog-card__photo { box-shadow: 0 0 0 4px #2A2927; }
:root[data-theme="dark"] .blogs-track .blog-card:hover .blog-card__photo { box-shadow: 0 0 0 4px #8C7760, 0 14px 22px -6px rgba(0, 0, 0, .7); }
.blogs-band__head .car-btn { background: none; border: 0; width: 36px; height: 36px; color: var(--ink); }
.blogs-band__head .car-btn svg { width: 26px; height: 26px; }
.blogs-band__head .car-btn:hover { background: none; color: var(--red-text); }
.blogs-band__head .car-btn[disabled] { opacity: .25; }
.blogs-band + .alley--dark { margin-top: 16px; }

/* Три тематичні блоки в ряд */
.tag-sections { display: grid; gap: 40px var(--gap); }
@media (min-width: 768px) { .tag-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tag-sections { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tag-sections .block-head h2 { font-size: 20px; }
@media (min-width: 1200px) { .tag-sections .block-head h2 { font-size: 22px; } }
.tag-block { display: flex; flex-direction: column; min-width: 0; }
.tag-block__foot { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 16px; }
.tag-block__foot .more { font-size: 14px; font-weight: 600; color: var(--muted); }
.tag-block__foot .more:hover { color: var(--red-text); }
.tag-block--accent { background: linear-gradient(to bottom, #FFFFFF 0%, #F5F5F5 100%); border-radius: var(--radius); padding: 20px 20px 18px; box-shadow: 0 10px 30px -18px rgba(40, 30, 20, .35); }
:root[data-theme="dark"] .tag-block--accent { background: linear-gradient(to bottom, #2A2927 0%, #1E1D1B 100%); }
@media (min-width: 1100px) { .tag-sections { align-items: stretch; } .tag-block--accent { margin: -20px 0 -18px; } }

/* «Герої не вмирають»: чорно-білі фото */
.tag-block--accent .media img { filter: grayscale(1); transition: filter .5s ease, transform .6s var(--ease); }
.tag-block--accent a:hover .media img { filter: grayscale(0); }
/* після блогів одразу йдуть тематичні блоки */
.blogs-band + .tag-sections { margin-top: 28px; }
.tag-sections + .alley--dark { margin-top: 48px; }
.tag-block__foot .more { font-weight: 400; }
.flag-ua { display: inline-block; width: 1.1em; height: .74em; margin-right: .4em; vertical-align: -0.02em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.flag-ua--after { margin: 0 0 0 .4em; }
.rubrics .block-head h2 { font-size: 20px; }
@media (min-width: 1200px) { .rubrics .block-head h2 { font-size: 22px; } }
.rubrics { gap: 44px var(--gap); }

/* ===== Нижня частина головної: ряди А (2+колонка), Б (3 компактні), В (карусель) ===== */
.row-a { display: grid; gap: var(--gap); }
.row-a__main { display: grid; gap: 44px var(--gap); min-width: 0; }
@media (min-width: 768px) { .row-a__main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .row-a { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: start; } }
.row-a--ads > .row-a__side:not(:has(.ad:not(:empty))) { display: none; }
@media (min-width: 1200px) { .row-a--ads:has(> .row-a__side:not(:has(.ad:not(:empty)))) { grid-template-columns: minmax(0, 1fr); } }
.row-a .block-head h2, .row-b .block-head h2 { font-size: 20px; }
@media (min-width: 1200px) { .row-a .block-head h2, .row-b .block-head h2 { font-size: 22px; } }

.row-b { display: grid; gap: 40px var(--gap); }
@media (min-width: 768px) { .row-b { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .row-b { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.compact-list .row-item:first-child { border-top: 0; padding-top: 4px; }
.compact-list .row-item .media { width: 88px; }
.compact-list .row-item__title { font-size: 15px; }

.strip-band { position: relative; isolation: isolate; margin-top: 48px; padding: 36px 0 28px; }
.strip-band::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: calc(100vw - var(--sbw, 0px)); margin-left: calc((100vw - var(--sbw, 0px)) / -2); background: linear-gradient(to bottom, var(--bg) 0%, #E4E7EA 50%, var(--bg) 100%); }
.strip-band--warm::before { background: linear-gradient(to bottom, var(--bg) 0%, #D8CEC1 50%, var(--bg) 100%); }
:root[data-theme="dark"] .strip-band::before { background: linear-gradient(to bottom, var(--bg) 0%, #22262A 50%, var(--bg) 100%); }
:root[data-theme="dark"] .strip-band--warm::before { background: linear-gradient(to bottom, var(--bg) 0%, #2C2824 50%, var(--bg) 100%); }
.strip-band .blogs-band__head h2 a { color: inherit; }
.strip-band .blogs-band__head h2 a:hover { color: var(--red-text); }
.strip-band .blogs-band__head .car-btn { background: none; border: 0; width: 36px; height: 36px; color: var(--ink); }
.strip-band .blogs-band__head .car-btn svg { width: 26px; height: 26px; }
.strip-band .blogs-band__head .car-btn:hover { color: var(--red-text); }
.strip-band .blogs-band__head .car-btn[disabled] { opacity: .25; }
.strip-band .blogs-band__foot { margin-top: -20px; position: relative; z-index: 1; }
.strip-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; user-select: none; -webkit-user-select: none; padding: 16px 28px 44px; margin: -16px -28px 0; scroll-padding-inline: 28px; }
.strip-track::-webkit-scrollbar { display: none; }
.strip-track.is-dragging { scroll-snap-type: none; }
.strip-track img { -webkit-user-drag: none; }
@media (min-width: 560px) { .strip-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (min-width: 900px) { .strip-track { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (min-width: 1200px) { .strip-track { grid-auto-columns: calc((100% - 60px) / 4); } }
.strip-card { scroll-snap-align: start; }
.strip-track > * { transition: opacity .3s ease; }
.strip-track > .is-out { opacity: 0; }
.strip-card .media { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.strip-card:hover .media { box-shadow: 0 14px 28px -10px rgba(20, 16, 12, .45), 0 4px 10px -4px rgba(20, 16, 12, .25); transform: translateY(-3px); }
.strip-card .ti { color: var(--red-text); }
.blogs-band + .strip-band, .row-b + .strip-band, .row-a + .strip-band { margin-top: 28px; }
.strip-band + .row-a { margin-top: 28px; }

/* Широкий блок рубрики (Влада) */
.tag-block--wide { grid-column: 1 / -1; }
.wide-sec { display: grid; gap: 20px var(--gap); }
@media (min-width: 768px) { .wide-sec { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.wide-sec__lead { display: flex; flex-direction: column; gap: 10px; }
.wide-sec__title { font-size: 24px; line-height: 1.22; font-weight: 800; }
@media (min-width: 1200px) { .wide-sec__title { font-size: 26px; } }
.wide-sec__text { font-size: 16px; line-height: 1.5; color: var(--muted); }
.wide-sec__lead .media { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.wide-sec__lead:hover .media { box-shadow: 0 14px 28px -10px rgba(20, 16, 12, .45), 0 4px 10px -4px rgba(20, 16, 12, .25); transform: translateY(-3px); }
.wide-sec__lead:hover .wide-sec__title { color: var(--red-text); }
.wide-sec__lead .ti { color: var(--red-text); }
.wide-sec__list { display: flex; flex-direction: column; }
.wide-sec__list .row-item:first-child { border-top: 0; padding-top: 0; }
.wide-sec__list .row-item .media { width: 120px; }

/* «Більше матеріалів» у широкому блоці — одразу під колонкою з 4 новинами */
@media (min-width: 768px) {
  .tag-block--wide { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: var(--gap); }
  .tag-block--wide > .block-head { grid-column: 1 / -1; }
  .tag-block--wide > .wide-sec { display: contents; }
  .tag-block--wide .wide-sec__lead { grid-column: 1; grid-row: 2 / span 2; }
  .tag-block--wide .wide-sec__list { grid-column: 2; grid-row: 2; }
  .tag-block--wide > .tag-block__foot { grid-column: 2; grid-row: 3; align-self: start; margin-top: 0; padding-top: 14px; }
}

/* Права колонка з білими картками: погода + автобуси */
.row-a__side--cards { gap: 20px; }
.wx-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; padding: 16px 18px; box-shadow: 0 8px 24px -16px rgba(40, 30, 20, .3); }
.wx-card__head h2 { margin: 0 0 12px; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.wx-card__head a { color: inherit; }
.wx-card__head a:hover { color: var(--red-text); }
.wx-card__loading { margin: 0; color: var(--muted); font-size: 14px; }
.wx-now { display: flex; align-items: center; gap: 12px; }
.wx-now__icon { font-size: 38px; line-height: 1; }
.wx-now__temp { font-size: 40px; font-weight: 800; line-height: 1; }
.wx-now__desc { font-size: 14px; line-height: 1.3; }
.wx-now__desc small { color: var(--muted); font-size: 12px; }
.wx-meta { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.wx-meta b { color: var(--ink); font-weight: 700; }
.wx-days { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.wx-days li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.wx-days li:last-child { border-bottom: 0; }
.wx-days__d { text-transform: capitalize; }
.wx-days__i { font-size: 18px; }
.wx-days__t { color: var(--muted); min-width: 72px; text-align: right; }
.wx-days__t b { color: var(--ink); }
.wx-card__more { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); text-align: right; }
.wx-card__more:hover { color: var(--red-text); }

/* Розширена погода — на висоту блоку «Влада» */
@media (min-width: 1200px) {
  .row-a:has(.tag-block--wide) { align-items: stretch; }
  .row-a__side--cards { align-self: stretch; }
  .row-a__side--cards .wx-card { flex: 1; display: flex; flex-direction: column; }
  .row-a__side--cards .wx-card__body { flex: 1; display: flex; flex-direction: column; }
  .row-a__side--cards .wx-sub--week { margin-top: auto; padding-top: 16px; }
}
.wx-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; margin-top: 14px; }
.wx-meta li { display: flex; flex-direction: column; gap: 1px; font-size: 12px; }
.wx-meta b { font-size: 14px; }
.wx-sub { margin: 16px 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wx-hours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; text-align: center; }
.wx-hours li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 6px; background: var(--bg); font-size: 13px; }
.wx-hours__t { font-size: 11px; color: var(--muted); }
.wx-hours__i { font-size: 18px; line-height: 1.2; }
.wx-days { margin-top: 0; border-top: 0; }
.wx-days li { padding: 6px 0; }

/* «Найчитаніше у розділі» поруч із широким блоком — на всю його висоту, як «Читають зараз» */
.pop-sec .block-head { margin-bottom: 4px; }
.pop-sec .block-head h2 { font-size: 18px; }
.pop-sec__note { margin: 8px 0 0; font-size: 12px; color: var(--muted); text-align: right; }
@media (min-width: 1200px) {
  .row-a__side--cards .pop-sec { flex: 1; display: flex; flex-direction: column; }
  .row-a__side--cards .pop-sec .popular { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
  .row-a__side--cards .pop-sec .popular__item { flex: 1; align-items: center; }
}

/* Самоврядування: плашки з телефонами під головним матеріалом */
.gov-contacts { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .gov-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gov-contact { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: linear-gradient(to bottom, #FFFFFF 0%, #F5F5F5 100%); border: 1px solid var(--line-soft); box-shadow: 0 8px 20px -16px rgba(40, 30, 20, .35); color: var(--ink); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
a.gov-contact:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 26px -14px rgba(40, 30, 20, .4); }
:root[data-theme="dark"] .gov-contact { background: linear-gradient(to bottom, #2A2927 0%, #1E1D1B 100%); }
.gov-contact__icon { flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.gov-contact__icon svg { width: 18px; height: 18px; }
.gov-contact__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gov-contact__label { font-size: 13px; line-height: 1.3; color: var(--muted); }
.gov-contact__num { font-size: 18px; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gov-contact__num a { color: inherit; }
.gov-contact__num a:hover, a.gov-contact:hover .gov-contact__num { color: var(--red-text); }
@media (min-width: 768px) {
  .tag-block--wide { grid-template-rows: auto auto auto 1fr; }
  .tag-block--wide .wide-sec__lead { grid-row: 2; }
  .tag-block--wide > .gov-contacts { grid-column: 1; grid-row: 3; align-self: start; }
  .tag-block--wide .wide-sec__list { grid-column: 2; grid-row: 2 / span 2; }
  .tag-block--wide > .tag-block__foot { grid-column: 2; grid-row: 4; }
}

/* Гаряча лінія в рядку назви блоку */
.head-hotline { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.head-hotline svg { width: 16px; height: 16px; color: var(--red-text); flex-shrink: 0; }
.head-hotline b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.head-hotline:hover, .head-hotline:hover b { color: var(--red-text); }
@media (max-width: 559px) { .head-hotline span { display: none; } }
.tag-block--wide > .block-head { flex-wrap: wrap; row-gap: 6px; }

/* ===== Єдиний стандарт наведення для карток новин:
   наводимо на будь-яку частину (фото чи заголовок) — фото піднімається з тінню, заголовок червоніє, без зуму ===== */
:is(.card, .row-item, .wide-sec__lead, .picks__card, .strip-card) .media { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
:is(.card, .row-item, .wide-sec__lead, .picks__card, .strip-card):hover .media { transform: translateY(-3px); box-shadow: 0 14px 28px -10px rgba(20, 16, 12, .45), 0 4px 10px -4px rgba(20, 16, 12, .25); }
.row-item:hover .media { transform: translateY(-2px); box-shadow: 0 10px 18px -8px rgba(20, 16, 12, .45); }
.picks__card:hover .media { box-shadow: 0 16px 30px -10px rgba(40, 0, 0, .65), 0 4px 10px -4px rgba(40, 0, 0, .45); }
:root[data-theme="dark"] :is(.card, .row-item, .wide-sec__lead, .strip-card):hover .media { box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .85), 0 4px 10px -4px rgba(0, 0, 0, .6); }
:is(.card, .row-item, .wide-sec__lead, .picks__card, .strip-card):hover .media img,
.media:hover img { transform: none; }
:is(.card, .row-item, .wide-sec__lead, .strip-card):hover :is(.card__title, .row-item__title, .wide-sec__title) { text-decoration: none; color: var(--red-text); }
:is(.card__title, .row-item__title, .wide-sec__title) { transition: color .2s; }
.row-item .media { overflow: hidden; }
.row-item { overflow: visible; }

/* Тематичні іконки біля назв рубрик (експеримент — прибрати: .rub-ico { display: none; }) */
.rub-ico { display: inline-block; width: .9em; height: .9em; margin-right: .4em; vertical-align: -0.08em; color: var(--red-text); stroke-width: 2.2; }

/* Варіант 2: замість іконок — короткий червоний штрих перед назвою рубрики */
.rub-ico { display: none; }
.tag-block > .block-head h2, .strip-band .blogs-band__head h2 { display: inline-flex; align-items: center; }
.tag-block > .block-head h2::before, .strip-band .blogs-band__head h2::before { content: ""; flex-shrink: 0; width: 4px; height: .82em; margin-right: .5em; border-radius: 2px; background: var(--red); }

/* Варіант 3: подвійна діагональна риска // */
.tag-block > .block-head h2::before, .strip-band .blogs-band__head h2::before { width: 10px; height: .8em; margin-right: .55em; border-radius: 1px; background: linear-gradient(to right, var(--red) 0 3.5px, transparent 3.5px 6.5px, var(--red) 6.5px 10px); transform: skewX(-20deg); }

/* Рух назви рубрики при наведенні на блок:
   риски «//» розсуваються й зсуваються вперед, назва трохи рухається, під заголовком пробігає червона лінія */
.tag-block > .block-head, .strip-band .blogs-band__head { position: relative; }
.tag-block > .block-head h2::before, .strip-band .blogs-band__head h2::before { transition: transform .45s var(--ease), background .45s var(--ease), width .45s var(--ease); }
.tag-block > .block-head h2 > a { transition: transform .45s var(--ease), color .2s; }
.tag-block:hover > .block-head h2::before, .strip-band:hover .blogs-band__head h2::before {
  width: 14px; transform: skewX(-20deg) translateX(2px);
  background: linear-gradient(to right, var(--red) 0 3.5px, transparent 3.5px 10.5px, var(--red) 10.5px 14px);
}
.tag-block:hover > .block-head h2 > a { transform: translateX(3px); }
.tag-block > .block-head::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.tag-block:hover > .block-head::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .tag-block > .block-head::after, .tag-block > .block-head h2::before, .tag-block > .block-head h2 > a { transition: none; }
}

/* Варіант 4: червоний квадрат замість рисок (і в центрованих заголовках каруселей, включно з «Блогами») */
.blogs-band .blogs-band__head h2 { display: inline-flex; align-items: center; }
.tag-block > .block-head h2::before, .strip-band .blogs-band__head h2::before, .blogs-band .blogs-band__head h2::before {
  content: ""; flex-shrink: 0; width: .5em; height: .5em; margin-right: .5em; border-radius: 1px; background: var(--red); transform: none;
  transition: transform .45s var(--ease);
}
.tag-block:hover > .block-head h2::before, .strip-band:hover .blogs-band__head h2::before, .blogs-band:hover .blogs-band__head h2::before {
  width: .5em; background: var(--red); transform: translateX(2px) rotate(90deg) scale(1.15);
}
.strip-band .blogs-band__head h2 > a, .blogs-band .blogs-band__head h2 > a { transition: transform .45s var(--ease), color .2s; }
.strip-band:hover .blogs-band__head h2 > a, .blogs-band:hover .blogs-band__head h2 > a { transform: translateX(3px); }

/* Анімація заголовків білих панелей (Стрічка новин, Читають зараз, Найчитаніше) — без квадратів */
:is(.feed, .panel) > .block-head { position: relative; }
:is(.feed, .panel) > .block-head h2 { transition: transform .45s var(--ease); }
:is(.feed, .panel):hover > .block-head h2 { transform: translateX(3px); }
:is(.feed, .panel) > .block-head::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
:is(.feed, .panel):hover > .block-head::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { :is(.feed, .panel) > .block-head::after, :is(.feed, .panel) > .block-head h2 { transition: none; } }

/* Фоторепортаж: біла смуга, назва ліворуч, стрілки праворуч, «Більше» — остання картка */
.strip-band--white::before { background: var(--surface); box-shadow: inset 0 1px 0 var(--line-soft), inset 0 -1px 0 var(--line-soft); }
:root[data-theme="dark"] .strip-band--white::before { background: var(--surface); }
.strip-band--white { padding: 32px 0 20px; }
.strip-band--left .blogs-band__head { justify-content: flex-start; gap: 6px; }
.strip-band--left .blogs-band__head h2 { order: 0; margin-right: auto; }
.strip-band--left .blogs-band__head .car-btn { order: 1; }
.strip-more { scroll-snap-align: start; display: flex; align-items: stretch; }
.strip-more__in { flex: 1; aspect-ratio: 3 / 2; align-self: start; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; border-radius: var(--radius-sm); background: var(--bg); border: 2px dashed var(--line); color: var(--ink); font-weight: 700; font-size: 17px; transition: background .3s, border-color .3s, color .3s, transform .35s var(--ease), box-shadow .35s var(--ease); }
.strip-more__arrow { width: 52px; height: 52px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; transition: transform .35s var(--ease); }
.strip-more:hover .strip-more__in { border-color: var(--red); color: var(--red-text); transform: translateY(-3px); box-shadow: 0 14px 28px -10px rgba(20, 16, 12, .35); }
.strip-more:hover .strip-more__arrow { transform: translateX(4px); }

/* Компактні ряди: біла підсвітка блоку при наведенні */
.row-b > .tag-block { padding: 16px 18px 12px; margin: -16px -18px -12px; border-radius: var(--radius); background: transparent; transition: background .3s ease, box-shadow .35s var(--ease); }
.row-b > .tag-block:hover { background: var(--surface); box-shadow: 0 16px 36px -22px rgba(40, 30, 20, .35); }
.row-b .compact-list .row-item:last-child { padding-bottom: 4px; }
/* тінь підсвіченого блоку — поверх сусідніх смуг (раніше її перекривав фон каруселі нижче) */
.row-b > .tag-block { position: relative; z-index: 1; }
.row-b > .tag-block:hover { z-index: 5; }
.row-b { position: relative; z-index: 2; }

/* Фоторепортаж: внутрішня тінь — смуга ніби «провалюється» під сайт */
.strip-band--white::before { box-shadow: inset 0 14px 18px -12px rgba(40, 30, 20, .28), inset 0 -14px 18px -12px rgba(40, 30, 20, .28); }
:root[data-theme="dark"] .strip-band--white::before { box-shadow: inset 0 14px 18px -12px rgba(0, 0, 0, .75), inset 0 -14px 18px -12px rgba(0, 0, 0, .75); }
.strip-band--white::before { box-shadow: inset 0 34px 42px -30px rgba(40, 30, 20, .16), inset 0 -34px 42px -30px rgba(40, 30, 20, .16); }
:root[data-theme="dark"] .strip-band--white::before { box-shadow: inset 0 34px 42px -30px rgba(0, 0, 0, .55), inset 0 -34px 42px -30px rgba(0, 0, 0, .55); }
.row-a + .row-b { margin-top: 36px; }
.row-b + .strip-band--white { margin-top: 36px; }
.strip-band + .strip-band { margin-top: 12px; }

/* Спорт: швидкі переходи за видами спорту під горталкою */
.sport-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: -14px; position: relative; z-index: 1; }
.sport-tag { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-soft); font-size: 15px; font-weight: 600; color: var(--ink); transition: background .25s, border-color .25s, color .25s, transform .3s var(--ease), box-shadow .3s var(--ease); }
.sport-tag svg { width: 22px; height: 22px; color: var(--red-text); transition: transform .45s var(--ease); }
.sport-tag:hover { color: var(--red-text); border-color: var(--red); background: var(--surface); transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(40, 30, 20, .4); }
.sport-tag:hover svg { transform: rotate(-20deg) scale(1.1); }
.strip-band--white:has(.sport-tags) { padding-bottom: 30px; }
/* компактніші кнопки видів спорту — всі в один ряд на широкому екрані */
.sport-tags { gap: 6px; }
.sport-tag { gap: 5px; padding: 6px 11px 6px 8px; font-size: 13.5px; }
.sport-tag svg { width: 17px; height: 17px; }

/* Підказка з кількістю матеріалів над кнопкою виду спорту */
.sport-tag { position: relative; }
.sport-tag[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 5px 9px; border-radius: 6px; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s ease, transform .25s var(--ease); }
.sport-tag[data-tip]::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translate(-50%, 4px); border: 5px solid transparent; border-top-color: var(--ink); border-bottom: 0; pointer-events: none; opacity: 0; transition: opacity .2s ease, transform .25s var(--ease); }
.sport-tag[data-tip]:hover::after, .sport-tag[data-tip]:hover::before, .sport-tag[data-tip]:focus-visible::after, .sport-tag[data-tip]:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
.alley--dark .block-head h2 a { color: #fff; }
.alley--dark .block-head h2 a:hover { color: #FF5A52; }
.war-timer b { font-size: 18px; margin-left: 4px; }
@media (max-width: 559px) { .alley--dark .block-head { flex-wrap: wrap; row-gap: 6px; } .war-timer { white-space: normal; } }
.hero-card { align-items: center; text-align: center; } .hero-card .media { align-self: stretch; }
.hero-card__name > span { display: block; }

/* Алея Слави: два лічильники війни */
.war-timers { display: flex; gap: 10px 28px; flex-wrap: wrap; justify-content: flex-end; }
.war-timer { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: #BDB6AB; white-space: nowrap; }
.war-timer b { margin: 0; font-size: 17px; letter-spacing: 0; text-transform: none; color: #fff; font-weight: 800; }
.war-timer + .war-timer { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .2); }
.alley--dark .block-head { align-items: flex-end; flex-wrap: wrap; row-gap: 12px; }
@media (max-width: 767px) { .war-timers { justify-content: flex-start; } .war-timer { align-items: flex-start; } .war-timer + .war-timer { padding-left: 0; border-left: 0; } }

/* Алея Слави: повільне збільшення портрета при наведенні */
.alley--dark .hero-card .media img { transition: filter .6s ease, transform 2.4s cubic-bezier(.2, .6, .2, 1); }
.alley--dark .hero-card:hover .media img { transform: scale(1.1); }

/* Алея Слави: збільшується саме фото (рамка), з м'якою світлою підсвіткою навколо */
.alley--dark .hero-card:hover .media img { transform: none; }
.alley--dark .hero-card { position: relative; }
.alley--dark .hero-card .media { transition: transform 1.6s cubic-bezier(.2, .6, .2, 1), box-shadow 1.2s ease; transform-origin: center bottom; }
.alley--dark .hero-card:hover { z-index: 2; }
.alley--dark .hero-card:hover .media { transform: scale(1.08); box-shadow: 0 0 28px 4px rgba(255, 236, 200, .28), 0 0 70px 10px rgba(255, 236, 200, .12); }
.alley--dark .alley__viewport { padding-top: 26px; padding-bottom: 26px; margin-top: -26px; margin-bottom: -26px; }
.alley--dark .alley__viewport { padding-top: 44px; padding-bottom: 36px; margin-top: -44px; margin-bottom: -36px; }

/* Алея Слави: біле світіння без обрізання, біле ім'я при наведенні */
.alley--dark .alley__viewport { overflow: visible; overflow-x: clip; overflow-y: visible; padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; }
.alley--dark .hero-card:hover .media { box-shadow: 0 0 26px 4px rgba(255, 255, 255, .32), 0 0 70px 12px rgba(255, 255, 255, .12); }
.alley--dark .hero-card__name { color: #CFC9C0; transition: color .6s ease; }
.alley--dark .hero-card:hover .hero-card__name { color: #FFFFFF; }

/* Афіша + права колонка (погода, автобуси, соцмережі, реклама) */
.row-a__main--single { grid-template-columns: minmax(0, 1fr) !important; }
.strip-band + .row-a--afisha { margin-top: 36px; }

/* ===== Другий ряд топів: дві горизонтальні картки — погода й автобуси ===== */
.home-widgets { display: grid; gap: var(--gap); }
@media (min-width: 768px) { .home-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; } }
.home-widgets > * { min-width: 0; }
.wx-card--wide { display: flex; flex-direction: column; margin: 0; }
.wx-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--line-2); }
.wx-card__head h2 { margin: 0; }
.wx-card--wide .wx-card__more { margin: 0; text-align: right; white-space: nowrap; }
.wxc { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.wxc__now { display: flex; align-items: center; gap: 12px; }
.wxc__icon { font-size: 42px; line-height: 1; }
.wxc__temp { font-size: 38px; font-weight: 800; line-height: 1; }
.wxc__desc { font-size: 14px; color: var(--muted); margin-top: 3px; }
.wxc__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--muted); text-align: right; }
.wxc__meta b { color: var(--ink); }
.wxc__days { list-style: none; margin: 16px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line-soft); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: auto; }
.wx-card__body { display: flex; flex-direction: column; flex: 1; gap: 16px; }
.wxc__days li { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 8px; background: var(--bg); font-size: 13px; }
.wxc__d { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.wxc__i { font-size: 22px; line-height: 1.1; }
.wxc__t { color: var(--muted); font-size: 12px; }
.wxc__t b { color: var(--ink); font-size: 14px; }

/* Розклад автобусів у стилі сайту (лише в цьому місці) */
.home-bus .bus-w { max-width: none; margin: 0; height: 100%; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line-soft); border-radius: 8px; padding: 16px 18px; box-shadow: 0 8px 24px -16px rgba(40, 30, 20, .3); font-family: inherit; }
.home-bus .bus-w-head { background: none; color: var(--ink); padding: 0 0 10px; margin-bottom: 12px; border-bottom: 2px solid var(--line-2); font-family: inherit; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.home-bus .bus-w-head b { font-size: 15px; letter-spacing: .03em; white-space: nowrap; display: inline-flex; align-items: center; }
.home-bus .bus-w-icon { width: 26px; height: 19px; margin-right: 8px; vertical-align: 0; }
.home-bus .bus-w-head span { margin: 0; font-size: 12px; color: var(--muted); text-transform: none; opacity: 1; }
.home-bus .bus-w-tabs { background: var(--bg); border-radius: 8px; padding: 3px; }
.home-bus .bus-w-tabs button { font-family: inherit; font-size: 12.5px; text-transform: none; font-weight: 600; color: var(--muted); padding: 6px 4px; border-radius: 6px; }
.home-bus .bus-w-tabs button.is-active { background: var(--surface); color: var(--red-text); }
.home-bus .bus-w-body { padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.home-bus .bus-w-r { margin: 0; border-radius: 0 8px 8px 0; padding: 8px 10px; }
.home-bus .bus-w-name { font-family: inherit; font-size: 11px; letter-spacing: .05em; }
.home-bus .bus-w-time { font-size: 24px; }
.home-bus .bus-w-more { margin: auto 0 0; padding: 12px 0 0; background: none; color: var(--muted) !important; font-family: inherit; font-size: 13px; font-weight: 400; text-transform: none; text-align: right; }
.home-bus .bus-w-more:hover { background: none; color: var(--red-text) !important; transform: none; }
:root[data-theme="dark"] .home-bus .bus-w { filter: none; }

/* Соцмережі з іконками */
.follow__link { justify-content: flex-start; gap: 12px; }
.follow__link::after { margin-left: auto; }
.follow__ico { flex: 0 0 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; transition: transform .3s var(--ease); }
.follow__ico svg { width: 17px; height: 17px; }
.follow__link:hover .follow__ico { transform: scale(1.1) rotate(-6deg); }
:root[data-theme="dark"] .home-bus .bus-w-r.vl { background: rgba(255, 87, 34, .12); }
:root[data-theme="dark"] .home-bus .bus-w-r.bl { background: rgba(0, 168, 107, .12); }
:root[data-theme="dark"] .home-bus .bus-w-rest, :root[data-theme="dark"] .home-bus .bus-w-in { color: var(--muted); }

/* Погода й автобуси: анімація заголовка й лінії, як у рубриках */
.wx-card__head, .home-bus .bus-w-head { position: relative; }
.wx-card__head h2, .home-bus .bus-w-head b { transition: transform .45s var(--ease); }
.wx-card:hover .wx-card__head h2, .home-bus .bus-w:hover .bus-w-head b { transform: translateX(3px); }
.wx-card__head::after, .home-bus .bus-w-head::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.wx-card:hover .wx-card__head::after, .home-bus .bus-w:hover .bus-w-head::after { transform: scaleX(1); }
.home-bus .bus-w:hover { box-shadow: 0 8px 24px -16px rgba(40, 30, 20, .3); }

/* Автобуси: без іконки, назва й маршрут в одну лінію, вищі плашки маршрутів */
.home-bus .bus-w-icon { display: none; }
.home-bus .bus-w-head { align-items: baseline; }
.home-bus .bus-w-head b { display: inline-block; }
.home-bus .bus-w-body { flex: 1; align-items: stretch; }
.home-bus .bus-w-r { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 14px 12px; }
.home-bus .bus-w-time { font-size: 28px; }

/* Погода протягом дня */
.wxc__days li.is-past { opacity: .45; }
.wxc__d { text-transform: none; white-space: nowrap; }

/* «Вибір редактора»: посилання в назві, жовта анімація заголовка й лінії, жовті назви при наведенні */
.picks__head { position: relative; }
.picks__head h2 a { display: inline-flex; align-items: center; gap: 8px; color: #fff; transition: transform .45s var(--ease), color .3s; }
.picks__head h2 a svg { transition: transform .5s var(--ease), stroke .3s; }
.picks:hover .picks__head h2 a { transform: translateX(3px); }
.picks:hover .picks__head h2 a svg { transform: rotate(-8deg) scale(1.12); }
.picks__head h2 a:hover { color: #FFD34D; }
.picks__head h2 a:hover svg { stroke: #FFD34D; }
.picks__head::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: #FFD34D; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.picks:hover .picks__head::after { transform: scaleX(1); }
.picks__card:hover .picks__title { text-decoration: none; color: #FFD34D; }
.picks__title { transition: color .25s; }
.picks:hover .picks__head h2 a { color: #FFD34D; }
.picks:hover .picks__head h2 a svg { stroke: #FFD34D; }

/* Автобуси на головній: заголовок-посилання, без «Повний розклад», «через…» з нового рядка */
.home-bus .bus-w-title { display: inline-block; font-size: 15px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); transition: transform .45s var(--ease), color .2s; }
.home-bus .bus-w:hover .bus-w-title { transform: translateX(3px); }
.home-bus .bus-w-title:hover { color: var(--red-text); }
.home-bus .bus-w-more { display: none; }
.home-bus .bus-w-main { flex-direction: column; align-items: flex-start; gap: 0; }
.home-bus .bus-w-in { font-size: 13px; }

/* Курс валют у верхньому рядку */
.topbar__fx a { color: inherit; white-space: nowrap; }
.topbar__fx a:hover { color: var(--red-text); }
.topbar__fx:not(:empty)::before { content: "·"; margin: 0 8px; opacity: .5; }
@media (max-width: 767px) { .topbar__fx { display: none; } }

/* Індикатор повітряної тривоги */
.air-alert { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-soft); font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .3s, color .3s, border-color .3s; }
.air-alert[hidden] { display: none; }
.air-alert__dot { width: 8px; height: 8px; border-radius: 50%; background: #2EAD5B; flex-shrink: 0; }
.air-alert:hover { color: var(--ink); }
.air-alert.is-alert { background: #CC0000; border-color: #CC0000; color: #fff; }
.air-alert.is-alert .air-alert__dot { background: #fff; animation: airPulse 1.2s ease-in-out infinite; }
@keyframes airPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); } }
@media (max-width: 767px) { .air-alert:not(.is-alert) .air-alert__text { display: none; } .air-alert:not(.is-alert) { padding: 0 9px; } }
@media (max-width: 559px) { .air-alert.is-alert .air-alert__text { font-size: 0; } .air-alert.is-alert .air-alert__text::before { content: "Тривога"; font-size: 12px; } }

/* Автобуси: «Повний розклад →» у правому нижньому куті */
.home-bus .bus-w-more { display: block; margin: 12px 0 0; padding: 0; text-align: right; font-size: 13px; }

/* Сторінка курсів валют */
.fx-page { margin-top: 8px; }
.fx-page__date { color: var(--muted); }
.fx-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin: 16px 0 28px; }
.fx-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 8px 24px -16px rgba(40, 30, 20, .3); }
.fx-card span { font-size: 13px; color: var(--muted); }
.fx-card b { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-card small { font-size: 12px; color: var(--muted); }
.fx-h { font-size: 20px; margin: 0 0 8px; }
.fx-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fx-table td { padding: 9px 6px; border-bottom: 1px solid var(--line-soft); }
.fx-cc { width: 60px; font-weight: 700; color: var(--red-text); }
.fx-rate { text-align: right; font-weight: 700; white-space: nowrap; }
.fx-more { margin-top: 20px; }
.fx-more summary { cursor: pointer; font-weight: 700; padding: 8px 0; }
.fx-src { margin-top: 20px; font-size: 13px; color: var(--muted); }
/* Фоторепортаж і Спорт: без внутрішніх тіней, лише тонкі лінії по краях */
.strip-band--white::before, :root[data-theme="dark"] .strip-band--white::before { box-shadow: inset 0 1px 0 var(--line-soft), inset 0 -1px 0 var(--line-soft); }
/* курс у шапці — як посилання погоди: сірий → білий */
.topbar__fx a { color: #D9D5CF; transition: color .2s; }
.topbar__fx a:hover { color: #fff; }

/* Кількість підписників у блоці соцмереж */
.follow__name { display: flex; flex-direction: column; line-height: 1.2; }
.follow__count { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.follow__count:empty { display: none; }
.follow__link:hover .follow__count { color: var(--red-text); }
.follow__link:has(.follow__count:not(:empty))::after { margin-left: 10px; }

/* «Слідкуйте за нами» на всю висоту блоку Афіші */
@media (min-width: 1200px) {
  .row-a--afisha { align-items: stretch; }
  .row-a--afisha > .row-a__side { align-self: stretch; }
  .row-a--afisha .follow { flex: 1; display: flex; flex-direction: column; }
  .row-a--afisha .follow__link { flex: 1; }
  .row-a--afisha .ad:empty { display: none; }
}

/* Тривога: три стани + підказка */
.air-alert { position: relative; }
.air-alert.is-partial { background: #FFC627; border-color: #FFC627; color: #3A2A00; }
.air-alert.is-partial .air-alert__dot { background: #3A2A00; animation: airPulseDark 1.6s ease-in-out infinite; }
@keyframes airPulseDark { 0%, 100% { box-shadow: 0 0 0 0 rgba(58, 42, 0, .6); } 50% { box-shadow: 0 0 0 6px rgba(58, 42, 0, 0); } }
.air-alert:not(.is-alert):not(.is-partial) { background: transparent; }
.air-alert[data-tip]::after { content: attr(data-tip); position: absolute; left: 0; top: calc(100% + 10px); width: max-content; max-width: 280px; white-space: normal; padding: 8px 11px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 12.5px; font-weight: 500; line-height: 1.4; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease); z-index: 50; }
.air-alert[data-tip]:hover::after, .air-alert[data-tip]:focus-visible::after { opacity: 1; transform: none; }
@media (max-width: 767px) { .air-alert.is-partial .air-alert__text { display: none; } .air-alert.is-partial { padding: 0 9px; } }
/* Шапка: тривога + пошук ліворуч, день/ніч + підтримати праворуч */
.header__right .theme-switch { display: none; }
@media (min-width: 560px) { .header__right .theme-switch { display: inline-flex; } }
.header__left .header__sep { display: none !important; }
@media (min-width: 560px) { .header__left .air-alert:not([hidden]) + .header__sep { display: block !important; } }
.header__right { gap: 12px; }

/* Шапка: компактні кнопки однієї висоти (28px) */
.header .btn-support { height: 28px; padding: 0 12px 0 10px; border-radius: 14px; font-size: 13px; gap: 6px; }
.header .btn-support svg { width: 15px; height: 15px; }
@media (max-width: 767px) { .header__right .btn-support { width: 32px; height: 32px; padding: 0; } }
.search-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 10px; border-radius: 14px; border: 1px solid var(--line-soft); background: transparent; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.search-btn svg { width: 15px; height: 15px; }
.search-btn:hover { color: var(--red-text); border-color: var(--red); }
@media (max-width: 559px) { .search-btn span { display: none; } .search-btn { padding: 0 8px; } }
.header__right .header__sep--r { display: none !important; }
@media (min-width: 560px) { .header__right .header__sep--r { display: block !important; } }
.search-btn { font-weight: 400; }

/* ===== Партнери: бліді картки-горталка внизу ===== */
.partners__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.partners__head h2 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.partners2 .car-btn { background: none; border: 0; width: 30px; height: 30px; color: var(--muted); }
.partners2 .car-btn:hover { color: var(--red-text); }
.partners2 .car-btn[disabled] { opacity: .25; }
.partners__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 46px 8px 10px; margin: -46px -8px 0; scroll-padding-inline: 8px; user-select: none; -webkit-user-select: none; }
.partners__track::-webkit-scrollbar { display: none; }
.partners__track.is-dragging { scroll-snap-type: none; }
@media (min-width: 560px) { .partners__track { grid-auto-columns: calc((100% - 28px) / 3); } }
@media (min-width: 900px) { .partners__track { grid-auto-columns: calc((100% - 56px) / 5); } }
.partner { position: relative; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-soft); background: transparent; color: var(--muted); text-align: center; opacity: .55; filter: grayscale(1); transition: opacity .3s, background .3s, border-color .3s, color .3s, box-shadow .35s var(--ease), transform .35s var(--ease), filter .3s; }
.partner__name { font-size: 14px; font-weight: 700; line-height: 1.3; }
.partner img { max-width: 100%; max-height: 56px; object-fit: contain; -webkit-user-drag: none; }
.partner:hover, .partner:focus-visible { opacity: 1; filter: none; background: var(--surface); color: var(--ink); border-color: var(--line); transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(40, 30, 20, .4); }
a.partner:hover { color: var(--red-text); }
.partner[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); width: max-content; max-width: 220px; white-space: normal; padding: 6px 10px; border-radius: 6px; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 500; line-height: 1.35; opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); z-index: 5; }
.partner[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }
.partners__track > .is-out { opacity: 0 !important; }

/* Партнери v2: усі в один ряд, назва по центру, помітніші картки */
.partners2 { position: relative; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.partners__head { justify-content: center; position: relative; }
.partners__head .car-nav { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.partners__head .car-nav:has(.car-btn[disabled] + .car-btn[disabled]) { display: none; }
@media (min-width: 1100px) { .partners__track { grid-auto-columns: calc((100% - 70px) / 8); gap: 10px; } }
.partner { min-height: 84px; padding: 12px 10px; opacity: .85; filter: none; background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: 0 6px 16px -14px rgba(40, 30, 20, .35); }
.partner__name { font-size: 13px; line-height: 1.25; }
.partner:hover { border-color: var(--red); }
.partners__grant { margin: 18px auto 0; max-width: 760px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5; }
.partners2 { border-top: 0; padding-top: 0; }
.partner__name { font-weight: 400; }
.partners2 { margin-bottom: 56px; }
/* фото в тексті статті (з посиланням на повний розмір) — на всю ширину колонки */
.prose a.highslide > img:not([style*="float"]):not([align]) { width: 100%; height: auto; }

/* ===== «У фокусі»: стрічка з однієї новини ===== */
.focus .focus__row { gap: 10px; min-height: 48px; }
.focus[hidden] { display: none; }
.ticker__nav { display: flex; gap: 2px; flex-shrink: 0; }
.ticker__nav[hidden] { display: none; }
.ticker__btn { width: 28px; height: 28px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .2s, background .2s; }
.ticker__btn svg { width: 16px; height: 16px; }
.ticker__btn:hover { color: var(--red-text); background: var(--bg); }
.ticker { position: relative; flex: 1; min-width: 0; height: 28px; overflow: hidden; }
.ticker__list { list-style: none; margin: 0; padding: 0; }
.ticker__item { position: absolute; inset: 0; display: none; align-items: center; gap: 14px; min-width: 0; }
.ticker__item.is-active { display: flex; animation: tickerIn .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes tickerIn { from { clip-path: inset(0 100% 0 0); opacity: .3; } to { clip-path: inset(0 0 0 0); opacity: 1; } }
.ticker__link { min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; font-weight: 600; color: var(--ink); }
.ticker__link:hover { color: var(--red-text); }
.ticker__link .ti { color: var(--red-text); }
.ticker__item .meta__views { flex-shrink: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 559px) { .ticker__item .meta__views { display: none; } .ticker__link { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .ticker__item.is-active { animation: none; } }
.ticker__link { font-weight: 400; }
.ticker__nav { margin-left: auto; }
.partners__track { padding-bottom: 30px; margin-bottom: -20px; }
/* партнери: при наведенні — темніша сіра рамка замість червоної */
.partner:hover, .partner:focus-visible { border-color: #9A938A; }
a.partner:hover { color: var(--ink); }
:root[data-theme="dark"] .partner:hover { border-color: #6E6862; }

/* нежирні службові посилання */
.blogs-band__foot .more, .row-a--afisha .block-head a.more { font-weight: 400; }

/* підсумок аудиторії під соцмережами */
.follow__total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; padding: 12px 14px; border-radius: 8px; background: var(--bg); }
.follow__total[hidden] { display: none; }
.follow__total span { flex-basis: 100%; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.follow__total b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.follow__total small { font-size: 13px; color: var(--muted); }
@media (min-width: 1200px) { .row-a--afisha .follow__total { flex: 0 0 auto; } }

/* Афіша: анімація заголовка й лінії при наведенні на блок */
.afisha-block > .block-head { position: relative; }
.afisha-block > .block-head h2 > a { display: inline-block; transition: transform .45s var(--ease), color .2s; }
.afisha-block:hover > .block-head h2 > a { transform: translateX(3px); }
.afisha-block > .block-head::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.afisha-block:hover > .block-head::after { transform: scaleX(1); }
.article__title .ti { color: var(--red-text); }
/* рубрики над заголовком матеріалу — через крапку */
.article__cat { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0; row-gap: 4px; font-size: 0; }
.article__cat a + a::before { content: "·"; display: inline-block; margin: 0 9px; color: var(--muted); font-weight: 400; }
/* «Поділитися» під датою, над головним фото */
.share--top { margin: 4px 0 18px; padding: 0; border: 0; }
.article__share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 4px 0 18px; }
.article__share-row .share--top { margin: 0; }
.google-src--top { padding: 7px 14px; font-size: 13px; }
.google-src--top svg { width: 17px; height: 17px; }

/* Лід: більший шрифт, без зайвого відступу після головного фото */
.article__lead { font-size: 22px; line-height: 1.45; }
@media (max-width: 767px) { .article__lead { font-size: 20px; } }
.article__lead img, .article__lead .highslide img { margin-bottom: 6px; }
.article__lead .highslide-caption { display: block; margin: 0 0 10px; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--muted); }
.article__lead .highslide-caption + br, .article__lead a.highslide + br { display: none; }
/* відступ фото → лід = відступ між абзацами тексту (1.1em від 19px ≈ 21px) */
.article__lead img, .article__lead .highslide img { margin-bottom: 21px; }
.article__lead .highslide-caption { margin: -15px 0 21px; }
.prose blockquote, .prose .quote { margin: .8em 0; }
.prose blockquote, .prose .quote { margin: 0; }
/* після блоку цитати перший <br> дає зайвий порожній рядок — ховаємо, щоб відступи до й після були однакові */
.prose .quote + br, .prose blockquote + br { display: none; }
/* Списки в тексті: відступ зверху як між абзацами, знизу — без відступу */
.prose ul, .prose ol { margin: 1.55em 0 0; }
.prose ul + br, .prose ol + br { display: none; }
.prose ul + br, .prose ol + br { display: inline; }
.prose li:last-child { margin-bottom: 0; }

/* Іконки фото/відео в кредитах */
.cr-ico { width: 15px; height: 15px; margin-right: 5px; vertical-align: -2px; color: var(--muted); }
/* «Друк» у рядку дати */
.article__print a { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.article__print a:hover { color: var(--red-text); }
.article__print svg { width: 15px; height: 15px; }

/* «Версія для друку» — завжди праворуч у рядку дати */
.article__meta { display: flex; flex-wrap: wrap; align-items: center; }
.article__print { order: 99; margin-left: auto; }
/* верхній рядок «Поділитися» — напівпрозорий, активується при наведенні */
.article__share-row { opacity: .45; transition: opacity .3s ease; }
.article__share-row:hover, .article__share-row:focus-within { opacity: 1; }

/* Фотогорталка в матеріалі: на всю ширину колонки, без заокруглень, висота під фото */
.gallery__track { border-radius: 0; align-items: flex-start; transition: height .45s var(--ease); }
.gallery__track > * { aspect-ratio: auto; height: 100%; background: var(--dark); }
.gallery__track img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; }
.gallery__count { text-align: right; font-weight: 400; font-style: italic; }
/* Фотогорталка — на всю ширину білої картки статті, без бічних полів */
.article .gallery { margin-left: -20px; margin-right: -20px; }
.article .gallery__count { padding-right: 20px; }
@media (min-width: 768px) {
  .article .gallery { margin-left: -48px; margin-right: -48px; }
  .article .gallery__count { padding-right: 48px; }
}

/* Головне фото статті — теж на всю ширину білої картки */
.article__lead img, .article__lead .highslide img { width: calc(100% + 40px); max-width: none; margin-left: -20px; margin-right: -20px; border-radius: 0; }
@media (min-width: 768px) { .article__lead img, .article__lead .highslide img { width: calc(100% + 96px); margin-left: -48px; margin-right: -48px; } }

/* Фотогорталка: вертикальні фото вписані в горизонтальну рамку, світло-сірий фон */
.gallery__track > * { background: #EDEBE7; }
:root[data-theme="dark"] .gallery__track > * { background: #26241F; }
.gallery__track { transition: none; }
/* «Фото х з хх» — зверху праворуч */
.gallery { display: flex; flex-direction: column; }
.gallery__count { order: -1; margin: 0 0 8px; }

/* Підписи до фото */
.gallery__track > * { position: relative; }
.gallery__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 20px 12px; background: linear-gradient(to top, rgba(10, 10, 10, .75), rgba(10, 10, 10, 0)); color: #fff; font-size: 14px; line-height: 1.35; text-align: left; pointer-events: none; }
@media (min-width: 768px) { .gallery__cap { padding: 32px 48px 14px; } }
.img-cap { display: block; margin: -0.6em 0 1.2em; font-size: 14px; line-height: 1.4; color: var(--muted); font-style: italic; }

/* ===== Фотогорталка v3: підпис лише на фото, свайп/мишка, великі стрілки, мініатюри ===== */
.gallery__track { user-select: none; -webkit-user-select: none; cursor: default; }
.gallery__track.is-dragging { scroll-snap-type: none; }
.gallery__track > * { display: flex; align-items: center; justify-content: center; height: 100%; }
.gallery__frame { position: relative; display: inline-block; height: 100%; max-width: 100%; }
.gallery__frame img { display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; -webkit-user-drag: none; }
.gallery__cap { padding: 28px 16px 12px; }
@media (min-width: 768px) { .gallery__cap { padding: 32px 20px 14px; } }
.gallery__btn { width: 56px; height: 56px; background: none !important; box-shadow: none; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .7)); opacity: .85; transition: opacity .2s, transform .2s; }
.gallery__btn svg { width: 40px; height: 40px; }
.gallery__btn:hover { opacity: 1; transform: translateY(-50%) scale(1.08); }
.gallery__btn--prev { left: 6px; } .gallery__btn--next { right: 6px; }
.gallery__thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { flex: 0 0 auto; width: 84px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: #EDEBE7; cursor: pointer; opacity: .55; transition: opacity .2s, border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.gallery__thumb:hover { opacity: .9; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--red); }
.article .gallery__thumbs { padding-left: 20px; padding-right: 20px; }
@media (min-width: 768px) { .article .gallery__thumbs { padding-left: 48px; padding-right: 48px; } .gallery__thumb { width: 96px; height: 64px; } }
/* мініатюри: впритул до країв і одна до одної, без заокруглень */
.gallery__thumbs, .article .gallery__thumbs { gap: 0; margin-top: 0; padding: 0; }
.gallery__thumb { border-radius: 0; border-width: 0; position: relative; }
.gallery__thumb.is-active { border-width: 0; box-shadow: inset 0 0 0 3px var(--red); opacity: 1; }
.gallery__thumb.is-active img { position: relative; z-index: -1; }
.gallery__thumb.is-active { box-shadow: none; }
.gallery__thumb.is-active img { position: static; z-index: auto; }
.gallery__thumb::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px transparent; transition: box-shadow .2s; pointer-events: none; }
.gallery__thumb.is-active::after { box-shadow: inset 0 0 0 3px var(--red); }
.gallery__thumb.is-active::after { box-shadow: none; }
/* підпис у повноекранному перегляді */
.lightbox__cap { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); max-width: min(760px, calc(100% - 32px)); padding: 8px 14px; border-radius: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 15px; line-height: 1.4; text-align: center; }
.lightbox__cap[hidden] { display: none; }
.gallery__thumbs { user-select: none; -webkit-user-select: none; overscroll-behavior-x: contain; } .gallery__thumbs.is-dragging .gallery__thumb { pointer-events: none; }

/* Збалансовані рядки великих заголовків (без «хвостів» з одного слова) */
.article__title, .hero__title, .wide-sec__title, .picks__title { text-wrap: balance; }
.card__title, .row-item__title, .blog-card__title { text-wrap: pretty; }
/* бічна колонка статті */
.sidebar--article { align-self: start; }
.side-feed .block-head, .sidebar--article .panel .block-head { margin-bottom: 4px; }
.side-feed .block-head h2, .sidebar--article .panel .block-head h2 { font-size: 18px; }
.side-zone { position: relative; } .sidebar--article > .panel { margin-top: 0; }
/* «Актуально»: дата перед назвою, як у стрічці новин */
.ticker__date { flex-shrink: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; margin-right: -4px; }
.focus__label { margin-right: 8px; }

/* «Поділитися»: фірмові кольори соцмереж і підказка при наведенні */
.share__btn { position: relative; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.share__btn[style*="--brand"]:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-1px); }
.share__btn[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 5px 9px; border-radius: 6px; background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .2s, transform .25s var(--ease); z-index: 5; }
.share__btn[data-tip]:hover::after, .share__btn[data-tip]:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* Під статтею: анімація заголовків блоків і лінії, як в інших блоках */
.after-article > section > .block-head { position: relative; }
.after-article > section > .block-head h2 { transition: transform .45s var(--ease); }
.after-article > section:hover > .block-head h2 { transform: translateX(3px); }
.after-article > section > .block-head::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.after-article > section:hover > .block-head::after { transform: scaleX(1); }
.after-article .block-head a.more { font-weight: 400; }
/* таби топу */
.top-tabs { margin-top: 40px; }
.top-tabs .tabs__bar { position: relative; }
.side-feed .block-head { display: flex; align-items: center; justify-content: space-between; }

/* Топ під статтею: дві колонки по 5 */
@media (min-width: 768px) {
  .popular--top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; column-gap: 32px; }
  .popular--top .popular__item:nth-child(5) { border-bottom: 0; }
}
.popular--top .meta { gap: 2px 10px; }

/* ===== Вставка «За темою» [related=id] у тексті статті ===== */
.prose .related-single { margin: 0 0 1.55em; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prose .related-single-label { display: none; }
.prose .related-single-link { display: flex; align-items: center; gap: 28px; color: var(--ink); box-shadow: none !important; text-decoration: none; }
.prose .related-single-link img { flex: 0 0 34%; width: 34%; max-width: 280px; aspect-ratio: 16 / 9; height: auto; object-fit: cover; margin: 0 !important; border-radius: 0; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.prose .related-single-info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.prose .related-single-info::before { content: "Читайте також:"; font-size: 13px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.prose .related-single-info > span { font-size: 22px; line-height: 1.25; font-weight: 800; transition: color .2s; }
.prose .related-single-meta { display: none; }
.prose .related-single-link:hover { color: var(--ink); }
.prose .related-single-link:hover .related-single-info > span { color: var(--red-text); }
.prose .related-single-link:hover img { transform: translateY(-3px); box-shadow: 0 14px 28px -10px rgba(20, 16, 12, .45); }
@media (max-width: 559px) {
  .prose .related-single-link { gap: 14px; align-items: flex-start; }
  .prose .related-single-link img { flex-basis: 38%; width: 38%; }
  .prose .related-single-info > span { font-size: 16px; }
  .prose .related-single-info::before { font-size: 11px; }
}
.prose .related-single-link img { border-radius: var(--radius-sm); }
.prose .rel-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 13px; font-weight: 400; color: #A39D95; }
.prose .rel-meta:empty { display: none; }
.prose .rel-meta .meta__views { display: inline-flex; align-items: center; gap: 4px; }
.prose .rel-meta svg { width: 14px; height: 14px; }
.prose .related-single { margin: 18px 0 12px; }
.prose .related-single-info > span.rel-meta, .prose .related-single-info > span.rel-meta span { font-size: 13px; font-weight: 400; line-height: 1.4; color: #A39D95; }
.prose .related-single-link:hover .related-single-info > span.rel-meta { color: #A39D95; }
@media (max-width: 559px) { .prose .related-single-info > span.rel-meta, .prose .related-single-info > span.rel-meta span { font-size: 11px; } }
.prose .related-single { margin-bottom: 4px; opacity: .55; transition: opacity .3s ease; }
.prose .related-single:hover, .prose .related-single:focus-within { opacity: 1; }

/* «Читайте також»: активується лише при наведенні на саме посилання */
.prose .related-single:hover { opacity: .55; }
.prose .related-single:has(.related-single-link:hover), .prose .related-single:focus-within { opacity: 1; }

/* Заголовок матеріалу з'являється знизу, як текст топ-новини */
@keyframes titleIn { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.article__cat { animation: titleIn .6s cubic-bezier(.2, .7, .2, 1) .05s both; }
.article__title { animation: titleIn .75s cubic-bezier(.2, .7, .2, 1) .15s both; }
.article__meta { animation: titleIn .75s cubic-bezier(.2, .7, .2, 1) .3s both; }
@media (prefers-reduced-motion: reduce) { .article__cat, .article__title, .article__meta { animation: none; } }
/* однаковий відступ від останнього блоку до футера на всіх сторінках */
.page { padding-bottom: 56px; }
.partners2 { margin-bottom: 0; }
.footer { margin-top: 0; }

/* Соцмережі в шапці: фірмові кольори при наведенні */
.topbar__social a { transition: background .2s, color .2s; }
.topbar__social a[href*="facebook.com"]:hover { background: #1877F2; color: #fff; }
.topbar__social a[href*="t.me"]:hover { background: #229ED9; color: #fff; }
.topbar__social a[href*="viber"]:hover { background: #7360F2; color: #fff; }
.topbar__social a[href*="instagram.com"]:hover { background: #E1306C; color: #fff; }
.topbar__social a[href*="youtube.com"]:hover { background: #FF0000; color: #fff; }
.topbar__social a[href*="rss"]:hover { background: #F26522; color: #fff; }
/* соцмережі в шапці: квадрати на всю висоту чорного рядка */
.topbar .wrap { align-items: stretch; }
.topbar .wrap > * { align-self: center; }
.topbar .wrap > .topbar__social { align-self: stretch; gap: 0; }
.topbar__social a { width: 36px; height: auto; border-radius: 0; }
/* Статичні сторінки: автобуси у вузькій колонці — маршрути один під одним */
.side-bus .bus-w-body { grid-template-columns: minmax(0, 1fr); }
.side-bus .bus-w-title { font-size: 14px; }
.sidebar .wx-sub--week, .sidebar .wx-days { display: none; }
.side-bus .bus-w-route { display: block; }

/* ===== Головне меню v2 ===== */
.nav__caret { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav__item.is-open .nav__caret, .nav__item:hover .nav__caret { transform: rotate(180deg); }
.mega--news { min-width: 820px; padding: 22px 26px 18px; }
.mega__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.mega__h { margin: 0 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--red); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mega__col ul { list-style: none; margin: 0; padding: 0; }
.mega__col a { display: block; padding: 7px 0; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line-softer); transition: color .2s, padding-left .25s var(--ease); }
.mega__col li:last-child a { border-bottom: 0; }
.mega__col a:hover { color: var(--red-text); padding-left: 4px; }
.mega__col a.is-active { color: var(--red-text); }
.mega--news .mega__foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.mega--news .mega__foot span { color: var(--muted); }
.mega--news .mega__foot a { font-weight: 600; color: var(--ink); }
.mega--news .mega__foot a:hover { color: var(--red-text); }
.mega--news .mega__foot a:last-child { margin-left: auto; color: var(--red-text); }
/* «Довідка» — компактне випадне меню праворуч */
.nav__item--drop .mega--drop { left: auto; right: -16px; min-width: 300px; padding: 10px 18px; }
.drop__list { list-style: none; margin: 0; padding: 0; }
.drop__list a { display: block; padding: 9px 0; font-size: 15px; font-weight: 600; border-bottom: 1px solid var(--line-softer); transition: color .2s, padding-left .25s var(--ease); }
.drop__list li:last-child a { border-bottom: 0; }
.drop__list a:hover { color: var(--red-text); padding-left: 4px; }

/* ===== Сторінка «Погода» (weather.html) ===== */
.page-wrap h1 { font-size: 30px; line-height: 1.15; margin: 0 0 4px; }
@media (min-width: 768px) { .page-wrap h1 { font-size: 38px; } }
.page-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.page-wrap .section-title { margin: 28px 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--line-2); font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.page-wrap .loading-state, .page-wrap .error-state { padding: 20px; color: var(--muted); }
/* зараз */
.current-block { background: var(--surface); border: 1px solid var(--line-soft); border-radius: 10px; padding: 20px 22px; box-shadow: 0 8px 24px -16px rgba(40, 30, 20, .3); }
.current-main { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.current-ico { font-size: 56px; line-height: 1; }
.current-temp { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.current-info { display: flex; flex-direction: column; gap: 2px; }
.current-desc { font-size: 18px; font-weight: 700; }
.current-feels, .current-city { font-size: 14px; color: var(--muted); }
.current-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
@media (min-width: 768px) { .current-details { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.detail-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; background: var(--bg); }
.detail-label { font-size: 12px; color: var(--muted); }
.detail-value { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.detail-unit { font-size: 13px; font-weight: 600; color: var(--muted); }
/* по годинах */
.hourly-block { overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; }
.hourly-row { display: flex; gap: 6px; }
.hour-item { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-soft); }
.hour-item.now { border-color: var(--red); background: var(--red-soft, #FBEAE9); }
.h-time { font-size: 12px; color: var(--muted); }
.hour-item.now .h-time { color: var(--red-text); font-weight: 700; }
.h-ico { font-size: 22px; line-height: 1.2; }
.h-temp { font-size: 15px; font-weight: 800; }
.h-rain { font-size: 11px; color: #2F7FD1; min-height: 14px; }
/* таблиця на 7 днів */
.table-block { overflow-x: auto; }
.forecast-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; background: var(--surface); border-radius: 10px; overflow: hidden; }
.forecast-table th { padding: 10px 12px; text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--line); }
.forecast-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.forecast-table tr:last-child td { border-bottom: 0; }
.forecast-table tr.today td { background: rgba(204, 0, 0, .04); }
.day-name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.today-badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; background: var(--red); color: #fff; }
.day-date { font-size: 12px; color: var(--muted); }
.weather-cell { display: flex; align-items: center; gap: 8px; }
.w-ico { font-size: 22px; }
.w-desc { font-size: 13px; }
.temp-range { display: flex; align-items: center; gap: 8px; min-width: 170px; }
.t-min { color: var(--muted); font-weight: 600; min-width: 34px; text-align: right; }
.t-max { font-weight: 800; min-width: 34px; }
.t-bar-wrap { position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--line-soft); }
.t-bar { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: linear-gradient(90deg, #4DA3FF, #FFB13B, #FF5A3B); }
.wind-cell, .precip-cell, .sunrise-cell { display: flex; flex-direction: column; gap: 2px; }
.wind-speed, .precip-val { font-weight: 700; }
.wind-dir, .wind-gust, .precip-prob, .precip-none, .sun-rise, .sun-set { font-size: 12px; color: var(--muted); }
.uv-badge { display: inline-block; min-width: 34px; padding: 3px 7px; border-radius: 10px; text-align: center; font-size: 12px; font-weight: 700; color: #fff; }
.uv-low { background: #3BA55D; } .uv-mid { background: #E3B11E; color: #3A2A00; } .uv-high { background: #F07B22; } .uv-vhigh { background: #D7263D; }
.table-note { margin-top: 10px; font-size: 12px; color: var(--muted); }
/* «Зараз у Світловодську»: ліворуч поточна погода стовпчиком, праворуч 3×2 показники */
.current-block { display: grid; gap: 18px; align-items: center; }
@media (min-width: 768px) { .current-block { grid-template-columns: minmax(200px, auto) minmax(0, 1fr); gap: 28px; } }
.current-main { flex-direction: column; align-items: flex-start; gap: 6px; }
.current-main > div:not(.current-info) { display: flex; align-items: center; }
.current-city { display: none; }
.current-details, .current-details { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; margin-top: 0; padding-top: 0; border-top: 0; }
@media (min-width: 768px) { .current-details { padding-left: 28px; border-left: 1px solid var(--line-soft); } }

/* Погода: доопрацювання */
.wx-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.wx-page-head h1 { margin: 0; }
.wx-page-head .page-subtitle { margin: 6px 0 0; white-space: nowrap; }
.page-wrap .section-title { border-bottom: 0; padding-bottom: 0; }
.current-main { align-items: center; text-align: center; justify-content: center; }
.current-info { align-items: center; }
.hourly-block { cursor: ew-resize; user-select: none; -webkit-user-select: none; scrollbar-width: none; }
.hourly-block::-webkit-scrollbar { display: none; }
.hourly-block.is-dragging { cursor: grabbing; }
.table-note { text-align: right; margin-bottom: 1.6em; }
.wx-page-text { margin-top: 0; }
.wx-page-text > br:first-child, .wx-page-text > br:last-child { display: none; }
.static-text:empty { display: none; }

/* Курс валют: цілісна картка, як сторінка погоди */
.static--fx .fx-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.static--fx .fx-page-head h1 { margin: 0; }
.static--fx .fx-page-head .page-subtitle { margin: 6px 0 0; white-space: nowrap; }
.static--fx .static-text { font-size: 16px; line-height: 1.6; color: var(--text-2, inherit); }
.static--fx .static-text p { margin: 0 0 .8em; }
.static--fx .static-text > br:first-child, .static--fx .static-text > br:last-child { display: none; }
.static--fx .fx-page { margin-top: 20px; }
.static--fx .fx-cards { margin: 0 0 8px; }
.static--fx .fx-card { background: var(--bg); border-color: transparent; box-shadow: none; }
.static--fx .fx-h, .static--fx .fx-more summary { margin: 28px 0 8px; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.static--fx .fx-more { margin-top: 0; }
.static--fx .fx-table td { padding: 9px 6px; }
.static--fx .fx-table td:first-child { padding-left: 12px; }
.static--fx .fx-table td:last-child { padding-right: 12px; }
.static--fx .fx-table td.fx-cc { width: 70px; }
.static--fx .fx-src { text-align: right; margin-bottom: 0; }
@media (max-width: 600px) { .static--fx .fx-page-head { flex-direction: column; gap: 4px; } .static--fx .fx-page-head .page-subtitle { margin: 0; } }

/* Курс валют: підсвітка всього рядка при наведенні */
.fx-table tr { transition: background-color .15s; }
.fx-table tr:hover { background: var(--bg); }
.fx-table tr:hover td { color: var(--red-text); }
.fx-table tr:hover td:first-child { border-radius: 6px 0 0 6px; }
.fx-table tr:hover td:last-child { border-radius: 0 6px 6px 0; }

/* Бічний блок «Курс валют НБУ» */
.fx-side__table { font-size: 15px; }
.fx-side__table td { padding: 8px 6px; }
.fx-side__table td.fx-cc { width: 44px; }
.fx-side__table tr:last-child td { border-bottom: 0; }
.fx-side__date { margin: 8px 0 0; font-size: 12px; color: var(--muted); }

/* Меню: «Проєкти» стоїть зліва, тому список відкривається вліво-вправо від пункту */
.nav__item--drop #drop-projects { left: -16px; right: auto; min-width: 240px; }
.nav__item--drop #drop-city { min-width: 240px; }

/* Меню: більше повітря і крупніший шрифт у випадних панелях */
.mega--news { min-width: 920px; padding: 30px 34px 24px; }
.mega__cols { gap: 0 36px; }
.mega__h { margin-bottom: 8px; padding-bottom: 10px; font-size: 13px; }
.mega__col a { padding: 10px 0; font-size: 17px; font-weight: 500; }
.mega--news .mega__foot { margin-top: 20px; padding-top: 16px; font-size: 15px; gap: 12px; }
.nav__item--drop .mega--drop { min-width: 340px; padding: 16px 26px; }
.nav__item--drop #drop-projects, .nav__item--drop #drop-city { min-width: 280px; }
.drop__list a { padding: 12px 0; font-size: 17px; font-weight: 500; }

/* Розділ «Афіша»: вертикальні постери */
.poster-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.poster-head h1 { margin: 0; }
.poster-head .more { font-size: 14px; color: var(--red-text); font-weight: 600; }
.poster-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
@media (max-width: 767px) { .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }
.poster { display: flex; flex-direction: column; gap: 10px; color: inherit; }
.poster__media { display: block; aspect-ratio: 5 / 7; border-radius: 8px; overflow: hidden; background: var(--line-soft); box-shadow: 0 10px 28px -18px rgba(40, 30, 20, .45); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.poster__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.poster:hover .poster__media { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(40, 30, 20, .55); }
.poster__title { font-size: 17px; line-height: 1.3; font-weight: 700; text-wrap: balance; transition: color .2s; }
.poster:hover .poster__title { color: var(--red-text); }
.poster .meta { font-size: 13px; margin-top: auto; }
.poster-grid + .pagination { margin-top: 36px; }

/* Гортання сторінок BlockPro: скромно */
.pagination .bp-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; margin: 0; font-weight: 600; font-size: 15px; }
.pagination .bp-pager span { min-width: 36px; height: 36px; padding: 0 8px; border: 0; border-radius: 18px; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: color .15s, background-color .15s; }
.pagination .bp-pager span:hover { color: var(--red-text); background: var(--surface); }
.pagination .bp-pager span.current { background: var(--ink); color: var(--on-ink); cursor: default; }
.pagination .bp-pager span.next, .pagination .bp-pager span.prev { color: var(--ink); padding: 0 14px; }
.pagination .bp-pager span[hidden] { display: none; }
.pagination .bp-pager .bp-gap { font-style: normal; color: var(--muted); padding: 0 4px; }
.pagination { display: block; }
.is-loading { opacity: .45; transition: opacity .2s; pointer-events: none; }

/* Афіша: минулі події */
.poster.is-past { opacity: .45; transition: opacity .25s; }
.poster.is-past .poster__media img { filter: grayscale(.6); transition: filter .25s; }
.poster.is-past:hover { opacity: 1; }
.poster.is-past:hover .poster__media img { filter: none; }

/* Бічний блок «Афіша» */
.side-posters[hidden] { display: none; }
.side-posters .wx-card__head { align-items: center; }
.sp-nav { display: inline-flex; gap: 4px; }
.sp-nav[hidden] { display: none; }
.sp-btn { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: border-color .15s, color .15s; }
.sp-btn:hover { border-color: var(--red); color: var(--red-text); }
.sp-btn svg { width: 14px; height: 14px; }
.sp-viewport { overflow: hidden; position: relative; }
.sp-track { display: flex; transition: transform .5s var(--ease); }
.sp-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; gap: 6px; color: inherit; }
.sp-slide__media { display: block; aspect-ratio: 5 / 7; border-radius: 8px; overflow: hidden; background: var(--line-soft); }
.sp-slide__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s var(--ease); }
.sp-slide:hover .sp-slide__media img { transform: scale(1.03); }
.sp-slide__date { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--red-text); text-transform: uppercase; letter-spacing: .03em; }
.sp-slide__title { font-size: 16px; line-height: 1.3; font-weight: 700; text-wrap: balance; transition: color .2s; }
.sp-slide:hover .sp-slide__title { color: var(--red-text); }
.sp-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.sp-dots:empty { display: none; }
.sp-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: var(--line); cursor: pointer; transition: width .3s var(--ease), background-color .3s; }
.sp-dot.is-active { width: 20px; background: var(--red); }
.sp-track { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sp-slide img { -webkit-user-drag: none; pointer-events: none; }

/* Рядок «Топ-новини»: мітка-посилання */
.focus__label a { color: inherit; }
.focus__label a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Розділ «Фото»: великі картки по 2 в рядку */
.photo-h1 { margin-bottom: 20px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
@media (max-width: 640px) { .photo-grid { grid-template-columns: 1fr; gap: 28px; } }
.photo-card { display: flex; flex-direction: column; gap: 10px; color: inherit; }
.photo-card__media { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; background: var(--line-soft); box-shadow: 0 10px 28px -18px rgba(40, 30, 20, .45); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.photo-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.photo-card:hover .photo-card__media { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(40, 30, 20, .55); }
.photo-card:hover .photo-card__media img { transform: scale(1.03); }
.photo-card__badge { position: absolute; left: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: inline-flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.photo-card__badge svg { width: 18px; height: 18px; }
.photo-card__title { font-size: 20px; line-height: 1.25; font-weight: 700; text-wrap: balance; transition: color .2s; }
.photo-card:hover .photo-card__title { color: var(--red-text); }
.photo-card .meta { font-size: 13px; }
.photo-grid + .pagination { margin-top: 40px; }

/* «Фото»: кількість фото на значку, автор фото */
.photo-card__badge.has-count { width: auto; padding: 0 12px 0 10px; gap: 6px; border-radius: 17px; font-size: 13px; font-weight: 700; }
.photo-card__by { display: inline-flex; align-items: center; gap: 5px; }
.photo-card__by svg { width: 15px; height: 15px; flex: none; }

/* Розділ «Фото» без правої колонки: 3 в ряд */
@media (min-width: 1024px) { .layout--full { grid-template-columns: minmax(0, 1fr); } }
.layout--full .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
@media (max-width: 1023px) { .layout--full .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .layout--full .photo-grid { grid-template-columns: 1fr; } }
.layout--full > .sidebar { display: none; }

/* «Відео»: кнопка «грати» на обкладинці */
.photo-card__badge--play { left: 50%; top: 50%; bottom: auto; width: 56px; height: 56px; transform: translate(-50%, -50%); background: rgba(0, 0, 0, .55); transition: background-color .25s, transform .35s var(--ease); }
.photo-card__badge--play svg { width: 24px; height: 24px; margin-left: 3px; }
.photo-card:hover .photo-card__badge--play { background: var(--red); transform: translate(-50%, -50%) scale(1.08); }

/* Розділ «Блоги»: «Наші автори» */
.authors { margin: 4px 0 40px; }
.authors__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 28px 20px; }
.author-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: inherit; }
.author-card__photo { width: 112px; height: 112px; border-radius: 50%; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); margin-bottom: 8px; transition: box-shadow .35s var(--ease); }
.author-card__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.author-card:hover .author-card__photo { box-shadow: 0 0 0 5px var(--surface), 0 0 0 9px var(--red-soft, #F6DCDA); }
.author-card:hover .author-card__photo img { transform: scale(1.07) rotate(-6deg); }
.author-card__name { font-size: 17px; font-weight: 700; line-height: 1.25; transition: color .2s; }
.author-card:hover .author-card__name { color: var(--red-text); }
.author-card__role { font-size: 13px; line-height: 1.35; color: var(--muted); text-wrap: balance; }
.author-card__last { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* «Блоги»: стрічка записів */
.blogs-feed-head { margin-bottom: 8px; }
.blog-list { display: flex; flex-direction: column; }
.blog-row { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line-soft); color: inherit; }
.blog-row:first-child { padding-top: 8px; }
@media (max-width: 600px) { .blog-row { grid-template-columns: minmax(0, 1fr) 110px; gap: 14px; } }
.blog-row__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.blog-row__author { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.blog-row__ava { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none; background: var(--line-soft); }
.blog-row__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-row__title { font-size: 21px; line-height: 1.25; font-weight: 700; text-wrap: balance; transition: color .2s; }
.blog-row:hover .blog-row__title { color: var(--red-text); }
.blog-row .meta { font-size: 13px; }
.blog-row__media { display: block; aspect-ratio: 3 / 2; border-radius: 8px; overflow: hidden; background: var(--line-soft); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.blog-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-row:hover .blog-row__media { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(40, 30, 20, .5); }

/* Картка-заклик «Хочете вести свій блог?» */
.blog-cta { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 8px; background: var(--red); color: #fff; box-shadow: 0 12px 28px -18px rgba(150, 20, 10, .7); transition: transform .3s var(--ease); }
.blog-cta b { font-size: 18px; line-height: 1.2; }
.blog-cta span { font-size: 14px; line-height: 1.45; opacity: .92; }
.blog-cta .blog-cta__go { font-weight: 700; opacity: 1; margin-top: 2px; }
.blog-cta:hover { transform: translateY(-2px); color: #fff; }

/* «Авторські блоги»: блок авторів на білому, картки по 3 в ряд */
.authors { background: var(--surface); border-radius: var(--radius); padding: 22px 24px 26px; margin: 4px 0 40px; }
@media (min-width: 768px) { .authors { padding: 26px 30px 30px; } }
.authors .block-head { margin-bottom: 18px; }
.authors__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .authors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .authors__grid { grid-template-columns: 1fr; } }
.author-card { background: var(--bg); border-radius: 12px; padding: 24px 18px 18px; gap: 4px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s; }
.author-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(40, 30, 20, .5); }
.author-card__photo { width: 104px; height: 104px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); margin-bottom: 12px; }
.author-card__name { font-size: 18px; }
.author-card__role { min-height: 2.7em; }
.author-card__last { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.author-card__last-label { font-size: 12px; color: var(--muted); }
.author-card__last-title { font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-cta { margin-bottom: 4px; }

/* «Блоги»: без «Останній запис»; рядки стрічки на flex (надійніше в Safari, ніж grid на <a>) */
.author-card__ts { display: none; }
.author-card { padding-bottom: 24px; }
.author-card__role { min-height: 0; }
.blog-row { display: flex; align-items: center; gap: 24px; }
.blog-row__body { flex: 1 1 auto; }
.blog-row__media { flex: 0 0 200px; width: 200px; height: 133px; aspect-ratio: auto; }
@media (max-width: 600px) { .blog-row { gap: 14px; } .blog-row__media { flex-basis: 110px; width: 110px; height: 73px; } }
.blog-row__title { text-wrap: wrap; }
.blog-row { flex-direction: row; justify-content: space-between; }
.blog-row__body { min-width: 0; }

/* «Авторські блоги»: білі картки записів по 2 в ряд */
.blogs-feed-head { margin-bottom: 20px; }
.blogs-feed-head h1 { margin: 0; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.blog-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 640px) { .blog-tiles { grid-template-columns: 1fr; gap: 18px; } }
.blog-tile { display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; overflow: hidden; color: inherit; box-shadow: 0 8px 24px -18px rgba(40, 30, 20, .35); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.blog-tile:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(40, 30, 20, .5); }
.blog-tile__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--line-soft); }
.blog-tile__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.blog-tile:hover .blog-tile__media img { transform: scale(1.04); }
.blog-tile__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; flex: 1; }
.blog-tile__title { font-size: 19px; line-height: 1.3; font-weight: 700; transition: color .2s; }
.blog-tile:hover .blog-tile__title { color: var(--red-text); }
.blog-tile .meta { font-size: 13px; margin-top: auto; }
.blog-tiles + .pagination { margin-top: 36px; }

/* «Авторські блоги»: без сірих ліній під заголовками блоків */
.authors .block-head, .blogs-feed-head { border-bottom: 0; padding-bottom: 0; }
.authors .block-head::after, .blogs-feed-head::after { display: none; }

/* Рубрики новин: заголовок розділу і відступ до карток */
.show-news > h1 + div .news-tiles, .show-news > h1 + .news-tiles { margin-top: 4px; }

/* Оголошення: простий список без фото, на білому */
.text-list { display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; padding: 6px 24px; box-shadow: 0 8px 24px -18px rgba(40, 30, 20, .35); }
.text-row { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); color: inherit; }
.text-row:last-child { border-bottom: 0; }
.text-row__title { font-size: 18px; line-height: 1.3; font-weight: 700; transition: color .2s; }
.text-row:hover .text-row__title { color: var(--red-text); }
.text-row .meta { font-size: 13px; }
.text-list + .pagination { margin-top: 32px; }

/* Меню: «Алея Слави» з прапором */
.nav__flag { width: 21px; height: 14px; border-radius: 2px; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.nav__link--glory { gap: 8px; }
.nav__flag { box-shadow: none; border-radius: 0; display: block; }
.nav__item--glory { display: flex; align-items: center; gap: 8px; }

/* Бічний блок «Види спорту» */
.sport-tags--side { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; margin: 0; }
.sport-tags--side .sport-tag { display: flex; gap: 10px; padding: 9px 4px; border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; background: none; font-size: 15px; font-weight: 600; transform: none; box-shadow: none; }
.sport-tags--side .sport-tag:last-child { border-bottom: 0; }
.sport-tags--side .sport-tag svg { width: 20px; height: 20px; flex: none; }
.sport-tags--side .sport-tag span { flex: 1; }
.sport-tags--side .sport-tag:hover { background: none; transform: none; box-shadow: none; color: var(--red-text); }
.sport-tags--side .sport-tag.is-active { color: var(--red-text); }
.sport-tag__n { font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.sport-tags--side .sport-tag[data-tip]::after, .sport-tags--side .sport-tag[data-tip]::before { display: none; }

/* Стандартні списки DLE (теги тощо): картки по 2 в ряд, як у рубриках */
#dle-content:has(> .story-tile) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-content: start; }
#dle-content:has(> .story-tile) > :not(.story-tile) { grid-column: 1 / -1; }
@media (max-width: 640px) { #dle-content:has(> .story-tile) { grid-template-columns: 1fr; gap: 18px; } }
.story-tile .blog-tile__title { margin: 0; }
.story-tile .blog-tile__title a { color: inherit; }
.story-tile .blog-tile__title a::after { content: ""; position: absolute; inset: 0; }
.story-tile { position: relative; }
.story-tile .meta .article__edit { position: relative; z-index: 1; }
#dle-content:has(> .story-tile) > .navigation-wrap { margin-top: 12px; }

/* Сторінка блогера: картка автора */
.blogger-card { display: flex; align-items: center; gap: 28px; background: var(--surface); border-radius: 14px; padding: 26px 30px; margin-bottom: 28px; box-shadow: 0 8px 24px -18px rgba(40, 30, 20, .35); }
@media (max-width: 600px) { .blogger-card { flex-direction: column; text-align: center; gap: 16px; padding: 24px 20px; } }
.blogger-card__photo { flex: none; width: 132px; height: 132px; border-radius: 50%; overflow: hidden; background: var(--line-soft); box-shadow: 0 0 0 5px var(--surface), 0 0 0 6px var(--line); }
.blogger-card__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blogger-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.blogger-card__label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); }
.blogger-card h1 { margin: 0; font-size: 30px; line-height: 1.15; text-wrap: balance; }
@media (min-width: 768px) { .blogger-card h1 { font-size: 34px; } }
.blogger-card__role { margin: 0; font-size: 16px; line-height: 1.4; color: var(--muted); }
.blogger-card__stats { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .blogger-card__stats { justify-content: center; } }
.blogger-card__stats a { color: var(--red-text); font-weight: 700; }
.blogger-card__views { display: inline-flex; align-items: center; gap: 6px; }
.blogger-card__views svg { width: 16px; height: 16px; }
.blogger-card__views b { font-weight: 400; }
.blogger-card { position: relative; }
.blogger-card__all { position: absolute; top: 18px; right: 22px; font-size: 14px; font-weight: 700; color: var(--red-text); }
.blogger-card__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.blogger-card__body { padding-right: 110px; }
@media (max-width: 600px) { .blogger-card__all { position: static; order: 3; } .blogger-card__body { padding-right: 0; } }

/* Запис блогу: картка автора під текстом */
.author-box { display: flex; align-items: center; gap: 18px; margin: 28px 0 16px; padding: 18px 20px; background: var(--bg); border-radius: 12px; }
.author-box__photo { flex: none; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; background: var(--line-soft); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.author-box__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-box__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.author-box__name { font-size: 20px; font-weight: 800; line-height: 1.2; color: var(--ink); }
.author-box__name:hover { color: var(--red-text); }
.author-box__more { font-size: 14px; font-weight: 700; color: var(--red-text); }
.blog-note { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Запис блогу: без «Стрічки новин» і «Читають зараз» у правій колонці */
[data-blog] .sidebar--article .side-zone, [data-blog] .sidebar--article .side-pop { display: none; }

/* Бічний блок «Автори блогів» */
.side-authors__list { display: flex; flex-direction: column; }
.side-author { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: inherit; }
.side-author:last-child { border-bottom: 0; padding-bottom: 0; }
.side-author:first-child { padding-top: 0; }
.side-author__photo { flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--line-soft); transition: box-shadow .3s var(--ease); }
.side-author__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.side-author__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side-author__text b { font-size: 15px; line-height: 1.25; transition: color .2s; }
.side-author__text span { font-size: 12.5px; line-height: 1.35; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.side-author:hover .side-author__text b { color: var(--red-text); }
.side-author:hover .side-author__photo img { transform: scale(1.08) rotate(-5deg); }
.article__cat--blog { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; }
.article__cat--blog > span { color: var(--muted); }

/* ===== Сторінка «Підтримати» ===== */
.sup { display: flex; flex-direction: column; gap: 28px; }
.sup-hero { background: var(--ink); color: #fff; border-radius: 16px; padding: 36px 32px 34px; position: relative; overflow: hidden; }
.sup-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: var(--red); opacity: .9; }
.sup-hero > * { position: relative; z-index: 1; max-width: 760px; }
.sup-kicker { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #F4B4AE; margin-bottom: 10px; }
.sup-hero h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.12; color: #fff; text-wrap: balance; }
@media (min-width: 768px) { .sup-hero { padding: 48px 48px 44px; } .sup-hero h1 { font-size: 44px; } }
.sup-hero__lead { margin: 0; font-size: 18px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.sup-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .sup-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sup-stat { background: var(--surface); border-radius: 12px; padding: 20px 20px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 8px 24px -18px rgba(40, 30, 20, .35); border-top: 3px solid var(--red); }
.sup-stat b { font-size: 32px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.sup-stat span { font-size: 14px; color: var(--muted); }
.sup-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1024px) { .sup-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; } }
.sup-letter { background: var(--surface); border-radius: 16px; padding: 28px 26px; font-size: 18px; }
@media (min-width: 768px) { .sup-letter { padding: 40px 48px; } }
.sup-letter h2 { font-size: 22px; margin: 1.4em 0 .5em; }
.sup-sign { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.sup-sign img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--line); }
.sup-sign div { display: flex; flex-direction: column; gap: 2px; }
.sup-sign b { font-size: 19px; }
.sup-sign span { font-size: 14px; color: var(--muted); }
.sup-donate { background: var(--surface); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 18px 40px -26px rgba(40, 30, 20, .55); border: 2px solid var(--red); }
@media (min-width: 1024px) { .sup-donate { position: sticky; top: 76px; } }
.sup-donate h2 { margin: 0 0 4px; font-size: 22px; }
.sup-seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 10px; padding: 4px; }
.sup-seg button, .sup-amounts button { border: 0; background: none; padding: 10px 8px; border-radius: 8px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s, box-shadow .2s; }
.sup-seg button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px -4px rgba(0, 0, 0, .3); }
.sup-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sup-amounts button { background: var(--bg); color: var(--ink); font-size: 15px; }
.sup-amounts button:hover { color: var(--red-text); }
.sup-amounts button.is-active { background: var(--red); color: #fff; }
.sup-field { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 10px; padding: 0 14px; border: 1px solid transparent; }
.sup-field:focus-within { border-color: var(--red); background: var(--surface); }
.sup-field input { flex: 1; min-width: 0; border: 0; background: none; padding: 12px 0; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.sup-field input.is-bad { color: var(--red-text); }
.sup-field span { color: var(--muted); font-weight: 600; }
.sup-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.sup-note--safe { display: flex; gap: 8px; align-items: flex-start; }
.sup-note--safe svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.sup-go { width: 100%; justify-content: center; font-size: 17px; padding: 14px 18px; }
.sup-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.sup-quick__btn { display: flex; align-items: center; justify-content: center; text-align: center; padding: 10px 8px; border-radius: 10px; font-size: 14px; font-weight: 700; color: #fff; transition: transform .25s var(--ease), filter .2s; }
.sup-quick__btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.sup-quick__btn--mono { background: #111; }
.sup-quick__btn--privat { background: #5B9A2C; }
.sup-ways .block-head { border-bottom: 0; padding-bottom: 0; }
.sup-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.sup-card { background: var(--surface); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 8px 24px -18px rgba(40, 30, 20, .35); }
.sup-card h3 { margin: 0; font-size: 18px; }
.sup-card dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sup-card dt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.sup-card dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sup-card dd span { min-width: 0; overflow-wrap: anywhere; }
.sup-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.sup-card [data-copy] { flex: none; border: 1px solid var(--line); background: none; border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.sup-card [data-copy]:hover { border-color: var(--red); color: var(--red-text); }
.sup-card [data-copy].is-done { background: var(--red); border-color: var(--red); color: #fff; }
.sup-card__link { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--red-text); }
.sup-card__note { margin: 0; font-size: 13px; color: var(--muted); }
.sup-card__note--warn { color: var(--red-text); }
.sup-swift summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--red-text); padding: 4px 0; }
.sup-swift dl { margin-top: 6px; }
.sup-swift dd { font-size: 13px; font-weight: 500; }

/* Блок підтримки під статтею */
.support-inline { justify-content: flex-start; gap: 16px 28px; }
.support-inline__text { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.support-inline__text b { font-size: 21px; line-height: 1.2; font-weight: 800; }
.support-inline__text span { font-size: 14px; line-height: 1.45; font-weight: 600; }
.support-inline .support-inline__btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; background: linear-gradient(135deg, #CC0000 0%, #990000 100%); color: #fff; box-shadow: 0 10px 22px -12px rgba(153, 0, 0, .8); transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s; }
.support-inline .support-inline__btn:hover { background: linear-gradient(135deg, #CC0000 0%, #990000 100%); color: #fff; transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 14px 26px -12px rgba(153, 0, 0, .9); }
.support-inline__btn svg { width: 18px; height: 18px; flex: none; }

/* «Підтримати»: текст звернення зі статичної сторінки DLE */
.sup-letter .static { background: none; padding: 0; border-radius: 0; }
.sup-letter .static-title { display: none; }
.sup-letter .static-text { font-size: inherit; }
.sup-letter .static-text > p:first-child { margin-top: 0; }

/* «Підтримати»: фото редактора на початку тексту, з обтіканням зліва */
.sup-letter img.sup-photo { float: left; width: 200px; height: auto; margin: 6px 26px 14px 0; border-radius: 12px; box-shadow: 0 12px 28px -18px rgba(40, 30, 20, .6); }
@media (max-width: 600px) { .sup-letter img.sup-photo { width: 120px; margin: 4px 16px 10px 0; } }
.sup-letter .static-text::after { content: ""; display: block; clear: both; }

/* «Підтримати»: фото з підписом і збільшенням */
.sup-letter figure.sup-photo { float: left; width: 200px; margin: 6px 26px 14px 0; }
.sup-letter figure.sup-photo a { display: block; cursor: zoom-in; box-shadow: none; }
.sup-letter figure.sup-photo img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 28px -18px rgba(40, 30, 20, .6); transition: transform .35s var(--ease); }
.sup-letter figure.sup-photo a:hover img { transform: scale(1.02); }
.sup-letter figure.sup-photo figcaption { margin-top: 8px; font-size: 13px; font-weight: 700; text-align: center; color: var(--muted); }
@media (max-width: 600px) { .sup-letter figure.sup-photo { width: 130px; margin: 4px 16px 10px 0; } }

/* «Підтримати»: фото вдвічі менше, підпис дрібніший і ближче */
.sup-letter figure.sup-photo { width: 130px; margin: 5px 22px 10px 0; }
.sup-letter figure.sup-photo img { border-radius: 10px; }
.sup-letter figure.sup-photo figcaption { margin-top: 4px; font-size: 11.5px; font-weight: 500; line-height: 1.3; color: var(--muted); }
@media (max-width: 600px) { .sup-letter figure.sup-photo { width: 100px; margin: 4px 14px 8px 0; } }

/* «Підтримати»: фото 300 px */
.sup-letter figure.sup-photo { width: 300px; margin: 6px 28px 14px 0; }
@media (max-width: 700px) { .sup-letter figure.sup-photo { float: none; width: 100%; max-width: 300px; margin: 0 0 16px; } }

/* «Підтримати»: фото без відступу зверху, однакові відступи справа і знизу */
.sup-letter figure.sup-photo { margin: 0 28px 28px 0; }
.sup-letter figure.sup-photo figcaption { margin-top: 2px; line-height: 1.2; }
.sup-letter figure.sup-photo a, .sup-letter figure.sup-photo img { vertical-align: top; }
@media (max-width: 700px) { .sup-letter figure.sup-photo { margin: 0 0 20px; } }
.sup-letter .static-text > figure:first-child + p { margin-top: 0; }
.sup-letter .static-text > figure:first-child { margin-top: 0; }
.sup-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .sup-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sup-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sup-hero h1 { margin-bottom: 0; }
.sup-hero h1 { text-wrap: wrap; }

/* «Підтримати»: картки з цифрами — підйом і червоний градієнт при наведенні */
.sup-stat { position: relative; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.sup-stat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, #CC0000 0%, #990000 100%); opacity: 0; transition: opacity .45s var(--ease); }
.sup-stat::after { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); transform: scale(0); transition: transform .6s var(--ease); }
.sup-stat b, .sup-stat span { transition: color .35s, transform .45s var(--ease); }
.sup-stat b { display: inline-block; transform-origin: left bottom; }
.sup-stat:hover { transform: translateY(-6px); border-color: #990000; box-shadow: 0 22px 40px -22px rgba(153, 0, 0, .75); }
.sup-stat:hover::before { opacity: 1; }
.sup-stat:hover::after { transform: scale(1); }
.sup-stat:hover b { color: #fff; transform: scale(1.06); }
.sup-stat:hover span { color: rgba(255, 255, 255, .85); }
@media (prefers-reduced-motion: reduce) { .sup-stat, .sup-stat b, .sup-stat::before, .sup-stat::after { transition: none; } }

/* «Підтримати»: поява шапки при завантаженні */
@keyframes supHeroIn { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes supCircleIn { from { transform: scale(0) rotate(-30deg); opacity: 0; } to { transform: none; opacity: .9; } }
.sup-hero { animation: supHeroIn .7s cubic-bezier(.2, .7, .2, 1) both; }
.sup-hero::after { animation: supCircleIn 1s cubic-bezier(.2, .7, .2, 1) .25s both; }
.sup-kicker { animation: titleIn .6s cubic-bezier(.2, .7, .2, 1) .3s both; }
.sup-hero h1 { animation: titleIn .8s cubic-bezier(.2, .7, .2, 1) .42s both; }
.sup-stat { animation: titleIn .6s cubic-bezier(.2, .7, .2, 1) both; }
.sup-stat:nth-child(1) { animation-delay: .55s; } .sup-stat:nth-child(2) { animation-delay: .62s; } .sup-stat:nth-child(3) { animation-delay: .69s; } .sup-stat:nth-child(4) { animation-delay: .76s; } .sup-stat:nth-child(5) { animation-delay: .83s; }
@media (prefers-reduced-motion: reduce) { .sup-hero, .sup-hero::after, .sup-kicker, .sup-hero h1, .sup-stat { animation: none; } }
.sup-stat { animation-fill-mode: backwards; }
.sup-stat:hover b { animation: none; }

/* «Підтримати нас»: форма */
.sup-donate { border: 0; }
.sup-donate h2 { display: flex; align-items: center; gap: 10px; }
.sup-heart { width: 24px; height: 24px; color: var(--red-text); flex: none; }
.sup-field input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.sup-field input[type=number]::-webkit-outer-spin-button, .sup-field input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sup-go { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 15px 20px; border: 0; border-radius: 12px; cursor: pointer; font: inherit; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #E01010 0%, #CC0000 45%, #990000 100%); background-size: 200% 200%; background-position: 0% 50%; box-shadow: 0 14px 28px -14px rgba(153, 0, 0, .85); transition: background-position .6s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.sup-go::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: supShine 3.2s ease-in-out 1.5s infinite; }
@keyframes supShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.sup-go:hover { background-position: 100% 50%; transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(153, 0, 0, .95); }
.sup-go:active { transform: translateY(0) scale(.99); }
.sup-go__ico { width: 20px; height: 20px; flex: none; animation: supBeat 1.6s ease-in-out infinite; }
@keyframes supBeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(.95); } 45% { transform: scale(1.12); } }
.sup-go__arrow { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.sup-go:hover .sup-go__arrow { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .sup-go::after, .sup-go__ico { animation: none; } }
.sup-how { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 13.5px; line-height: 1.5; color: var(--ink-2, var(--ink)); }
.sup-how b { display: block; font-size: 14px; margin-bottom: 6px; }
.sup-how ol { margin: 0 0 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.sup-how p { margin: 0; color: var(--muted); font-size: 12.5px; }
.sup-how a { color: var(--red-text); }

/* «Інші способи підтримки»: ряди карток */
.sup-ways { display: flex; flex-direction: column; gap: 18px; }
.sup-ways .block-head { margin-bottom: 0; }
.sup-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sup-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .sup-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .sup-cards--2, .sup-cards--3 { grid-template-columns: 1fr; } }
/* картки банків: у кольорах банків, уся картка — посилання */
.sup-card--bank { position: relative; overflow: hidden; color: #fff; padding: 24px 26px; min-height: 170px; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.sup-card--mono { background: linear-gradient(135deg, #2b2b2b 0%, #000 70%); }
.sup-card--privat { background: linear-gradient(135deg, #8DC63F 0%, #4E9A2A 100%); }
.sup-card--bank:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(0, 0, 0, .6); }
.sup-card__cover { position: absolute; inset: 0; z-index: 1; }
.sup-card--bank h3 { color: #fff; font-size: 20px; }
.sup-card--bank dt { color: rgba(255, 255, 255, .7); }
.sup-card--bank dd { font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.sup-card--bank [data-copy] { position: relative; z-index: 2; color: #fff; border-color: rgba(255, 255, 255, .45); }
.sup-card--bank [data-copy]:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .12); }
.sup-card--bank [data-copy].is-done { background: #fff; border-color: #fff; color: #111; }
.sup-card__logo { position: absolute; right: 20px; top: 18px; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; letter-spacing: .02em; background: rgba(255, 255, 255, .14); }
.sup-card--privat .sup-card__logo { font-size: 22px; }
.sup-card__go { position: absolute; right: 22px; bottom: 18px; font-size: 22px; font-weight: 700; opacity: .7; transition: transform .3s var(--ease), opacity .3s; }
.sup-card--bank:hover .sup-card__go { transform: translateX(5px); opacity: 1; }

/* «Інші способи»: білі картки піднімаються з тінню */
.sup-card:not(.sup-card--bank) { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.sup-card:not(.sup-card--bank):hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px rgba(40, 30, 20, .55); }
@media (prefers-reduced-motion: reduce) { .sup-card { transition: none; } .sup-card:hover { transform: none; } }

/* Усі кнопки «Підтримати»: градієнт, відблиск, сердечко б'ється, підйом при наведенні */
.btn-support, .support-inline__btn, .btn-pulse { position: relative; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-position .6s var(--ease), filter .2s; }
.btn-support, .support-inline .support-inline__btn { background: linear-gradient(135deg, #E01010 0%, #CC0000 45%, #990000 100%); background-size: 200% 200%; background-position: 0% 50%; box-shadow: 0 10px 22px -12px rgba(153, 0, 0, .8); }
.btn-support:hover, .support-inline .support-inline__btn:hover { background: linear-gradient(135deg, #E01010 0%, #CC0000 45%, #990000 100%); background-size: 200% 200%; background-position: 100% 50%; color: #fff; transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(153, 0, 0, .95); filter: none; }
.btn-support::after, .support-inline__btn::after, .btn-pulse::after { content: ""; position: absolute; z-index: -1; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-20deg); animation: supShine 3.2s ease-in-out 1.5s infinite; pointer-events: none; }
.btn-pulse::after { background: linear-gradient(100deg, transparent, rgba(204, 0, 0, .18), transparent); }
.btn-support svg, .support-inline__btn svg, .btn-pulse svg { animation: supBeat 1.6s ease-in-out infinite; }
.btn-pulse { display: inline-flex; align-items: center; gap: 8px; }
.btn-pulse svg { width: 18px; height: 18px; flex: none; color: var(--red-text); }
.btn-pulse:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .45); }
.header .btn-support:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .btn-support::after, .support-inline__btn::after, .btn-pulse::after, .btn-support svg, .support-inline__btn svg, .btn-pulse svg { animation: none; } }

/* Блок підтримки під статтею: кнопка по центру свого простору */
.support-inline__text { flex: 1 1 420px; max-width: 560px; }
.support-inline .support-inline__btn { margin: 0 auto; }

/* Перегляди на статичних сторінках */
.static-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.static-views { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.static-views svg { width: 16px; height: 16px; }
.wx-page-head__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.wx-page-head__side .page-subtitle { margin: 6px 0 0; }
@media (max-width: 600px) { .wx-page-head__side { align-items: flex-start; } }

/* Афіша на головній: 4 постери в ряд */
.poster-grid--home { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 20px; }
@media (max-width: 900px) { .poster-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.poster-grid--home .poster__title { font-size: 16px; }

/* Логотип: «інтернет-видання» над назвою */
.logo__kicker { font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 768px) { .logo__kicker { font-size: 12px; letter-spacing: .2em; margin-bottom: 2px; } }
.logo__tagline { text-transform: none; letter-spacing: .02em; }
.logo__kicker { text-transform: none; letter-spacing: .06em; font-size: 10px; }
@media (min-width: 768px) { .logo__kicker { font-size: 13px; letter-spacing: .08em; } }

/* Футер: градієнтний фон, «інтернет-видання» під назвою */
.footer { background: linear-gradient(135deg, #24252A 0%, #121316 55%, #2A0E0E 100%); }
.footer__legal { border-top-color: rgba(255, 255, 255, .1); }
.footer__logo-wrap { display: flex; flex-direction: column; gap: 4px; line-height: 1; }
.footer__kicker { font-size: 13px; letter-spacing: .08em; color: #BDB6AB; }
.footer__id { font-size: 13px; color: #9C958B; }

/* Футер: розділи як у меню шапки, редакційні посилання в лінію */
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.5fr repeat(6, minmax(0, 1fr)); gap: 28px; } }
@media (min-width: 640px) and (max-width: 1023px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.footer__col { gap: 8px; font-size: 13.5px; }
a.footer__head { color: #fff; }
.footer__head { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 2px 0 6px; font-size: 13px; }
.footer__links a { color: #D9D5CF; }
.footer__links a:not(:last-child)::after { content: "·"; margin: 0 10px; color: #6E685F; }
.footer__links a:hover { color: #fff; }

/* Футер: компактне меню розділів, як у шапці */
.footer__grid { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 28px 48px; padding: 44px 0 28px; }
.footer__brand { flex: 0 1 360px; }
.footer__menu { flex: 1 1 480px; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 10px 26px; padding-top: 4px; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.footer__menu a { color: #fff; }
.footer__menu a:hover { color: #F4B4AE; }
.footer__menu-sep { flex-basis: 100%; height: 0; }
.footer__menu-sep ~ a { font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #BDB6AB; }
@media (max-width: 767px) { .footer__menu { justify-content: flex-start; gap: 10px 20px; } }

/* Футер: правова інформація під меню, праворуч */
.footer__side { flex: 1 1 520px; display: flex; flex-direction: column; gap: 20px; }
.footer__side .footer__menu { flex: none; }
.footer__side .footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0 0; text-align: right; font-size: 12px; line-height: 1.6; color: #9C958B; }
@media (max-width: 767px) { .footer__side .footer__legal { text-align: left; } }
.footer__grid { padding-bottom: 36px; }

/* Мобільна шапка: пошук — кругла кнопка з лупою, завжди видима */
@media (max-width: 767px) {
  .header__left [data-search-open], .header__left .search-btn { display: inline-flex !important; }
  .search-btn { width: 32px; height: 32px; padding: 0; border-radius: 50%; justify-content: center; gap: 0; }
  .search-btn span { display: none; }
  .search-btn svg { width: 16px; height: 16px; }
  .header__left .header__sep { display: none; }
  .header__left { gap: 8px; }
}

/* Планшет: під топ-новиною лише 2 додаткові топи (рівний ряд) */
@media (min-width: 640px) and (max-width: 1023px) { .cards--tops > .card:nth-child(n+3) { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) { .cards--tops { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Мобільна версія: лише головне ===== */
@media (max-width: 767px) {
  .m-hide, .partners2 { display: none !important; }
}
/* Афіша на головній: на телефоні й планшеті — лише коли є майбутні події */
@media (max-width: 1023px) {
  [data-afisha-home]:not(.has-upcoming) { display: none; }
}

/* Мобільне меню (бургер) за новою структурою */
.drawer__news summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-softer); cursor: pointer; }
.drawer__news summary::-webkit-details-marker { display: none; }
.drawer__caret { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.drawer__news[open] .drawer__caret { transform: rotate(180deg); }
.drawer__news[open] summary { color: var(--red-text); }
.drawer__sub { padding: 4px 0 12px; text-transform: none; }
.drawer__group { margin: 12px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.drawer__sub .drawer__cats { font-size: 15px; }
.drawer__sub .drawer__cats a { padding: 7px 0; }
.drawer__more { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line-softer); font-size: 14px; font-weight: 700; }
.drawer__more a:last-child { color: var(--red-text); }
.drawer__glory { display: flex !important; align-items: center; gap: 10px; }
.drawer__glory .nav__flag { width: 22px; height: 15px; }
.drawer__help { list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 600; }
.drawer__help a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-softer); }
.drawer__help li:last-child a { border-bottom: 0; }
.drawer a:hover { color: var(--red-text); }

/* Мобільна версія: без додаткових топів, тематичних блоків і чорного верхнього рядка */
@media (max-width: 767px) {
  .cards--tops, .tag-sections, .topbar { display: none !important; }
}

/* Мобільна версія: без рядка «Актуально/Топ-новини», без сердечка в шапці; короткий рядок меню по центру */
.quicknav ul { width: max-content; margin: 0 auto; }
@media (max-width: 767px) {
  .focus { display: none !important; }
  .header__right .btn-support, .header__right .header__sep--r { display: none !important; }
}

/* Мобільна версія: на головній у блоці Афіші — лише 2 перші (найактуальніші) афіші */
@media (max-width: 767px) { .poster-grid--home > .poster:nth-child(n+3) { display: none; } }

/* Планшет: без блоку «Полонені» */
@media (min-width: 768px) and (max-width: 1023px) { .tag-sections [aria-labelledby="sec-captives"] { display: none; } }

/* Планшет: у блоці Афіші на головній — 2 афіші в ряд; без партнерів */
@media (min-width: 768px) and (max-width: 1023px) {
  .poster-grid--home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .poster-grid--home > .poster:nth-child(n+3) { display: none; }
  .partners2 { display: none !important; }
}

/* Мобільна версія статті: без кнопки Google, без «Читайте також», «Матеріали за темою», топів, Афіші й «Читають зараз» */
@media (max-width: 767px) {
  .google-src, .sidebar--article .side-posters, .sidebar--article .side-pop { display: none !important; }
}

/* Мобільна версія: під час тривоги — лише червоне блимаюче коло без слова «Тривога» */
@keyframes airBlinkRed { 0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(204, 0, 0, .55); } 50% { opacity: .55; transform: scale(.85); box-shadow: 0 0 0 7px rgba(204, 0, 0, 0); } }
@media (max-width: 767px) {
  .air-alert.is-alert { width: 32px; height: 32px; padding: 0; justify-content: center; background: transparent; border-color: var(--line-soft); }
  .air-alert.is-alert .air-alert__text { display: none !important; }
  .air-alert.is-alert .air-alert__text::before { content: none; }
  .air-alert.is-alert .air-alert__dot { width: 14px; height: 14px; background: #CC0000; animation: airBlinkRed 1.1s ease-in-out infinite; }
  .air-alert:not(.is-alert) { width: 32px; height: 32px; padding: 0; justify-content: center; }
}

/* ===== Скорочений підвал для телефона й планшета ===== */
@media (max-width: 1023px) {
  .footer__grid { flex-direction: column; align-items: center; text-align: center; gap: 18px; padding: 28px 0 22px; }
  .footer__brand { flex: none; align-items: center; gap: 6px; max-width: none; }
  .footer__logo-wrap { align-items: center; }
  .footer__logo { font-size: 22px; }
  .footer__brand .btn-support { display: none; }
  .footer__id { font-size: 11.5px; }
  .footer__side { flex: none; width: 100%; gap: 14px; }
  .footer__menu { justify-content: center; gap: 8px 18px; font-size: 13px; padding-top: 0; }
  .footer__menu-sep ~ a { font-size: 12px; }
  /* редакційні: лише головні три */
  .footer__menu-sep ~ a[href="/copyrights.html"], .footer__menu-sep ~ a[href="/editorial-policy.html"], .footer__menu-sep ~ a[href="/privacy-policy.html"] { display: none; }
  .footer__side .footer__legal { text-align: center; padding-top: 12px; font-size: 11px; }
  .footer__side .footer__legal p:not(:first-child) { display: none; }
}

/* Мобільний підвал: без «Алеї Слави» і редакційних посилань; «Усі права застережено» з нового рядка */
@media (max-width: 767px) {
  .footer__menu a[href="/alley-of-glory/"], .footer__menu-sep, .footer__menu-sep ~ a { display: none !important; }
  .footer__rights { display: block; }
}

/* Мобільна версія статті: без рубрик, «Версії для друку», вставок «Читайте також» у тексті й блоку підтримки; менший відступ до «Стрічки новин» */
@media (max-width: 767px) {
  .article .article__cat, .article__print, .prose .related-single, .support-inline { display: none !important; }
  .after-article { margin-top: 16px; gap: 24px; }
  .after-article:not(:has(> section:not(.m-hide))) { display: none; }
  .sidebar--article .ad:empty, .sidebar--article .ad:not(:has(*)) { display: none; }
  .layout:has(.sidebar--article) { gap: 16px; }
}

/* Мобільна версія розділу «Афіша»: без погоди, курсу й розкладу автобусів */
@media (max-width: 767px) { [data-sec="afisha"] .sidebar .wx-card, [data-sec="afisha"] .sidebar .side-bus { display: none !important; } }

/* Мобільна версія блогів: без Афіші, погоди, курсу й розкладу автобусів у колонці */
@media (max-width: 767px) { [data-blog] .sidebar .side-posters, [data-blog] .sidebar .wx-card:not(.side-authors), [data-blog] .sidebar .side-bus { display: none !important; } }

/* Мобільна головна: прибираємо порожні рядки сітки (сховані «Вибір редактора» і «Читають») і зменшуємо відступ до Афіші */
@media (max-width: 767px) {
  .home-top { grid-template-areas: "main" "feed"; }
  .row-a--afisha { margin-top: 20px; }
}

/* Футер: логотип — посилання на головну */
a.footer__logo-wrap { color: inherit; text-decoration: none; }
a.footer__logo-wrap:hover .footer__logo { color: #F4B4AE; }
.footer__logo { transition: color .2s; }
/* Мобільна версія «Усі новини»: без Афіші, погоди, курсу й розкладу */
@media (max-width: 767px) { [data-sec="lastnews"] .sidebar .side-posters, [data-sec="lastnews"] .sidebar .wx-card, [data-sec="lastnews"] .sidebar .side-bus { display: none !important; } }

/* Мобільна версія: менший відступ від останнього блоку до підвалу */
@media (max-width: 767px) {
  main.page { padding-bottom: 20px; }
  .sidebar .ad:not(:has(*)), .sidebar__sticky:not(:has(.ad *)) { display: none; }
}

/* Права колонка тегу «Герої не вмирають» */
.heroes-side { display: flex; flex-direction: column; gap: var(--gap); }
.glory-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px; border-radius: 12px; background: linear-gradient(135deg, #3a3a3a 0%, #000 75%); color: #fff; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .7); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.glory-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 215, 0, .16), transparent 70%); }
.glory-card:hover { color: #fff; transform: translateY(-4px); box-shadow: 0 22px 40px -20px rgba(0, 0, 0, .85); }
.glory-card__flag { width: 30px; height: 20px; }
.glory-card__title { font-size: 24px; font-weight: 800; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; }
.glory-card__text { font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.glory-card__go { margin-top: 4px; font-size: 14px; font-weight: 700; color: #FFD700; transition: transform .3s var(--ease); }
.glory-card:hover .glory-card__go { transform: translateX(4px); }
.tag-block--side { background: var(--surface); border-radius: 12px; padding: 18px 18px 14px; }

/* Теги пам'яті: без Афіші, погоди, курсу й розкладу в колонці */
.is-memory-tag .sidebar .side-posters, .is-memory-tag .sidebar .wx-card, .is-memory-tag .sidebar .side-bus { display: none !important; }

/* Теги пам'яті, права колонка: однакові відступи між блоками; у блоках — перша новина з фото, решта текстовими посиланнями */
.heroes-side .tag-block--side, .heroes-side .tag-block--accent { margin: 0 !important; }
.tag-block--side .row-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.tag-block--side .row-item:last-of-type { border-bottom: 0; }
.tag-block--side .row-item .media, .tag-block--side .row-item .meta { display: none; }
.tag-block--side .row-item__title { font-size: 15px; line-height: 1.35; font-weight: 600; transition: color .2s; }
.tag-block--side .row-item:hover .row-item__title { color: var(--red-text); }
.tag-block--side .sec-lead { margin-bottom: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.tag-block--side .sec-lead .card__title { font-size: 17px; }

/* Теги пам'яті, колонка: без подвійної лінії; дата й перегляди в текстових посиланнях */
.tag-block--side .sec-lead { border-bottom: 0; padding-bottom: 6px; margin-bottom: 0; }
.tag-block--side .row-item { border-top: 0; }
.tag-block--side .row-item .meta { display: flex; margin-top: 4px; font-size: 12px; }
.tag-block--side .sec-lead + .row-item { border-top: 1px solid var(--line-soft); }

/* Теги пам'яті, колонка: заголовки блоків як у «Стрічки новин» */
.tag-block--side .block-head { margin-bottom: 12px; }
.tag-block--side .block-head h2 { font-size: 18px; line-height: 1.2; }
.tag-block--side .block-head h2 .rub-ico { width: 18px; height: 18px; }
.tag-block--side .block-head h2 .flag-ua { width: 22px; height: 15px; }

/* Картка «Алея Слави»: прапор після назви, повільний відблиск */
.glory-card__title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.glory-card__title .glory-card__flag { width: 27px; height: 18px; flex: none; }
.glory-card { isolation: isolate; }
.glory-card::before { content: ""; position: absolute; z-index: -1; top: 0; left: -70%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .13), transparent); transform: skewX(-20deg); animation: gloryShine 6s ease-in-out 1s infinite; pointer-events: none; }
.glory-card::after { z-index: -2; }
@keyframes gloryShine { 0%, 55% { left: -70%; } 100% { left: 140%; } }
@media (prefers-reduced-motion: reduce) { .glory-card::before { animation: none; } }

/* Смужка прогресу вгорі при переході між сторінками */
.navbar-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 9999; pointer-events: none; transform-origin: left center; transform: scaleX(0); opacity: 0; background: linear-gradient(90deg, #E01010, #CC0000 60%, #FF5A4E); box-shadow: 0 0 10px rgba(224, 16, 16, .6), 0 0 4px rgba(224, 16, 16, .5); transition: transform 8s cubic-bezier(.08, .7, .2, 1), opacity .3s; }
.navbar-progress.is-on { opacity: 1; }
.navbar-progress.is-done { transition: transform .25s ease-out, opacity .35s .15s; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .navbar-progress { transition: opacity .2s; } }

/* Кілька матеріалів у одному «Читайте також» ([related=1,2]): відступ і лінія між ними */
.prose .related-single-link + .related-single-link, .prose .related-single-link ~ .related-single-link { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* Логотипи: «ІНТЕРНЕТ-ВИДАННЯ» великими літерами */
.logo__kicker, .footer__kicker { text-transform: uppercase; letter-spacing: .12em; }
.logo__kicker { font-size: 9px; }
@media (min-width: 768px) { .logo__kicker { font-size: 11px; letter-spacing: .16em; } }
.footer__kicker { font-size: 11px; }

/* ===== Сторінка 404 ===== */
.e404 { max-width: 720px; margin: 24px auto 40px; padding: 48px 28px 52px; text-align: center; background: var(--surface); border-radius: 16px; box-shadow: 0 10px 30px -20px rgba(40, 30, 20, .35); animation: titleIn .7s cubic-bezier(.2, .7, .2, 1) both; }
.e404__code { font-size: clamp(110px, 24vw, 200px); font-weight: 800; line-height: .9; letter-spacing: -.04em; background: linear-gradient(135deg, #E01010 0%, #CC0000 45%, #990000 100%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }
.e404 h1 { margin: 0 0 12px; font-size: 28px; }
@media (min-width: 768px) { .e404 h1 { font-size: 34px; } }
.e404__text { margin: 0 auto 28px; max-width: 520px; font-size: 17px; line-height: 1.55; color: var(--muted); }
.e404__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; }
.e404__search { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; background: linear-gradient(135deg, #E01010 0%, #CC0000 45%, #990000 100%); color: #fff; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.e404__search svg { width: 18px; height: 18px; }
.e404__search:hover { color: #fff; filter: brightness(1.08); }
.e404__home { height: 46px; display: inline-flex; align-items: center; padding: 0 20px; background: var(--bg); color: var(--ink); font-weight: 700; }
.e404__home:hover { color: var(--red-text); }
.e404__link { font-weight: 700; color: var(--red-text); }
.is-404 .focus { display: none; }
