/* Pavlograd Header 1.0.3 */
.pgh {
	--pgh-blue: #1f6fbf;
	--pgh-blue-dark: #155896;
	--pgh-ink: #12263f;
	--pgh-muted: #5b6b7f;
	--pgh-yellow: #f5d000;
	--pgh-top-bg: #eef1f5;
	--pgh-nav-bg: #ffffff;
	--pgh-fly-bg: #f4f6f9;
	--pgh-line: #dde3ea;
	--pgh-shadow: 0 10px 28px rgba(18, 38, 63, .14);
	--pgh-top-h: 92px;
	--pgh-nav-h: 52px;
	--pgh-admin: 0px;
	--pgh-max: 1320px;

	position: sticky;
	top: calc(var(--pgh-admin) - var(--pgh-top-h));
	z-index: 9990;
	font-family: inherit;
	color: var(--pgh-ink);
	line-height: 1.35;
	-webkit-font-smoothing: antialiased;
}
body.admin-bar .pgh { --pgh-admin: 32px; }

.pgh *, .pgh *::before, .pgh *::after { box-sizing: border-box; }
.pgh ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.pgh li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.pgh li::before { content: none; }
.pgh a { text-decoration: none; box-shadow: none; background-image: none; }
/* Тема Ohio (.links-underline) малює підкреслення фоновим градієнтом — у хедері вимикаємо */
.pgh a, .pgh a:hover, .pgh a:focus { background-image: none !important; animation: none !important; }
.pgh button {
	font: inherit; color: inherit; background: none; border: 0; margin: 0; padding: 0;
	cursor: pointer; text-transform: none; letter-spacing: normal; line-height: inherit;
	border-radius: 0; box-shadow: none; min-height: 0; width: auto; height: auto;
}
.pgh svg { display: block; flex: none; }
.pgh :focus-visible { outline: 2px solid var(--pgh-blue); outline-offset: 2px; }
.pgh-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pgh-container { max-width: var(--pgh-max); margin: 0 auto; padding: 0 24px; }

/* ---------- Верхня панель ---------- */
.pgh-top { background: var(--pgh-top-bg); }
.pgh-top-inner {
	height: var(--pgh-top-h);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.pgh-brand { display: flex; align-items: center; gap: 14px; color: var(--pgh-ink); min-width: 0; }
.pgh-brand:hover { color: var(--pgh-ink); }
.pgh-logo { height: 62px; width: auto; display: block; }
.pgh-brand-text { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid var(--pgh-line); min-width: 0; }
.pgh-brand-sub { font-size: 14px; color: var(--pgh-muted); letter-spacing: .02em; }
.pgh-brand-title { font-size: 21px; font-weight: 700; white-space: nowrap; line-height: 1.25; }

.pgh-tools { display: flex; align-items: center; gap: 6px; }
.pgh .pgh-tool {
	display: inline-flex; align-items: center; gap: 8px;
	height: 40px; padding: 0 12px; border-radius: 8px;
	font-size: 14px; color: var(--pgh-blue);
	transition: background-color .15s, color .15s;
}
.pgh .pgh-tool:hover, .pgh .pgh-tool[aria-expanded="true"] { background: #e2e8ef; color: var(--pgh-blue-dark); }
.pgh .pgh-tool[hidden] { display: none; }
/* Кнопка «Людям із порушенням зору» — акцентна */
.pgh .pgh-tool.pgh-a11y--accent { background: var(--pgh-blue); color: #fff; font-weight: 600; padding: 0 16px; margin-left: 6px; }
.pgh .pgh-tool.pgh-a11y--accent:hover, .pgh .pgh-tool.pgh-a11y--accent[aria-expanded="true"] { background: var(--pgh-blue-dark); color: #fff; }
@media (max-width: 1099px) { .pgh .pgh-tool.pgh-a11y--accent { padding: 0 12px; margin-left: 2px; } }
.pgh-cta {
	display: inline-flex; align-items: center; gap: 8px;
	height: 40px; padding: 0 16px; margin-left: 6px; border-radius: 8px;
	background: var(--pgh-blue); color: #fff !important; font-size: 14px; font-weight: 600;
	transition: background-color .15s;
}
.pgh-cta:hover { background: var(--pgh-blue-dark); }
.pgh .pgh-burger { display: none; }

/* Пошук */
.pgh-search { background: var(--pgh-top-bg); border-top: 1px solid var(--pgh-line); }
.pgh-search[hidden] { display: none; }
.pgh-search-form { display: flex; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.pgh-search-form input[type="search"] {
	flex: 1; min-width: 0; height: 46px; margin: 0; padding: 0 18px;
	border: 1px solid var(--pgh-line); border-radius: 10px; background: #fff;
	font: inherit; font-size: 16px; color: var(--pgh-ink); box-shadow: none;
}
.pgh-search-form input[type="search"]:focus { border-color: var(--pgh-blue); outline: 2px solid rgba(31,111,191,.25); outline-offset: 0; }
.pgh .pgh-search-submit {
	display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px;
	border-radius: 10px; background: var(--pgh-blue); color: #fff; font-weight: 600; font-size: 15px;
}
.pgh .pgh-search-submit:hover { background: var(--pgh-blue-dark); }

/* ---------- Рядок меню ---------- */
.pgh-nav {
	background: var(--pgh-nav-bg);
	border-bottom: 1px solid var(--pgh-line);
	box-shadow: 0 1px 0 rgba(18, 38, 63, .03);
}
.pgh .pgh-menu { display: flex; align-items: stretch; height: var(--pgh-nav-h); margin-left: -12px !important; }
.pgh-l1-item { position: relative; display: flex; }
.pgh-l1-row { display: flex; align-items: center; position: relative; }
.pgh .pgh-l1-link {
	display: inline-flex; align-items: center; gap: 6px; height: 100%;
	padding: 0 12px; font-size: 15px; font-weight: 500; color: var(--pgh-ink); white-space: nowrap;
	transition: color .15s;
}
.pgh-l1-item.has-sub > .pgh-l1-row > a.pgh-l1-link { padding-right: 2px; }
.pgh .pgh-caret-btn { display: inline-flex; align-items: center; height: 100%; padding: 0 12px 0 4px; color: var(--pgh-ink); }
.pgh-caret { display: inline-flex; transition: transform .2s; }
.pgh-l1-item::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px;
	background: var(--pgh-yellow); transform: scaleX(0); transition: transform .2s;
}
.pgh-l1-item:hover > .pgh-l1-row .pgh-l1-link,
.pgh-l1-item:hover > .pgh-l1-row .pgh-caret-btn,
.pgh-l1-item.is-open > .pgh-l1-row .pgh-l1-link,
.pgh-l1-item.is-open > .pgh-l1-row .pgh-caret-btn { color: var(--pgh-blue); }
.pgh-l1-item.is-open::after, .pgh-l1-item.is-current::after { transform: scaleX(1); }
.pgh-l1-item.is-open > .pgh-l1-row .pgh-caret { transform: rotate(180deg); }

/* Випадаючий блок (рівень 2) */
.pgh-dd {
	display: none; position: absolute; top: 100%; left: 0; margin-top: 1px;
	width: 310px; background: #fff; border: 1px solid var(--pgh-line); border-top: 0;
	box-shadow: var(--pgh-shadow); padding: 8px 0;
}
.pgh-dd--cols { width: 600px; }
.pgh-dd--cols .pgh-l2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; }
/* Широка панель для довгих розділів: 3 колонки + місце під рівень 3 праворуч */
.pgh-nav > .pgh-container { position: relative; }
.pgh .pgh-l1-item.is-wide { position: static; }
.pgh .pgh-l1-item.is-wide > .pgh-l1-row { position: relative; }
.pgh .pgh-l1-item.is-wide::after { content: none; }
.pgh-l1-item.is-wide > .pgh-l1-row::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px;
	background: var(--pgh-yellow); transform: scaleX(0); transition: transform .2s;
}
.pgh-l1-item.is-wide.is-open > .pgh-l1-row::after,
.pgh-l1-item.is-wide.is-current > .pgh-l1-row::after { transform: scaleX(1); }
.pgh-dd--cols3 { left: 24px; right: 24px; width: auto; padding: 8px 330px 10px 0; min-height: 320px; }
.pgh-dd--cols3 .pgh-l2 {
	grid-template-columns: repeat(3, 1fr); align-content: start;
	max-height: calc(100vh - var(--pgh-dd-top, 170px) - 28px); overflow-y: auto; overscroll-behavior: contain;
}
.pgh .pgh-dd--cols3 .pgh-l2-link { padding: 7px 14px 7px 18px; font-size: 13.5px; line-height: 1.3; gap: 8px; }
.pgh-dd--cols3::after {
	content: "Наведіть на підрозділ, щоб побачити його розділи"; position: absolute; top: 0; right: 0; bottom: 0; width: 320px;
	display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center;
	font-size: 13.5px; color: var(--pgh-muted); background: var(--pgh-fly-bg); border-left: 1px solid var(--pgh-line);
}
.pgh-dd--cols3 .pgh-fly { z-index: 1; top: 0; left: auto; right: 0; width: 320px; min-height: 100%; height: 100%; max-height: none; box-shadow: none; border: 0; border-left: 1px solid var(--pgh-line); }
@media (min-width: 1100px) and (max-width: 1279px) {
	.pgh-dd--cols3 .pgh-l2 { grid-template-columns: 1fr 1fr; }
}
.pgh-dd--cols .pgh-l2-link { padding-top: 8px; padding-bottom: 8px; font-size: 14px; }
.pgh-l1-item.is-open > .pgh-dd { display: block; }
.pgh-dd--right { left: auto; right: 0; }

.pgh .pgh-l2-link {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
	padding: 10px 18px; font-size: 14.5px; line-height: 1.35; color: var(--pgh-ink); text-align: left;
	transition: background-color .12s, color .12s;
}
.pgh .pgh-l2-link:hover,
.pgh-l2-item.is-open > .pgh-l2-row .pgh-l2-link { background: var(--pgh-fly-bg); color: var(--pgh-blue); }
.pgh-l2-item.is-current > .pgh-l2-row .pgh-l2-link { color: var(--pgh-blue); font-weight: 600; }
.pgh-caret--right { color: #8796a8; }
.pgh-l2-item.is-open .pgh-caret--right { color: var(--pgh-blue); }

/* Панель рівня 3 (праворуч від блоку) */
.pgh-fly {
	display: none; position: absolute; top: -1px; left: 100%;
	width: 340px; min-height: calc(100% + 1px); max-height: var(--pgh-fly-max, 70vh); overflow-y: auto;
	background: var(--pgh-fly-bg); border: 1px solid var(--pgh-line); border-left: 0;
	box-shadow: var(--pgh-shadow); padding: 6px 0 12px;
	overscroll-behavior: contain;
}
.pgh-l2-item.is-open > .pgh-fly { display: block; }
.pgh-dd--fly-left .pgh-fly { left: auto; right: 100%; border-left: 1px solid var(--pgh-line); border-right: 0; }

.pgh-fly-head { padding: 10px 20px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--pgh-line); }
.pgh .pgh-fly-title { font-size: 15px; font-weight: 700; color: var(--pgh-ink); }
.pgh a.pgh-fly-title:hover { color: var(--pgh-blue); }

.pgh .pgh-link { display: block; padding: 8px 20px; font-size: 14px; color: var(--pgh-ink); transition: color .12s; }
.pgh a.pgh-link:hover { color: var(--pgh-blue); text-decoration: underline; text-underline-offset: 3px; }
.pgh-l3-item.is-current > .pgh-link,
.pgh-l4-item.is-current > .pgh-link { color: var(--pgh-blue); font-weight: 600; }
.pgh-l3-item.has-sub > .pgh-link { font-weight: 600; padding-bottom: 4px; }
.pgh .pgh-l4, .pgh .pgh-l5 { margin: 0 20px 6px 22px !important; border-left: 2px solid var(--pgh-line); }
.pgh .pgh-l4 .pgh-link, .pgh .pgh-l5 .pgh-link { padding: 6px 12px; font-size: 13.5px; }
.pgh .pgh-l5 { margin-left: 12px !important; }

.pgh-backdrop { display: none; }

/* Сховати хедер теми Ohio */
body.pgh-on #masthead,
body.pgh-on .header-cap,
body.pgh-on .mobile-overlay { display: none !important; }
/* Плаваючу кнопку доступності замінює кнопка в хедері */
body.pgh-on.pgh-a11y-ready .dua-widget--floating .dua-launcher { display: none !important; }

/* ---------- Планшет / мобільний ---------- */
@media (max-width: 1099px) {
	.pgh { --pgh-top-h: 72px; top: var(--pgh-admin); }
	.pgh-container { padding: 0 16px; }
	.pgh-logo { height: 46px; }
	.pgh-brand-text { padding-left: 12px; }
	.pgh-brand-sub { font-size: 12px; }
	.pgh-brand-title { font-size: 16px; white-space: normal; }
	.pgh .pgh-tool { padding: 0 10px; }
	.pgh .pgh-tool-label { display: none; }
	.pgh-cta { padding: 0 12px; }
	.pgh-cta span { display: none; }
	.pgh .pgh-burger {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; margin-left: 4px; border-radius: 8px; background: var(--pgh-ink); color: #fff;
	}
	.pgh-burger-close { display: none; }
	.pgh.is-nav-open .pgh-burger-open { display: none; }
	.pgh.is-nav-open .pgh-burger-close { display: block; }

	.pgh-nav {
		position: fixed; top: var(--pgh-drawer-top, 64px); right: 0; bottom: 0;
		width: min(440px, 100%); overflow-y: auto; overscroll-behavior: contain;
		border-left: 1px solid var(--pgh-line); border-bottom: 0;
		transform: translateX(100%); visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
		z-index: 2;
	}
	.pgh.is-nav-open .pgh-nav { transform: none; visibility: visible; transition: transform .25s ease; }
	.pgh-backdrop {
		display: block; position: fixed; inset: var(--pgh-drawer-top, 64px) 0 0 0;
		background: rgba(18, 38, 63, .45); z-index: 1;
	}
	.pgh-backdrop[hidden] { display: none; }

	.pgh-nav .pgh-container { padding: 0; }
	.pgh .pgh-menu { display: block; height: auto; margin: 0 !important; padding: 8px 0 32px !important; }
	.pgh-l1-item { display: block; border-bottom: 1px solid var(--pgh-line); }
	.pgh-l1-item::after { content: none; }
	.pgh-l1-row { justify-content: space-between; min-height: 54px; }
	.pgh .pgh-l1-link { flex: 1; height: auto; min-height: 54px; padding: 12px 20px; font-size: 16px; font-weight: 600; justify-content: space-between; white-space: normal; text-align: left; }
	.pgh-l1-item.has-sub > .pgh-l1-row > a.pgh-l1-link { padding-right: 8px; }
	.pgh .pgh-caret-btn { width: 54px; min-height: 54px; justify-content: center; padding: 0; border-left: 1px solid var(--pgh-line); }

	.pgh-dd--cols3::after, .pgh-l1-item.is-wide > .pgh-l1-row::after { content: none; }
	.pgh .pgh-l1-item.is-wide { position: relative; }
	.pgh-dd, .pgh-dd--cols, .pgh-dd--cols3, .pgh-dd--right {
		position: static; width: auto; margin: 0; border: 0; box-shadow: none; padding: 0 0 8px; background: #fff;
	}
	.pgh-dd--cols .pgh-l2 { display: block; }
	.pgh .pgh-l2-link { padding: 11px 20px 11px 28px; font-size: 15px; }
	.pgh-l2-item.has-sub .pgh-caret--right { transform: rotate(90deg); }
	.pgh-l2-item.is-open .pgh-caret--right { transform: rotate(-90deg); }

	.pgh-fly, .pgh-dd--fly-left .pgh-fly, .pgh-dd--cols3 .pgh-fly {
		position: static; width: auto; min-height: 0; max-height: none; overflow: visible;
		border: 0; box-shadow: none; padding: 4px 0 10px; margin: 0 0 4px;
	}
	.pgh-fly-head { padding: 8px 20px 8px 36px; }
	.pgh .pgh-fly-title { font-size: 14px; }
	.pgh .pgh-link { padding: 9px 20px 9px 36px; font-size: 14.5px; }
	.pgh .pgh-l4, .pgh .pgh-l5 { margin: 0 20px 6px 40px !important; }

	body.pgh-lock { overflow: hidden; }
}

@media (max-width: 560px) {
	.pgh-brand-sub { display: none; }
	.pgh-brand-text { padding-left: 10px; }
	.pgh-brand-title { font-size: 14px; line-height: 1.2; max-width: 160px; }
	.pgh-logo { height: 40px; }
	.pgh-tools { gap: 2px; }
	.pgh-cta { margin-left: 2px; }
}
@media (max-width: 400px) {
	.pgh-brand-text { display: none; }
}
@media (max-width: 782px) {
	body.admin-bar .pgh { --pgh-admin: 0px; }
}

@media (prefers-reduced-motion: reduce) {
	.pgh *, .pgh-nav { transition: none !important; }
}

/* =================== Слайдер головної [pgh_slider] =================== */
.pgs {
	position: relative; overflow: hidden; width: 100%;
	aspect-ratio: 16 / 5; background: #1f5fae; isolation: isolate;
}
.pgs-track, .pgs-slide { position: absolute; inset: 0; }
.pgs-slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.pgs-slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.pgs .pgs-img { display: block; width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; object-position: center; }
.pgs-controls {
	position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%);
	display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px;
	background: rgba(18, 38, 63, .35); backdrop-filter: blur(4px);
}
.pgs .pgs-dot, .pgs .pgs-pause {
	appearance: none; border: 0; margin: 0; padding: 0; cursor: pointer; background: none; min-height: 0; box-shadow: none;
}
.pgs .pgs-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .55); transition: background-color .2s, transform .2s; }
.pgs .pgs-dot.is-active { background: #fff; transform: scale(1.2); }
.pgs .pgs-pause { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-left: 2px; }
.pgs .pgs-dot:focus-visible, .pgs .pgs-pause:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pgs-ico-pause { width: 9px; height: 11px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.pgs-ico-play { display: none; width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.pgs.is-paused .pgs-ico-pause { display: none; }
.pgs.is-paused .pgs-ico-play { display: block; }
/* Слайдер одразу під хедером, без відступу теми */
body.pgh-on .page-container.top-offset:has(.pgs) { padding-top: 0; }
@media (max-width: 1099px) { .pgs { aspect-ratio: 12 / 5; } }
@media (max-width: 767px) {
	.pgs { aspect-ratio: 4 / 3; }
	.pgs-controls { bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) { .pgs-slide, .pgs-slide.is-active { transition: none; } }

/* =================== Загальні правки сайту =================== */
/* Без авторства в записах (дата публікації лишається) */
.post-meta-holder .meta-item:has(.author-details),
.post-meta-holder .author-details,
.blog-item .author-details { display: none !important; }

/* Посилання в тексті — фірмовий синій з підкресленням, щоб було зрозуміло, що це посилання */
:is(.page-content, .entry-content, .wpb_text_column, .tablepress, .post-content) a:not(.button):not(.btn):not(.-unlink):not(.tag):not(.post-edit-link):not([class*="vc_btn"]):not(.-undash):not(.ohio-widget a) {
	color: #1f6fbf !important;
	text-decoration: underline !important;
	text-decoration-thickness: 1px !important;
	text-underline-offset: 3px;
	background-image: none !important;
	animation: none !important;
}
:is(.page-content, .entry-content, .wpb_text_column, .tablepress, .post-content) a:not(.button):not(.btn):not(.-unlink):not(.tag):not(.post-edit-link):not([class*="vc_btn"]):not(.-undash):not(.ohio-widget a):hover {
	color: #155896 !important;
	text-decoration-thickness: 2px !important;
}
/* Заголовки записів у списках, «хлібні крихти», «Read More» — теж сині */
.blog-item .title a, .blog-item .heading a,
.breadcrumb-item a, .card-details .button.-text { color: #1f6fbf !important; }
.blog-item .title a:hover, .blog-item .heading a:hover,
.breadcrumb-item a:hover, .card-details .button.-text:hover { color: #155896 !important; }

/* Неактивні спливаючі вікна теми Ohio (пошук, завантаження) — прибираємо повністю.
   У деяких браузерах правило теми, що їх ховає, не спрацьовує, і в контрастному режимі
   доступності («Біле / чорне») таке вікно перекривало всю сторінку чорним. */
body.pgh-on .clb-popup:not(.visible) { display: none !important; }

/* Картки новин із заголовком поверх фото: заголовок на напівпрозорій білій плашці */
.blog-item.-img-overlay .overlay-details .heading.title {
	background: rgba(255, 255, 255, .88);
	padding: .35em .55em;
	border-radius: 6px;
	box-shadow: 0 2px 10px rgba(18, 38, 63, .18);
}
.blog-item.-img-overlay .overlay-details .heading.title a { color: #1f5fae !important; }
.blog-item.-img-overlay .overlay-details .heading.title a:hover { color: #12408a !important; }
.blog-item.-img-overlay .overlay-details .date { text-shadow: 0 1px 3px rgba(0, 0, 0, .7); }

/* Логотип, що змінюється */
.pgh-logo-rot { position: relative; display: block; height: 62px; flex: none; }
.pgh-logo-rot .pgh-logo { height: 100%; width: auto; transition: opacity .8s ease; }
.pgh-logo-rot .pgh-logo:not(:first-child) { position: absolute; left: 0; top: 0; }
.pgh-logo-rot .pgh-logo:not(.is-active) { opacity: 0; }
@media (max-width: 1099px) { .pgh-logo-rot { height: 46px; } }
@media (max-width: 560px) { .pgh-logo-rot { height: 40px; } }
@media (prefers-reduced-motion: reduce) { .pgh-logo-rot .pgh-logo { transition: none; } }

/* Кнопка «Переглянути зображення у високій якості» */
.pgh-hires { margin-top: 1.5em; }
.pgh-hires .pgh-hires-link {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 8px;
	background: #1f6fbf; color: #fff !important; font-weight: 600; text-decoration: none !important;
}
.pgh-hires .pgh-hires-link:hover { background: #155896; }

/* Фільтр «Автори» в архівах не показуємо */
select[aria-label="Фільтр за авторами"], select[aria-label="Filter Authors"] { display: none !important; }

/* ===== Сайдбар з банерами + нижній блок (1.3.0) ===== */
body.pgh-side-on .page-sidebar { display: none !important; }
body.pgh-side-on .page-content.-with-right-sidebar,
body.pgh-side-on .page-content.-with-left-sidebar { display: block !important; width: 100% !important; max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
body.pgh-side-on #primary.content-area { width: 100% !important; max-width: none !important; float: none !important; }
.pgh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.pgh-layout > main { min-width: 0; width: 100% !important; max-width: none !important; }
.pgh-layout [data-vc-full-width] { left: 0 !important; width: auto !important; padding-left: 0 !important; padding-right: 0 !important; }
.pgh-side { display: flex; flex-direction: column; gap: 16px; }
.pgh-side-banners { display: flex; flex-direction: column; gap: 14px; }
.pgh-bn { display: block; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(18, 38, 63, .08); transition: transform .2s ease, box-shadow .2s ease; background: #fff; }
.pgh-bn:hover, .pgh-bn:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(18, 38, 63, .16); }
.pgh-bn img { display: block; width: 100%; height: auto; margin: 0 !important; border-radius: 0 !important; }
.pgh-social { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
a.pgh-soc { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: #0088cc; color: #fff !important; font: 600 15px/1.2 Montserrat, sans-serif; text-decoration: none !important; background-image: none !important; transition: filter .2s; }
a.pgh-soc.-fb { background: #1877f2; }
a.pgh-soc:hover, a.pgh-soc:focus-visible { filter: brightness(1.1); color: #fff !important; }
a.pgh-soc svg { width: 24px; height: 24px; flex: 0 0 24px; color: inherit; }
a.pgh-soc.-tg svg path { fill: #0088cc; }
a.pgh-soc.-fb svg path { fill: #1877f2; }
a.pgh-soc span::after { content: " →"; }

.pgh-bottom { background: #f1f5fd; padding: 48px 0; margin-top: 24px; }
.pgh-bottom-in { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.pgh-bottom-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ===== Календар: компактний, на всіх сторінках (і на головній) ===== */
.widget_calendar .calendar_wrap, .pgh-cal { background: #fff; border-radius: 14px; box-shadow: 0 2px 12px rgba(18, 38, 63, .08); padding: 14px 14px 10px; max-width: 320px; margin: 0 auto; font-family: Montserrat, sans-serif; }
.wp-calendar-table { width: 100% !important; border-collapse: separate !important; border-spacing: 2px !important; margin: 0 !important; table-layout: fixed; }
.wp-calendar-table caption { caption-side: top; text-align: center; font-weight: 700 !important; font-size: 15px !important; color: #12263f; padding: 4px 0 10px !important; background: none !important; border: 0 !important; margin: 0 !important; text-transform: none; }
.wp-calendar-table th { font-size: 11px !important; font-weight: 600 !important; color: #7b8aa0 !important; text-transform: uppercase; text-align: center; padding: 4px 0 !important; border: 0 !important; background: none !important; }
.wp-calendar-table td { text-align: center; padding: 0 !important; height: 34px; font-size: 13px !important; line-height: 34px !important; color: #2b3a4f; border: 0 !important; background: none !important; border-radius: 8px; }
.wp-calendar-table td.pad { background: none !important; }
.wp-calendar-table td a { display: block; border-radius: 8px; background: #e6effc !important; color: #1a5fb4 !important; font-weight: 700; text-decoration: none !important; background-image: none !important; }
.wp-calendar-table td a:hover { background: #1a5fb4 !important; color: #fff !important; }
.wp-calendar-table td#today { background: #1a5fb4 !important; color: #fff !important; font-weight: 700; }
.wp-calendar-table td#today a { background: none !important; color: #fff !important; }
.wp-calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid #edf1f7; font-size: 13px; }
.wp-calendar-nav a { text-decoration: none !important; background-image: none !important; font-weight: 600; color: #1a5fb4 !important; padding: 4px 8px; border-radius: 6px; }
.wp-calendar-nav a:hover { background: #e6effc; }
.wp-calendar-nav .pad { display: none; }

/* ===== Єдиний стиль тексту сторінок і новин ===== */
.page-headline h1.title { font-size: clamp(26px, 3vw, 40px) !important; line-height: 1.2 !important; font-weight: 700 !important; }
.pgh-layout .entry-content { font-family: Montserrat, sans-serif; font-size: 17px; line-height: 1.65; color: #1f2a3a; }
.pgh-layout .entry-content :is(p, li, td, th, span, strong, b, em, i, div, font, a, blockquote, dd, dt, label) { font-family: inherit !important; }
.pgh-layout .entry-content :is(p, li, span, font, dd, dt, blockquote, div:not([class])) { font-size: inherit !important; line-height: inherit !important; }
.pgh-layout .entry-content :is(p, li, span, font, strong, b, em, h1, h2, h3, h4, h5, h6)[style*="color"],
.pgh-layout .entry-content font[color] { color: inherit !important; }
.pgh-layout .entry-content p { margin: 0 0 1em; }
.pgh-layout .entry-content p:not(:has(img, iframe, video)) { text-align: left !important; }
.pgh-layout .entry-content :is(h1, h2, h3, h4, h5, h6) { font-family: Montserrat, sans-serif !important; color: #12263f !important; font-weight: 700 !important; line-height: 1.3 !important; text-align: left !important; margin: 1.4em 0 .6em !important; letter-spacing: 0 !important; text-transform: none !important; }
.pgh-layout .entry-content > :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0 !important; }
.pgh-layout .entry-content h1 { font-size: 28px !important; }
.pgh-layout .entry-content h2 { font-size: 24px !important; }
.pgh-layout .entry-content h3 { font-size: 21px !important; }
.pgh-layout .entry-content h4 { font-size: 19px !important; }
.pgh-layout .entry-content :is(h5, h6) { font-size: 17px !important; }
.pgh-layout .entry-content :is(h1, h2, h3, h4, h5, h6) * { font-size: inherit !important; color: inherit !important; }
.pgh-layout .entry-content :is(ul, ol) { padding-left: 1.4em; margin: 0 0 1em; }
.pgh-layout .entry-content li { margin-bottom: .35em; }
.pgh-layout .entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.pgh-layout .entry-content table:not(.dataTable) { width: 100% !important; border-collapse: collapse !important; font-size: 15px !important; line-height: 1.45; margin: 0 0 1.4em; display: block; overflow-x: auto; }
.pgh-layout .entry-content table:not(.dataTable) :is(td, th) { border: 1px solid #d7e0ec !important; padding: 8px 12px !important; vertical-align: top; font-size: inherit !important; text-align: left; }
.pgh-layout .entry-content table:not(.dataTable) th, .pgh-layout .entry-content table:not(.dataTable) thead td { background: #eef3fa !important; font-weight: 700; }
.pgh-layout .entry-content table:not(.dataTable) :is(p, span) { margin: 0; font-size: inherit !important; }

.pgh-cal { width: 100%; justify-self: center; box-sizing: border-box; }

/* Архіви поруч із сайдбаром: 2 колонки, акуратні заголовки */
@media (min-width: 1025px) {
	.pgh-layout .archive-holder > .grid-item { width: 50% !important; }
}
.pgh-layout .blog-item .title, .pgh-layout .blog-item .heading.title { font-size: 20px !important; line-height: 1.3 !important; word-break: normal !important; overflow-wrap: break-word; hyphens: manual !important; }

@media (max-width: 1180px) {
	.pgh-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; }
	.pgh-bottom-in { grid-template-columns: 1fr; }
	.pgh-bottom-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.pgh-layout { display: block; }
	.pgh-side { display: none !important; }
}
@media (max-width: 768px) {
	.pgh-bottom { padding: 32px 0; }
	.pgh-bottom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.pgh-layout .entry-content { font-size: 16px; }
	.pgh-layout .entry-content h1 { font-size: 24px !important; }
	.pgh-layout .entry-content h2 { font-size: 21px !important; }
	.pgh-layout .entry-content h3 { font-size: 19px !important; }
}
@media (max-width: 480px) {
	.pgh-bottom-grid { gap: 10px; }
	.pgh-bn { border-radius: 8px; }
}

/* Хлібні крихти */
.pgh-crumbs .breadcrumb-item { font-size: 14px; }
.pgh-crumbs .pgh-crumb-group { color: #5b6b80; font-weight: 400; }
.pgh-crumbs .active { color: #5b6b80; }

/* Мобільна версія: компактний заголовок сторінки і крихти */
@media (max-width: 1024px) {
	.page-headline { min-height: 0 !important; margin-bottom: 0 !important; }
	.page-headline .holder { padding-top: 20px !important; padding-bottom: 6px !important; }
	.page-headline .headline-meta { margin-bottom: 0 !important; }
	.page-headline .headline-meta:empty { display: none; }
	.page-headline .post-meta-holder { margin-top: 8px !important; }
	.breadcrumb-holder { padding-top: 6px !important; padding-bottom: 14px !important; }
	.pgh-crumbs .breadcrumb-item { font-size: 13px; }
}

/* Головна: мобільна версія */
@media (max-width: 767px) {
	body.home .wpb-content-wrapper .vc_empty_space { height: 14px !important; }
	body.home .vc_inner:has(.ohio-widget.banner) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 12px !important; }
	body.home .vc_inner:has(.ohio-widget.banner)::before, body.home .vc_inner:has(.ohio-widget.banner)::after { display: none !important; }
	body.home .vc_inner:has(.ohio-widget.banner) > .wpb_column { width: auto !important; padding: 0 !important; margin: 0 !important; float: none !important; }
	body.home .vc_inner:has(.ohio-widget.banner) .vc_column-inner { padding: 0 !important; }
	body.home .vc_inner:has(.ohio-widget.banner) .vc_empty_space { display: none !important; }
	body.home .vc_inner:has(.ohio-widget.banner) > .wpb_column:empty, body.home .vc_inner:has(.ohio-widget.banner) > .wpb_column:not(:has(.banner)) { display: none !important; }
	body.home .ohio-widget.banner .image-holder, body.home .ohio-widget.banner img { border-radius: 10px !important; }
	body.home .wpb-content-wrapper > .vc_row:has(.fa-telegram) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 !important; }
	body.home .wpb-content-wrapper > .vc_row:has(.fa-telegram)::before, body.home .wpb-content-wrapper > .vc_row:has(.fa-telegram)::after { display: none !important; }
	body.home .wpb-content-wrapper > .vc_row:has(.fa-telegram) > .wpb_column { width: auto !important; padding: 0 !important; float: none !important; }
	body.home .wpb-content-wrapper > .vc_row:has(.fa-telegram) .vc_column-inner { padding: 0 !important; }
	body.home .wpb-content-wrapper > .vc_row:has(.fa-telegram) .vc_empty_space { display: none !important; }
	body.home .wpb-content-wrapper > .vc_row:has(.fa-telegram) .ohio-widget-holder { display: flex !important; width: 100%; }
	body.home .vc_row:has(.fa-telegram) a.ohio-widget.button { width: 100%; justify-content: center; font-size: 13px !important; line-height: 1.25 !important; padding: 10px 10px !important; white-space: normal !important; text-align: center; min-height: 48px; }
	body.home a.ohio-widget.button .icon { margin-right: 6px !important; }
	body.home .ohio-widget.heading h3.title, body.home .ohio-widget.heading .title { font-size: 26px !important; line-height: 1.2 !important; }
	body.home .vc_wp_calendar { margin-top: 8px; }
}
@media (max-width: 767px) {
	body.home .wpb_text_column:has(.pgs) { margin-bottom: 0 !important; }
	body.home .pgs + * , body.home .vc_row-no-padding + .vc_row-full-width + .vc_row .vc_empty_space { height: 6px !important; }
}

/* Головна: список новин заголовками */
.pgh-news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e3e9f2; }
.pgh-nl-item { padding: 14px 0; border-bottom: 1px solid #e3e9f2; margin: 0; }
.pgh-nl-item time { display: block; font-size: 13px; color: #6b7a90; margin-bottom: 4px; }
.pgh-nl-item a { font-weight: 600; font-size: 17px; line-height: 1.35; color: #12263f !important; text-decoration: none !important; background-image: none !important; display: block; }
.pgh-nl-item a:hover, .pgh-nl-item a:focus-visible { color: #1a5fb4 !important; }
@media (min-width: 768px) { .pgh-nl-item.-mobile { display: none; } }
body.home .vc_column-inner:has(.pgh-news-list) a.ohio-widget.button { margin-top: 20px; }
body.home .vc_column-inner:has(.pgh-news-list) { margin-bottom: 40px; }
@media (max-width: 767px) {
	body.home .vc_column-inner:has(.blog-posts) .blog-posts { height: auto !important; }
	body.home .vc_column-inner:has(.blog-posts) .blog-posts > .grid-item { position: static !important; transform: none !important; left: auto !important; top: auto !important; }
	body.home .vc_column-inner:has(.blog-posts) .blog-posts > .grid-item:nth-child(n+2) { display: none !important; }
	body.home .vc_column-inner:has(.pgh-news-list) { margin-bottom: 36px; }
	body.home .pgh-nl-item a { font-size: 16px; }
	/* Кнопки соцмереж: іконка зліва, текст вирівняний */
	body.home .vc_row:has(.fa-telegram) a.ohio-widget.button { display: flex !important; align-items: center; justify-content: flex-start !important; text-align: left !important; gap: 10px; padding: 10px 14px !important; border-radius: 18px !important; font-size: 13px !important; }
	body.home .vc_row:has(.fa-telegram) a.ohio-widget.button .icon { margin: 0 !important; flex: 0 0 auto; font-size: 20px; }
}
body.home .vc_column-inner:has(.pgh-news-list) .ohio-widget-holder { display: flex !important; width: 100%; }
body.home .vc_column-inner:has(.pgh-news-list) a.ohio-widget.button { width: 100%; justify-content: center; }

/* Плавний скрол і кнопка «Нагору» */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
:target { scroll-margin-top: 110px; }
.pgh-totop { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 0; background: #1a5fb4; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(18, 38, 63, .25); cursor: pointer; transition: transform .2s ease, background .2s ease, opacity .2s ease; }
.pgh-totop[hidden] { display: none; }
.pgh-totop:hover, .pgh-totop:focus-visible { background: #12457f; transform: translateY(-2px); }
.pgh-totop:focus-visible { outline: 3px solid #ffd500; outline-offset: 2px; }
@media (max-width: 767px) { .pgh-totop { right: 14px; bottom: 14px; width: 44px; height: 44px; } }

/* Мобільна версія: компактні відступи в тексті сторінок */
@media (max-width: 767px) {
	.entry-content p.pgh-sp { margin: 0 !important; height: 10px; line-height: 0; font-size: 0; overflow: hidden; }
	.entry-content p.pgh-sp + p.pgh-sp { display: none !important; }
	.entry-content img.alignleft, .entry-content img.alignright, .entry-content .alignleft, .entry-content .alignright { float: none !important; display: block; margin: 0 auto 16px !important; }
	.entry-content br + br { display: none; }
}
@media (max-width: 767px) {
	.site-content { min-height: 0 !important; }
	.page-container.bottom-offset { padding-bottom: 24px !important; }
	.pgh-bottom { margin-top: 12px; }
	.entry-content pre:empty { display: none; }
}
@media (max-width: 767px) {
	body.home .wpb-content-wrapper > .vc_row:has(.fa-telegram) { margin-bottom: 16px !important; }
}
