/* ==========================================================================
   Новини от Силистра – основни стилове
   Палитра: Дунав (дълбоко синьо-зелено), мъгла над реката, кайсия.
   ========================================================================== */

@font-face {
	font-family: "Golos";
	src: url("../fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2-variations");
	font-weight: 400 900;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Golos";
	src: url("../fonts/golos-text-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 400 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Literata";
	src: url("../fonts/literata-cyrillic-wght-normal.woff2") format("woff2-variations");
	font-weight: 200 900;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Literata";
	src: url("../fonts/literata-latin-wght-normal.woff2") format("woff2-variations");
	font-weight: 200 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Literata";
	font-style: italic;
	src: url("../fonts/literata-cyrillic-wght-italic.woff2") format("woff2-variations");
	font-weight: 200 900;
	font-display: swap;
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: "Literata";
	font-style: italic;
	src: url("../fonts/literata-latin-wght-italic.woff2") format("woff2-variations");
	font-weight: 200 900;
	font-display: swap;
	unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}

:root {
	--ink: #0E2A33;          /* Дунав в дълбокото */
	--ink-2: #24434C;
	--river: #1D6A78;        /* течението */
	--river-soft: #8FD0D6;
	--fog: #E9F0EF;          /* сутрешна мъгла над реката */
	--paper: #FFFFFF;
	--line: #CFDCDA;
	--muted: #4F646A;
	--apricot: #E8892B;      /* силистренската кайсия */
	--apricot-deep: #A9550C;
	--apricot-wash: #FDF0E1;
	--alert: #B4232C;
	--field: #6E7F1E;
	--plum: #7A3B69;
	--green: #2F7A47;
	--teal: #11707A;

	--text: var(--ink);
	--bg: var(--fog);
	--surface: var(--paper);
	--focus: #E8892B;

	--f-ui: "Golos", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-head: "Literata", Georgia, "Times New Roman", serif;

	--r-s: 6px;
	--r-m: 12px;
	--r-l: 22px;
	--wrap: 1240px;
	--gut: clamp(16px, 3vw, 28px);
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--ink: #E4EEEC;
		--ink-2: #C3D3D1;
		--river: #7FC4CF;
		--fog: #0B1E24;
		--paper: #11282F;
		--line: #23434B;
		--muted: #9FB3B5;
		--apricot-deep: #F2A65A;
		--apricot-wash: #2A2416;
		--alert: #F07A80;
		--field: #B7C866;
		--plum: #D69BC6;
		--green: #7FCB98;
		--teal: #6CC7CF;
	}
}
:root[data-theme="dark"] {
	--ink: #E4EEEC;
	--ink-2: #C3D3D1;
	--river: #7FC4CF;
	--fog: #0B1E24;
	--paper: #11282F;
	--line: #23434B;
	--muted: #9FB3B5;
	--apricot-deep: #F2A65A;
	--apricot-wash: #2A2416;
	--alert: #F07A80;
	--field: #B7C866;
	--plum: #D69BC6;
	--green: #7FCB98;
	--teal: #6CC7CF;
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 17px/1.55 var(--f-ui);
	font-feature-settings: "kern", "liga";
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--river); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }
.icon { flex: none; }

/* ---------- Горна лента ---------- */
.topbar { background: #0E2A33; color: #CFE3E2; font-size: 14px; }
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 38px; }
.topbar__date { margin: 0; }
.topbar__wx { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #fff; padding: 2px 10px; border-radius: 99px; background: rgba(255,255,255,.08); }
.topbar__wx .icon { color: var(--apricot); width: 16px; height: 16px; }
.topbar__wx:hover { color: #fff; background: rgba(255,255,255,.16); }
.topbar__nav { margin-left: auto; }
.topbar__nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.topbar__nav a { color: #CFE3E2; text-decoration: none; }
.topbar__nav a:hover { color: #fff; text-decoration: underline; }

/* ---------- Мачта (хедър) ---------- */
.mast { background: var(--surface); position: relative; border-bottom: 1px solid var(--line); }
.mast__in { display: flex; align-items: center; gap: 24px; padding-block: 18px 10px; }
.brand { margin: 0; font-size: inherit; font-weight: inherit; }
.brand a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand__mark { width: 52px; height: 52px; border-radius: 14px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__small { font: 600 13px/1 var(--f-ui); letter-spacing: .02em; color: var(--muted); margin-bottom: 4px; }
.brand__big { font: 800 34px/0.95 var(--f-head); letter-spacing: -.01em; }
.mast__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sbox { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 2px 4px 2px 16px; width: min(360px, 34vw); }
.sbox input { border: 0; background: transparent; padding: 8px 4px; flex: 1; min-width: 0; outline: none; }
.sbox input::placeholder { color: var(--muted); }
.sbox button { border: 0; background: transparent; padding: 8px; cursor: pointer; color: var(--muted); display: grid; place-items: center; border-radius: 99px; }
.sbox:focus-within { border-color: var(--river); box-shadow: 0 0 0 3px color-mix(in srgb, var(--river) 25%, transparent); }
.sbox--block { width: 100%; max-width: 520px; background: var(--surface); }
.sbox--block button { background: var(--ink); color: var(--paper); padding: 8px 18px; font-weight: 600; }
.iconbtn { border: 1px solid var(--line); background: var(--surface); width: 42px; height: 42px; border-radius: 99px; display: grid; place-items: center; cursor: pointer; }
.iconbtn:hover { border-color: var(--river); color: var(--river); }
.iconbtn--menu { display: none; }
.nav-search { display: none !important; }
.mast__river { display: block; width: 100%; height: 14px; color: var(--river-soft); opacity: .9; }

/* Главно меню */
.nav { background: var(--surface); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.nav__list > li { position: relative; }
.nav__list a { display: block; padding: 12px 14px; text-decoration: none; font-weight: 600; font-size: 16px; border-radius: var(--r-s); }
.nav__list > li > a:hover, .nav__list > li.current-menu-item > a, .nav__list > li.current-menu-ancestor > a, .nav__list > li.current-category-ancestor > a { color: var(--river); background: var(--bg); }
.nav__list .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; left: 0; top: 100%; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: 0 18px 40px -18px rgba(14,42,51,.35); display: none; z-index: 30; }
.nav__list .sub-menu a { font-weight: 500; padding: 9px 12px; }
.nav__list .sub-menu a:hover { background: var(--bg); }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu { display: block; }
.nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }

/* Лента на общините */
.ribbon { background: var(--ink); color: #DCEBEA; }
:root[data-theme="dark"] .ribbon { background: #071519; }
.ribbon__in { display: flex; align-items: stretch; gap: 16px; }
.ribbon__label { align-self: center; font-weight: 700; font-size: 14px; color: var(--apricot); white-space: nowrap; }
.ribbon__list { list-style: none; display: flex; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; position: relative; }
.ribbon__list::-webkit-scrollbar { display: none; }
.ribbon__list li { flex: 1 0 auto; }
.ribbon__list a { display: flex; flex-direction: column; padding: 10px 14px 12px; text-decoration: none; color: inherit; border-left: 1px solid rgba(255,255,255,.08); position: relative; }
.ribbon__list a::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--apricot); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.ribbon__list a:hover::before, .ribbon__list a[aria-current]::before { transform: scaleX(1); }
.ribbon__list a:hover { color: #fff; }
.ribbon__name { font: 700 16px/1.2 var(--f-head); }
.ribbon__note { font-size: 12.5px; opacity: .7; white-space: nowrap; }

/* ---------- Общи блокове ---------- */
.main { display: block; padding-bottom: 40px; }
.block { margin-top: 44px; }
.block--flush { margin-top: 0; padding: 0; }
.block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); position: relative; }
.block__head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 64px; height: 4px; background: var(--apricot); border-radius: 2px; }
.block__title { margin: 0; font: 800 clamp(24px, 2.6vw, 30px)/1.15 var(--f-head); }
.block__title a { text-decoration: none; }
.block__more { font-size: 15px; font-weight: 600; color: var(--river); text-decoration: none; white-space: nowrap; }
.block__more:hover { text-decoration: underline; }
.block__head--light { border-color: rgba(255,255,255,.35); }

.grid { display: grid; gap: 28px 24px; }
.grid--card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--row { grid-template-columns: 1fr; gap: 16px; }

/* ---------- Карти ---------- */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media { display: block; overflow: hidden; border-radius: var(--r-m); background: var(--line); aspect-ratio: 16 / 10; }
.card__img, .media__ph { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.media__ph { background: linear-gradient(135deg, var(--river) 0%, var(--ink) 100%); }
.card:hover .card__img { transform: scale(1.03); }
.card__body { padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.card__title { margin: 0; font: 700 19px/1.28 var(--f-head); letter-spacing: -.005em; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--river); text-decoration: underline; text-decoration-thickness: 2px; }
.card__excerpt { margin: 2px 0 0; color: var(--ink-2); font-size: 16.5px; }
.card__meta { margin: 0; color: var(--muted); font-size: 14px; }

.chip { align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 700; text-decoration: none; padding: 3px 10px; border-radius: 99px; color: var(--tone, var(--river)); background: color-mix(in srgb, var(--tone, var(--river)) 12%, transparent); }
.chip:hover { color: var(--tone, var(--river)); background: color-mix(in srgb, var(--tone, var(--river)) 20%, transparent); }
.chip--ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.tone-river { --tone: var(--river); }
.tone-alert { --tone: var(--alert); }
.tone-field { --tone: var(--field); }
.tone-plum { --tone: var(--plum); }
.tone-green { --tone: var(--green); }
.tone-teal { --tone: var(--teal); }
.tone-apricot { --tone: var(--apricot-deep); }

.card--lead .card__media { aspect-ratio: 16 / 9.4; border-radius: var(--r-l); }
.card--lead .card__title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
.card--lead .card__body { padding-top: 16px; gap: 10px; }
.card--lead .card__excerpt { font-size: 18px; max-width: 62ch; }

.card--row { flex-direction: row; gap: 14px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.card--row:last-child { border-bottom: 0; }
.card--row .card__media { flex: 0 0 120px; aspect-ratio: 4 / 3; border-radius: var(--r-s); }
.card--row .card__body { padding-top: 0; }
.card--row .card__title { font-size: 17.5px; }

/* ---------- Водещ блок ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, .95fr); gap: 28px; margin-top: 28px; }
.hero__side { display: flex; flex-direction: column; gap: 26px; }
.hero__latest { background: var(--surface); border-radius: var(--r-l); padding: 20px 20px 10px; align-self: start; border: 1px solid var(--line); }
.latest__h, .aside__h { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font: 800 20px/1.2 var(--f-head); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--apricot); box-shadow: 0 0 0 0 rgba(232,137,43,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,137,43,.55); } 70% { box-shadow: 0 0 0 10px rgba(232,137,43,0); } 100% { box-shadow: 0 0 0 0 rgba(232,137,43,0); } }
.latest { list-style: none; margin: 0; padding: 0; }
.mini { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.35; }
.mini:first-child { border-top: 0; }
.mini time { font-weight: 700; color: var(--apricot-deep); font-variant-numeric: tabular-nums; font-size: 14px; padding-top: 1px; }
.mini a { text-decoration: none; font-weight: 500; }
.mini a:hover { text-decoration: underline; color: var(--river); }

/* ---------- Пътеводител (лента) ---------- */
.guide { margin-top: 52px; background: var(--ink); color: #E8F1F0; padding: 36px 0 40px; position: relative; overflow: hidden; }
:root[data-theme="dark"] .guide { background: #071519; }
.guide::before { content: ""; position: absolute; inset: auto -10% -60px -10%; height: 160px; background: radial-gradient(60% 100% at 50% 100%, rgba(143,208,214,.18), transparent 70%); pointer-events: none; }
.guide .block__title, .guide .block__title a { color: #fff; }
.guide .block__head { border-color: rgba(255,255,255,.3); }
.guide .block__more { color: var(--apricot); }
.guide__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 16px 18px; border-radius: var(--r-m); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); text-decoration: none; color: inherit; transition: background .2s, border-color .2s; }
.tile .icon { width: 26px; height: 26px; color: var(--apricot); margin-bottom: 6px; }
.tile:hover { background: rgba(255,255,255,.12); border-color: var(--apricot); color: #fff; }
.tile__t { font: 700 17px/1.2 var(--f-head); overflow-wrap: anywhere; hyphens: auto; }
.tile__d { font-size: 14px; opacity: .78; line-height: 1.35; }

/* ---------- Две колони ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-top: 44px; }
.split > .block { padding-inline: 0; min-width: 0; }

/* ---------- Времето ---------- */
.wx-region { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.wx-region__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.wx-region__name { font-weight: 700; font-size: 15px; }
.wx-region__temp { font: 800 30px/1.1 var(--f-head); color: var(--river); font-variant-numeric: tabular-nums; }
.wx-region__desc { font-size: 13px; color: var(--muted); min-height: 2.6em; }

.wx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 22px; margin: 8px 0 28px; font-family: var(--f-ui); }
.wx__head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
.wx__place { margin: 0; font-weight: 700; color: var(--muted); }
.wx__now { display: flex; align-items: baseline; gap: 14px; margin: 4px 0; flex-wrap: wrap; }
.wx__temp { font: 800 60px/1 var(--f-head); color: var(--river); font-variant-numeric: tabular-nums; }
.wx__desc { font-size: 20px; font-weight: 600; }
.wx__meta { margin: 0; color: var(--muted); font-size: 15px; }
.wx__switch { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.wx__switch select { padding: 8px 12px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--bg); color: var(--text); font-weight: 600; }
.wx__sub { font: 700 17px/1.2 var(--f-ui) !important; margin: 22px 0 10px !important; }
.wx__hours { display: grid; grid-auto-flow: column; grid-auto-columns: 74px; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.wx__hour, .wx__day { background: var(--bg); border-radius: var(--r-s); padding: 10px 8px; text-align: center; font-size: 14px; }
.wx__hour b, .wx__day b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.wx__hour span, .wx__day span { display: block; color: var(--muted); font-size: 12.5px; }
.wx__ico { font-size: 22px; line-height: 1.3; display: block; }
.wx__days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.wx__day { padding: 10px 4px; }
@media (max-width: 760px) { .wx__days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wx__day .lo { color: var(--muted); font-weight: 500; }
.wx__note { font-size: 13.5px; color: var(--muted); margin: 16px 0 0 !important; }

/* ---------- Общините ---------- */
.munis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.muni a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 14px 12px; aspect-ratio: 3 / 4; border-radius: var(--r-m); overflow: hidden; text-decoration: none; color: #fff; background: var(--ink); }
.muni__img, .muni .media__ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .5s ease, opacity .3s; }
.muni a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(8,24,29,.9) 100%); }
.muni a:hover .muni__img { transform: scale(1.05); opacity: 1; }
.muni__name, .muni__note { position: relative; z-index: 1; }
.muni__name { font: 800 21px/1.1 var(--f-head); overflow-wrap: anywhere; }
.muni__note { font-size: 13px; line-height: 1.3; opacity: .85; }

/* ---------- Статия / страница ---------- */
.article-top { padding-top: 18px; position: relative; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] span { display: inline-block; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--apricot); }

.article { margin-top: 18px; }
.article__head { max-width: 900px; display: flex; flex-direction: column; gap: 12px; }
.article__title { margin: 0; font: 800 clamp(30px, 4.4vw, 50px)/1.1 var(--f-head); letter-spacing: -.02em; text-wrap: balance; }
.article__dek { margin: 0; font: 400 clamp(19px, 2vw, 22px)/1.45 var(--f-head); color: var(--ink-2); max-width: 64ch; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta .icon { width: 16px; height: 16px; }
.article__figure { margin: 26px 0 0; }
.article--page .article__img { max-height: 460px; }
.article__img { width: 100%; max-height: 600px; object-fit: cover; border-radius: var(--r-l); background: var(--line); }
.article__figure figcaption, .prose figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.credit a { color: inherit; }
.article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; margin-top: 30px; }
.article__main { min-width: 0; max-width: 740px; }
.article__aside { align-self: start; position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px 20px 10px; }
.sibs { list-style: none; margin: 0; padding: 0 0 10px; }
.sibs li { border-top: 1px solid var(--line); }
.sibs li:first-child { border-top: 0; }
.sibs a { display: block; padding: 10px 0; text-decoration: none; font-weight: 500; }
.sibs a:hover { color: var(--river); text-decoration: underline; }

.tldr { background: var(--apricot-wash); border-radius: var(--r-m); padding: 18px 22px 8px; margin-bottom: 28px; border-left: 5px solid var(--apricot); }
.tldr__h { font: 800 18px/1.2 var(--f-ui); margin: 0 0 8px; }
.tldr ul { margin: 0; padding-left: 20px; }
.tldr li { margin-bottom: 10px; line-height: 1.5; }

.toc { border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 20px; margin-bottom: 28px; background: var(--surface); }
.toc__title { font-weight: 800; margin: 0 0 6px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc a { text-decoration: none; color: var(--river); }
.toc a:hover { text-decoration: underline; }

.prose { font: 400 19px/1.72 var(--f-head); }
.prose > * { margin-block: 0 1.1em; }
.prose h2 { font: 800 clamp(24px, 2.6vw, 30px)/1.2 var(--f-head); margin: 1.8em 0 .6em; letter-spacing: -.01em; }
.prose h3 { font: 700 21px/1.3 var(--f-head); margin: 1.5em 0 .5em; }
.prose a { color: var(--river); text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--apricot-deep); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--river); font-style: italic; color: var(--ink-2); }
.prose figure { margin: 1.8em 0; }
.prose figure img { border-radius: var(--r-m); width: 100%; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-scroll { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--r-m); }
.prose table { width: 100%; border-collapse: collapse; font: 400 16px/1.45 var(--f-ui); }
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.prose .box { font: 400 17px/1.6 var(--f-ui); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 20px; }
.prose .box > :last-child { margin-bottom: 0; }
.prose .box--warn { border-left: 5px solid var(--apricot); }

.faq { margin-top: 36px; }
.faq h2 { font: 800 26px/1.2 var(--f-head); margin: 0 0 12px; }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 12px 30px 12px 0; font-weight: 700; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 8px; font-size: 24px; color: var(--apricot-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; font: 400 18px/1.65 var(--f-head); color: var(--ink-2); }

.source { margin-top: 26px; font-size: 15px; color: var(--muted); }
.note-fix { margin-top: 32px; font-size: 15px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 24px; font-size: 15px; }
.share a, .share button { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; cursor: pointer; font-weight: 600; font-size: 14px; }
.share a:hover, .share button:hover { border-color: var(--river); color: var(--river); }

.subpages { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.subpages a { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 10px; height: 100%; }
.subpages a:hover { border-color: var(--river); }
.subpages__img, .subpages .media__ph { grid-row: 1 / 3; width: 112px; height: 88px; object-fit: cover; border-radius: var(--r-s); }
.subpages__t { font: 700 17px/1.25 var(--f-head); }
.subpages__d { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Архив ---------- */
.arch { margin-top: 18px; }
.archive__head { margin-bottom: 28px; }
.archive__title { margin: 0; font: 800 clamp(32px, 4.4vw, 52px)/1.1 var(--f-head); letter-spacing: -.02em; }
.archive__desc { color: var(--ink-2); max-width: 70ch; font-size: 18px; }
.archive__kids { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
.archive__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 26px; }
.archive__grid .card--lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.archive__grid .card--lead .card__body { padding-top: 0; }
.pager { margin-top: 40px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.empty { padding: 40px 0; }
.empty--404 { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px var(--gut); }
.empty__code { font: 800 120px/1 var(--f-head); color: var(--apricot); margin: 0; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 99px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 700; }
.btn:hover { background: var(--river); color: #fff; }

/* ---------- Футър ---------- */
.foot { margin-top: 64px; color: #CFE3E2; }
.foot__river { display: block; width: 100%; height: 40px; color: var(--ink); margin-bottom: -1px; }
:root[data-theme="dark"] .foot__river { color: #071519; }
.foot__body { background: var(--ink); padding: 26px 0 30px; }
:root[data-theme="dark"] .foot__body { background: #071519; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot__body, :root:not([data-theme="light"]) .ribbon, :root:not([data-theme="light"]) .guide { background: #071519; } :root:not([data-theme="light"]) .foot__river { color: #071519; } }
.foot__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.foot .brand a { color: #fff; }
.foot .brand__small { color: #9FC1C1; }
.foot__about p { max-width: 46ch; line-height: 1.6; }
.foot__contact { display: flex; align-items: center; gap: 8px; }
.foot__contact a { color: var(--apricot); }
.foot__h { font: 700 15px/1.2 var(--f-ui); color: var(--apricot); margin: 6px 0 12px; }
.foot__list { list-style: none; margin: 0; padding: 0; }
.foot__list li { margin: 7px 0; }
.foot__list a, .foot__legal a { color: #DCEBEA; text-decoration: none; }
.foot__list a:hover, .foot__legal a:hover { color: #fff; text-decoration: underline; }
.foot__list--cols { columns: 2; }
.foot__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; font-size: 14px; color: #9FC1C1; }
.foot__bottom p { margin: 0; max-width: 70ch; }
.foot__legal ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; }

/* Коментари (ако се включат) */
.comment-list { list-style: none; padding: 0; }
.comment-respond textarea, .comment-respond input[type="text"], .comment-respond input[type="email"] { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }

/* ---------- Адаптивност ---------- */
@media (max-width: 1180px) {
	.hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
	.hero__latest { grid-column: 1 / -1; }
	.hero__latest .latest { columns: 2; column-gap: 28px; }
	.hero__latest .mini { break-inside: avoid; }
	.guide__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.wx-region { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.munis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.grid--card { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article__layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; }
}
@media (max-width: 900px) {
	body { font-size: 16.5px; }
	.topbar__nav { display: none; }
	.mast .sbox { display: none; }
	.iconbtn--menu { display: grid; }
	.mast__in { padding-block: 12px 6px; }
	.brand__mark { width: 44px; height: 44px; }
	.brand__big { font-size: 28px; }
	.nav { display: none; border-top: 1px solid var(--line); }
	.nav.is-open { display: block; }
	.nav.is-open::before { content: ""; display: block; }
	.nav__list { flex-direction: column; padding: 8px 0 16px; }
	.nav__list .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
	.nav__list .menu-item-has-children > a::after { display: none; }
	.nav.is-open .nav-search { display: flex !important; margin: 14px 0 4px; max-width: none; }
	.hero { grid-template-columns: 1fr; gap: 24px; }
	.hero__side { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
	.hero__latest .latest { columns: 1; }
	.split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
	.block__more { white-space: normal; text-align: right; font-size: 14px; }
	.article__layout { grid-template-columns: 1fr; }
	.article__aside { position: static; }
	.archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.archive__grid .card--lead { grid-template-columns: 1fr; }
	.foot__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
	.foot__about { grid-column: 1 / -1; }
	.toc ol { columns: 1; }
	.munis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.guide__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.topbar__date { display: none; }
	.topbar__in { justify-content: space-between; }
	.hero__side { grid-template-columns: 1fr; }
	.grid--card, .archive__grid { grid-template-columns: 1fr; }
	.guide__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tile { padding: 14px; }
	.tile__d { display: none; }
	.wx-region { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.munis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.subpages { grid-template-columns: 1fr; }
	.prose { font-size: 18px; }
	.foot__grid { grid-template-columns: 1fr; }
	.card--row .card__media { flex-basis: 96px; }
	.wx__temp { font-size: 48px; }
	.crumbs [aria-current] span { max-width: 22ch; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .mast, .ribbon, .foot, .article__aside, .share, .progress { display: none !important; }
	body { background: #fff; color: #000; }
}
.foot .brand__mark rect, .ribbon .brand__mark rect { fill: #1D5361; }
:root[data-theme="dark"] .brand__mark rect { fill: #1D5361; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand__mark rect { fill: #1D5361; } }
