/* Нагода — стилі. Ідея: «червоний день календаря». Чорнило на папері,
   відривний аркуш, червоний — для державних свят і неділь, кольорова
   позначка — вид свята. Кути майже прямі, тіні тверді (стос аркушів). */

:root {
	--bg: #ffffff;
	--bg-2: #f4f5f7;
	--bg-3: #e9ebef;
	--ink: #16181d;
	--ink-2: #434853;
	--ink-3: #626873;
	--rule: #e1e4e9;
	--rule-2: #c9ced6;
	--red: #c8102e;
	--red-ink: #ffffff;
	--red-soft: #fcecee;
	--yellow: #ffd500;
	--k-state: #c8102e;
	--k-ua: #0b57a4;
	--k-church: #8a5a00;
	--k-folk: #1d6a39;
	--k-memorial: #3d434d;
	--k-prof: #4b3fa8;
	--k-intl: #00707f;
	--k-local: #9a3b16;
	--k-world: #6b4e71;
	--k-names: #a82d65;
	--topbar-bg: #16181d;
	--topbar-ink: #e9ebef;
	--foot-bg: #16181d;
	--foot-ink: #c9ced6;
	--foot-ink-2: #9aa1ad;
	--f-head: "Alegreya", Georgia, "Times New Roman", serif;
	--f-body: "Fira Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-num: "Fira Sans Extra Condensed", "Fira Sans", "Arial Narrow", sans-serif;
	--r-box: 3px;
	--r-btn: 3px;
	--wrap: 1240px;
	--gut: 16px;
	color-scheme: light;
}

:root[data-scheme="dark"] {
	--bg: #121317;
	--bg-2: #1a1c21;
	--bg-3: #23262d;
	--ink: #eceef2;
	--ink-2: #c3c8d1;
	--ink-3: #9aa1ad;
	--rule: #2a2d34;
	--rule-2: #3b3f48;
	--red: #ff5a6a;
	--red-ink: #1c0409;
	--red-soft: #2b1519;
	--k-state: #ff5a6a;
	--k-ua: #7fb2ff;
	--k-church: #e3b75a;
	--k-folk: #62c98b;
	--k-memorial: #c4c9d2;
	--k-prof: #aa9dff;
	--k-intl: #3fc3d2;
	--k-local: #f28a5f;
	--k-world: #d1a5dc;
	--k-names: #ff86bc;
	--topbar-bg: #0b0c0f;
	--topbar-ink: #c3c8d1;
	--foot-bg: #0b0c0f;
	color-scheme: dark;
}

@media (min-width: 720px) {
	:root { --gut: 24px; }
}

/* ── База ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.6 var(--f-body);
	overflow-x: hidden;
	overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap--narrow { max-width: 820px; }
.ic { flex: none; vertical-align: -3px; }
.note { color: var(--ink-3); font-size: 14.5px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.kicker { font: 600 14px/1.2 var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--ink); color: var(--bg); border: 0; border-radius: var(--r-btn);
	padding: 10px 16px; font: 600 15px/1.2 var(--f-body); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--red); color: var(--red-ink); }
.box { border: 1px solid var(--rule); border-radius: var(--r-box); padding: 18px; background: var(--bg); }
.w-more { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 15px; color: var(--red); text-decoration: none; }
.w-more::after { content: " →"; }
.w-more:hover { text-decoration: underline; }

/* ── Верхній рядок ────────────────────────────────────────────────────── */
.topbar { background: var(--topbar-bg); color: var(--topbar-ink); font-size: 13.5px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar__date { margin: 0; display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.topbar__date time { font-weight: 600; }
.topbar__today a { color: #fff; font-weight: 600; }
:root[data-scheme="dark"] .topbar__today a { color: var(--ink); }
.topbar__more { color: var(--foot-ink-2); }
.topbar__nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar__nav a { color: var(--topbar-ink); text-decoration: none; }
.topbar__nav a:hover { color: #fff; text-decoration: underline; }
.topbar__date time { white-space: nowrap; }
@media (max-width: 899px) {
	.topbar__nav, .topbar__more { display: none; }
	.topbar__today { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
	.topbar__date { flex-wrap: nowrap; min-width: 0; }
	.topbar__in { min-width: 0; }
}
@media (max-width: 599px) {
	.topbar__date time { display: none; }
}

/* ── Шапка ────────────────────────────────────────────────────────────── */
.mast { background: var(--bg); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }
.mast__in { display: flex; align-items: center; gap: 22px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: 0 1 auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand--logo img { max-height: 48px; width: auto; display: block; }
.brand__sheet {
	flex: none; width: 44px; height: 48px; display: grid; grid-template-rows: 15px 1fr;
	border: 1.5px solid var(--ink); border-radius: 2px; overflow: hidden; background: var(--bg); text-align: center;
	box-shadow: 2px 2px 0 var(--rule-2);
}
.brand__mon { background: var(--ink); color: var(--bg); font: 700 10px/15px var(--f-num); letter-spacing: .12em; text-transform: uppercase; }
.brand__sheet.is-red { border-color: var(--red); }
.brand__sheet.is-red .brand__mon { background: var(--red); color: var(--red-ink); }
.brand__day { font: 800 25px/31px var(--f-num); }
.brand__sheet.is-red .brand__day { color: var(--red); }
.brand__text { display: grid; min-width: 0; }
.brand__name { font: 800 26px/1.05 var(--f-head); margin: 0; letter-spacing: -.01em; white-space: nowrap; }
.brand__tag { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { flex: 1 1 auto; min-width: 0; }
.nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 4px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list > li > a { display: block; padding: 8px 10px; font-weight: 600; font-size: 15.5px; text-decoration: none; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav__list > li > a:hover, .nav__list > .current-menu-item > a, .nav__list > .current-menu-ancestor > a { border-bottom-color: var(--red); color: var(--ink); }
.nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
.nav__list .sub-menu {
	position: absolute; right: 0; top: 100%; min-width: 230px; z-index: 50; list-style: none; margin: 0; padding: 6px 0;
	background: var(--bg); border: 1px solid var(--rule-2); border-top: 3px solid var(--red); box-shadow: 4px 4px 0 var(--rule);
	visibility: hidden; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s, visibility .12s;
}
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu, .nav__list li.is-open > .sub-menu { visibility: visible; opacity: 1; transform: none; }
.nav__list .sub-menu a { display: block; padding: 7px 16px; text-decoration: none; font-size: 15px; white-space: nowrap; }
.nav__list .sub-menu a:hover { background: var(--bg-2); }
.mast__tools { display: flex; gap: 4px; flex: none; }
.tool { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; border-radius: var(--r-btn); background: none; color: var(--ink); cursor: pointer; }
.tool:hover { border-color: var(--rule-2); color: var(--red); }
.tool .ic { width: 20px; height: 20px; }
.tool--menu { display: none; }
.search-panel { border-top: 1px solid var(--rule); background: var(--bg-2); padding: 14px 0; }
@media (max-width: 1099px) {
	.nav { display: none; }
	.tool--menu { display: inline-grid; }
	.mast__in { justify-content: space-between; }
}
@media (max-width: 520px) {
	.brand__tag { display: none; }
	.brand__name { font-size: 22px; }
	.mast__in { min-height: 60px; gap: 10px; }
}
/* Меню не влазить в один рядок — рівні ставить скрипт після шапки (header.php):
   fit-1 щільніше, fit-2 без підпису під назвою, fit-3 — меню ховається під «гамбургер». */
.mast.fit-1 .mast__in { gap: 14px; }
.mast.fit-1 .nav__list { gap: 2px; }
.mast.fit-1 .nav__list > li > a { padding-left: 7px; padding-right: 7px; font-size: 15px; }
.mast.fit-2 .brand__tag { display: none; }
.mast.fit-3 .nav { display: none; }
.mast.fit-3 .tool--menu { display: inline-grid; }
.mast.fit-3 .mast__in { justify-content: space-between; }

.search { display: flex; gap: 8px; max-width: 640px; }
.search__input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: var(--r-btn); background: var(--bg); color: var(--ink); }
.search__btn { font: 600 15px var(--f-body); padding: 10px 16px; border: 0; border-radius: var(--r-btn); background: var(--ink); color: var(--bg); cursor: pointer; }
.search__btn:hover { background: var(--red); color: var(--red-ink); }

.drawer { position: fixed; inset: 0; z-index: 90; background: rgb(0 0 0 / .45); }
.drawer__in { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--bg); padding: 56px 20px 24px; overflow-y: auto; border-left: 3px solid var(--red); }
.drawer__close { position: absolute; top: 10px; right: 10px; }
.drawer__list, .drawer__list ul { list-style: none; margin: 0; padding: 0; }
.drawer__list { margin-top: 18px; }
.drawer__list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-weight: 600; }
.drawer__list .sub-menu a { padding-left: 16px; font-weight: 400; }
body.has-drawer { overflow: hidden; }

/* ── Аркуш відривного календаря ───────────────────────────────────────── */
.sheet {
	position: relative; display: grid; justify-items: center; align-content: start;
	width: 250px; padding: 24px 18px 14px; text-align: center; text-decoration: none;
	background: var(--bg); color: var(--ink); border: 1px solid var(--rule-2); border-radius: 2px;
	box-shadow: 0 3px 0 -1px var(--bg), 0 3px 0 0 var(--rule-2), 0 6px 0 -1px var(--bg), 0 6px 0 0 var(--rule-2);
}
a.sheet:hover { color: var(--ink); border-color: var(--ink-3); }
.sheet::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 12px; background: var(--ink); border-radius: 2px 2px 0 0; }
.sheet.is-red::before { background: var(--red); }
.sheet::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 36px; border-bottom: 2px dotted var(--rule-2); }
.sheet--sm::after, .sheet--md::after { display: none; }
.sheet__rings { position: absolute; top: -8px; left: 0; right: 0; display: flex; justify-content: center; gap: 110px; }
.sheet__rings i { display: block; width: 9px; height: 18px; border: 2px solid var(--ink-3); border-radius: 9px; background: var(--bg-2); }
.sheet__dow { margin-top: 4px; font: 600 14px/1 var(--f-num); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.sheet__day { font: 800 138px/.92 var(--f-num); letter-spacing: -.02em; margin: 6px 0 2px; font-variant-numeric: lining-nums; }
.sheet.is-red .sheet__day, .sheet.is-red .sheet__dow { color: var(--red); }
.sheet__mon { font: 700 21px/1.15 var(--f-head); }
.sheet__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 22px; font-size: 12.5px; color: var(--ink-3); }
.sheet__foot > span { display: inline-flex; align-items: center; gap: 4px; }
.sheet__foot .ic { width: 15px; height: 15px; }
.sheet--sm { width: 128px; padding: 16px 8px 10px; box-shadow: 0 3px 0 -1px var(--bg), 0 3px 0 0 var(--rule-2); }
.sheet--sm .sheet__rings { gap: 52px; top: -6px; }
.sheet--sm .sheet__rings i { width: 7px; height: 14px; }
.sheet--sm .sheet__day { font-size: 62px; }
.sheet--sm .sheet__mon { font-size: 15px; }
.sheet--sm .sheet__dow { font-size: 11.5px; }
.sheet--sm::before { height: 8px; }
.moon__dark { fill: var(--rule-2); }
.moon__lit { fill: var(--ink-2); }
.sheet.is-red .moon__lit { fill: var(--ink-2); }

/* ── Позначки видів ───────────────────────────────────────────────────── */
.chip { display: inline-block; font: 600 12.5px/1.2 var(--f-num); letter-spacing: .06em; text-transform: uppercase; color: var(--k, var(--ink-3)); padding: 3px 7px 2px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.chip--state, .hol--state, .cd--state, .dot--state, .group--state, .mgrid__hol--state { --k: var(--k-state); }
.chip--ua, .hol--ua, .cd--ua, .dot--ua, .group--ua, .mgrid__hol--ua { --k: var(--k-ua); }
.chip--church, .hol--church, .cd--church, .dot--church, .group--church, .mgrid__hol--church { --k: var(--k-church); }
.chip--folk, .hol--folk, .cd--folk, .dot--folk, .group--folk, .mgrid__hol--folk { --k: var(--k-folk); }
.chip--memorial, .hol--memorial, .cd--memorial, .dot--memorial, .group--memorial, .mgrid__hol--memorial { --k: var(--k-memorial); }
.chip--prof, .hol--prof, .cd--prof, .dot--prof, .group--prof, .mgrid__hol--prof { --k: var(--k-prof); }
.chip--intl, .hol--intl, .cd--intl, .dot--intl, .group--intl, .mgrid__hol--intl { --k: var(--k-intl); }
.chip--local, .hol--local, .cd--local, .dot--local, .group--local, .mgrid__hol--local { --k: var(--k-local); }
.chip--world, .hol--world, .cd--world, .dot--world, .group--world, .mgrid__hol--world { --k: var(--k-world); }

/* ── Рядок свята ──────────────────────────────────────────────────────── */
.hols { list-style: none; margin: 0; padding: 0; }
.hol { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.hol:last-child { border-bottom: 0; }
.hol__mark { flex: none; width: 4px; align-self: stretch; min-height: 22px; background: var(--k, var(--rule-2)); border-radius: 1px; }
.hol--memorial .hol__mark { background: repeating-linear-gradient(0deg, var(--k) 0 4px, transparent 4px 6px); }
.hol__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hol__title { font-weight: 600; font-size: 17px; line-height: 1.35; text-decoration: none; }
a.hol__title { text-decoration: underline; text-decoration-color: var(--rule-2); }
a.hol__title:hover { text-decoration-color: currentColor; }
.hol.is-major .hol__title { font-family: var(--f-head); font-weight: 800; font-size: 19px; }
.hol__meta { font-size: 13.5px; color: var(--ink-3); }
.hol__meta i { font-style: normal; margin: 0 2px; }
.hol__meta > :first-child, .hol__meta abbr { color: var(--k, var(--ink-3)); font-weight: 600; text-decoration: none; }
.hol__more { flex: none; color: var(--ink-3); padding-top: 2px; }
.fastnote { display: inline-block; margin: 0 0 10px; padding: 4px 10px; background: var(--bg-2); border-left: 3px solid var(--k-church); font-size: 14px; color: var(--ink-2); }
.fastnote--lg { display: block; font-size: 15.5px; }

/* ── Герой головної ───────────────────────────────────────────────────── */
.hero { padding: 26px 0 8px; border-bottom: 1px solid var(--rule); background: linear-gradient(var(--bg-2), var(--bg) 70%); }
.hero__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 22px; }
.hero__title { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; margin: 0; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs__tab { padding: 8px 14px; border: 1px solid var(--rule-2); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; background: var(--bg); }
.tabs__tab.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabs__tab:hover { border-color: var(--ink); color: var(--ink); }
.tabs__tab.is-active:hover { color: var(--bg); }
.hero__panel { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: start; }
.hero__panel[hidden] { display: none; }
.hero__list .hols { border-top: 2px solid var(--ink); }
.hero__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 0 6px; }
.hero__names { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.hero__names b { color: var(--k-names); }
.hero__names a { color: var(--ink); }
.hero .strip { margin-top: 26px; }
@media (max-width: 759px) {
	.hero__panel { grid-template-columns: 1fr; gap: 20px; }
	.hero__panel .sheet { width: 100%; grid-template-columns: auto 1fr; grid-template-areas: "day dow" "day mon" "day foot"; justify-items: start; align-items: center; column-gap: 18px; text-align: left; padding: 20px 16px 12px; }
	.hero__panel .sheet__day { grid-area: day; font-size: 96px; margin: 0; }
	.hero__panel .sheet__dow { grid-area: dow; align-self: end; }
	.hero__panel .sheet__mon { grid-area: mon; }
	.hero__panel .sheet__foot { grid-area: foot; justify-content: flex-start; margin-top: 4px; }
	.hero__panel .sheet::after { display: none; }
	.hero__panel .sheet__rings { justify-content: flex-start; padding-left: 26px; gap: 60px; }
}

/* ── Смуга днів ───────────────────────────────────────────────────────── */
.strip { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; padding-bottom: 6px; }
.strip__track { display: flex; gap: 4px; min-width: max-content; }
.strip__day { display: grid; justify-items: center; gap: 1px; width: 56px; padding: 7px 0 6px; border: 1px solid var(--rule); border-radius: 2px; text-decoration: none; background: var(--bg); }
.strip__day:hover { border-color: var(--ink); color: var(--ink); }
.strip__dow { font: 600 12px/1 var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.strip__num { font: 800 24px/1.05 var(--f-num); }
.strip__day.is-red .strip__num, .strip__day.is-red .strip__dow { color: var(--red); }
.strip__day.is-today { border-color: var(--ink); box-shadow: inset 0 -3px 0 var(--yellow); }
.strip__day.is-active { background: var(--ink); border-color: var(--ink); }
.strip__day.is-active .strip__num, .strip__day.is-active .strip__dow { color: var(--bg); }
.strip__day.is-active.is-red { background: var(--red); border-color: var(--red); }
.strip__day.is-active.is-red .strip__num, .strip__day.is-active.is-red .strip__dow { color: var(--red-ink); }
.strip__dots { display: flex; gap: 3px; height: 5px; }
.strip__dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.strip__day.is-active .strip__dots i { background: var(--bg); }

/* ── Секції ───────────────────────────────────────────────────────────── */
.sec { padding: 34px 0 10px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-top: 10px; border-top: 3px solid var(--ink); }
.sec__title { font-size: clamp(23px, 2.6vw, 29px); font-weight: 800; margin: 0; }
.sec__title::before { content: ""; display: inline-block; width: 11px; height: 11px; background: var(--red); margin-right: 10px; vertical-align: 3px; }
h3.sec__title { font-size: 21px; }
.box .sec__head { border-top: 0; padding-top: 0; }
.sec__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--red); white-space: nowrap; }
.sec__more:hover { text-decoration: underline; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.cols--solo { grid-template-columns: minmax(0, 1fr); }
.cols--month { grid-template-columns: minmax(0, 1fr) 360px; }
.cols__side { display: grid; gap: 26px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 999px) {
	.cols, .cols--month, .cols2 { grid-template-columns: minmax(0, 1fr); }
}

/* ── Відлік до свят ───────────────────────────────────────────────────── */
.countdown { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.cols__side .countdown, .box .countdown { grid-template-columns: 1fr; gap: 0; }
.cd__link { display: grid; grid-template-columns: auto 1fr; gap: 12px; height: 100%; padding: 14px 14px 14px 12px; border: 1px solid var(--rule); border-left: 4px solid var(--k, var(--ink)); border-radius: 2px; text-decoration: none; background: var(--bg); }
.cd__link:hover { border-color: var(--ink); border-left-color: var(--k); color: var(--ink); }
.cols__side .cd__link, .box .cd__link { border-width: 0 0 1px 4px; border-radius: 0; padding: 10px 0 10px 12px; }
.cd__when { display: grid; justify-items: center; align-content: start; min-width: 44px; }
.cd__n { font: 800 38px/1 var(--f-num); color: var(--k, var(--ink)); }
.cd__unit { font: 600 12px/1.2 var(--f-num); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.cd__body { display: grid; gap: 4px; align-content: start; justify-items: start; min-width: 0; }
.cd__date { font-size: 13px; color: var(--ink-3); }
.cd__title { font: 700 17.5px/1.2 var(--f-head); overflow-wrap: break-word; }
.cd .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px; }
@media (min-width: 1200px) {
	.sec--countdown .countdown { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.sec--countdown .cd__link { grid-template-columns: 1fr; gap: 6px; }
	.sec--countdown .cd__when { display: flex; align-items: baseline; gap: 6px; justify-items: start; }
}

/* ── Картки статей ────────────────────────────────────────────────────── */
.grid { display: grid; gap: 28px 24px; }
.grid--lead { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--lead > .card--lead { grid-column: 1 / -1; }
.grid--quad { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols__main .grid--quad { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--rowlist { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: repeat(3, auto); }
.grid--rowlist > :first-child { grid-row: 1 / span 3; }
.grid--archive { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--archive > .card--lead { grid-column: 1 / -1; }
.grid--news { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
.grid--rows { grid-template-columns: 1fr; }
@media (max-width: 999px) {
	.grid--quad, .cols__main .grid--quad, .grid--archive, .grid--lead, .grid--news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--rowlist { grid-template-columns: minmax(0, 1fr); }
	.grid--rowlist > :first-child { grid-row: auto; }
}
@media (max-width: 599px) {
	.grid--quad, .cols__main .grid--quad, .grid--archive, .grid--lead, .grid--news { grid-template-columns: minmax(0, 1fr); }
}
.card { display: grid; align-content: start; gap: 12px; min-width: 0; }
.card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-2); border-radius: 2px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card__ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--rule-2); }
.card__ph .ic { width: 42px; height: 42px; }
.card__body { display: grid; gap: 6px; min-width: 0; }
.card__cat { justify-self: start; font: 600 12.5px/1.2 var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.card__cat:hover { text-decoration: underline; }
.card__title { font-size: 20px; line-height: 1.22; margin: 0; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.card__ex { color: var(--ink-2); font-size: 16px; margin: 0; }
.card__meta { margin: 0; font-size: 13px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.card--lead { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.card--lead .card__title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; }
.card--row { grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: start; }
.card--row .card__title { font-size: 17.5px; }
.card--mini { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; }
.card--mini .card__media { aspect-ratio: 1; }
.card--mini .card__title { font: 600 15.5px/1.3 var(--f-body); }
@media (max-width: 759px) {
	.card--lead { grid-template-columns: minmax(0, 1fr); }
	.card--row { grid-template-columns: 104px minmax(0, 1fr); }
}
.toplist { list-style: none; margin: 0; padding: 0; counter-reset: top; display: grid; gap: 14px; }

/* ── Сітка місяця ─────────────────────────────────────────────────────── */
.mgrid__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mgrid__title { font: 800 26px/1.1 var(--f-head); text-decoration: none; margin-right: auto; }
.mgrid__title span { color: var(--ink-3); font-weight: 700; }
.mgrid__nav { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--rule-2); border-radius: 2px; color: var(--ink); }
.mgrid__nav:hover { border-color: var(--ink); }
.mgrid__head .mgrid__nav:first-child { order: 2; }
.mgrid__head .mgrid__title { order: 1; }
.mgrid__head .mgrid__nav:last-child { order: 3; }
.mgrid__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-left: 1px solid var(--rule); }
.mgrid__dow { padding: 6px 8px; font: 600 12.5px/1 var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--bg-2); }
.mgrid__dow.is-weekend:last-of-type { color: var(--red); }
.mgrid__pad { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: repeating-linear-gradient(135deg, transparent 0 6px, var(--bg-2) 6px 7px); }
.mgrid__day { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); min-width: 0; }
.mgrid__day > a { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 96px; padding: 6px 8px 8px; text-decoration: none; }
.mgrid__day > a:hover { background: var(--bg-2); color: var(--ink); }
.mgrid__num { font: 800 22px/1 var(--f-num); }
.mgrid__day.is-red { background: var(--red-soft); }
.mgrid__day.is-red .mgrid__num { color: var(--red); }
.mgrid__day.is-today > a { box-shadow: inset 0 0 0 2px var(--ink); }
.mgrid__day.is-today .mgrid__num::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 5px; border-radius: 50%; background: var(--yellow); vertical-align: 7px; box-shadow: 0 0 0 1px var(--ink); }
.mgrid__hols { display: grid; gap: 3px; }
.mgrid__hol { font-size: 12.5px; line-height: 1.25; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; padding-left: 6px; border-left: 2px solid var(--k, var(--rule-2)); }
.mgrid__dots { display: none; gap: 3px; margin-top: auto; }
.mgrid__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--k, var(--red)); }
.mgrid--sm .mgrid__title { font-size: 19px; }
.mgrid--sm .mgrid__day > a { min-height: 40px; padding: 4px 5px; align-items: center; gap: 2px; }
.mgrid--sm .mgrid__num { font-size: 16px; }
.mgrid--sm .mgrid__dots, .mgrid--sm .mgrid__dots { display: flex; margin-top: 0; }
.mgrid--sm .mgrid__dow { padding: 5px 2px; text-align: center; font-size: 11px; }
@media (max-width: 759px) {
	.mgrid__hols { display: none; }
	.mgrid__dots { display: flex; }
	.mgrid__day > a { min-height: 52px; align-items: center; padding: 6px 2px; }
	.mgrid__num { font-size: 19px; }
	.mgrid__dow { padding: 6px 2px; text-align: center; }
}

/* ── Картка дня ───────────────────────────────────────────────────────── */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 18px 0 14px; padding: 0; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--rule-2); }
.crumbs a { color: var(--ink-3); }
.dayview__head { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 36px; align-items: center; margin: 8px 0 26px; }
.dayview__title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; margin-bottom: 10px; }
.daynav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.daynav__a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--rule-2); border-radius: var(--r-btn); text-decoration: none; font-weight: 600; font-size: 15px; }
.daynav__a:hover { border-color: var(--ink); color: var(--ink); }
.daynav__today { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.daynav__today:hover { color: var(--bg); background: var(--red); border-color: var(--red); }
@media (max-width: 759px) {
	.dayview__head { grid-template-columns: 1fr; gap: 18px; }
	.dayview__head .sheet { width: 100%; }
}
.jump { position: sticky; top: 72px; z-index: 30; display: flex; gap: 4px 18px; flex-wrap: wrap; margin: 20px 0 8px; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--rule); font-weight: 600; font-size: 15px; }
.jump a { text-decoration: none; color: var(--ink-2); }
.jump a:hover { color: var(--red); }
@media (max-width: 1099px) {
	.jump { position: static; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
}
.block { padding: 22px 0 8px; scroll-margin-top: 130px; }
.block__title { font-size: 27px; font-weight: 800; margin-bottom: 14px; }
.group { margin-bottom: 20px; }
.group__title { display: flex; align-items: center; gap: 8px; font: 600 15px/1 var(--f-body); margin: 0 0 4px; }
.group__title .chip { font-size: 13px; }
.group__n { color: var(--ink-3); font-size: 13.5px; }
.namechips { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.namechips a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule-2); border-radius: 999px; text-decoration: none; font-weight: 600; }
.namechips a:hover { border-color: var(--k-names); color: var(--k-names); }
.namechips--lg a { font: 700 20px/1.2 var(--f-head); padding: 8px 16px; }
.saints { margin: 0 0 10px; padding-left: 20px; }
.saints li { margin-bottom: 6px; }
.saints li::marker { color: var(--k-church); content: "✝  "; font-size: 13px; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist__row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.hist__y { font: 800 20px/1.25 var(--f-num); color: var(--red); }
.hist__t { font-size: 16px; }
.hist[data-ready] .hist__row[data-extra] { display: none; }
.hist.is-open .hist__row[data-extra] { display: grid; }
.hist__toggle { margin-top: 10px; background: none; border: 1px solid var(--rule-2); border-radius: var(--r-btn); padding: 7px 12px; font: 600 14px var(--f-body); color: var(--ink); cursor: pointer; }
.hist__toggle:hover { border-color: var(--ink); }
.astro { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.astro > div { padding: 12px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.astro dt { font: 600 12.5px/1.2 var(--f-num); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.astro dd { margin: 4px 0 0; font: 700 22px/1.2 var(--f-num); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.astro dd small { font: 400 13px var(--f-body); color: var(--ink-3); }
.astro__note { font-size: 13px; color: var(--ink-3); margin-top: 8px; }

/* ── Сторінки календаря ───────────────────────────────────────────────── */
.pagehead { margin: 6px 0 22px; }
.pagehead__title { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; }
.pagehead__year { color: var(--red); }
.pagehead__intro { max-width: 780px; color: var(--ink-2); }
.pagehead__search { margin-top: 14px; }
.yearlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 28px; }
.yearlist__title { font-size: 22px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.yearlist__title a { text-decoration: none; }
.yearlist__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.yearlist__row a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; text-decoration: none; font-size: 15px; line-height: 1.35; }
.yearlist__d { font: 800 17px/1.2 var(--f-num); text-align: right; }
.yearlist__row.is-red .yearlist__d { color: var(--red); }
.yearlist__all { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.yeargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px 28px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.tbl th { text-align: left; font: 600 12.5px/1.2 var(--f-num); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); border-bottom: 2px solid var(--ink); padding: 8px 10px 6px 0; }
.tbl td { border-bottom: 1px solid var(--rule); padding: 9px 10px 9px 0; vertical-align: top; }
.tbl tr.is-major td { font-weight: 600; }
.tbl--compact td { padding: 5px 10px 5px 0; }
.monthlist .mday { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.mday__date { display: grid; align-content: start; text-decoration: none; }
.mday__num { font: 800 44px/1 var(--f-num); }
.mday.is-red .mday__num { color: var(--red); }
.mday__dow { font-size: 13.5px; color: var(--ink-3); }
.mday__body .hol { padding: 6px 0; border: 0; }
.mday__foot { margin: 6px 0 0; font-size: 14.5px; color: var(--ink-3); display: flex; gap: 6px 16px; flex-wrap: wrap; }
.mday__foot b { color: var(--k-names); }
.pager { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 28px 0; }
.pager a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--rule-2); border-radius: var(--r-btn); text-decoration: none; font-weight: 600; }
.pager a:hover { border-color: var(--ink); }
.names-now { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 10px; }
.names-now__day { border: 1px solid var(--rule); border-top: 4px solid var(--k-names); padding: 16px 18px; border-radius: 2px; }
.names-now__title { font-size: 22px; }
@media (max-width: 759px) {
	.names-now { grid-template-columns: 1fr; }
	.monthlist .mday { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
	.mday__num { font-size: 34px; }
}
.filter input { width: 100%; max-width: 460px; font: inherit; padding: 10px 12px; border: 1px solid var(--rule-2); border-radius: var(--r-btn); background: var(--bg); color: var(--ink); margin-bottom: 12px; }
.abc { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 18px; }
.abc a { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--rule); font: 700 17px var(--f-num); text-decoration: none; border-radius: 2px; }
.abc a:hover { border-color: var(--ink); }
.names-index__letter { margin-bottom: 20px; }
.names-index__l { font: 800 30px/1 var(--f-num); color: var(--red); margin: 0 0 8px; }
.names-index__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 28px; margin: 0; }
.names-index__name { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.names-index__name:target { background: var(--red-soft); }
.names-index__name dt { font-weight: 700; }
.names-index__name dd { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.names-index__name dd a { color: var(--ink-2); }
.names-index__name dd a.is-next { color: var(--ink); font-weight: 700; }
.names-index__name small { color: var(--k-names); font-weight: 600; }
.names-index__name[hidden] { display: none; }
.cmonth { border-bottom: 1px solid var(--rule); }
.cmonth summary { cursor: pointer; padding: 12px 0; font: 700 20px/1.2 var(--f-head); }
.cmonth__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.cmonth__d { display: inline-block; min-width: 96px; font-weight: 700; text-decoration: none; }
.cmonth__list .is-red .cmonth__d { color: var(--red); }
.fasts { padding-left: 20px; }

/* ── Стаття ───────────────────────────────────────────────────────────── */
.entry__head { margin: 6px 0 18px; }
.entry__title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 8px 0 12px; }
.entry__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 14.5px; color: var(--ink-3); margin: 0; }
.entry__author { display: inline-flex; align-items: center; gap: 8px; }
.entry__author a { color: var(--ink); font-weight: 600; text-decoration: none; }
.entry__avatar, .authorbox img { border-radius: 50%; }
.entry__media { margin: 0 0 22px; }
.entry__media img { width: 100%; height: auto; display: block; border-radius: 2px; }
.entry__media figcaption { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.when { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 20px; align-items: start; margin: 0 0 24px; padding: 18px; border: 1px solid var(--rule); border-left: 4px solid var(--red); background: var(--bg-2); border-radius: 2px; }
.when__h { font: 600 13px/1.2 var(--f-num); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 4px 0 4px; }
.when__date { font: 800 24px/1.2 var(--f-head); margin: 0 0 4px; }
.when__in { display: inline-block; font: 600 14px/1.4 var(--f-body); color: var(--red); margin-left: 6px; }
.when__rule { font-size: 15px; color: var(--ink-2); margin: 0; }
.when__years { margin-top: 8px; font-size: 15px; }
.when__years summary { cursor: pointer; font-weight: 600; }
@media (max-width: 559px) {
	.when { grid-template-columns: 1fr; }
}
.prose { font-size: 18px; line-height: 1.68; max-width: 760px; }
/* Текст статей приходить і «голим», і в обгортках (плагіни змісту, конвеєр) —
   тому відступи задаємо самим елементам, а не парі «сусідів» верхнього рівня. */
.prose p, .prose ul, .prose ol, .prose table, .prose blockquote, .prose figure, .prose pre { margin: 0 0 1.05em; }
.prose > :last-child, .prose div > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 29px; margin: 1.6em 0 .55em; }
.prose h3 { font-size: 23px; margin: 1.4em 0 .5em; }
.prose h4 { font-size: 19px; margin: 1.2em 0 .45em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose a { color: var(--red); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--red); }
.prose img { border-radius: 2px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: 14px; color: var(--ink-3); }
.prose blockquote { position: relative; margin-left: 0; margin-right: 0; padding: 16px 18px 16px 22px; background: var(--bg-2); border-left: 4px solid var(--red); font: italic 400 20px/1.5 var(--f-head); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--rule); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
.prose th { border-bottom: 2px solid var(--ink); font-weight: 600; }
.prose hr { border: 0; border-top: 1px solid var(--rule-2); }
.copybtn { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--rule-2); border-radius: var(--r-btn); background: var(--bg); color: var(--ink-2); font: 600 12.5px var(--f-body); cursor: pointer; font-style: normal; }
.copybtn:hover { border-color: var(--ink); color: var(--ink); }
.prose blockquote.has-copy { padding-right: 110px; }
@media (max-width: 559px) {
	.prose blockquote.has-copy { padding-right: 18px; padding-top: 44px; }
}
.entry__foot { margin-top: 28px; }
.tags a { margin-right: 8px; color: var(--ink-3); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.share__h { font-weight: 600; margin-right: 4px; }
.share a, .share__copy { padding: 6px 12px; border: 1px solid var(--rule-2); border-radius: var(--r-btn); text-decoration: none; font: 600 14px var(--f-body); background: var(--bg); color: var(--ink); cursor: pointer; }
.share a:hover, .share__copy:hover { border-color: var(--ink); }
.authorbox { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; margin-top: 22px; padding: 18px; background: var(--bg-2); border-radius: 2px; }
.authorbox__name { font: 700 19px var(--f-head); margin: 0 0 4px; }
.authorbox__name a { text-decoration: none; }
.authorbox__bio { font-size: 15px; color: var(--ink-2); margin: 0; }
.comments { margin-top: 34px; }
.comments__list { padding-left: 0; list-style: none; }
.comment-body { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--rule-2); border-radius: var(--r-btn); background: var(--bg); color: var(--ink); }
.comment-form .submit { font: 600 15px var(--f-body); padding: 10px 16px; border: 0; border-radius: var(--r-btn); background: var(--ink); color: var(--bg); cursor: pointer; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; margin: 28px 0; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: var(--r-btn); text-decoration: none; font-weight: 600; }
.nav-links .current { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.hint { font-weight: 600; }
.hint a { color: var(--red); }
.empty { padding: 24px 0; }

/* ── Віджети ──────────────────────────────────────────────────────────── */
.widget { min-width: 0; }
.widget__title { font: 800 21px/1.2 var(--f-head); margin: 0 0 12px; padding-top: 8px; border-top: 3px solid var(--ink); }
.widget ul { margin: 0; padding-left: 0; list-style: none; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--rule); }
.widget .hols .hol { padding: 8px 0; }
.widget .hols .hol__title { font-size: 15.5px; }
.widget .hol.is-major .hol__title { font-size: 17px; }
.w-today { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1199px) and (min-width: 1000px) { .w-today { grid-template-columns: 1fr; } }
.w-names { font-size: 15px; margin: 10px 0 0; }
.w-names b { color: var(--k-names); }
.widget_search .search { max-width: none; }

/* ── Підвал ───────────────────────────────────────────────────────────── */
.foot { margin-top: 56px; background: var(--foot-bg); color: var(--foot-ink); font-size: 15px; }
.foot a { color: var(--foot-ink); }
.foot a:hover { color: #fff; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr 1fr; gap: 30px; padding-top: 40px; padding-bottom: 28px; }
.foot__name { font: 800 26px/1.1 var(--f-head); color: #fff; margin: 0 0 6px; }
:root[data-scheme="dark"] .foot__name { color: var(--ink); }
.foot__tag { color: var(--foot-ink-2); }
.foot__links { display: grid; gap: 4px; }
.foot__h { font: 600 13px/1.2 var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: var(--foot-ink-2); margin: 0 0 10px; }
.foot__months { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 12px; }
.foot__months a, .foot__list a { text-decoration: none; }
.foot__months a:hover, .foot__list a:hover { text-decoration: underline; }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot__list .children { display: none; }
.foot__widgets .widget__title { color: #fff; border-top-color: var(--foot-ink-2); font-size: 18px; }
.foot__widgets .widget li { border-color: #2e323a; }
.foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid #2e323a; font-size: 13.5px; color: var(--foot-ink-2); }
.foot__legal p { margin: 0; }
.foot__legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; padding: 0; }
.foot__src { flex-basis: 100%; font-size: 12.5px; }
@media (max-width: 999px) {
	.foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
	.foot__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .mast, .foot, .strip, .jump, .cols__side, .share { display: none !important; }
	.cols { display: block; }
}
