/* Fira Sans — власні копії шрифтів (замість Google Fonts) */
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/fira-sans-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/fira-sans-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/fira-sans-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/fira-sans-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/fira-sans-800-normal.woff2) format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url(../fonts/fira-sans-400-italic.woff2) format('woff2'); }
@font-face { font-family: 'Fira Sans'; font-style: italic; font-weight: 700; font-display: swap; src: url(../fonts/fira-sans-700-italic.woff2) format('woff2'); }

/* ==========================================================================
   Світловодськ · шаблон 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--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); }
.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; 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; align-items: center; justify-content: center; }
.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; }
.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; 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--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__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; 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; }

/* ---------- Сітка головної ---------- */
.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; }
@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; }

.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__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)); } }
.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; }

/* Рядок з мініатюрою */
.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; }

/* Алея Слави */
.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; }
@media (min-width: 768px) { .hero-card { width: 176px; } }
@media (prefers-reduced-motion: reduce) {
  .alley__track { animation: none; }
  .alley__viewport { overflow-x: auto; }
}

/* Блоки розділів на головній */
.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; }
.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; }
@media (min-width: 768px) {
  .list-item { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
}

/* Пагінація (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 { 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; }
.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-weight: 600; margin-bottom: 24px; }
.article__lead img, .article__lead .highslide img { display: block; height: auto; 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 { 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; }
.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); }
.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; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track > * { flex: 0 0 100%; scroll-snap-align: center; }
.gallery__track img { margin: 0; cursor: zoom-in; }
.gallery__btn { position: absolute; top: 50%; transform: translateY(-50%); border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery__count { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Перегляд фото на весь екран */
.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; display: flex; flex-wrap: wrap; align-items: center; }
.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; }

/* ---------- Статична сторінка ---------- */
.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); }

/* ---------- Підвал ---------- */
.footer { color: #BDB6AB; font-size: 14px; }
.footer a { color: #D9D5CF; }
.footer a:hover { color: #fff; }
.footer__grid { 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__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); }
.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 { 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__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-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 1024px) { .picks { padding: 24px 28px; } }
.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; 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; }
.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); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.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; }
.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; 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; }
}
/* Під блогами: рубрики ліворуч, права колонка (автобуси, соцмережі, реклама) */

/* Вибір редактора: тінь під фото при наведенні */
.picks .media { transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.picks__card:hover .media { 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, .quicknav { position: relative; }

/* Блоги: м'який дзеркальний градієнт, заголовок по центру, «Усі блоги» внизу праворуч */
.blogs-band::before { border: 0 !important; }
.blogs-band__head { grid-template-columns: 1fr auto 1fr; margin-bottom: 24px; }
.blogs-band__head h2 { 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; }
.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; }
.blogs-track .blog-card__photo img { border-radius: 50%; transition: transform .45s var(--ease); }

/* Вибір редактора: лід */
.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-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); }

/* «Читають зараз»: 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-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; 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: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::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%); }

/* Блоги: постійна обводка портрета + легка тінь при наведенні */

/* Портрет збільшується разом з обводкою (раніше фото перекривало кільце) */
.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; 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; }

/* ===== Нижня частина головної: ряди А (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 .block-head h2 { font-size: 20px; }
@media (min-width: 1200px) { .row-a .block-head h2 { font-size: 22px; } }
.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%); }
:root[data-theme="dark"] .strip-band::before { background: linear-gradient(to bottom, var(--bg) 0%, #22262A 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-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); 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; }
  .tag-block--wide > .tag-block__foot { 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 { 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; 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; }
.wx-days li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; 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 { 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; }

/* Варіант 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); }
: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); }

/* Компактні ряди: біла підсвітка блоку при наведенні */
/* тінь підсвіченого блоку — поверх сусідніх смуг (раніше її перекривав фон каруселі нижче) */

/* Фоторепортаж: внутрішня тінь — смуга ніби «провалюється» під сайт */
.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); }
.strip-band + .strip-band { margin-top: 12px; }

/* Спорт: швидкі переходи за видами спорту під горталкою */
.sport-tags { display: flex; flex-wrap: wrap; justify-content: center; margin-top: -14px; position: relative; z-index: 1; }
.sport-tag { display: inline-flex; align-items: center; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-soft); 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 { 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 { 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: 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); }

/* Алея Слави: біле світіння без обрізання, біле ім'я при наведенні */
.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); }
.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; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.home-bus .bus-w-head b { font-size: 15px; letter-spacing: .03em; white-space: nowrap; 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; }
.home-bus .bus-w-name { font-family: inherit; font-size: 11px; letter-spacing: .05em; }
.home-bus .bus-w-more { background: none; color: var(--muted) !important; font-family: inherit; font-weight: 400; text-transform: none; }
.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-main { flex-direction: column; align-items: flex-start; gap: 0; }
.home-bus .bus-w-in { font-size: 13px; }

/* Курс валют у верхньому рядку */
.topbar__fx a { white-space: nowrap; }
.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; } }
@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; 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; 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; border-radius: 10px; border: 1px solid var(--line-soft); text-align: center; transition: opacity .3s, background .3s, border-color .3s, color .3s, box-shadow .35s var(--ease), transform .35s var(--ease), filter .3s; }
.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); transform: translateY(-2px); box-shadow: 0 12px 26px -16px rgba(40, 30, 20, .4); }
.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; }
.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); }
.partners2 { border-top: 0; padding-top: 0; }
.partner__name { font-weight: 400; }
/* фото в тексті статті (з посиланням на повний розмір) — на всю ширину колонки */
.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; 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 .highslide-caption { display: block; 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: 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: 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; }
.gallery__track > * { aspect-ratio: auto; }
.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; 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; }
.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; 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 { 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; opacity: 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: 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; }
/* «Актуально»: дата перед назвою, як у стрічці новин */
.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 { 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; 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__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mega__h { margin: 0 0 6px; border-bottom: 2px solid var(--red); 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; 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; border-top: 1px solid var(--line-soft); }
.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; }
.drop__list { list-style: none; margin: 0; padding: 0; }
.drop__list a { display: block; 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; 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; 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; 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; }
.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; 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__grid { display: grid; }
.author-card { display: flex; flex-direction: column; align-items: center; text-align: center; color: inherit; }
.author-card__photo { border-radius: 50%; 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-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; }

/* «Блоги»: стрічка записів */
.blog-list { display: flex; flex-direction: column; }
.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-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; }
.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; }

/* «Авторські блоги»: білі картки записів по 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; flex: none; }
.nav__flag { box-shadow: none; border-radius: 0; display: block; }

/* Бічний блок «Види спорту» */
.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:not(.side-roads) { 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); }

/* ===== Сторінка «Підтримати» ===== */
.sup { display: flex; flex-direction: column; gap: 28px; }

/* Блок підтримки під статтею */
.support-inline { justify-content: flex-start; gap: 16px 28px; }
.support-inline__text { display: flex; flex-direction: column; gap: 6px; }
.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 */

/* «Підтримати»: фото редактора на початку тексту, з обтіканням зліва */

/* «Підтримати»: фото з підписом і збільшенням */

/* «Підтримати»: фото вдвічі менше, підпис дрібніший і ближче */

/* «Підтримати»: фото 300 px */

/* «Підтримати»: фото без відступу зверху, однакові відступи справа і знизу */

/* «Підтримати»: картки з цифрами — підйом і червоний градієнт при наведенні */

/* «Підтримати»: поява шапки при завантаженні */
@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; } }

/* «Підтримати нас»: форма */
@keyframes supShine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
@keyframes supBeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(.95); } 45% { transform: scale(1.12); } }

/* «Інші способи підтримки»: ряди карток */
/* картки банків: у кольорах банків, уся картка — посилання */

/* «Інші способи»: білі картки піднімаються з тінню */

/* Усі кнопки «Підтримати»: градієнт, відблиск, сердечко б'ється, підйом при наведенні */
.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; }

/* Афіша на головній: 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-weight: 700; color: var(--muted); }
@media (min-width: 768px) { .logo__kicker { margin-bottom: 2px; } }
.logo__tagline { text-transform: none; letter-spacing: .02em; }
.logo__kicker { text-transform: none; letter-spacing: .06em; }

/* Футер: градієнтний фон, «інтернет-видання» під назвою */
.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 { 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__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, .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 .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; }

/* ===== Хвилина мовчання (щодня о 9:00) ===== */
.mos { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .86); opacity: 0; transition: opacity .6s ease; }
.mos.is-on { opacity: 1; }
.mos__box { width: min(900px, 100%); display: flex; flex-direction: column; gap: 14px; color: #fff; text-align: center; transform: translateY(12px); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.mos.is-on .mos__box { transform: none; }
.mos__title { margin: 0; font-size: clamp(22px, 4vw, 34px); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mos__sub { margin: 0 auto; max-width: 620px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.mos__frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.mos__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mos__bar { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.mos__timer { font-size: 14px; color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; }
.mos__close { height: 44px; padding: 0 26px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 22px; background: transparent; color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: background-color .2s, color .2s; }
.mos__close:hover { background: #fff; color: #000; }

/* Хвилина мовчання: після хвилини — «Пам'ятаємо поіменно», кнопки «Алея Слави» і «Закрити» */
.mos__bar { flex-direction: column; gap: 10px; }
.mos__timer[hidden], .mos__after[hidden] { display: none; }
.mos__after { display: flex; flex-direction: column; align-items: center; gap: 10px; animation: titleIn .6s cubic-bezier(.2, .7, .2, 1) both; }
.mos__remember { margin: 0; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
.mos__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.mos__glory { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 24px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 22px; color: #fff; font-weight: 700; transition: background-color .2s, color .2s, border-color .2s; }
.mos__glory:hover { background: #fff; color: #000; border-color: #fff; }
.mos__flag { width: 22px; height: 15px; flex: none; }

/* Фото в тексті: компактніші відступи, підпис щільно під фото */
.prose > img, .prose > a > img, .prose > p > img, .prose > p > a > img { margin: .9em auto .5em; }
.prose .img-cap { margin: 0 0 1.1em; }

/* Фотоблок: смуга мініатюр суцільна до кінця — порожнє місце сірим, темнішим за тло слайдів */
.gallery__thumbs { background: #E3E0DA; }
:root[data-theme="dark"] .gallery__thumbs { background: #1A1916; }

/* Плаваюча кнопка адмінпанелі (лише група 1) */
.admin-fab { position: fixed; top: 82px; right: calc((100vw - var(--wrap)) / 4 - 14px); z-index: 60; border-radius: 50%; background: var(--ink); color: var(--on-ink) !important; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); opacity: .55; transition: opacity .2s, background .2s, transform .2s; }
.admin-fab:hover, .admin-fab:focus-visible { opacity: 1; background: var(--red); transform: rotate(30deg); }
.admin-fab.is-edit { background: var(--red); opacity: .7; }
.admin-fab svg { width: 18px; height: 18px; }
.admin-fab { width: 28px; height: 28px; }
/* вузькі екрани: поля замалі — кнопка внизу над «вгору» */
@media (max-width: 1407px) { .admin-fab { top: auto; bottom: 76px; right: 20px; width: 40px; height: 40px; } .admin-fab svg { width: 20px; height: 20px; } }
@media print { .admin-fab { display: none !important; } }

/* BB-код [size=N] з DLE видає розмір у pt (12pt = 16px), що дрібніше за наш текст (19px).
   Перераховуємо відносно розміру тексту статті, щоб [size=3] і більші були не меншими за текст. */
.prose span[style*="font-size:8pt"]  { font-size: .8em !important; }
.prose span[style*="font-size:10pt"] { font-size: .9em !important; }
.prose span[style*="font-size:12pt"] { font-size: 1.08em !important; line-height: 1.4; }
.prose span[style*="font-size:14pt"] { font-size: 1.18em !important; line-height: 1.35; }
.prose span[style*="font-size:18pt"] { font-size: 1.32em !important; line-height: 1.3; }
.prose span[style*="font-size:24pt"] { font-size: 1.6em !important; line-height: 1.25; }
.prose span[style*="font-size:36pt"] { font-size: 2em !important; line-height: 1.2; }

/* Вебсповіщення: дзвіночок і віконце */
.header__left .push-btn[hidden] { display: none !important; }
.push-btn.is-on { color: var(--red-text); border-color: var(--red); }
.push-btn.is-on svg { fill: currentColor; }
.push-pop { position: absolute; z-index: 120; width: 300px; max-width: calc(100vw - 24px); padding: 18px 18px 16px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.18); border: 1px solid var(--line-soft); font-size: 14px; line-height: 1.45; }
.push-pop__x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.push-pop__x:hover { color: var(--red-text); }
.push-pop__t { margin: 0 24px 6px 0; font-weight: 700; font-size: 16px; }
.push-pop__d { margin: 0; color: var(--muted); }
.push-pop__btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.push-pop__btn { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--red); background: var(--red); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.push-pop__btn:hover { filter: brightness(1.08); }
.push-pop__btn:disabled { opacity: .6; cursor: default; }
.push-pop__btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.push-pop__btn--ghost:hover { border-color: var(--red); color: var(--red-text); filter: none; }
@media print { .push-btn, .push-pop { display: none !important; } }

/* Дзвіночок: на телефоні — праворуч біля «гамбургера», на ширших екранах — ліворуч біля пошуку */
.header__right .push-btn--m { display: none !important; }
@media (max-width: 767px) {
  .header__left .push-btn { display: none !important; }
  .header__right .push-btn--m:not([hidden]) { display: inline-flex !important; padding: 0; border-radius: 50%; justify-content: center; gap: 0; }
  .header__right .push-btn--m span { display: none; }
  .header__right .push-btn--m svg { width: 16px; height: 16px; }
  .header__right .menu-toggle { width: 32px; height: 32px; }
  .header__right { gap: 8px; }
}
@media (max-width: 389px) { .logo__name { font-size: 19px !important; } .header .logo .logo__tagline { font-size: 8.5px !important; letter-spacing: 0 !important; } }

/* «Редагувати» (лише адміністратор) — праворуч, поруч із «Версією для друку» */
.article__meta .article__edit { order: 98; display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
.article__meta .article__edit:hover { color: var(--red-text); }
.article__meta .article__edit svg { width: 15px; height: 15px; }
.article__meta:has(.article__edit) .article__print { margin-left: 18px; }
@media print { .article__meta .article__edit { display: none !important; } }

/* Дзвіночок «дзвонить» і підказка при наведенні */
@keyframes sv-bell-ring {
  0% { transform: rotate(0); } 10% { transform: rotate(16deg); } 20% { transform: rotate(-14deg); } 30% { transform: rotate(11deg); }
  40% { transform: rotate(-9deg); } 50% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 70% { transform: rotate(2deg); } 80%, 100% { transform: rotate(0); }
}
.push-btn { position: relative; }
.push-btn svg { transform-origin: 50% 3px; }
.push-btn.is-ringing svg { animation: sv-bell-ring 1.2s ease-in-out; color: var(--red-text); }
.push-btn .push-tip { display: none; }
@media (hover: hover) and (min-width: 768px) {
  .push-btn.has-tip .push-tip { display: block; position: absolute; top: calc(100% + 12px); left: -10px; z-index: 110; width: 270px; padding: 12px 14px; border-radius: 10px; background: var(--ink); color: var(--on-ink, #fff); font-size: 13px; font-weight: 400; line-height: 1.45; text-align: left; white-space: normal; box-shadow: 0 8px 28px rgba(0,0,0,.22); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s; pointer-events: none; }
  .push-btn.has-tip .push-tip::before { content: ""; position: absolute; top: -6px; left: 24px; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
  .push-btn.has-tip .push-tip b { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 700; }
  .push-btn.has-tip:hover .push-tip, .push-btn.has-tip:focus-visible .push-tip { opacity: 1; visibility: visible; transform: none; transition-delay: .15s; }
}
@media (prefers-reduced-motion: reduce) { .push-btn.is-ringing svg { animation: none; } }

/* «Читайте також»: рівні рядки заголовка, як у заголовках матеріалів */
.prose .related-single-info > span:not(.rel-meta) { text-wrap: balance; }

/* Цитата з фото того, хто говорить */
.prose .quote--person { display: grid; grid-template-columns: 132px 1fr; gap: 6px 26px; align-items: start; padding: 22px 24px 22px 22px; border-left: 0; border-radius: 14px; background: var(--surface-2, #F6F3EF); position: relative; }
.prose .quote--person::before { content: "“"; position: absolute; right: 20px; top: 16px; font-size: 88px; line-height: .7; font-weight: 800; color: var(--red); opacity: .18; pointer-events: none; }
.quote-person { margin: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.quote-person__photo { display: block; width: 112px; height: 112px; border-radius: 50%; overflow: hidden; box-shadow: 0 6px 16px -6px rgba(22, 23, 26, .35), 0 2px 4px rgba(22, 23, 26, .08); background: var(--line-soft); }
.quote-person__photo img { width: 100%; height: 100%; object-fit: cover; margin: 0 !important; max-width: none; border-radius: 0; }
.quote-person figcaption { margin-top: 12px; display: flex; flex-direction: column; gap: 3px; }
.quote-person__name { font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.quote-person__role { font-size: 12.5px; font-weight: 400; line-height: 1.35; color: var(--muted); }
.prose .quote--person .quote__text { font-size: 20px; font-weight: 600; line-height: 1.5; align-self: center; padding-left: 20px; border-left: 4px solid var(--red); }
:root[data-theme="dark"] .prose .quote--person { background: #1F1E1B; }
@media (max-width: 599px) {
  .prose .quote--person { grid-template-columns: 1fr; padding: 18px; }
  .quote-person { flex-direction: row; text-align: left; gap: 14px; }
  .quote-person__photo { width: 72px; height: 72px; flex: none; }
  .quote-person figcaption { margin-top: 0; }
  .prose .quote--person .quote__text { font-size: 18px; margin-top: 10px; }
}

/* Ключова фраза: BB-код [code]…[/code] у тексті новини чи статичної сторінки */
.prose .scriptcode { position: relative; margin: 1.4em 0; padding: 26px 28px 22px; border: 0; border-radius: 14px; background: #FBEDEC; color: var(--ink); font-family: inherit; font-size: 23px; font-weight: 700; line-height: 1.4; white-space: normal; overflow: visible; text-wrap: balance; }
.prose .scriptcode::before { content: ""; position: absolute; left: 28px; top: 0; width: 56px; height: 5px; border-radius: 0 0 4px 4px; background: var(--red); }
.prose .scriptcode + br, .prose .scriptcode + br + br { display: none; }
:root[data-theme="dark"] .prose .scriptcode { background: #2A1C1B; }
@media (max-width: 599px) { .prose .scriptcode { font-size: 19px; padding: 22px 18px 18px; } .prose .scriptcode::before { left: 18px; } }
@media print { .prose .scriptcode { background: none; border-left: 4px solid #000; } }

/* Те саме оформлення для HTML-сторінок (тип тексту «HTML»): <div class="key-phrase">…</div> */
.prose .key-phrase { position: relative; margin: 1.4em 0; padding: 26px 28px 22px; border-radius: 14px; background: #FBEDEC; color: var(--ink); font-size: 23px; font-weight: 700; line-height: 1.4; text-wrap: balance; }
.prose .key-phrase::before { content: ""; position: absolute; left: 28px; top: 0; width: 56px; height: 5px; border-radius: 0 0 4px 4px; background: var(--red); }
.prose .key-phrase p { margin: 0; }
.prose .key-phrase a { color: var(--red-text); }
.prose .key-phrase + br { display: none; }
:root[data-theme="dark"] .prose .key-phrase { background: #2A1C1B; }
@media (max-width: 599px) { .prose .key-phrase { font-size: 19px; padding: 22px 18px 18px; } .prose .key-phrase::before { left: 18px; } }
@media print { .prose .key-phrase { background: none; border-left: 4px solid #000; } }

/* Сторінка «Контакти» (feedback.html): картка контактів і соцмережі */
.prose .contacts { margin: 0; }
.prose .contact-card { padding: 22px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.prose .contact-card__name { margin: 0 0 14px; font-size: 22px; font-weight: 800; line-height: 1.25; }
.prose .contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; margin: 0; font-size: 17px; line-height: 1.4; }
.prose .contact-list dt { color: var(--muted); font-size: 15px; padding-top: 2px; }
.prose .contact-list dd { margin: 0; font-weight: 600; }
.prose .contact-list a { color: var(--red-text); text-decoration: none; }
.prose .contact-list a:hover { text-decoration: underline; }
.prose .contact-note { display: inline-block; margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--muted); }
.prose .contacts__h { margin: 1.6em 0 .7em; font-size: 20px; }
.prose .contact-socs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.prose .contact-soc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.prose .contact-soc:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.prose .contact-soc__ico { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; }
.prose .contact-soc__ico svg { width: 22px; height: 22px; fill: currentColor; margin: 0; }
.prose .contact-soc__txt { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.prose .contact-soc__txt b { font-size: 16px; }
.prose .contact-soc__txt small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 559px) { .prose .contact-list { grid-template-columns: 1fr; gap: 2px; } .prose .contact-list dd { margin-bottom: 10px; } .prose .contact-card { padding: 18px; } }
.static-text .contact-soc, .prose .contact-soc { box-shadow: none; }
.static-text .contact-soc:hover, .prose .contact-soc:hover { box-shadow: var(--shadow); color: var(--ink); }

/* Вузька сторінка без бічної колонки (Контакти) */

/* Форма «Повідомити новину» */
.fb-form-wrap { margin: 40px 0 10px; padding: 26px 28px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); }
.fb-title { margin: 0 0 6px; font-size: 22px; line-height: 1.25; }
.fb-lead { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.fb-form { display: flex; flex-direction: column; gap: 14px; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fb-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.fb-field b { color: var(--red-text); }
.fb-field input, .fb-field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; font-weight: 400; line-height: 1.45; transition: border-color .2s, box-shadow .2s; }
.fb-field textarea { resize: vertical; min-height: 140px; }
.fb-field input:focus, .fb-field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(204, 0, 0, .12); }
.fb-files { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.fb-files__btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px dashed var(--line); border-radius: 9px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.fb-files__btn:hover { border-color: var(--red); color: var(--red-text); }
.fb-files__btn small { font-weight: 400; color: var(--muted); }
.fb-files__btn svg { width: 18px; height: 18px; }
.fb-files__btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fb-files__list { display: flex; gap: 8px; }
.fb-file { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--line-soft); }
.fb-file img { width: 100%; height: 100%; object-fit: cover; }
.fb-file__x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
.fb-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.fb-check input { width: 17px; height: 17px; accent-color: var(--red); }
.fb-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.fb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.fb-submit { height: 46px; padding: 0 28px; border: 0; border-radius: 23px; background: var(--red); color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; transition: filter .2s, transform .2s; }
.fb-submit:hover { filter: brightness(1.08); transform: translateY(-1px); }
.fb-submit:disabled { opacity: .6; cursor: default; transform: none; }
.fb-status { margin: 0; font-size: 15px; color: var(--muted); }
.fb-status.is-ok { color: #1F7A3A; font-weight: 600; }
.fb-status.is-err { color: var(--red-text); font-weight: 600; }
.fb-note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 599px) { .fb-form-wrap { padding: 20px 16px; } .fb-row { grid-template-columns: 1fr; } .fb-submit { width: 100%; } }
.fb-form-wrap > .fb-title { margin-top: 0 !important; padding-top: 0 !important; }
.fb-form-wrap > .fb-title::before { display: none !important; }
.fb-count { margin: -6px 0 0; font-size: 12.5px; color: var(--muted); text-align: right; }
.fb-count.is-low { color: var(--red-text); font-weight: 600; }
.fb-files__list { flex-wrap: wrap; }
.fb-files__hint { flex-basis: 100%; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.fb-file--doc { display: flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--line); }
.fb-file--doc b { font-size: 12px; font-weight: 800; color: var(--red-text); letter-spacing: .03em; }
/* Контакти: у правій колонці лише «Стрічка новин» і «Читають зараз» */
.layout--feedback > .sidebar > :not(.side-fbbox) { display: none !important; }
.side-fbbox { display: flex; flex-direction: column; gap: var(--gap); }

/* Розмір шрифту статті: кнопка «Aa» у рядку дати */
.article__meta .fs-ctl { order: 97; margin-left: auto; position: relative; display: inline-flex; }
.article__meta .article__edit { margin-left: 18px; }
.article__meta .article__print, .article__meta:has(.article__edit) .article__print { margin-left: 18px; }
.fs-btn { display: inline-flex; align-items: baseline; gap: 0; padding: 0 2px; border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; font-family: Georgia, "Times New Roman", serif; line-height: 1; }
.fs-btn:hover, .fs-btn[aria-expanded="true"] { color: var(--red-text); }
.fs-a1 { font-size: 21px; }
.fs-a2 { font-size: 15px; }
.fs-menu { position: absolute; top: calc(100% + 10px); right: -8px; z-index: 50; min-width: 200px; padding: 14px 18px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: 0 10px 32px rgba(0,0,0,.14); display: flex; flex-direction: column; align-items: flex-start; }
.fs-menu[hidden] { display: none; }
.fs-menu__h { margin-bottom: 8px; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.fs-opt { padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; text-transform: uppercase; cursor: pointer; line-height: 1.25; }
.fs-opt:hover { color: var(--red-text); }
.fs-opt.is-active { color: var(--red-text); font-weight: 700; }
.fs-opt--s { font-size: 15px; } .fs-opt--m { font-size: 18px; } .fs-opt--l { font-size: 22px; }
/* самі розміри тексту статті */
html[data-fs="s"] .article .prose { font-size: 17px; }
html[data-fs="l"] .article .prose { font-size: 22px; }
html[data-fs="l"] .article .prose .quote--person .quote__text, html[data-fs="l"] .article .prose .quote { font-size: 23px; }
html[data-fs="l"] .article .prose .scriptcode { font-size: 26px; }
@media (max-width: 767px) {
  html[data-fs="s"] .article .prose { font-size: 16px; }
  html[data-fs="l"] .article .prose { font-size: 21px; }
}
@media print { .fs-ctl { display: none !important; } }
.article__meta { position: relative; z-index: 6; }

/* «Aa»: заголовок і лід теж змінюють розмір (базові: заголовок 30/40/44, лід 20/22) */
html[data-fs="s"] .article .article__title { font-size: 26px; }
html[data-fs="l"] .article .article__title { font-size: 34px; }
html[data-fs="s"] .article .article__lead { font-size: 18px; }
html[data-fs="l"] .article .article__lead { font-size: 23px; }
@media (min-width: 768px) {
  html[data-fs="s"] .article .article__title { font-size: 35px; }
  html[data-fs="l"] .article .article__title { font-size: 46px; }
  html[data-fs="s"] .article .article__lead { font-size: 19px; }
  html[data-fs="l"] .article .article__lead { font-size: 25px; }
}
@media (min-width: 1200px) {
  html[data-fs="s"] .article .article__title { font-size: 38px; }
  html[data-fs="l"] .article .article__title { font-size: 50px; }
}

/* Позначка «Реклама» після заголовка матеріалу (замість іконки-гучномовця) */
.article__title .ti-ad { display: inline-block; margin-left: 10px; font-size: .3em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); vertical-align: .9em; line-height: 1; white-space: nowrap; }

/* М'яке запрошення на сповіщення */
.push-ask { position: fixed; top: 50%; left: 50%; z-index: 140; width: 470px; max-width: calc(100vw - 24px); display: grid; grid-template-columns: 64px 1fr; gap: 6px 18px; align-items: center; padding: 22px 24px 20px; border-radius: 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-soft); box-shadow: 0 16px 50px rgba(0,0,0,.2); opacity: 0; transform: translate(-50%, calc(-50% + 14px)); transition: opacity .3s, transform .3s; }
.push-ask.is-in { opacity: 1; transform: translate(-50%, -50%); }
.push-ask__ico { width: 64px; height: 64px; border-radius: 50%; background: #FBEDEC; color: var(--red); display: flex; align-items: center; justify-content: center; }
.push-ask__ico svg { width: 30px; height: 30px; animation: sv-bell-ring 1.2s ease-in-out .4s 2; transform-origin: 50% 3px; }
.push-ask__t { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: .01em; }
.push-ask__btns { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
.push-ask__no, .push-ask__yes { height: 44px; padding: 0 22px; border-radius: 22px; font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: filter .2s, border-color .2s, color .2s; }
.push-ask__no { border: 1px solid var(--line); background: transparent; color: var(--muted); }
.push-ask__no:hover { border-color: var(--ink); color: var(--ink); }
.push-ask__yes { border: 0; background: var(--red); color: #fff; }
.push-ask__yes:hover { filter: brightness(1.08); }
@media (max-width: 599px) {
  .push-ask { grid-template-columns: 48px 1fr; padding: 18px; }
  .push-ask__ico { width: 48px; height: 48px; } .push-ask__ico svg { width: 24px; height: 24px; }
  .push-ask__t { font-size: 15px; }
  .push-ask__btns { justify-content: stretch; } .push-ask__no, .push-ask__yes { flex: 1; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .push-ask__ico svg { animation: none; } }
@media print { .push-ask { display: none !important; } }

/* «Втрати росії» — смуга на головній над «Алеєю Слави» */
.losses { display: flex; align-items: stretch; gap: 0; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px; scrollbar-width: none; }
.losses::-webkit-scrollbar { display: none; }
.losses__head { flex: none; display: flex; flex-direction: column; justify-content: center; gap: 2px; border-right: 1px solid var(--line); }
.losses__day { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.losses__title { font-weight: 800; line-height: 1.1; white-space: nowrap; }
.losses__src { font-size: 12px; color: var(--muted); white-space: nowrap; }
.losses__src:hover { color: var(--red-text); }
.losses__list { flex: 1; }
.losses .loss { flex: 1 0 auto; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.losses .loss:last-child { border-right: 0; }
.loss__t { font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.loss__v { font-size: 26px; font-weight: 700; line-height: 1.1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.loss__v small { margin-left: 6px; font-size: 15px; font-weight: 700; color: #1F8A3A; }
:root[data-theme="dark"] .loss__v small { color: #5BC27A; }
@media (max-width: 767px) { .losses { padding: 14px 0; } .loss__v { font-size: 20px; } .loss__v small { font-size: 13px; } }

/* Малий блок у правій колонці сторінок тегів */
/* «Втрати росії»: заголовок капсом, приріст червоним */
.losses__title { font-size: 21px; text-transform: uppercase; letter-spacing: .02em; }
@media (max-width: 767px) { .losses__title { font-size: 17px; } }
.loss__v small, :root[data-theme="dark"] .loss__v small { color: var(--red-text); }
/* «Втрати росії» на головній: сітка 7+7 (усі 14 показників) */
.losses { padding: 0; overflow-x: auto; }
.losses__head { padding: 18px 22px; }
.losses__list { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); min-width: 1000px; }
.losses .loss { border: 0; padding: 14px 14px; background: var(--surface); justify-content: flex-start; gap: 3px; }
.losses .loss__t { white-space: nowrap; font-size: 12px; line-height: 1.25; }
.losses .loss__v { font-size: 21px; }
.losses .loss__v small { display: block; margin: 2px 0 0; font-size: 13px; }
@media (max-width: 767px) {
  .losses { flex-direction: column; overflow: hidden; }
  .losses__head { padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .losses__list { min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .losses .loss { padding: 10px 16px; gap: 4px; }
  .losses .loss__v { font-size: 19px; }
  .losses .loss__v small { font-size: 12px; }
}
/* «Втрати росії»: ховер на клітинці — підсвітка фону, червона смужка знизу, число трохи збільшується */
.losses .loss { position: relative; transition: background-color .25s ease; }
.losses .loss::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red-text); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.losses .loss__v { transform-origin: left center; transition: transform .25s ease, color .25s ease; }
@media (hover: hover) {
  .losses .loss:hover { background: var(--bg); }
  .losses .loss:hover::after { transform: scaleX(1); }
  .losses .loss:hover .loss__v { transform: scale(1.06); }
  .losses .loss:hover .loss__t { color: var(--ink); }
}
@media (prefers-reduced-motion: reduce) { .losses .loss, .losses .loss::after, .losses .loss__v { transition: none; } }
/* «Втрати росії»: заголовна частина на десктопі — фрази у два рядки, групи розведені */
.losses__br { display: none; }
@media (min-width: 768px) {
  .losses .losses__br { display: inline; }
  .losses__head { gap: 12px; padding: 18px 26px; min-width: 190px; }
  .losses__day { font-size: 14px; line-height: 1.25; white-space: normal; }
  .losses__title { font-size: 28px; line-height: 1.05; white-space: normal; }
  .losses__src { font-size: 13px; line-height: 1.3; white-space: normal; }
}
/* «Підтримати»: юридична примітка під способами підтримки */
/* Алея Слави на головній: прапор України праворуч від назви, з бліком як у кнопки «Підтримати» */
.alley__flags { position: relative; overflow: hidden; display: inline-block; width: 30px; height: 20px; margin-left: 14px; vertical-align: middle; top: -2px; border-radius: 2px; }
.alley__flags svg { display: block; width: 100%; height: 100%; }
.alley__flags::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: supShine 3.2s ease-in-out 1.5s infinite; }
@media (max-width: 767px) { .alley__flags { width: 24px; height: 16px; margin-left: 10px; } }
@media (prefers-reduced-motion: reduce) { .alley__flags::after { animation: none; display: none; } }
/* Блік на прапорах (шапка, мобільне меню, «Герої не вмирають» на головній, картка «Алея Слави» у розділах) — як у кнопки «Підтримати» */
.shine { position: relative; overflow: hidden; display: inline-block; flex: none; line-height: 0; border-radius: 2px; vertical-align: -0.02em; }
.shine > svg { display: block; margin: 0 !important; border-radius: 0; box-shadow: none; }
.shine--after { margin-left: .4em; }
.shine::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: supShine 3.2s ease-in-out 1.5s infinite; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .shine::after { animation: none; display: none; } }
/* Посторінкова навігація DLE: стрілки «назад/вперед» і «...» (DLE загортає стрілку у вкладений span) */
.navigation a > span, .navigation span > span { min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; display: inline; }
.navigation > span:has(> span) { background: var(--surface); color: var(--ink); border-color: var(--line); opacity: .35; cursor: default; }
.navigation .nav_ext { min-width: 0; padding: 0 4px; background: none; border: 0; color: var(--muted); }
/* Підвал: прапор із бліком біля «Алея Слави» */
.footer__glory { display: inline-flex; align-items: center; gap: 8px; }
.footer__glory .nav__flag { width: 21px; height: 14px; }
/* Цитата з фото: відступи до/після = порожній рядок між абзацами (його дають <br> DLE), без додаткового margin */
.prose .quote--person { margin: 0; }
/* «Пишемо історію…» під статтею: світла пісочна картка в гамі сайту (щоб не зливалася з рожевою ключовою фразою [code]) */
.support-inline { position: relative; overflow: hidden; isolation: isolate; padding: 24px 28px; background: linear-gradient(135deg, #F7F2EA 0%, #EDE5D8 100%); border: 1px solid #E3DACB; color: var(--ink); border-radius: 14px; }
.support-inline::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 215, 0, .22), transparent 70%); pointer-events: none; }
.support-inline__text b { color: var(--ink); }
.support-inline__text span { color: var(--ink-2, var(--ink)); }
:root[data-theme="dark"] .support-inline { background: linear-gradient(135deg, #24221E 0%, #1C1B19 100%); border-color: #34312B; color: #fff; }
:root[data-theme="dark"] .support-inline__text b { color: #fff; }
:root[data-theme="dark"] .support-inline__text span { color: rgba(255, 255, 255, .72); }
@media (max-width: 767px) { .support-inline { padding: 20px; } }
/* Ключова фраза: зверху відступ дає порожній рядок DLE (<br><br>) — без додаткового margin */
.prose .scriptcode, .prose .key-phrase { margin-top: 0; }
/* Списки [list]: вступний рядок «…:» одразу над списком — малий відступ зверху */
.prose ul, .prose ol { margin-top: .5em; }
/* Пояснення термінів [term=…]слово[/term] */
.term { cursor: help; color: inherit; font-style: italic; text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 1.5px; text-underline-offset: 4px; border-radius: 3px; transition: background-color .2s, color .2s; -webkit-tap-highlight-color: transparent; }
.term__end { white-space: nowrap; }
.term__q { display: inline-flex; align-items: center; justify-content: center; width: 1.1em; height: 1.1em; margin-left: .18em; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font); font-size: .7em; font-style: normal; font-weight: 800; line-height: 1; vertical-align: super; transition: transform .2s, background-color .2s; }
.term:hover, .term.is-open, .term:focus-visible { color: var(--red-text); background: rgba(204, 0, 0, .07); outline: none; }
.term:hover .term__q, .term.is-open .term__q { transform: scale(1.12); background: var(--red-dark, #990000); }
.term-tip { position: absolute; z-index: 1000; max-width: min(320px, calc(100vw - 16px)); padding: 12px 14px; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--font); font-size: 14px; font-weight: 400; line-height: 1.5; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; pointer-events: auto; }
.term-tip.is-on { opacity: 1; transform: none; }
.term-tip b { display: block; margin-bottom: 3px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: #FFB4AE; }
.term-tip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
.term-tip--below::after { bottom: auto; top: -6px; }
:root[data-theme="dark"] .term-tip { background: #2C2F33; } :root[data-theme="dark"] .term-tip::after { background: #2C2F33; }
@media print { .term { text-decoration: none; } .term__q { display: none; } .term::after { content: " (" attr(data-term) ")"; font-style: normal; font-weight: 400; } .term-tip { display: none !important; } }
/* Галерея всередині тексту ([gallery], [gallery2], [gallery3]) — так само на всю ширину картки статті */
.prose > .gallery { max-width: none; }
.gallery__credit { order: 3; display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0 20px; font-size: 13px; color: var(--muted); }
.gallery__credit a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gallery__credit .cr-ico { width: 15px; height: 15px; flex: none; }
@media (min-width: 768px) { .gallery__credit { padding: 0 48px; } }
/* Підказка терміну — червона, без заголовка */
.term-tip, :root[data-theme="dark"] .term-tip { background: #C40000; color: #fff; font-weight: 500; box-shadow: 0 12px 30px -10px rgba(153, 0, 0, .55); }
.term-tip::after, :root[data-theme="dark"] .term-tip::after { background: #C40000; }
/* Цитата з фото: без збільшення при наведенні (прибрано 23.10.2026) */
/* «Останні публікації» під статтею ховаємо на десктопі, якщо є «Матеріали за темою» (на мобільному той блок прихований — тоді лишаються останні) */
@media (min-width: 768px) { .d-hide { display: none !important; } }
/* Підказки «Поділитися…» у верхньому рядку статті — поверх лінії під метаданими (у .article__meta z-index 6 для меню «Aa») */
.share--top { position: relative; }
.share--top:hover, .share--top:focus-within { z-index: 7; }
/* Звичайна цитата (без фото) — така сама сіра картка, як цитата з фото: червона риска всередині, лапки в кутку */
.prose .quote:not(.quote--person), .prose blockquote { position: relative; padding: 22px 84px 22px 46px; border-left: 0; border-radius: 14px; background: var(--surface-2, #F6F3EF); }
.prose .quote:not(.quote--person)::after, .prose blockquote::after { content: ""; position: absolute; left: 22px; top: 22px; bottom: 22px; width: 4px; background: var(--red); }
.prose .quote:not(.quote--person)::before, .prose blockquote::before { content: "“"; position: absolute; right: 20px; top: 16px; font-size: 88px; line-height: .7; font-weight: 800; color: var(--red); opacity: .18; pointer-events: none; }
:root[data-theme="dark"] .prose .quote:not(.quote--person), :root[data-theme="dark"] .prose blockquote { background: #1F1E1B; }
@media (max-width: 599px) { .prose .quote:not(.quote--person), .prose blockquote { padding: 18px 18px 18px 36px; } .prose .quote:not(.quote--person)::after, .prose blockquote::after { left: 18px; top: 18px; bottom: 18px; } .prose .quote:not(.quote--person)::before, .prose blockquote::before { font-size: 64px; right: 14px; top: 12px; } }
@media print { .prose .quote:not(.quote--person), .prose blockquote { background: none; padding: 2px 0 2px 20px; } .prose .quote:not(.quote--person)::before, .prose blockquote::before { display: none; } .prose .quote:not(.quote--person)::after, .prose blockquote::after { left: 0; top: 0; bottom: 0; } }
/* Цитата без фото — без червоної риски */
.prose .quote:not(.quote--person)::after, .prose blockquote::after { display: none; }
.prose .quote:not(.quote--person), .prose blockquote { padding-left: 26px; }
@media (max-width: 599px) { .prose .quote:not(.quote--person), .prose blockquote { padding-left: 18px; } }
@media print { .prose .quote:not(.quote--person), .prose blockquote { padding-left: 20px; border-left: 3px solid #000; } }
/* YouTube Shorts у тексті — вертикальний плеєр 9:16 по центру */
.prose .yt-short { max-width: 360px; margin: 1.2em auto; }
.prose .yt-short iframe { display: block; width: 100%; aspect-ratio: 9 / 16; height: auto; margin: 0; border: 0; background: #000; }
@media print { .prose .yt-short { display: none; } }
/* Відео YouTube у тексті: відступи зверху/знизу = порожній рядок між абзацами (його дають <br> DLE), без додаткового margin */
.prose iframe { margin: 0; vertical-align: top; }
/* Відео YouTube у тексті: обкладинка з кнопкою «Play» (video-facade.tpl), на всю ширину картки статті — як фотогалерея */
.prose .vid { position: relative; display: block; aspect-ratio: 16 / 9; margin: 0 -20px; background: #000; overflow: hidden; cursor: pointer; }
@media (min-width: 768px) { .prose .vid { margin: 0 -48px; } }
.prose .vid__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0 !important; border-radius: 0; transition: transform .6s var(--ease), filter .3s; }
.prose .vid::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.prose .vid__play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .55), 0 0 0 6px rgba(255, 255, 255, .22); transition: transform .25s var(--ease), background-color .2s; }
.prose .vid__play svg { width: 32px; height: 32px; margin-left: 4px; fill: currentColor; }
.prose .vid:hover .vid__img { transform: scale(1.03); filter: brightness(.92); }
.prose .vid:hover .vid__play, .prose .vid__play:focus-visible { transform: scale(1.1); background: #E01010; }
.prose .vid.is-playing { cursor: default; }
.prose .vid.is-playing::after { display: none; }
.prose .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; aspect-ratio: auto; }
.prose .vid + br, .prose .vid-credit + br, .prose .yt-short + br { display: none; }
@media (max-width: 599px) { .prose .vid__play { width: 62px; height: 62px; margin: -31px 0 0 -31px; } .prose .vid__play svg { width: 26px; height: 26px; } }
/* підпис «Відео: …» під відео */
.prose .vid-credit { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); }
.prose .vid-credit .cr-ico { width: 15px; height: 15px; margin: 0; flex: none; }
/* Shorts — заокруглення й легка тінь */
.prose .yt-short iframe { border-radius: 14px; box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .45); }
@media print { .prose .vid__play, .prose .vid::after { display: none; } .prose .vid { margin: 0; } }
.prose .vid { max-width: none; width: auto; }
/* підпис під вертикальним Shorts — по центру, як і сам плеєр */
.prose .yt-short + .vid-credit { justify-content: center; }
/* підпис «Відео: …» — завжди по центру (і під звичайним відео, і під Shorts) */
.prose .vid-credit { justify-content: center; text-align: center; }
/* ===== Обкладинка відео v2: плашка «Відео», пульсуюча кнопка, підказка, анімація завантаження ===== */
.prose .vid { outline: none; }
.prose .vid::after { background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 50%), linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 30%); }
.prose .vid__chip { position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 10px; border-radius: 15px; background: var(--red); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .5); pointer-events: none; }
.prose .vid__chip svg { width: 14px; height: 14px; fill: currentColor; }
@media (min-width: 768px) { .prose .vid:not(.vid--short) .vid__chip { left: 48px; top: 20px; } }
.prose .vid__play { pointer-events: none; }
.prose .vid__play::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .75); animation: vidPulse 2s ease-out infinite; }
@keyframes vidPulse { 0% { transform: scale(.9); opacity: .9; } 80%, 100% { transform: scale(1.45); opacity: 0; } }
.prose .vid__hint { position: absolute; left: 50%; bottom: 18px; z-index: 2; transform: translateX(-50%); padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); pointer-events: none; transition: background-color .2s; }
.prose .vid:hover .vid__hint, .prose .vid:focus-visible .vid__hint { background: var(--red); }
.prose .vid:focus-visible { box-shadow: inset 0 0 0 3px var(--red); }
/* очікування після натискання: кнопка крутиться, плеєр проявляється, коли завантажився */
.prose .vid.is-loading { cursor: progress; }
.prose .vid.is-loading .vid__play::before { inset: -8px; border-color: rgba(255, 255, 255, .9) transparent transparent transparent; animation: vidSpin .8s linear infinite; opacity: 1; }
.prose .vid.is-loading .vid__play svg { opacity: .55; }
@keyframes vidSpin { to { transform: rotate(360deg); } }
.prose .vid iframe { opacity: 0; transition: opacity .3s; z-index: 3; }
.prose .vid.is-playing iframe { opacity: 1; }
/* вертикальні Shorts */
.prose .yt-short .vid--short { margin: 0; aspect-ratio: 9 / 16; border-radius: 14px; box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .45); }
.prose .yt-short .vid--short iframe { border-radius: 14px; box-shadow: none; aspect-ratio: auto; }
.prose .yt-short .vid--short .vid__hint { font-size: 13px; }
@media (max-width: 599px) { .prose .vid__hint { bottom: 12px; font-size: 13px; padding: 6px 12px; } .prose .vid__chip { left: 12px; top: 12px; height: 26px; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .prose .vid__play::before { animation: none; opacity: 0; } .prose .vid.is-loading .vid__play::before { animation: vidSpin 1.6s linear infinite; } }
/* Соціальна реклама в правій колонці (банер «Азов» на сторінці тегу «Азов») */
.social-ad { display: flex; flex-direction: column; align-items: center; }
.social-ad__label { align-self: stretch; color: var(--muted); text-align: center; }
.social-ad img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.social-ad:not(:has(img, iframe, a, ins)) { display: none; }
/* 22.10.2026: AdSense не дав оголошення (ins data-ad-status="unfilled") — ховаємо порожню картку «Реклама»; до рішення AdSense картку не ховаємо, інакше слот матиме нульову ширину й не заповниться */
.social-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; }
/* блоки data-tagshow приховані, доки app.js не перевірить тег (без блимання на інших сторінках) */
[data-tagshow]:not(.is-on) { display: none !important; }
/* Соціальна реклама — у білій картці, як інші блоки колонки; підпис під банером, звичайним шрифтом */
.social-ad { gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: 0 8px 24px -16px rgba(40, 30, 20, .3); }
.social-ad__label { font-size: 12px; font-weight: 400; letter-spacing: .02em; text-transform: none; }
/* підпис до фото в ліді — як підпис DLE до [thumb]/[medium]: під фото, перед текстом ліду */
.article__lead .img-cap--lead { display: block; margin: -15px 0 21px; font-size: 13px; font-weight: 400; font-style: normal; line-height: 1.4; color: var(--muted); }
.article__lead .img-cap--lead + br { display: none; }
/* Темна тема: цитати (з фото і без) — помітна картка світліша за фон статті, з тонкою рамкою; лапки яскравіші */
:root[data-theme="dark"] .prose .quote--person, :root[data-theme="dark"] .prose .quote:not(.quote--person), :root[data-theme="dark"] .prose blockquote { background: #292B30; border: 1px solid #3A3D43; }
:root[data-theme="dark"] .prose .quote--person::before, :root[data-theme="dark"] .prose .quote:not(.quote--person)::before, :root[data-theme="dark"] .prose blockquote::before { color: #FF6B66; opacity: .35; }
:root[data-theme="dark"] .quote-person__photo { box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .7), 0 2px 4px rgba(0, 0, 0, .3); }
:root[data-theme="dark"] .quote-person__name { color: #F2EFEA; }
/* Темна тема: ключова фраза [code] — теж помітніша */
:root[data-theme="dark"] .prose .scriptcode, :root[data-theme="dark"] .prose .key-phrase { background: #3A2422; border: 1px solid #4E2E2B; }

/* ===== SV-SVITLO: графіки відключень /svitlo/ (20.10.2026) ===== */
.svl { --svl-off: var(--red); --svl-free: #2E7D32; --svl-track: var(--line-soft); }
.svl-head h1 { margin-bottom: 8px; }
.svl-sub { color: var(--muted); margin: 0 0 20px; font-size: 16px; line-height: 1.45; }
.svl-alert { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; font-size: 16px; line-height: 1.45; }
.svl-alert a { color: inherit; font-weight: 600; }
.svl-alert--stale { background: var(--surface); border: 1px solid var(--line-2); }
.svl-alert--emerg { background: var(--red-soft); border: 1px solid var(--red); }
.svl-alert__time { color: var(--muted); font-size: 14px; }
.svl-status { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; border-left: 6px solid var(--line-2); --svl-c: var(--muted); }
.svl-status__body { flex: 1; min-width: 0; }
.svl-status--on { border-left-color: var(--svl-off); --svl-c: var(--svl-off); }
.svl-status--free { border-left-color: var(--svl-free); --svl-c: var(--svl-free); }
.svl-status.is-lit { border-left-color: var(--svl-free); --svl-c: var(--svl-free); }
.svl-status.is-dark { border-left-color: var(--svl-off); --svl-c: var(--svl-off); }
.svl-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--svl-c) 12%, transparent); color: var(--svl-c); transition: color .2s, background .2s; }
.svl-ico svg { width: 30px; height: 30px; }
.svl-ico__bolt { fill: currentColor; }
.svl-ico__x { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; display: none; }
.svl-status.is-dark .svl-ico__x { display: inline; }
.svl-status.is-dark .svl-ico__bolt { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
@media (max-width: 479px) { .svl-status { gap: 12px; padding: 16px; } .svl-ico { width: 40px; height: 40px; } .svl-ico svg { width: 24px; height: 24px; } }
.svl-status__date { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.svl-status__t { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 4px 0; }
.svl-status__d { margin: 0; color: var(--ink-2); }
.svl-status__upd { color: var(--muted); font-size: 13px; margin-top: 10px; }
.svl-my { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.svl-my__l { font-weight: 700; margin-bottom: 8px; }
.svl-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-width: 420px; }
.svl-chip { font: inherit; font-weight: 700; font-size: 17px; padding: 9px 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; }
.svl-chip:hover { border-color: var(--red); }
.svl-chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.svl--pick .svl-row[data-q] { cursor: pointer; }
.svl-my__now { margin-top: 10px; font-size: 18px; line-height: 1.4; }
.svl-off { color: var(--red-text); }
.svl-onl { color: var(--svl-free); }
.svl-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.svl-tab { font: inherit; font-weight: 700; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.svl-tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.svl-day { margin: 0 0 28px; }
.svl-day__t { font-size: 22px; margin: 0 0 6px; }
.svl-days--tabs .svl-day__t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.svl-day__src { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.svl-day__src a { color: inherit; }
.svl-empty { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 0; }
.svl-grid { background: var(--surface); border-radius: var(--radius); padding: 6px 16px; }
.svl-row { display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.svl-row:first-child { border-top: 0; }
.svl-row--head { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; padding-bottom: 4px; }
.svl-row--head .svl-b { display: none; }
.svl-q { font-weight: 700; font-size: 18px; }
.svl-t { font-size: 16px; line-height: 1.35; }
.svl-row--free .svl-t { color: var(--muted); }
.svl-iv { white-space: nowrap; }
.svl-row--head .svl-q { font-size: 13px; }
.svl-tot { color: var(--muted); font-size: 14px; white-space: nowrap; }
.svl-b { grid-column: 1 / -1; }
.svl-row.is-my { background: var(--red-soft); margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.svl-bar { position: relative; height: 14px; border-radius: 3px; background: var(--svl-track); overflow: hidden; }
.svl-bar span { position: absolute; top: 0; bottom: 0; }
.svl-bar__off { background: var(--svl-off); }
.svl-bar__maybe { background: repeating-linear-gradient(45deg, var(--line-2) 0 3px, transparent 3px 6px); }
.svl-bar__now { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: var(--ink); }
.svl-scale { position: relative; height: 16px; font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: 0; }
.svl-scale span { position: absolute; transform: translateX(-50%); }
.svl-scale span:first-child { transform: none; }
.svl-scale span:last-child { transform: translateX(-100%); }
@media (min-width: 768px) {
  .svl-row { grid-template-columns: 52px minmax(180px, 1fr) 2fr; }
  .svl-b { grid-column: auto; }
  .svl-row--head .svl-b { display: block; }
}
.svl-hist { margin-top: 10px; font-size: 15px; }
.svl-hist summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.svl-hist ol { margin: 8px 0 0; padding-left: 22px; }
.svl-hist li { margin: 4px 0; }
.svl-hist time { font-weight: 700; margin-right: 4px; }
.svl-hist a { color: inherit; }
.svl-info, .svl-contacts { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 20px; font-size: 16px; line-height: 1.5; }
.svl-info h2, .svl-contacts h2 { font-size: 20px; margin: 0 0 12px; }
.svl-info dt { font-weight: 700; margin-top: 10px; }
.svl-info dd { margin: 2px 0 0; color: var(--ink-2); }
.svl-info p { margin: 12px 0 0; color: var(--muted); }
.svl-phones, .svl-links { list-style: none; margin: 0; padding: 0; }
.svl-phones li { margin: 6px 0; }
.svl-phones a { font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.svl-phones span { color: var(--muted); font-size: 14px; }
.svl-note { color: var(--muted); margin: 10px 0; }
.svl-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.svl-links a { color: var(--red-text); font-weight: 600; }
.svl-foot { color: var(--muted); font-size: 14px; line-height: 1.45; }
.svl-foot a { color: inherit; }
:root[data-theme="dark"] .svl { --svl-free: #66BB6A; }
/* ===== /SV-SVITLO ===== */

/* ===== SV-HDR-SVITLO: плашка «світло» в шапці, дзвіночок праворуч, іконки «Довідки» (20.10.2026) ===== */
.svl-hdr { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 8px; border-radius: 14px; border: 1px solid var(--line-soft); background: transparent; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; text-decoration: none; transition: color .3s, border-color .3s, background .3s; --svl-h: var(--muted); }
.svl-hdr[hidden] { display: none; }
.svl-hdr:hover { color: var(--ink); border-color: var(--svl-h); }
.svl-hdr svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--svl-h); }
.svl-hdr__bolt { fill: currentColor; }
.svl-hdr__x { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; display: none; }
.svl-hdr--free, .svl-hdr--lit { --svl-h: #2E7D32; }
.svl-hdr--on { --svl-h: #CC0000; }
.svl-hdr--dark { --svl-h: #CC0000; color: var(--red-text); border-color: #CC0000; }
.svl-hdr--dark .svl-hdr__x { display: inline; }
.svl-hdr--dark .svl-hdr__bolt { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
:root[data-theme="dark"] .svl-hdr--free, :root[data-theme="dark"] .svl-hdr--lit { --svl-h: #66BB6A; }
:root[data-theme="dark"] .svl-hdr--on, :root[data-theme="dark"] .svl-hdr--dark { --svl-h: #FF6B66; }
.svl-hdr[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; }
@media (hover: hover) { .svl-hdr[data-tip]:hover::after, .svl-hdr[data-tip]:focus-visible::after { opacity: 1; transform: none; } }
/* Текст — лише на широких екранах, інакше залазить на логотип; нижче — тільки блискавка */
@media (max-width: 1279px) { .svl-hdr__text { display: none; } .svl-hdr { padding: 0; width: 28px; justify-content: center; } }
@media (max-width: 767px) { .svl-hdr { width: 32px; height: 32px; border-radius: 50%; } .svl-hdr svg { width: 16px; height: 16px; } }
/* Телефони до 480 px: ліва колонка вміщує лише тривогу й пошук — плашку світла поки не показуємо (рішення Богдана — див. CLAUDE.md) */
@media (max-width: 479px) { .svl-hdr { display: none !important; } }

/* Дзвіночок тепер праворуч, між перемикачем теми і «Підтримати» — лише іконка на всіх ширинах */
.header__right .push-btn--m:not([hidden]) { display: inline-flex !important; width: 28px; height: 28px; padding: 0; border-radius: 50%; justify-content: center; gap: 0; }
.header__right .push-btn--m > span:not(.push-tip) { display: none; }
@media (max-width: 767px) { .header__right .push-btn--m:not([hidden]) { width: 32px; height: 32px; } }
@media (hover: hover) and (min-width: 768px) {
  .header__right .push-btn.has-tip .push-tip { left: auto; right: -10px; }
  .header__right .push-btn.has-tip .push-tip::before { left: auto; right: 18px; }
}

/* Порядок (20.10.2026): ліворуч тривога | світло | пошук, праворуч день/ніч | сповіщення | підтримати */
@media (min-width: 560px) { .header__left .svl-hdr:not([hidden]) + .header__sep--svl { display: block !important; } }
.header__right .header__sep--r:has(+ .push-btn[hidden]) { display: none !important; }

/* Планшети 768–1023: інакше шапка налазить на логотип — пошук лише лупою, праворуч без роздільників */
@media (min-width: 768px) and (max-width: 1023px) {
  .header__left:has(.svl-hdr:not([hidden])) .search-btn span { display: none; }
  .header__left:has(.svl-hdr:not([hidden])) .search-btn { width: 28px; padding: 0; justify-content: center; }
  .header__right .header__sep--r { display: none !important; }
}
@media (min-width: 768px) and (max-width: 899px) { .header__right .btn-support__text { display: none; } .header__right .btn-support { width: 28px; padding: 0; justify-content: center; } }

/* Іконки пунктів «Довідки» */
.drop__list a.has-ico, .drawer__help a.has-ico { display: flex; align-items: center; gap: 10px; }
.drop__list .help-ico, .drawer__help .help-ico { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--red-text); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
/* ===== /SV-HDR-SVITLO ===== */

/* ===== SV-ALERTS: повітряна тривога /alerts/ (20.10.2026) ===== */
.sva { --sva-ok: #2E7D32; --sva-warn: #E0A100; }
.sva-head h1 { margin-bottom: 8px; }
.sva-sub { color: var(--muted); margin: 0 0 20px; font-size: 16px; line-height: 1.45; }
.sva-sub2 { color: var(--muted); margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.sva-sub2 a, .sva-note a, .sva-foot a { color: inherit; }
.sva-alert { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; font-size: 16px; line-height: 1.45; }
.sva-alert a { color: inherit; font-weight: 600; }
.sva-status { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 16px; border-left: 6px solid var(--line-2); --sva-c: var(--muted); }
.sva-status--none { border-left-color: var(--sva-ok); --sva-c: var(--sva-ok); }
.sva-status--partial { border-left-color: var(--sva-warn); --sva-c: var(--sva-warn); }
.sva-status--full { background: #CC0000; border-left-color: #8E0000; color: #fff; --sva-c: #fff; }
.sva-status__body { flex: 1; min-width: 0; }
.sva-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--sva-c) 14%, transparent); color: var(--sva-c); }
.sva-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.sva-status--full .sva-ico { background: rgba(255, 255, 255, .18); animation: svaPulse 1.4s ease-in-out infinite; }
@keyframes svaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .sva-status--full .sva-ico { animation: none; } }
.sva-status__t { font-size: 26px; font-weight: 700; line-height: 1.2; margin: 2px 0 6px; }
.sva-status__d { margin: 0; font-size: 17px; line-height: 1.45; }
.sva-status--full .sva-status__d { font-weight: 500; }
.sva-timer { margin-top: 12px; font-size: 18px; }
.sva-timer b { font-size: 22px; }
.sva-threats { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sva-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 14px; font-weight: 600; }
.sva-red { margin-top: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 13px; }
.sva-status__upd { color: var(--muted); font-size: 13px; margin-top: 12px; }
.sva-status--full .sva-status__upd { color: rgba(255, 255, 255, .8); }
@media (max-width: 479px) { .sva-status { gap: 12px; padding: 16px; } .sva-ico { width: 40px; height: 40px; } .sva-ico svg { width: 22px; height: 22px; } .sva-status__t { font-size: 22px; } }
.sva-go { display: block; text-align: center; background: var(--ink); color: var(--surface); font-weight: 700; padding: 12px 16px; border-radius: var(--radius); margin: 0 0 24px; text-decoration: none; }
.sva-go:hover { background: #CC0000; color: #fff; }
.sva h2 { font-size: 22px; margin: 0 0 12px; }
.sva-h3 { font-size: 17px; margin: 20px 0 8px; }
.sva-hist, .sva-todo, .sva-sh { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; }
.sva-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; }
.sva-kpi--2 { grid-template-columns: repeat(2, 1fr); }
.sva-kpi--5 { grid-template-columns: repeat(6, 1fr); }
.sva-kpi--5 > div { grid-column: span 2; }
.sva-kpi--5 > div:nth-child(n+4) { grid-column: span 3; }
.sva-kpi > div { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; }
.sva-kpi span { font-weight: 600; font-size: 14px; color: var(--muted); }
.sva-kpi b { font-size: 30px; line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.sva-kpi small { color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (min-width: 1100px) { .sva-kpi--5 { grid-template-columns: repeat(5, 1fr); } .sva-kpi--5 > div, .sva-kpi--5 > div:nth-child(n+4) { grid-column: auto; } }
@media (max-width: 479px) { .sva-kpi { gap: 6px; } .sva-kpi > div { padding: 8px; } .sva-kpi b { font-size: 22px; } .sva-kpi span { font-size: 12.5px; } }
.sva-bars { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; height: 110px; align-items: end; }
.sva-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.sva-bar i { display: block; width: 100%; max-width: 26px; background: #CC0000; border-radius: 3px 3px 0 0; opacity: .85; }
.sva-bar.is-today i { opacity: 1; }
.sva-bar span { font-size: 11px; color: var(--muted); line-height: 1; padding-top: 4px; border-top: 1px solid var(--line-soft); width: 100%; text-align: center; }
.sva-bar.is-today span { color: var(--ink); font-weight: 700; }
.sva-bars__cap { color: var(--muted); font-size: 13px; margin-top: 6px; }
.sva-list { list-style: none; margin: 0; padding: 0; }
.sva-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 16px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 15px; }
.sva-list li.is-on { color: var(--red-text); font-weight: 700; }
.sva-list__t { font-variant-numeric: tabular-nums; }
.sva-list__l { color: var(--muted); min-width: 84px; text-align: right; }
@media (max-width: 479px) { .sva-list li { grid-template-columns: 1fr auto; } .sva-list__l { grid-column: 2; grid-row: 1; } .sva-list__t { grid-column: 1 / -1; color: var(--muted); } }
.sva-note { color: var(--muted); font-size: 13px; margin: 12px 0 0; line-height: 1.45; }
.sva-todo ol { margin: 0 0 12px; padding-left: 22px; line-height: 1.5; }
.sva-todo li { margin-bottom: 6px; }
.sva-todo p { margin: 0; line-height: 1.5; }
.sva-filter { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin: 0 0 12px; }
.sva-filter[hidden] { display: none; }
.sva-filter input, .sva-filter select { font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); min-width: 0; }
.sva-filter input:focus, .sva-filter select:focus { outline: 2px solid #CC0000; outline-offset: -1px; }
.sva-found { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
@media (max-width: 767px) { .sva-filter { grid-template-columns: 1fr 1fr; } .sva-filter input { grid-column: 1 / -1; } }
.sva-shl { list-style: none; padding: 0; }
.sva-shl { margin: 0 -10px; }
.sva-shi { border-top: 1px solid var(--line-soft); }
.sva-shi[hidden] { display: none; }
.sva-shi__row { display: flex; gap: 12px; align-items: flex-start; padding: 11px 10px; color: var(--ink); text-decoration: none; border-radius: var(--radius-sm); transition: background .15s; }
.sva-shi__row:hover, .sva-shi__row:focus-visible, .sva-shi.is-active .sva-shi__row { background: color-mix(in srgb, #CC0000 7%, transparent); }
.sva-shi__row:hover .sva-shi__a, .sva-shi.is-active .sva-shi__a { color: var(--red-text); }
.sva-pin { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: #CC0000; stroke-width: 1.9; stroke-linejoin: round; }
.sva-shi--civil .sva-pin { stroke: var(--ink); }
.sva-shi:not(.is-onmap) .sva-pin { stroke: var(--muted); opacity: .7; }
.sva-shi__row:hover .sva-pin { stroke: #CC0000; opacity: 1; }
.sva-shi__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sva-shi__a { font-weight: 600; line-height: 1.35; transition: color .15s; }
.sva-shi__m { color: var(--muted); font-size: 14px; line-height: 1.4; }
.sva-type { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px; margin-right: 4px; vertical-align: 2px; }
.sva-type--civil { color: #fff; background: var(--ink); border-color: var(--ink); }
.sva-type.sva-abbr { text-decoration: none; }
.sva-type.sva-abbr::after { left: 0; transform: translate(0, 4px); }
.sva-type.sva-abbr:hover::after { transform: none; }
.sva-pop__t { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #777; }
.sva-foot { color: var(--muted); font-size: 13px; line-height: 1.45; }
.sva-src { margin: -6px 0 10px; font-weight: 600; font-size: 15px; }
.sva-map { height: 420px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg); margin: 0 0 8px; position: relative; z-index: 0; }
.sva-map__ph { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--muted); font-size: 14px; }
@media (max-width: 559px) { .sva-map { height: 340px; } }
.sva-map__cap { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0 0 14px; }
.sva-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: #CC0000; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line-2); vertical-align: -1px; margin-left: 6px; }
.sva-dot--civil { background: #1F1F1F; margin-left: 0; }
.sva-dot--ap { background: #8A8A8A; }
.sva-map .leaflet-popup-content { font: 14px/1.4 inherit; font-family: inherit; margin: 10px 14px; }
.sva-map .leaflet-popup-content a { color: #CC0000; font-weight: 600; }
.sva-pop__m { color: #666; font-size: 13px; }
.sva-map.is-empty::after { content: "Для цього вибору точок на мапі немає — дивіться перелік нижче"; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 500; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 14px -6px rgba(0,0,0,.35); white-space: nowrap; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.sva-map.is-empty.is-place::after { content: "Точних адрес укриттів тут на мапі немає — дивіться перелік нижче"; }
.sva-small { color: var(--muted); font-size: 13px; line-height: 1.5; margin: -6px 0 14px; }
.sva-abbr { text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; position: relative; font-weight: 600; outline: none; }
.sva-abbr::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); width: max-content; max-width: 260px; 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; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.sva-abbr:hover::after, .sva-abbr:focus::after { opacity: 1; transform: translate(-50%, 0); }
.sva-full { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid rgba(0, 0, 0, .2); border-radius: 4px; cursor: pointer; padding: 0; color: #222; background-clip: padding-box; }
.sva-full:hover { background: #f4f4f4; }
.sva-full svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sva-full__off { display: none; }
.sva-map.is-full .sva-full__on { display: none; }
.sva-map.is-full .sva-full__off { display: inline; }
.sva-map.is-full { position: fixed; inset: 0; z-index: 1000; height: auto; border-radius: 0; margin: 0; }
.sva-map.is-full:fullscreen { width: 100%; height: 100%; }
html.sva-noscroll, html.sva-noscroll body { overflow: hidden; }
.sva-legend { list-style: none; margin: -4px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.sva-legend li { display: flex; gap: 8px; align-items: flex-start; }
.sva-legend .sva-pin { width: 18px; height: 18px; margin-top: 1px; }
.sva-legend b { color: var(--ink-2); }
.sva-legend--civil .sva-pin { stroke: var(--ink); }
.sva-legend--none .sva-pin { stroke: var(--muted); opacity: .7; }
.sva-shi__row.is-static { cursor: default; }
.sva-shi__row.is-static:hover { background: none; }
.sva-shi__row.is-static:hover .sva-shi__a { color: inherit; }
.sva-shi__row.is-static:hover .sva-pin { stroke: var(--muted); opacity: .7; }
.sva-thr { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sva-thr li { display: grid; grid-template-columns: minmax(120px, 210px) 1fr 36px; gap: 10px; align-items: center; font-size: 14px; }
.sva-thr__bar { height: 10px; background: var(--line-soft); border-radius: 5px; overflow: hidden; }
.sva-thr__bar i { display: block; height: 100%; background: #CC0000; border-radius: 5px; }
.sva-thr b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 479px) { .sva-thr li { grid-template-columns: 1fr 70px 28px; } }
.sva-h3__sub { font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 6px; }
.sva-gap { margin: -8px 0 16px; padding: 8px 12px; border-left: 3px solid #E0A100; background: color-mix(in srgb, #E0A100 8%, transparent); border-radius: 4px; }
.sva-bar { position: relative; cursor: default; outline: none; }
.sva-bar i { transition: background .2s; }
.sva-bar:hover i, .sva-bar:focus i { opacity: 1; background: #A30000; }
.sva-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: 240px; padding: 8px 11px; border-radius: 8px; background: var(--ink); color: var(--surface); font-style: normal; font-size: 12.5px; font-weight: 500; line-height: 1.4; text-align: left; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--ease); z-index: 50; }
.sva-tip b { font-weight: 700; }
.sva-bar.is-left .sva-tip { left: 0; transform: translate(0, 4px); }
.sva-bar.is-right .sva-tip { left: auto; right: 0; transform: translate(0, 4px); }
.sva-bar:hover .sva-tip, .sva-bar:focus .sva-tip { opacity: 1; transform: translate(-50%, 0); }
.sva-bar.is-left:hover .sva-tip, .sva-bar.is-left:focus .sva-tip, .sva-bar.is-right:hover .sva-tip, .sva-bar.is-right:focus .sva-tip { transform: none; }
/* ===== /SV-ALERTS ===== */

/* ===== SV-AD-WIDE: горизонтальний AdSense у тексті розділів (/alerts/, /svitlo/) ===== */
.ad-wide { margin: 0 0 24px; align-items: stretch; overflow: hidden; }
.ad-wide ins { width: 100%; }
.ad-wide--end { margin: var(--gap) 0 0; }
.ad-wide--in { margin: 18px 0; box-shadow: none; }
/* ===== /SV-AD-WIDE ===== */
/* Реклама Google після ліду (fullstory/fullblog) — та сама біла картка, що й на дошці оголошень (.social-ad.ad-wide) */
.ad-lead { margin: 4px 0 28px; }
@media print { .ad-lead { display: none !important; } }
/* ===== SV-VODA: водопостачання /voda/ (20.10.2026) ===== */
.vod { --vod-ok: #1565C0; --vod-good: #2E7D32; --vod-warn: #E65100; --vod-off: var(--red); }
.vod-head h1 { margin-bottom: 8px; }
.vod-sub { color: var(--muted); margin: 0 0 20px; font-size: 16px; line-height: 1.45; }
.vod-alert { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; font-size: 16px; line-height: 1.45; }
.vod-alert p { margin: 6px 0; }
.vod-alert a { color: inherit; font-weight: 600; }
.vod-alert__h { font-weight: 700; font-size: 17px; }
.vod-alert__time { color: var(--muted); font-size: 14px; font-weight: 400; margin-left: 6px; }
.vod-alert--stale { background: var(--surface); border: 1px solid var(--line-2); }
.vod-alert--off { background: var(--red-soft); border: 1px solid var(--red); }
.vod-alert--ok { background: color-mix(in srgb, var(--vod-good) 10%, var(--surface)); border: 1px solid var(--vod-good); }
.vod-alert details { margin: 6px 0; }
.vod-alert summary { cursor: pointer; color: var(--muted); font-size: 15px; }
.vod-status { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; border-left: 6px solid var(--line-2); --vod-c: var(--muted); }
.vod-status--ok { border-left-color: var(--vod-ok); --vod-c: var(--vod-ok); }
.vod-status--warn { border-left-color: var(--vod-warn); --vod-c: var(--vod-warn); }
.vod-status--off { border-left-color: var(--vod-off); --vod-c: var(--vod-off); }
.vod-status__body { flex: 1; min-width: 0; }
.vod-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--vod-c) 12%, transparent); color: var(--vod-c); }
.vod-ico svg { width: 30px; height: 30px; fill: currentColor; }
.vod-ico__x { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; display: none; }
.vod-status--off .vod-ico__x { display: inline; }
@media (max-width: 479px) { .vod-status { gap: 12px; padding: 16px; } .vod-ico { width: 40px; height: 40px; } .vod-ico svg { width: 24px; height: 24px; } }
.vod-status__date { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.vod-status__t { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 4px 0; }
.vod-status__d { margin: 4px 0 0; color: var(--ink-2); }
.vod-status__upd { color: var(--muted); font-size: 13px; margin-top: 10px; }
.vod-status__upd a { color: inherit; }
.vod-day { margin: 0 0 24px; }
.vod-day__t { font-size: 22px; margin: 0 0 6px; }
.vod-day__src { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.vod-empty { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; margin: 0; }
.vod-works { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .vod-works { grid-template-columns: repeat(2, 1fr); } }
.vod-work { position: relative; overflow: hidden; background: var(--surface); border-radius: var(--radius); padding: 14px 16px 14px 48px; border-left: 4px solid var(--vod-ok); display: flex; flex-direction: column; gap: 4px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
/* значок-краплина ліворуч; при наведенні картка піднімається, краплина «капає», адреса червоніє — як hover карток на сайті */
.vod-work::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; background: var(--vod-ok); transition: background .2s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5C9 6.6 5.5 10.9 5.5 14.6a6.5 6.5 0 0 0 13 0c0-3.7-3.5-8-6.5-12.1z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5C9 6.6 5.5 10.9 5.5 14.6a6.5 6.5 0 0 0 13 0c0-3.7-3.5-8-6.5-12.1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.vod-work__a { font-weight: 700; font-size: 18px; line-height: 1.3; transition: color .2s ease; }
.vod-work__w { color: var(--ink-2); font-size: 15px; }
.vod-work:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.10); border-left-color: var(--red); }
.vod-work:hover::before { background: var(--red); animation: vod-drip .9s ease-in-out; }
.vod-work:hover .vod-work__a { color: var(--red-text); }
@keyframes vod-drip { 0% { transform: translateY(0); } 35% { transform: translateY(4px) scale(.9, 1.1); } 60% { transform: translateY(-2px); } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .vod-work, .vod-work::before { transition: none; animation: none !important; } .vod-work:hover { transform: none; } }
:root[data-theme="dark"] .vod-work:hover { box-shadow: 0 8px 20px rgba(0,0,0,.45); }
.vod-hist { margin: 0 0 24px; font-size: 15px; }
.vod-hist summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 6px 0; }
.vod-hdays { list-style: none; margin: 8px 0 0; padding: 0; }
.vod-hday { background: var(--surface); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 8px; line-height: 1.45; }
.vod-hday__d { font-weight: 700; margin-bottom: 4px; }
.vod-hday__s { font-weight: 700; }
.vod-hday__s--warn { color: var(--vod-warn); }
.vod-hday__s--off { color: var(--red-text); }
.vod-hday__none { color: var(--muted); }
.vod-hlist { margin: 0; padding-left: 20px; }
.vod-hinc { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.vod-hinc a { color: var(--muted); }
.vod-ok { color: var(--vod-good); }
.vod-muted { color: var(--muted); }
.vod-contacts { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 20px; font-size: 16px; line-height: 1.5; }
.vod-contacts h2 { font-size: 20px; margin: 0 0 12px; }
.vod-cblocks { display: grid; gap: 12px; margin: 14px 0 16px; }
@media (min-width: 720px) { .vod-cblocks { grid-template-columns: repeat(3, 1fr); } }
.vod-cblock { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.vod-cblock h3 { font-size: 16px; margin: 0 0 2px; }
.vod-addr { color: var(--muted); font-size: 14px; margin-bottom: 6px; }
.vod-mail { margin-top: 6px; font-size: 14px; word-break: break-all; }
.vod-mail a { color: var(--red-text); }
.vod-phones, .vod-links { list-style: none; margin: 0; padding: 0; }
.vod-phones li { margin: 4px 0; line-height: 1.3; }
.vod-phones a { font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.vod-phones a:hover { color: var(--red-text); }
.vod-phones span { color: var(--muted); font-size: 13px; display: block; }
.vod-note { color: var(--muted); margin: 10px 0; }
/* посилання в рядок через крапку по центру; на вузьких екранах — стовпчиком без крапок */
.vod-links { display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 600px) {
  .vod-links { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 0; }
  .vod-links li + li::before { content: "·"; display: inline-block; margin: 0 12px; color: var(--muted); font-weight: 700; font-size: 1.3em; line-height: 1; vertical-align: -.1em; }
}
.vod-links a { color: var(--red-text); font-weight: 600; }
.vod-foot { color: var(--muted); font-size: 14px; line-height: 1.45; }
.vod-foot a { color: inherit; }
:root[data-theme="dark"] .vod { --vod-ok: #64B5F6; --vod-good: #66BB6A; --vod-warn: #FFA726; }
/* ===== /SV-VODA ===== */

/* ===== SV-MAGNETIC: магнітні бурі /magnetic-storms/ (22.10.2026) ===== */
.mag, .mag-side { --mag-calm: #2E7D32; --mag-l3: #7CB342; --mag-l4: #F9A825; --mag-l5: #EF6C00; --mag-l6: #E53935; --mag-l7: #C62828; --mag-l8: #8E0000; --mag-l9: #6A1B9A; --mag-track: var(--line-soft); }
:root[data-theme="dark"] .mag, :root[data-theme="dark"] .mag-side { --mag-calm: #66BB6A; --mag-l3: #9CCC65; --mag-l4: #FBC02D; --mag-l5: #FB8C00; --mag-l6: #EF5350; --mag-l7: #E53935; --mag-l8: #D32F2F; --mag-l9: #AB47BC; }
.mag-l0, .mag-l1, .mag-l2 { --mag-c: var(--mag-calm); }
.mag-l3 { --mag-c: var(--mag-l3); } .mag-l4 { --mag-c: var(--mag-l4); } .mag-l5 { --mag-c: var(--mag-l5); }
.mag-l6 { --mag-c: var(--mag-l6); } .mag-l7 { --mag-c: var(--mag-l7); } .mag-l8 { --mag-c: var(--mag-l8); } .mag-l9 { --mag-c: var(--mag-l9); }
.mag-head h1 { margin-bottom: 8px; }
.mag-sub { color: var(--muted); margin: 0 0 20px; font-size: 16px; line-height: 1.45; }
.mag-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mag-alert { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 12px; font-size: 16px; line-height: 1.45; background: var(--surface); border: 1px solid var(--line-2); }
/* Статус «зараз» */
.mag-status { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 24px; border-left: 6px solid var(--mag-c); }
.mag-status--none { border-left-color: var(--line-2); --mag-c: var(--muted); }
.mag-status__body { flex: 1; min-width: 0; }
.mag-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--mag-c) 12%, transparent); color: var(--mag-c); }
.mag-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 479px) { .mag-status { gap: 12px; padding: 16px; } .mag-ico { width: 40px; height: 40px; } .mag-ico svg { width: 24px; height: 24px; } }
.mag-status__date { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.mag-status__t { font-size: 24px; font-weight: 700; line-height: 1.25; margin: 4px 0; }
.mag-status__d { margin: 4px 0 0; color: var(--ink-2); }
.mag-status__warn { font-weight: 700; color: var(--ink); }
.mag-status__upd { color: var(--muted); font-size: 13px; margin-top: 10px; }
/* Прогноз на 3 дні: стовпчики по 3 години */
.mag-days { margin: 0 0 24px; }
.mag-days h2, .mag-month h2, .mag-info h2 { font-size: 22px; margin: 0 0 10px; }
.mag-day { background: var(--surface); border-radius: var(--radius); padding: 14px 16px 10px; margin: 0 0 10px; }
.mag-day__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin: 0 0 10px; }
.mag-day__head h3 { font-size: 18px; margin: 0; }
.mag-day__head h3 span { font-weight: 400; color: var(--muted); }
.mag-chip { display: inline-block; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; color: var(--mag-c); background: color-mix(in srgb, var(--mag-c) 12%, transparent); }
.mag-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--mag-n, 8), 1fr); gap: 6px; }
.mag-bar { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.mag-bar__v { font-weight: 700; font-size: 15px; line-height: 1; color: var(--mag-c); }
.mag-bar__col { position: relative; width: 100%; height: 84px; border-radius: 4px; background: var(--mag-track); display: flex; align-items: flex-end; overflow: hidden; }
.mag-bar__fill { display: block; width: 100%; background: var(--mag-c); border-radius: 4px 4px 0 0; transition: filter .2s ease; }
.mag-bar.is-pred .mag-bar__fill { background: repeating-linear-gradient(135deg, var(--mag-c) 0 5px, color-mix(in srgb, var(--mag-c) 62%, var(--surface)) 5px 9px); }
.mag-bar.is-now .mag-bar__col { box-shadow: 0 0 0 2px var(--ink); }
.mag-bar.is-now .mag-bar__t { color: var(--ink); font-weight: 700; }
.mag-bar__t { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mag-bar:hover .mag-bar__fill { filter: brightness(1.08); }
@media (max-width: 479px) { .mag-bars { gap: 3px; } .mag-bar__col { height: 64px; } .mag-bar__t { font-size: 11px; } .mag-bar__v { font-size: 13px; } }
.mag-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.mag-legend span { display: inline-block; width: 14px; height: 10px; border-radius: 2px; margin-left: 6px; }
.mag-legend span:first-child { margin-left: 0; }
.mag-legend__solid { background: var(--mag-calm); }
.mag-legend__pred { background: repeating-linear-gradient(135deg, var(--mag-calm) 0 3px, color-mix(in srgb, var(--mag-calm) 55%, var(--surface)) 3px 6px); }
.mag-legend__now { box-shadow: inset 0 0 0 2px var(--ink); }
/* Прогноз на місяць */
.mag-month { margin: 0 0 24px; }
.mag-note { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 0 0 10px; }
.mag-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.mag-tile { background: var(--surface); border-radius: var(--radius); padding: 8px 4px 6px; text-align: center; border-bottom: 4px solid var(--mag-c); display: flex; flex-direction: column; line-height: 1.15; transition: transform .2s ease, box-shadow .2s ease; }
.mag-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.10); }
:root[data-theme="dark"] .mag-tile:hover { box-shadow: 0 8px 20px rgba(0,0,0,.45); }
.mag-tile__d { font-weight: 700; font-size: 17px; }
.mag-tile__w { color: var(--muted); font-size: 12px; }
.mag-tile__k { margin-top: 4px; font-weight: 700; font-size: 15px; color: var(--mag-c); }
/* Минулі дні */
.mag-hist { margin: 0 0 24px; font-size: 15px; }
.mag-hist summary { cursor: pointer; font-weight: 700; font-size: 18px; padding: 6px 0; }
.mag-hdays { list-style: none; margin: 8px 0 0; padding: 0; }
.mag-hday { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; background: var(--surface); border-radius: var(--radius); padding: 10px 16px; margin: 0 0 6px; }
.mag-hday__d { font-weight: 700; min-width: 200px; }
.mag-strip { display: inline-flex; gap: 2px; }
.mag-strip i { display: block; width: 12px; height: 14px; border-radius: 2px; background: var(--mag-c); }
.mag-hday__k { font-weight: 700; color: var(--mag-c); }
@media (max-width: 479px) { .mag-hday__d { min-width: 0; width: 100%; } }
/* Довідка */
.mag-info { margin: 0 0 20px; }
.mag-info p { line-height: 1.5; }
.mag-scale { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 12px; }
.mag-scale th, .mag-scale td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.mag-scale th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.mag-scale td:first-child { white-space: nowrap; font-weight: 700; }
.mag-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--mag-c); margin-right: 8px; vertical-align: 1px; }
.mag-foot { color: var(--muted); font-size: 13px; }
.mag-foot a { color: inherit; }
@media (prefers-reduced-motion: reduce) { .mag-tile { transition: none; } .mag-tile:hover { transform: none; } }
/* Блок у правій колонці (magnetic_block.php) */
.mag-side__now { display: flex; align-items: center; gap: 12px; color: inherit; }
.mag-side__now:hover { color: inherit; }
.mag-side__k { flex: none; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--mag-c); background: color-mix(in srgb, var(--mag-c) 13%, transparent); }
.mag-side__t { display: flex; flex-direction: column; line-height: 1.25; }
.mag-side__t b { font-size: 17px; color: var(--mag-c); }
.mag-side__t span { font-size: 13px; color: var(--muted); }
.mag-side__bars { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--mag-n, 8), 1fr); gap: 4px; }
.mag-side__bars li { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.mag-side__col { width: 100%; height: 34px; border-radius: 3px; background: var(--mag-track); display: flex; align-items: flex-end; overflow: hidden; }
.mag-side__col span { display: block; width: 100%; background: var(--mag-c); }
.mag-side__bars .is-pred .mag-side__col span { background: repeating-linear-gradient(135deg, var(--mag-c) 0 3px, color-mix(in srgb, var(--mag-c) 60%, var(--surface)) 3px 6px); }
.mag-side__bars .is-now .mag-side__col { box-shadow: 0 0 0 2px var(--ink); }
.mag-side__h { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mag-side__bars .is-now .mag-side__h { color: var(--ink); font-weight: 700; }
.mag-side__note { margin: 10px 0 0; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.mag-side__note[class*="mag-l"] { color: var(--mag-c); font-weight: 700; }
/* ===== /SV-MAGNETIC ===== */

/* ===== SV-BOARD-NAV: «Дошка оголошень» у меню, «Увійти» в шапці, перемикач теми в службовому рядку ===== */
.nav__link.nav__board { gap: 7px; }
.nav__link.nav__board svg { width: 20px; height: 20px; color: var(--red); transform: none; transform-origin: 50% 90%; animation: sbNavIco 6s ease-in-out 2s infinite; }
.nav__link.nav__board:hover svg { animation: sbNavIco .9s ease-in-out; }
.quicknav a.qn-board { display: inline-flex; align-items: center; gap: 5px; }
.quicknav a.qn-board svg { width: 17px; height: 17px; color: var(--red); transform-origin: 50% 90%; animation: sbNavIco 6s ease-in-out 2s infinite; }
@keyframes sbNavIco { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-12deg) scale(1.12); } 90% { transform: rotate(10deg) scale(1.12); } 94% { transform: rotate(-5deg); } 97% { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .nav__link.nav__board svg, .quicknav a.qn-board svg { animation: none !important; } }
.drawer__main a.drawer__board { display: flex; align-items: center; gap: 10px; }
.drawer__main a.drawer__board svg { width: 22px; height: 22px; color: var(--red); }
.hdr-login svg { width: 16px; height: 16px; }
.hdr-login.is-in { border-color: var(--red); color: var(--red-text); }
@media (max-width: 767px) { .header__right .hdr-login { display: inline-flex !important; width: 32px; height: 32px; padding: 0; border-radius: 50%; justify-content: center; gap: 0; } .header__right .hdr-login span { display: none; } }
.topbar .theme-switch--top { display: inline-flex; width: 44px; height: 30px; }
.topbar .theme-switch--top::before { top: 5px; height: 20px; border-radius: 10px; background: rgba(255, 255, 255, .18); }
.topbar .theme-switch--top:hover::before { background: rgba(255, 255, 255, .3); }
.topbar .theme-switch--top .theme-switch__knob { width: 16px; height: 16px; margin-left: 2px; }
.topbar .theme-switch--top .theme-switch__knob svg { width: 11px; height: 11px; }
:root[data-theme="dark"] .topbar .theme-switch--top .theme-switch__knob { transform: translateX(24px); }
/* ===== /SV-BOARD-NAV ===== */
/* Шапка: «Без відключень» — лише кругла зелена іконка (як «Сповіщення»); підказка при наведенні */
.svl-hdr--free .svl-hdr__text { display: none; }
.svl-hdr--free { width: 28px; padding: 0; justify-content: center; border-radius: 50%; }
@media (max-width: 767px) { .svl-hdr--free { width: 32px; } }
@media (min-width: 1024px) { .header__left:has(.svl-hdr--free:not([hidden])) .search-btn span { display: inline; } .header__left:has(.svl-hdr--free:not([hidden])) .search-btn { width: auto; padding: 0 12px 0 10px; } }
/* Алея Слави в підвалі меню «Новини» */
.mega--news .mega__foot a.mega__glory { display: inline-flex; align-items: center; gap: 8px; }
.mega--news .mega__foot a.mega__glory .nav__flag { width: 21px; height: 14px; }
/* реклама після ліду: плавне згортання, коли Google не підібрав оголошення (.is-empty ставить app.js) */
.ad-lead, .sb-ad-box, .sb-ad-wide { transition: max-height .45s var(--ease), opacity .3s ease, margin .45s var(--ease), padding .45s var(--ease), border-width .45s; }
.ad-lead.is-empty, .sb-ad-box.is-empty, .sb-ad-wide.is-empty { max-height: 0 !important; opacity: 0; margin-top: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; border-width: 0; overflow: hidden; }
/* повідомлення захисту від копіювання */
.copy-toast { position: fixed; left: 50%; bottom: 24px; z-index: 1000; max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.45; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .5); transform: translate(-50%, 16px); opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.copy-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
:root[data-theme="dark"] .copy-toast { background: #2C2F33; }
/* Кнопки DLE (.bbcodes) у службових формах (пошук тощо) — у стилі сайту; engine.css більше не підключається */
.bbcodes, .bbcodes_poll { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; margin: 2px 0; border: 0; border-radius: 20px; background: var(--red); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background-color .2s; }
.bbcodes:hover, .bbcodes_poll:hover { background: var(--red-dark, #990000); }

/* 22.10.2026: на телефоні дзвіночка в шапці немає (не вміщалися іконки) — сповіщення вмикаються з мобільного меню */
@media (max-width: 767px) { .header__right .push-btn--m, .header__right .push-btn--m:not([hidden]) { display: none !important; } }
.drawer__push { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 20px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 700; text-align: left; cursor: pointer; }
.drawer__push[hidden] { display: none; }
.drawer__push-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.drawer__push-ico svg { width: 18px; height: 18px; }
.drawer__push-l::after { content: "Увімкнути"; display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted, #6b6b6b); }
.drawer__push.is-on { color: var(--ink); }
.drawer__push.is-on .drawer__push-ico { color: var(--red-text); border-color: var(--red); }
.drawer__push.is-on .drawer__push-l::after { content: "Увімкнено"; }
.drawer__push .push-tip { display: none !important; }
@media (min-width: 768px) { .drawer__push, .drawer__push:not([hidden]) { display: none !important; } }

/* ===== SV-BOARD-SIDE: «Останні оголошення» в правій колонці новин (замість «Читають зараз») ===== */
.side-board .block-head h2 a { color: inherit; }
.side-board .block-head h2 a:hover { color: var(--red-text); }
.sbl { list-style: none; margin: 0; padding: 0; }
.sbl li { border-bottom: 1px solid var(--line-soft); }
.sbl li:last-child { border-bottom: 0; }
.sbl__a { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: inherit; }
.sbl__img { flex: none; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--line-softer, #f3f1ee); display: flex; align-items: center; justify-content: center; }
.sbl__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sbl__img--ico svg { width: 26px; height: 26px; color: var(--red-text); opacity: .75; }
.sbl__b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sbl__t { font-size: 15px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sbl__a:hover .sbl__t { color: var(--red-text); }
.sbl__p { font-size: 13px; color: var(--muted); }
/* ===== /SV-BOARD-SIDE ===== */

/* ---------- Опитування (poll.tpl + app.js) ---------- */
.svpoll { margin: 32px 0; padding: 22px 24px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.svpoll__label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--red-text); }
.svpoll__label svg { width: 15px; height: 15px; }
.svpoll__q { margin: 8px 0 16px; font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--ink); }
.svpoll__body > div { display: grid; gap: 8px; }
.svpoll .pollanswer { position: relative; }
.svpoll .pollanswer input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svpoll .pollanswer label { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; font-size: 16px; line-height: 1.35; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.svpoll .pollanswer label::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid var(--line-2); border-radius: 50%; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.svpoll .pollanswer label:hover { border-color: var(--red); }
.svpoll .pollanswer input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; }
.svpoll .pollanswer input:checked + label { border-color: var(--red); background: var(--red-soft); }
.svpoll .pollanswer input:checked + label::before { border-color: var(--red); box-shadow: inset 0 0 0 4px var(--surface); background: var(--red); }
.svpoll__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.svpoll__total { font-size: 14px; color: var(--muted); }
.svpoll__btns { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.svpoll__vote, .svpoll__res { height: 42px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s, color .15s, opacity .15s; }
.svpoll__vote { border: 0; background: var(--red); color: #fff; }
.svpoll__vote:hover:not(:disabled) { background: var(--red-dark); }
.svpoll__vote:disabled { opacity: .45; cursor: default; }
.svpoll__res { border: 1px solid var(--line-2); background: transparent; color: var(--ink); }
.svpoll__res:hover { border-color: var(--ink); }
.svpoll.is-busy .svpoll__body { opacity: .5; pointer-events: none; }
.svpoll__res-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.svpoll__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: end; font-size: 16px; line-height: 1.35; color: var(--ink); }
.svpoll__row-p { font-weight: 700; font-variant-numeric: tabular-nums; }
.svpoll__bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.svpoll__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--line-2); transition: width .8s var(--ease); }
.svpoll__row.is-lead .svpoll__bar > span { background: var(--red); }
.svpoll__row.is-lead .svpoll__row-t { font-weight: 700; }
.svpoll__mine { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--red-soft); color: var(--red-text); font-size: 12px; font-weight: 700; vertical-align: 2px; }
.svpoll__err { margin: 6px 0 0; font-size: 14px; color: var(--red-text); }
:root[data-theme="dark"] .svpoll .pollanswer input:checked + label { background: rgba(204, 0, 0, .14); }
:root[data-theme="dark"] .svpoll__mine { background: rgba(204, 0, 0, .2); }
@media (max-width: 599px) { .svpoll { padding: 18px 16px 16px; border-radius: 12px; } .svpoll__q { font-size: 19px; } .svpoll__btns { width: 100%; } .svpoll__btns button { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .svpoll__bar > span { transition: none; } }
@media print { .svpoll__btns { display: none; } .svpoll { box-shadow: none; } }
/* запасний вигляд «сирих» результатів DLE, якщо скрипт не розібрав формат */
.svpoll .pollprogress { height: 8px; margin: 4px 0 12px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.svpoll .pollprogress span { display: block; height: 100%; background: var(--red); font-size: 0; }
.svpoll__wait { margin: 0; padding: 18px 0; font-size: 15px; color: var(--muted); }
.svpoll__note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
/* після [/list] з порожнім рядком DLE ставить два <br> — другий ховаємо, щоб відступ після списку дорівнював звичайному між абзацами */
.prose ul + br + br, .prose ol + br + br { display: none; }

/* ---------- Розділ /vote/ — усі опитування (server/vote/vote.php) ---------- */
.svv-lead { margin: -4px 0 24px; color: var(--muted); font-size: 16px; }
.svv-empty { padding: 40px 0; color: var(--muted); }
.svv-item { margin: 0 0 28px; }
.svv-news { display: flex; align-items: center; gap: 14px; padding: 0 4px 12px; color: var(--ink); text-decoration: none; }
.svv-news__img { flex: none; width: 96px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--ph); }
.svv-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.svv-news:hover .svv-news__img img { transform: scale(1.05); }
.svv-news__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.svv-news__label { font-size: 12px; color: var(--muted); }
.svv-news__title { font-size: 17px; line-height: 1.3; font-weight: 700; }
.svv-news:hover .svv-news__title { color: var(--red-text); }
.svv-news .meta { font-size: 13px; }
.svv-form .svpoll { margin: 0; }
.svpoll--list .svpoll__q { margin-top: 0; }
@media (max-width: 599px) { .svv-news__img { width: 80px; height: 56px; } .svv-news__title { font-size: 16px; } }
.svpoll__head { position: relative; }
.svpoll__all { position: absolute; top: 0; right: 0; font-size: 13px; color: var(--muted); text-decoration: none; }
.svpoll__all:hover { color: var(--red-text); }
.svv-item { margin-bottom: 48px; }
.svv-item + .svv-item { padding-top: 8px; }
.drawer__vote { display: inline-flex; align-items: center; gap: 5px; }
.drawer__vote svg { width: 15px; height: 15px; color: var(--red-text); }

/* опитування з кількома відповідями: квадратні позначки з галочкою + підказка */
.svpoll__hint { display: flex; align-items: center; gap: 6px; margin: -8px 0 14px; font-size: 14px; color: var(--muted); }
.svpoll__hint::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--line-2); border-radius: 4px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23CC0000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }
.svpoll .pollanswer input[type="checkbox"] + label::before { border-radius: 5px; }
.svpoll .pollanswer input[type="checkbox"]:checked + label::before { box-shadow: none; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.svv-item { position: relative; }
.svv-edit { position: absolute; top: 0; right: 4px; font-size: 13px; color: var(--muted); }
.svv-edit:hover { color: var(--red-text); }
/* «Читайте також» [related=]: зовнішні відступи менші — зверху на 10px, знизу на 15px (23.10.2026) */
.prose .related-single { margin: 8px 0 -11px; }
.sport-tags__br { flex-basis: 100%; height: 0; }
/* ---------- «Повідомити про помилку» (app.js, у кінці) ---------- */
.orfo-fab { position: absolute; z-index: 90; height: 34px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--ink); color: var(--on-ink, #fff); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.orfo-fab:hover { background: var(--red); }
.orfo { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(15, 16, 18, .5); }
.orfo__box { position: relative; width: 460px; max-width: 100%; padding: 22px 22px 18px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.orfo__x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; }
.orfo__t { margin: 0 0 14px; font-size: 19px; font-weight: 800; }
.orfo__l { display: block; margin: 10px 0 6px; font-size: 14px; font-weight: 700; }
.orfo__l span { font-weight: 400; color: var(--muted); }
.orfo textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; line-height: 1.4; resize: vertical; }
.orfo textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.orfo__btns { margin-top: 14px; text-align: right; }
.orfo__send { height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--red); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.orfo__send:hover:not(:disabled) { background: var(--red-dark); }
.orfo__send:disabled { opacity: .6; cursor: default; }
.orfo__msg { margin: 8px 0 0; font-size: 14px; color: var(--red-text); }
.orfo__ok { margin: 0; font-size: 15px; color: var(--ink-2); }
.orfo-hint { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.orfo-hint button { padding: 0; border: 0; background: none; font: inherit; color: var(--red-text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media print { .orfo-hint, .orfo-fab { display: none !important; } }
.orfo-hint { font-style: italic; }
.support-inline + .orfo-hint { margin-top: 12px; }
/* 5 пунктів: Новини, Фото, Афіша, Опитування, Оголошення (Відео й Блоги — у гамбургері) */
@media (max-width: 400px) { .quicknav { margin: 0 -8px; } .quicknav ul { gap: 9px; font-size: 13px; } }
@media (max-width: 372px) { .quicknav ul { gap: 7px; font-size: 12.5px; } }
/* Мобільна шапка, симетрично: ліворуч тривога | пошук, праворуч кабінет | меню (без іконки світла; меню — в колі, як інші) */
@media (max-width: 767px) {
  .header__left .svl-hdr, .header__left .header__sep--svl, .header__left .svl-hdr:not([hidden]) + .header__sep--svl { display: none !important; }
  .header__left .air-alert:not([hidden]) + .header__sep, .header__right .hdr-login + .header__sep--r { display: block !important; height: 22px; align-self: center; }
  .header__right .menu-toggle { width: 32px; height: 32px; border: 1px solid var(--line-soft); border-radius: 50%; }
  .header__right .menu-toggle svg { width: 17px; height: 17px; }
}
/* ===== SV-HOME-MOBILE: головна на телефоні — топ без слайдера (1 великий + 2 в рядок) → погода → 10 новин стрічки → розклад → афіша ===== */
@media (max-width: 767px) {
  .home-top { display: flex; flex-direction: column; gap: var(--gap); }
  .home-main, .home-widgets { display: contents; }
  .home-main .hero-slider { order: 1; }
  .home-widgets .wx-card { order: 2; }
  .home-feed { order: 3; }
  .home-bus { order: 4; }
  .home-main > .ad { order: 5; }
  .home-feed .feed__item:nth-child(n+11) { display: none; }
  .hero-slider { background: none; overflow: visible; aspect-ratio: auto !important; border-radius: 0; cursor: auto; touch-action: auto; }
  .hero-slider__track { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transform: none !important; transition: none !important; }
  .hero-slider__track > [aria-hidden="true"], .hero-slider__dots, .hero-slider__btn { display: none !important; }
  .hero-slider__track > .hero { border-radius: var(--radius); min-height: 0; }
  .hero-slider__track > .hero:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .hero-slider__track > .hero:not(:first-child) { aspect-ratio: 4 / 3; }
  .hero-slider .hero__body { opacity: 1 !important; transform: none !important; }
  .hero-slider__track > .hero:not(:first-child) .hero__body { padding: 10px 12px 12px; }
  .hero-slider__track > .hero:not(:first-child) .hero__title { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-slider__track > .hero:not(:first-child) .labels, .hero-slider__track > .hero:not(:first-child) .hero__lead, .hero-slider__track > .hero:not(:first-child) .meta { display: none; }
}
/* ===== /SV-HOME-MOBILE ===== */
/* Мобільне меню: контейнер не прокручується (Safari «підкручував» його при фокусі — панель смикалась) */
.drawer { overflow: clip; }
.partners noindex { display: contents; } /* обгортка noindex не повинна ставати окремою клітинкою сітки */

/* Лічильник коментарів у стрічках і під заголовком новини (модуль коментарів, 28.10.2026) */
.meta__comm { display: inline-flex; align-items: center; gap: 4px; color: inherit; text-decoration: none; }
.meta__comm svg { width: 15px; height: 15px; }
a.meta__comm:hover { color: var(--red-text); }
.ticker__item .meta__comm { flex-shrink: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 559px) { .ticker__item .meta__comm { display: none; } }

/* СвітлоКар у верхньому меню (29.10.2026): на 1024–1279px два пункти з іконками поруч — трохи щільніше, щоб «Дошка оголошень» не переносилася */
@media (min-width: 1024px) and (max-width: 1279px) { .nav__list { gap: 18px !important; } .nav__list > .nav__item > .nav__link { font-size: 15.5px; } }

/* Банер СвітлоКара в правій колонці сторінки розкладу автобусів (29.10.2026) */
.side-promo { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 18px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.side-promo img { display: block; width: 100%; height: auto; }
.side-promo:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0,0,0,.12), 0 12px 28px rgba(0,0,0,.14); }
@media (max-width: 1023px) { .side-promo { max-width: 400px; margin-left: auto; margin-right: auto; } }

/* Бічний блок «СвітлоКар: найближчі поїздки» у новинах (roads_latest.php, 29.10.2026) */
.srl { list-style: none; margin: 0; padding: 0; }
.srl li { border-bottom: 1px solid var(--line-soft); }
.srl li:last-child { border-bottom: 0; }
.srl__a { display: flex; gap: 12px; align-items: center; padding: 10px 0; color: inherit; }
.srl__when { flex: none; width: 64px; padding: 6px 0; border-radius: 8px; background: var(--line-softer, #f3f1ee); display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.srl__when b { font-size: 16px; font-weight: 700; color: var(--red-text); }
.srl__when span { font-size: 12px; color: var(--muted); }
.srl__b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.srl__t { font-size: 15px; line-height: 1.3; font-weight: 600; }
.srl__a:hover .srl__t { color: var(--red-text); }
.srl__p { font-size: 13px; color: var(--muted); }
.srl-more { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-weight: 600; font-size: 14px; }
.srl-more a:hover { color: var(--red-text); }
.srl-empty { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0 4px; color: inherit; font-size: 14px; line-height: 1.45; }
.srl-empty b { display: block; margin-bottom: 2px; font-size: 15px; }
.srl-empty:hover b { color: var(--red-text); }
.srl-empty__ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--line-softer, #f3f1ee); display: flex; align-items: center; justify-content: center; color: var(--red-text); }
.srl-empty__ico svg { width: 24px; height: 24px; }

/* «Читайте також» ([related=]) у мобільній версії (02.11.2026): показуємо, компактно — мініатюра 30 %, заголовок 15px;
   на сенсорних екранах без притемнення (там немає наведення) */
@media (max-width: 559px) {
  .prose .related-single { padding: 14px 0; }
  .prose .related-single-link { gap: 12px; align-items: center; }
  .prose .related-single-link img { flex: 0 0 30%; width: 30%; aspect-ratio: 4 / 3; }
  .prose .related-single-info { gap: 4px; }
  .prose .related-single-info > span:not(.rel-meta) { font-size: 15px; line-height: 1.3; }
  .prose .related-single-link + .related-single-link, .prose .related-single-link ~ .related-single-link { margin-top: 14px; padding-top: 14px; }
}
@media (hover: none) { .prose .related-single, .prose .related-single:hover { opacity: 1; } }

/* Старі коментарі DLE вимкнено — працюють власні (server/comments). DLE усе ще додає під записом форму масових дій
   «Выбранные комментарии: -- Действие -- / Выполнить» (видно адміністраторам) і порожній список — ховаємо (02.11.2026) */
#dlemasscomments, #dle-comments-form, .mass_comments_action { display: none !important; }
