/* OblastPZ News Blocks — стойностите са взети от дизайна на страница 32 (Elementor V4). */
.opz {
	--opz-ink: #0b1f3a;
	--opz-muted: rgba(11, 31, 58, 0.72);
	--opz-line: rgba(11, 31, 58, 0.08);
	--opz-accent: #7a1331;
	--opz-accent-dark: #651028;
	display: block;
	width: 100%;
	cursor: auto;
	color: var(--opz-ink);
}
.opz *, .opz *::before, .opz *::after { box-sizing: border-box; }
.opz h2, .opz h3, .opz p, .opz ul { margin: 0; padding: 0; }
/* Elementor V4: `.e-paragraph-base a { all: unset }` — затова селекторите са с по-висока специфичност. */
.opz.opz a { color: inherit; text-decoration: none; cursor: pointer; }
.opz h2 a:hover, .opz h3 a:hover, .opz li a:hover { color: var(--opz-accent); }
.opz.opz a:focus-visible { outline: 2px solid var(--opz-accent); outline-offset: 2px; border-radius: 4px; }

/* Общи */
.opz .opz-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--opz-line);
	border-radius: 1.25rem;
	background: #fff;
	min-width: 0;
}
.opz .opz-media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	background-image: linear-gradient(135deg, rgba(11, 31, 58, 0.10) 0%, rgba(122, 19, 49, 0.10) 100%);
	overflow: hidden;
}
.opz .opz-media--hero { background-image: linear-gradient(135deg, rgba(11, 31, 58, 0.12) 0%, rgba(122, 19, 49, 0.14) 100%); }
.opz .opz-media__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.opz .opz-media__label {
	position: absolute;
	right: 0.6rem;
	bottom: 0.6rem;
	padding: 0.2rem 0.55rem;
	border-radius: 0.4rem;
	background: rgba(11, 31, 58, 0.62);
	color: #fff;
	font-size: 0.72rem;
	line-height: 1.3;
}
.opz .opz-meta { font-size: 0.95rem; color: var(--opz-muted); }
.opz .opz-excerpt { font-size: 1rem; line-height: 1.55; color: var(--opz-muted); }
.opz .opz-excerpt--sm { font-size: 0.95rem; line-height: 1.5; }
.opz .opz-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.opz .opz-badges:empty { display: none; }
.opz .opz-pill {
	display: inline-block;
	padding: 0.15rem 0.6rem;
	border-radius: 999px;
	background: rgba(122, 19, 49, 0.08);
	color: var(--opz-accent) !important;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.6;
}
.opz .opz-draft { display: inline-block; padding: 0 0.45rem; border-radius: 999px; background: #fff4d6; color: #7a5200; font-weight: 700; font-size: 0.85em; }

/* Празен блок → скрива се цялата Elementor секция (заглавието „Последни новини“/„Категории“ заедно с мрежата). */
.elementor section:has(.opz--empty) { display: none !important; }
.opz--empty { display: none !important; }
.opz .opz-empty {
	padding: 2rem 1.25rem;
	border: 1px dashed rgba(11, 31, 58, 0.18);
	border-radius: 1rem;
	color: var(--opz-muted);
	text-align: center;
}

/* Водеща новина */
.opz .opz-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
	gap: 1.25rem;
}
.opz .opz-card--lead { box-shadow: 0 24px 60px rgba(11, 31, 58, 0.08); }
.opz .opz-card__body--lead { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.25rem 1.25rem 1.5rem; }
.opz .opz-lead__title { font-size: 2.1rem; line-height: 1.15; letter-spacing: -0.02em; color: var(--opz-ink); }
.opz .opz-cta {
	display: inline-block;
	padding: 12px 1.4rem;
	border-radius: 999px;
	background: var(--opz-accent);
	color: #fff !important;
	text-align: center;
	transition: background-color 0.2s;
}
.opz .opz-cta:hover { background: var(--opz-accent-dark); }
.opz .opz-side { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.opz .opz-card--side { box-shadow: 0 18px 44px rgba(11, 31, 58, 0.06); }
.opz .opz-card__body--side { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1rem 1.1rem; }
.opz .opz-side__title { font-size: 1.15rem; line-height: 1.25; color: var(--opz-ink); }

/* Последни новини */
.opz .opz-latest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.opz .opz-item {
	display: flex;
	gap: 0.9rem;
	padding: 1rem 1rem 1.1rem;
	border: 1px solid var(--opz-line);
	border-radius: 1rem;
	background: #fff;
	min-width: 0;
}
.opz .opz-item .opz-media--thumb { flex: 0 0 8.5rem; align-self: flex-start; border-radius: 0.7rem; }
.opz .opz-item__body { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.opz .opz-item__title { font-size: 1.05rem; line-height: 1.25; color: var(--opz-ink); }

/* По категории */
.opz .opz-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.opz .opz-cat {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.05rem 1.1rem;
	border: 1px solid var(--opz-line);
	border-radius: 1rem;
	background: #fff;
	box-shadow: 0 10px 26px rgba(11, 31, 58, 0.04);
	transition: border-color 0.2s, box-shadow 0.2s;
	min-width: 0;
}
.opz .opz-cat:hover { border-color: rgba(122, 19, 49, 0.35); box-shadow: 0 14px 34px rgba(11, 31, 58, 0.08); }
.opz .opz-cat__title { font-size: 1.05rem; line-height: 1.2; color: var(--opz-ink); }
.opz .opz-cat__list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.opz .opz-cat__list li { display: flex; flex-direction: column; gap: 0.15rem; padding-top: 0.6rem; border-top: 1px solid var(--opz-line); font-size: 0.95rem; line-height: 1.35; }
.opz .opz-cat__list .opz-meta { font-size: 0.82rem; }
.opz .opz-cat__more { margin-top: auto; font-size: 0.9rem; font-weight: 700; color: var(--opz-accent) !important; }

/* Таблет (Elementor --tablet ≤ 1024px) */
@media (max-width: 1024px) {
	.opz .opz-hero { grid-template-columns: 1fr; }
	.opz .opz-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.opz .opz-cats { grid-template-columns: repeat(2, 1fr); }
	/* миниатюрата над текста — иначе на таблет колоната за заглавие става твърде тясна */
	.opz .opz-item { flex-direction: column; }
	.opz .opz-item .opz-media--thumb { flex: none; width: 100%; align-self: stretch; }
}

/* Телефон (Elementor --mobile ≤ 767px) */
@media (max-width: 767px) {
	.opz .opz-lead__title { font-size: 1.6rem; }
	.opz .opz-side { grid-template-columns: 1fr; }
	.opz .opz-latest { grid-template-columns: 1fr; }
	.opz .opz-cats { grid-template-columns: 1fr; }
}

/* ===================================================================== */
/* Редакционна визия (1.0.4): по-фини сенки, умерено заобляне            */
/* ===================================================================== */
.opz .opz-card { border-radius: 0.875rem; }
.opz .opz-card--lead { box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04), 0 10px 28px rgba(11, 31, 58, 0.06); }
.opz .opz-card--side { box-shadow: 0 1px 2px rgba(11, 31, 58, 0.04), 0 6px 18px rgba(11, 31, 58, 0.05); }
.opz .opz-item, .opz .opz-cat { border-radius: 0.75rem; box-shadow: none; }
.opz .opz-cat:hover { box-shadow: 0 6px 18px rgba(11, 31, 58, 0.06); }
.opz .opz-item .opz-media--thumb { border-radius: 0.5rem; }
.opz .opz-cta { border-radius: 0.625rem; padding: 0.7rem 1.25rem; font-weight: 600; }
.opz .opz-cat__title { padding-bottom: 0.6rem; border-bottom: 2px solid var(--opz-accent); align-self: flex-start; }
.opz .opz-cat__list li:first-child { border-top: 0; padding-top: 0; }

/* ===================================================================== */
/* [oblastpz_header]                                                      */
/* ===================================================================== */
.opzh {
	--opzh-ink: #0b1f3a;
	--opzh-accent: #7a1331;
	--opzh-line: rgba(11, 31, 58, 0.1);
	display: block;
	width: 100%;
	cursor: auto;
	color: var(--opzh-ink);
	font-family: inherit;
}
.opzh *, .opzh *::before, .opzh *::after { box-sizing: border-box; }
.opzh.opzh a { color: inherit; text-decoration: none; cursor: pointer; }
.opzh .opzh__bar,
.opzh .opzh__list {
	max-width: 80rem;
	margin: 0 auto;
	padding-inline: 1.5rem;
}
.opzh .opzh__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 0.7rem;
}
.opzh .opzh__logo { display: inline-flex; align-items: center; border-radius: 0.375rem; }
.opzh .opzh__logo-img { display: block; width: auto; height: 3.25rem; max-width: 100%; }
.opzh .opzh__actions { display: flex; align-items: center; gap: 0.5rem; }
.opzh .opzh__cta {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding: 0.6rem 1.05rem;
	border-radius: 0.625rem;
	background: var(--opzh-accent);
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color 0.15s;
}
.opzh .opzh__cta:hover { background: #651028; }
.opzh .opzh__cta:active { background: #4f0c1f; }
.opzh .opzh__toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0.55rem 0.8rem;
	border: 1px solid var(--opzh-line);
	border-radius: 0.625rem;
	background: #fff;
	color: var(--opzh-ink);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}
.opzh .opzh__toggle[hidden] { display: none; }
.opzh .opzh__toggle:hover { background: rgba(11, 31, 58, 0.05); }
.opzh .opzh__burger { position: relative; display: inline-block; width: 1.1rem; height: 0.8rem; }
.opzh .opzh__burger span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s, top 0.2s; }
.opzh .opzh__burger span:nth-child(1) { top: 0; }
.opzh .opzh__burger span:nth-child(2) { top: calc(50% - 1px); }
.opzh .opzh__burger span:nth-child(3) { top: calc(100% - 2px); }
.opzh.opzh--open .opzh__burger span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.opzh.opzh--open .opzh__burger span:nth-child(2) { opacity: 0; }
.opzh.opzh--open .opzh__burger span:nth-child(3) { top: calc(50% - 1px); transform: rotate(-45deg); }

.opzh .opzh__nav { border-top: 1px solid var(--opzh-line); }
.opzh .opzh__list {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.25rem;
	list-style: none;
	margin-block: 0;
}
.opzh:not(.opzh--js) .opzh__list { flex-wrap: wrap; } /* без JS: пренасяне вместо скрити връзки */
.opzh .opzh__list li { margin: 0; padding: 0; }
.opzh .opzh__link {
	position: relative;
	display: block;
	padding: 0.7rem 0.75rem;
	white-space: nowrap;
	font-size: 0.95rem;
	font-weight: 500;
	line-height: 1.2;
	color: rgba(11, 31, 58, 0.82) !important;
	transition: color 0.15s, background-color 0.15s;
}
.opzh .opzh__link::after {
	content: "";
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.35rem;
	height: 2px;
	border-radius: 2px;
	background: var(--opzh-accent);
	transform: scaleX(0);
	transition: transform 0.15s;
}
.opzh .opzh__link:hover { color: var(--opzh-ink) !important; }
.opzh .opzh__link:hover::after { transform: scaleX(1); opacity: 0.35; }
.opzh .opzh__link:active { color: var(--opzh-accent) !important; }
.opzh .opzh__link[aria-current="page"] { color: var(--opzh-accent) !important; font-weight: 700; }
.opzh .opzh__link[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.opzh a:focus-visible,
.opzh .opzh__toggle:focus-visible { outline: 2px solid var(--opzh-accent); outline-offset: 2px; border-radius: 0.375rem; }

/* Свито състояние (JS установи, че връзките не се побират) */
.opzh.opzh--collapsed .opzh__nav { display: none; }
.opzh.opzh--collapsed.opzh--open .opzh__nav {
	display: block;
	max-height: calc(100vh - 5rem);
	overflow-y: auto;
	background: #fff;
	box-shadow: 0 12px 24px rgba(11, 31, 58, 0.08);
}
.opzh.opzh--collapsed .opzh__list { flex-direction: column; gap: 0; padding-block: 0.5rem; }
.opzh.opzh--collapsed .opzh__link { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--opzh-line); font-size: 1rem; }
.opzh.opzh--collapsed .opzh__list li:last-child .opzh__link { border-bottom: 0; }
.opzh.opzh--collapsed .opzh__link::after { left: 0; right: auto; width: 3px; top: 0.7rem; bottom: 0.7rem; height: auto; transform: scaleY(0); }
.opzh.opzh--collapsed .opzh__link[aria-current="page"]::after { transform: scaleY(1); }
.opzh.opzh--collapsed .opzh__link[aria-current="page"] { padding-left: 0.85rem; }
.opzh:not(.opzh--collapsed) .opzh__toggle { display: none; }

@media (max-width: 767px) {
	.opzh .opzh__bar, .opzh .opzh__list { padding-inline: 1rem; }
	.opzh .opzh__bar { padding-block: 0.55rem; }
	.opzh .opzh__logo-img { height: 2.5rem; }
	.opzh .opzh__cta { padding: 0.55rem 0.8rem; font-size: 0.875rem; }
}
@media (max-width: 380px) {
	.opzh .opzh__toggle-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.opzh .opzh__brand { margin: 0; padding: 0; font-size: inherit; line-height: 0; }

/* ===================================================================== */
/* Общ хедър на всички страници (замества template part „header“)        */
/* ===================================================================== */
.opz-site-header {
	display: block;
	margin: 0;
	padding: 0;
	background: #fff;
	border-bottom: 1px solid rgba(11, 31, 58, 0.08);
	position: relative;
	z-index: 50;
}

/* ===================================================================== */
/* [oblastpz_footer] — общ футър                                          */
/* Контраст върху #242629: #F5F5F5 ≈ 13.9:1, #CDD0D3 ≈ 9.8:1, фокус #F5F5F5 ≈ 13.9:1 (WCAG AAA)  */
/* ===================================================================== */
.opzf {
	--opzf-bg: #242629;
	--opzf-text: #F5F5F5;
	--opzf-muted: #CDD0D3;
	--opzf-line: #45484C;
	display: block;
	margin: 0;
	margin-block-start: 0 !important;
	background: var(--opzf-bg);
	color: var(--opzf-text);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.5;
}
.opzf *, .opzf *::before, .opzf *::after { box-sizing: border-box; }
.opzf .opzf__inner { max-width: 80rem; margin: 0 auto; padding: 3rem 1.5rem 1.5rem; }
.opzf .opzf__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
.opzf .opzf__logo { display: inline-block; border-radius: 0.375rem; }
.opzf .opzf__logo-img { display: block; width: auto; height: 3.5rem; max-width: 100%; }
.opzf .opzf__tagline,
.opzf .opzf__text { margin: 1rem 0 0; color: var(--opzf-muted); font-size: 0.95rem; line-height: 1.6; max-width: 28rem; }
.opzf .opzf__text { margin-top: 0; }
.opzf .opzf__title {
	margin: 0 0 1rem;
	padding: 0 0 0.75rem;
	border-bottom: 1px solid var(--opzf-line);
	color: var(--opzf-text);
	font-family: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.3;
	text-transform: uppercase;
}
.opzf .opzf__list,
.opzf .opzf__legal-list { list-style: none; margin: 0; padding: 0; }
.opzf .opzf__list { display: grid; gap: 0.15rem; }
.opzf .opzf__list li,
.opzf .opzf__legal-list li { margin: 0; padding: 0; }

/* Връзки: подчертаване при hover, плътен контур при фокус от клавиатура */
.opzf.opzf a {
	color: var(--opzf-text);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.22em;
	transition: text-decoration-color 0.15s, color 0.15s;
}
.opzf.opzf .opzf__list a,
.opzf.opzf .opzf__legal-list a { display: inline-block; padding: 0.25rem 0; }
.opzf.opzf .opzf__text a { text-decoration-color: var(--opzf-muted); } /* имейлът е разпознаваем и без hover */
.opzf.opzf a:hover { color: #fff; text-decoration-color: currentColor; text-decoration-thickness: 2px; }
.opzf.opzf a[aria-current="page"] { font-weight: 700; text-decoration-color: currentColor; }
.opzf.opzf a:focus { outline: none; }
.opzf.opzf a:focus-visible {
	outline: 2px solid var(--opzf-text);
	outline-offset: 3px;
	border-radius: 3px;
	text-decoration-color: currentColor;
	box-shadow: 0 0 0 5px var(--opzf-bg);
}

.opzf .opzf__legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--opzf-line); }
.opzf .opzf__legal-list { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; font-size: 0.9rem; }
.opzf .opzf__bottom { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--opzf-line); color: var(--opzf-muted); font-size: 0.875rem; }
.opzf .opzf__legal + .opzf__bottom { margin-top: 1.25rem; }
.opzf .opzf__bottom p { margin: 0; color: inherit; }

@media (max-width: 960px) {
	.opzf .opzf__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
	.opzf .opzf__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.opzf .opzf__inner { padding: 2.25rem 1rem 1.25rem; }
	.opzf .opzf__grid { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
	.opzf .opzf__logo-img { height: 3rem; }
	.opzf.opzf .opzf__list a { padding: 0.4rem 0; } /* по-голяма зона за докосване */
}
@media (prefers-reduced-motion: reduce) {
	.opzf.opzf a { transition: none; }
}

/* ------------------------------------------------------------------ */
/* Бутони „Сподели“ под статията (includes/share.php)                   */
/* ------------------------------------------------------------------ */
.opz-share.opz-share {
	--opzs-ink: #0b1f3a;
	--opzs-accent: #7a1331;
	--opzs-line: rgba(11, 31, 58, 0.18);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin-top: 2rem;
	margin-bottom: 1.5rem;
	color: var(--opzs-ink);
	font-size: 0.95rem;
	line-height: 1.2;
}
.opz-share .opz-share__title { font-weight: 700; }
.opz-share .opz-share__list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.opz-share .opz-share__list li { margin: 0; padding: 0; }
.opz-share .opz-share__btn.opz-share__btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 44px;
	min-width: 44px;
	margin: 0;
	padding: 0.5rem 0.85rem;
	border: 1px solid var(--opzs-line);
	border-radius: 999px;
	background: #fff;
	color: var(--opzs-ink);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.opz-share .opz-share__btn[hidden] { display: none; }
.opz-share .opz-share__btn svg { width: 1.15rem; height: 1.15rem; flex: none; }
.opz-share .opz-share__btn.opz-share__btn:hover { border-color: var(--opzs-accent); color: var(--opzs-accent); background: #fff; }
.opz-share .opz-share__btn.opz-share__btn:focus { outline: none; }
.opz-share .opz-share__btn.opz-share__btn:focus-visible {
	outline: 3px solid var(--opzs-accent);
	outline-offset: 2px;
	border-color: var(--opzs-accent);
	color: var(--opzs-accent);
}
.opz-share .opz-share__status { flex-basis: 100%; min-height: 1.2em; color: #1e6b3a; font-weight: 600; }
.opz-share .opz-share__status:empty { min-height: 0; }

/* Телефон: само иконки (имената остават за екранните четци чрез aria-label). */
@media (max-width: 560px) {
	.opz-share.opz-share { gap: 0.5rem; }
	.opz-share .opz-share__btn.opz-share__btn { width: 44px; height: 44px; padding: 0; }
	.opz-share .opz-share__btn svg { width: 1.3rem; height: 1.3rem; }
	.opz-share .opz-share__label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
