/* ==========================================================================
   Габрово Пулс – основни стилове
   Палитра: петролено зелено (Балкана) + кехлибар (искрата на габровския хумор)
   ========================================================================== */

:root {
	--petrol-950: #041d22;
	--petrol-900: #062a30;
	--petrol-800: #0b3a42;
	--petrol-700: #0b4650;
	--petrol-600: #0f5561;
	--petrol-500: #157080;
	--amber: #ffb627;
	--amber-600: #e89a00;
	--coral: #ff5a4e;

	--bg: #f4f1ea;
	--surface: #ffffff;
	--surface-2: #faf8f3;
	--text: #13222a;
	--muted: #5b6b72;
	--line: #e3ddd0;
	--link: #0f5561;
	--shadow: 0 1px 2px rgba(6, 42, 48, .06), 0 8px 24px rgba(6, 42, 48, .07);
	--shadow-lg: 0 18px 50px rgba(6, 42, 48, .18);

	--radius: 18px;
	--radius-sm: 10px;
	--font-head: "Unbounded", "Manrope", system-ui, sans-serif;
	--font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--container: 1240px;
	--gutter: 16px;
	--header-h: 72px;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #061a1f;
		--surface: #0c262c;
		--surface-2: #0a2228;
		--text: #e7eeee;
		--muted: #9ab0b4;
		--line: #1b3a42;
		--link: #ffc85a;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
	}
}
:root[data-theme="dark"] {
	--bg: #061a1f;
	--surface: #0c262c;
	--surface-2: #0a2228;
	--text: #e7eeee;
	--muted: #9ab0b4;
	--line: #1b3a42;
	--link: #ffc85a;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--amber); color: #111; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--amber); color: #13222a; border: 0; border-radius: 999px;
	padding: 12px 22px; font-weight: 800; text-decoration: none; transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255, 182, 39, .35); }
.btn--sm { padding: 8px 16px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Прогрес на четенето ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--amber), var(--coral)); transition: width .1s linear; }

/* ---------- Горна лента ---------- */
.topbar { background: var(--petrol-950); color: #c9dbdd; font-size: 13px; }
.topbar__in { display: flex; align-items: center; gap: 18px; min-height: 38px; }
.topbar__date { font-weight: 600; text-transform: none; }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar__social { color: #c9dbdd; font-weight: 600; }
.wx-mini { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; }
.wx-mini__icon { font-size: 16px; }
.wx-mini__city { color: #9fc2c6; font-weight: 500; }
.mode-toggle { background: rgba(255, 255, 255, .08); border: 0; border-radius: 999px; width: 34px; height: 26px; display: grid; place-items: center; color: var(--amber); }
.mode-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.mode-toggle .i-sun { display: none; }
:root[data-theme="dark"] .mode-toggle .i-sun { display: block; }
:root[data-theme="dark"] .mode-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .mode-toggle .i-sun { display: block; }
	:root:not([data-theme="light"]) .mode-toggle .i-moon { display: none; }
}

/* ---------- Хедър ---------- */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--petrol-800);
	color: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
	transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.site-header__in { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; flex-shrink: 0; }
.site-logo .logo-mark { border-radius: 12px; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); text-transform: uppercase; }
.site-logo__a { font-size: 19px; font-weight: 800; letter-spacing: .02em; }
.site-logo__b { font-size: 12px; font-weight: 700; letter-spacing: .42em; color: var(--amber); margin-top: 4px; }
.custom-logo { max-height: 52px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav li { position: relative; }
.main-nav a {
	display: block; padding: 10px 12px; color: #e6f0f0; font-weight: 700; font-size: 15px; border-radius: 999px;
	text-decoration: none; transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current-menu-ancestor > a, .main-nav .current-category-ancestor > a { background: rgba(255, 255, 255, .1); color: #fff; }
.main-nav .current-menu-item > a { box-shadow: inset 0 -3px 0 var(--amber); border-radius: 999px 999px 6px 6px; }
.main-nav .sub-menu {
	position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px; display: none; flex-direction: column;
	background: var(--surface); padding: 8px; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 10;
}
.main-nav .sub-menu a { color: var(--text); border-radius: 8px; font-weight: 600; }
.main-nav .sub-menu a:hover { background: var(--surface-2); color: var(--text); }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: flex; }

.site-header__actions { display: flex; gap: 6px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; border: 0; border-radius: 12px; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(255, 255, 255, .16); }
.burger { display: none; gap: 4px; align-content: center; }
.burger span { display: block; width: 20px; height: 2.5px; background: #fff; border-radius: 2px; }

.search-panel { background: var(--petrol-700); padding: 14px 0; }
.search-form { display: flex; background: var(--surface); border-radius: 999px; overflow: hidden; border: 2px solid transparent; max-width: 720px; }
.search-form:focus-within { border-color: var(--amber); }
.search-form__input { flex: 1; border: 0; padding: 12px 18px; font: inherit; background: transparent; color: var(--text); min-width: 0; }
.search-form__input:focus { outline: none; }
.search-form__btn { border: 0; background: var(--amber); width: 52px; display: grid; place-items: center; color: #13222a; }
.search-form__btn svg { width: 20px; height: 20px; }

/* ---------- Бягаща лента ---------- */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 14px; }
.ticker__in { display: flex; align-items: center; gap: 14px; min-height: 44px; }
.ticker__label {
	flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; background: var(--coral); color: #fff;
	padding: 5px 12px; border-radius: 999px; font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
}
.pulse-dot { width: 8px; height: 8px; background: #fff; border-radius: 50%; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.ticker__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker__move { display: inline-flex; gap: 38px; white-space: nowrap; animation: ticker 60s linear infinite; }
.ticker__track:hover .ticker__move { animation-play-state: paused; }
.ticker__move a { color: var(--text); font-weight: 600; }
.ticker__move time { color: var(--amber-600); font-weight: 800; margin-right: 8px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__move { animation: none; } .ticker__track { overflow-x: auto; } }

/* ---------- Мобилно меню ---------- */
.drawer { position: fixed; inset: 0; z-index: 300; background: rgba(4, 29, 34, .6); backdrop-filter: blur(4px); }
.drawer__panel {
	position: absolute; right: 0; top: 0; bottom: 0; width: min(92vw, 400px); background: var(--petrol-800); color: #fff;
	padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; animation: slideIn .25s ease;
}
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__menu, .drawer .menu { list-style: none; margin: 0; padding: 0; }
.drawer__menu a, .drawer .menu a { display: block; padding: 12px 6px; color: #fff; font-weight: 700; font-size: 18px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.drawer .sub-menu { list-style: none; padding-left: 14px; }
.drawer .sub-menu a { font-size: 15px; font-weight: 600; color: #cfe1e3; }
.drawer .wx-strip { grid-template-columns: 1fr 1fr; }

/* ---------- Заглавия на секции ---------- */
.section-title { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 18px; display: flex; align-items: center; gap: 12px; }
.section-title span { position: relative; padding-bottom: 6px; }
.section-title span::after {
	content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 8px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 8'%3E%3Cpath d='M0 5h10l3-4 4 6 5-6 4 4h20' fill='none' stroke='%23ffb627' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-title--sm { font-size: 15px; }
.more-link { font-weight: 800; font-size: 14px; color: var(--link); }

/* ---------- Значки на категории ---------- */
.cat-badge {
	display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	background: var(--petrol-600); color: #fff; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; text-decoration: none !important;
}
.cat-gabrovo { background: var(--petrol-600); }
.cat-sevlievo { background: #6b4fd8; }
.cat-tryavna { background: #2f8f5b; }
.cat-dryanovo { background: #c2410c; }
.cat-sport { background: #1d6fe0; }
.cat-kultura { background: #b8327a; }
.cat-turizam { background: #0e8a7a; }
.cat-intsidenti { background: var(--coral); }
.cat-zdrave { background: #d1495b; }
.cat-ikonomika { background: #7a5c12; }
.cat-obshtestvo { background: #455a64; }
.cat-polezno { background: var(--amber-600); color: #111; }
.cat-badge--text { background: none !important; color: var(--amber-600) !important; padding: 0; margin-bottom: 4px; }

/* ---------- Карти ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
	background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--petrol-700); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 18px; margin: 0 0 8px; line-height: 1.3; }
.card__title a { color: var(--text); }
.card__excerpt { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.card .meta { margin-top: auto; }
.card--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; }
.card--feature .card__img { aspect-ratio: auto; min-height: 320px; }
.card--feature .card__body { padding: 28px; justify-content: center; }
.card--feature .card__title { font-size: clamp(22px, 2.6vw, 30px); }
.card--compact .card__title { font-size: 16px; }
.card--page .card__body { padding: 20px; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.meta__dot { opacity: .5; }

.thumb-fallback {
	width: 100%; height: 100%; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	background: radial-gradient(circle at 30% 20%, var(--petrol-500), var(--petrol-900)); color: #fff; aspect-ratio: 16 / 10;
}
.thumb-fallback__mark .logo-mark { width: 54px; height: 54px; opacity: .95; }
.thumb-fallback__label { font-family: var(--font-head); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }

.row-card { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row-card:last-child { border-bottom: 0; }
.row-card__img { flex: 0 0 104px; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; display: block; background: var(--petrol-700); }
.row-card__img img, .row-card__img .thumb-fallback { width: 100%; height: 100%; object-fit: cover; }
.row-card__img .thumb-fallback__label { display: none; }
.row-card__img .logo-mark { width: 30px; height: 30px; }
.row-card__num { flex: 0 0 38px; font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--amber); line-height: 1; }
.row-card__title { font-size: 15px; margin: 0 0 6px; line-height: 1.35; }
.row-card__title a { color: var(--text); }

/* ---------- Слайдер ---------- */
.hero { display: grid; grid-template-columns: 1fr 360px; gap: 26px; margin-top: 24px; }
.slider { position: relative; border-radius: 24px; overflow: hidden; background: var(--petrol-900); box-shadow: var(--shadow-lg); min-height: 460px; }
.slider__track { position: relative; height: 100%; min-height: 460px; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slide__img, .slide__img img, .slide__img .thumb-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide.is-active .slide__img img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .slide.is-active .slide__img img { animation: none; } }
.slide__overlay {
	position: absolute; inset: auto 0 0 0; padding: 120px 34px 46px; color: #fff;
	background: linear-gradient(180deg, transparent, rgba(4, 29, 34, .65) 40%, rgba(4, 29, 34, .95));
}
.slide__title { font-size: clamp(22px, 3vw, 36px); margin: 0 0 10px; max-width: 900px; }
.slide__title a { color: #fff; }
.slide__excerpt { color: #d6e4e6; margin: 0 0 10px; max-width: 760px; }
.slide .meta { color: #b6cdd0; }
.slider__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: rgba(255, 255, 255, .15); color: #fff; font-size: 30px; line-height: 1; backdrop-filter: blur(6px); z-index: 3;
}
.slider__arrow:hover { background: var(--amber); color: #111; }
.slider__arrow--prev { left: 16px; }
.slider__arrow--next { right: 16px; }
.slider__dots { position: absolute; right: 30px; top: 24px; display: flex; gap: 8px; z-index: 3; }
.slider__dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .45); padding: 0; transition: width .3s, background .3s; }
.slider__dots button.is-active { width: 30px; background: var(--amber); }
.slider__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .1); z-index: 3; }
.slider__bar span { display: block; height: 100%; width: 0; background: var(--amber); }
.slider__bar span.run { animation: bar 6s linear forwards; }
@keyframes bar { to { width: 100%; } }
.hero__side { background: var(--surface); border-radius: 24px; padding: 20px 20px 8px; box-shadow: var(--shadow); }

/* ---------- Бърз достъп ---------- */
.quick { margin-top: 26px; display: grid; gap: 16px; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip {
	flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--text);
	padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.chip:hover { text-decoration: none; border-color: var(--amber); }

/* ---------- Времето ---------- */
.wx-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.wx-strip__item {
	display: grid; grid-template-columns: auto 1fr; grid-template-areas: "icon city" "icon t" "mm mm"; column-gap: 10px;
	background: linear-gradient(135deg, var(--petrol-700), var(--petrol-900)); color: #fff; padding: 14px 16px; border-radius: 16px;
}
.wx-strip__item:hover { text-decoration: none; transform: translateY(-2px); }
.wx-strip__city { grid-area: city; font-size: 13px; color: #b6d0d3; font-weight: 700; }
.wx-strip__icon { grid-area: icon; font-size: 30px; align-self: center; }
.wx-strip__t { grid-area: t; font-family: var(--font-head); font-size: 24px; font-weight: 800; }
.wx-strip__mm { grid-area: mm; font-size: 12px; color: var(--amber); font-weight: 700; margin-top: 4px; }
.sidebar .wx-strip { grid-template-columns: 1fr 1fr; }

.wx { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 0 0 28px; }
.wx--error { color: var(--muted); }
.wx__now { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--petrol-600), var(--petrol-900)); color: #fff; border-radius: 16px; padding: 22px; }
.wx__now-main { display: flex; align-items: center; gap: 16px; }
.wx__big-icon { font-size: 64px; line-height: 1; }
.wx__place { color: #b6d0d3; font-weight: 700; font-size: 14px; }
.wx__temp { font-family: var(--font-head); font-size: 54px; font-weight: 800; line-height: 1; }
.wx__desc { color: #e6f0f0; }
.wx__stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wx__stats li { background: rgba(255, 255, 255, .08); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; }
.wx__stats span { font-size: 12px; color: #b6d0d3; }
.wx__h { font-size: 17px; margin: 24px 0 12px; }
.wx__hours { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.wx__hour { flex: 0 0 66px; text-align: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; display: flex; flex-direction: column; gap: 2px; }
.wx__hour-t { font-size: 12px; color: var(--muted); font-weight: 700; }
.wx__hour-i { font-size: 22px; }
.wx__hour-p { font-size: 11px; color: #1d6fe0; font-weight: 700; }
.wx__days { display: grid; gap: 6px; }
.wx__day { display: grid; grid-template-columns: 80px 36px 1fr auto 90px; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.wx__day-name { font-weight: 800; display: flex; flex-direction: column; line-height: 1.2; }
.wx__day-name small { color: var(--muted); font-weight: 600; }
.wx__day-icon { font-size: 24px; }
.wx__day-desc { color: var(--muted); font-size: 14px; }
.wx__day-rain { font-size: 13px; font-weight: 700; color: #1d6fe0; }
.wx__day-temp { text-align: right; font-weight: 600; }
.wx__note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }

/* ---------- Оформление с колона ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 34px; margin-top: 34px; align-items: start; }
.layout__side { position: sticky; top: calc(var(--header-h) + 16px); }
.sidebar { display: grid; gap: 22px; }
.widget { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.widget-title { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
.widget--signal { background: linear-gradient(135deg, var(--amber), #ffd36e); color: #13222a; }
.widget--signal p { margin: 0 0 14px; }
.widget--signal .btn { background: var(--petrol-800); color: #fff; }

.joke-card { background: var(--petrol-800); color: #fff; border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; }
.joke-card::after { content: "“"; position: absolute; right: 12px; bottom: -40px; font-family: Georgia, serif; font-size: 180px; color: rgba(255, 182, 39, .12); line-height: 1; }
.joke-card__head { display: flex; align-items: center; gap: 12px; }
.joke-card__head h3 { font-size: 15px; text-transform: uppercase; margin: 0; letter-spacing: .04em; }
.joke-card__cat { color: var(--amber); }
.joke-card__text { font-size: 16px; margin: 14px 0; position: relative; z-index: 1; }
.joke-card__next { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; position: relative; z-index: 1; }
.joke-card__next:hover { background: var(--amber); color: #111; }

/* ---------- Регион (табове) ---------- */
.region { margin-top: 40px; }
.region__tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.region__tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 9px 18px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.region__tabs button[aria-selected="true"] { background: var(--petrol-800); color: #fff; border-color: var(--petrol-800); }
.region__panel { background: var(--surface); border-radius: var(--radius); padding: 10px 20px 20px; box-shadow: var(--shadow); }
.region__panel .grid { gap: 0 26px; }

/* ---------- Тематични ленти ---------- */
.band { margin-top: 46px; padding: 34px 0; }
.band:nth-of-type(odd) { background: var(--surface-2); }
.band__head { display: flex; align-items: baseline; gap: 16px; }
.band__head .section-title { flex: 1; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 20px; overflow-x: auto; padding: 6px 2px 16px; scroll-snap-type: x mandatory; }
.scroller > * { scroll-snap-align: start; }

/* ---------- Открий региона ---------- */
.discover { margin-top: 46px; }
.subpages { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin: 20px 0; }
.subpage-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; color: var(--text); transition: transform .2s; }
.subpage-card:hover { transform: translateY(-4px); text-decoration: none; }
.subpage-card__img { aspect-ratio: 16 / 10; overflow: hidden; display: block; background: var(--petrol-700); }
.subpage-card__img img, .subpage-card__img .thumb-fallback { width: 100%; height: 100%; object-fit: cover; }
.subpage-card__body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.subpage-card__body strong { font-family: var(--font-head); font-size: 16px; }
.subpage-card__body span { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Статия ---------- */
.breadcrumbs { margin-top: 22px; font-size: 13px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .6; }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.layout:has(> .entry) { margin-top: 16px; }
.entry { background: var(--surface); border-radius: 24px; padding: clamp(18px, 4vw, 44px); box-shadow: var(--shadow); min-width: 0; }
.entry-title { font-size: clamp(26px, 4vw, 44px); line-height: 1.15; margin-bottom: 14px; }
.entry-lead { font-size: 20px; color: var(--muted); font-weight: 500; margin: 0 0 16px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.entry-meta__by { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; }
.entry-meta__by .logo-mark { border-radius: 8px; }
.entry-image { margin: 22px calc(-1 * clamp(18px, 4vw, 44px)); }
.entry-image img { width: 100%; max-height: 620px; object-fit: cover; }
.img-credit { font-size: 12px; color: var(--muted); padding: 8px clamp(18px, 4vw, 44px) 0; }
.img-credit a { color: var(--muted); text-decoration: underline; }

.summary-box { background: linear-gradient(135deg, rgba(255, 182, 39, .14), rgba(255, 182, 39, .04)); border: 1px solid rgba(255, 182, 39, .5); border-radius: 16px; padding: 18px 22px; margin: 24px 0; }
.summary-box__head { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); text-transform: uppercase; font-size: 14px; letter-spacing: .06em; margin-bottom: 8px; }
.summary-box ul { margin: 0; padding-left: 20px; }
.summary-box li { margin: 4px 0; }
.summary-box p { margin: 0; }

.entry-content { font-size: 18px; line-height: 1.75; }
.entry-content > * { max-width: 760px; }
.entry-content h2 { font-size: clamp(21px, 2.4vw, 26px); margin: 1.8em 0 .6em; }
.entry-content h3 { font-size: 19px; margin: 1.6em 0 .5em; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin: .35em 0; }
.entry-content li::marker { color: var(--amber-600); font-weight: 800; }
.entry-content blockquote { margin: 1.6em 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--amber); font-size: 20px; font-weight: 600; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 16px; }
@media (max-width: 640px) { .entry-content table { display: block; overflow-x: auto; } }
.entry-content th, .entry-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--petrol-800); color: #fff; font-weight: 700; }
.entry-content tr:nth-child(even) td { background: var(--surface-2); }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(255, 182, 39, .8); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content figure { margin: 1.6em 0; }
.entry-source { color: var(--muted); font-size: 14px; font-style: italic; border-top: 1px dashed var(--line); padding-top: 12px; }

.info-box { border-radius: 14px; padding: 16px 20px; margin: 1.4em 0; background: rgba(21, 112, 128, .09); border-left: 5px solid var(--petrol-500); }
.info-box--warn { background: rgba(255, 90, 78, .08); border-left-color: var(--coral); }
.info-box__title { display: block; font-family: var(--font-head); font-size: 15px; margin-bottom: 6px; }
.info-box p:last-child { margin-bottom: 0; }

.faq-box { margin: 34px 0; }
.faq-box h2 { font-size: 22px; }
.faq-box details { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; overflow: hidden; }
.faq-box summary { padding: 16px 48px 16px 18px; font-weight: 800; cursor: pointer; list-style: none; position: relative; }
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--amber-600); transition: transform .2s; }
.faq-box details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-box__a { padding: 0 18px 14px; color: var(--text); }

/* ---------- Споделяне ---------- */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 12px 0; }
.share__label { font-weight: 800; font-size: 14px; }
.share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share__btn {
	width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 0; color: #fff; position: relative;
	transition: transform .15s, filter .15s;
}
.share__btn:hover { transform: translateY(-2px); filter: brightness(1.1); text-decoration: none; }
.share__btn svg { width: 20px; height: 20px; fill: currentColor; }
.share__btn--facebook { background: #1877f2; }
.share__btn--x { background: #111; }
.share__btn--viber { background: #7360f2; }
.share__btn--whatsapp { background: #25d366; }
.share__btn--telegram { background: #229ed9; }
.share__btn--linkedin { background: #0a66c2; }
.share__btn--email { background: #5b6b72; }
.share__btn--copy { background: var(--amber); color: #13222a; }
.share__btn--native { background: var(--petrol-600); display: none; }
.has-native-share .share__btn--native { display: grid; }
.share__copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); font-size: 12px; padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share__btn.is-copied .share__copied { opacity: 1; }
.entry-footer { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.post-nav a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface-2); border-radius: 14px; color: var(--text); font-weight: 700; border: 1px solid var(--line); }
.post-nav a:hover { border-color: var(--amber); text-decoration: none; }
.post-nav small { color: var(--muted); font-weight: 600; }
.post-nav__next { text-align: right; grid-column: 2; }
.related { margin-top: 40px; }

/* ---------- Архиви ---------- */
.archive-header { margin: 18px 0 0; padding: 28px clamp(18px, 4vw, 36px); background: linear-gradient(135deg, var(--petrol-700), var(--petrol-950)); color: #fff; border-radius: 24px; position: relative; overflow: hidden; }
.archive-header::after { content: ""; position: absolute; right: -20px; bottom: -30px; width: 280px; height: 140px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 280 140'%3E%3Cpath d='M0 90h50l18-34 22 56 30-96 26 74 16-24h118' fill='none' stroke='%23ffb627' stroke-opacity='.35' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat; }
.archive-title { font-size: clamp(26px, 4vw, 40px); margin: 0; position: relative; z-index: 1; }
.archive-desc { color: #cfe1e3; margin-top: 10px; max-width: 760px; position: relative; z-index: 1; }
.archive-desc .search-form { margin-top: 10px; }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 30px 0; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 800; box-shadow: var(--shadow); }
.page-numbers.current { background: var(--petrol-800); color: #fff; }

/* ---------- Контакт ---------- */
.contact-form { display: grid; gap: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 1.4em 0; }
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--amber); border-color: transparent; }
.contact-form__consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 500 !important; font-size: 14px !important; }
.contact-form__consent input { width: auto; margin-top: 4px; }
.form-msg { padding: 14px 18px; border-radius: 12px; font-weight: 700; }
.form-msg--ok { background: rgba(47, 143, 91, .15); color: #1f6d43; }
.form-msg--err { background: rgba(255, 90, 78, .12); color: #b3261e; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 60px var(--gutter); max-width: 640px; }
.notfound__code { font-family: var(--font-head); font-size: clamp(90px, 20vw, 160px); font-weight: 800; color: var(--petrol-700); line-height: 1; }
.notfound__code span { color: var(--amber); }
.notfound .search-form { margin: 20px auto; }

/* ---------- Коментари ---------- */
.comments { margin-top: 36px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--surface-2); padding: 14px 16px; border-radius: 14px; margin-bottom: 12px; }
.comment-form input:not([type="checkbox"]):not([type="submit"]), .comment-form textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; }
.comment-form .submit { background: var(--amber); border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 800; }

/* ---------- Футър ---------- */
.site-footer { margin-top: 70px; background: var(--petrol-900); color: #c9dbdd; position: relative; }
.footer-wave { position: absolute; left: 0; right: 0; top: -60px; height: 61px; color: var(--petrol-900); }
.footer-wave svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; padding-top: 34px; padding-bottom: 30px; }
.footer-col h3 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; columns: 1; }
.footer-col li { margin: 7px 0; }
.footer-col a { color: #c9dbdd; }
.footer-col a:hover { color: var(--amber); }
.footer-col--about p { font-size: 15px; }
.footer-mail a { color: var(--amber); font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 18px; padding-bottom: 26px; font-size: 13px; }
.footer-bottom p { margin: 4px 0; }
.footer-disclaimer { color: #8fb0b4; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--amber); color: #13222a; font-size: 22px; font-weight: 800; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px); pointer-events: none; transition: .25s; z-index: 90; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--petrol-800); color: #fff; padding: 16px 18px; border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; gap: 14px; align-items: center; z-index: 250; font-size: 14px; }
.cookie p { margin: 0; flex: 1; }
.cookie a { color: var(--amber); }

/* ---------- WordPress ---------- */
.alignwide { max-width: 1000px; }
.alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 13px; color: var(--muted); }
.sticky .card__title::before { content: "📌 "; }

/* ==========================================================================
   Адаптивност – таблети и телефони
   ========================================================================== */
@media (max-width: 1100px) {
	.main-nav a { padding: 10px 9px; font-size: 14px; }
	.layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
	.hero { grid-template-columns: 1fr 300px; }
}

@media (max-width: 960px) {
	.main-nav { display: none; }
	.burger { display: grid; }
	.site-header__actions { margin-left: auto; }
	.hero { grid-template-columns: 1fr; }
	.hero__side { display: none; }
	.layout { grid-template-columns: 1fr; }
	.layout__side { position: static; }
	.sidebar { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.wx-strip { grid-template-columns: repeat(2, 1fr); }
	.wx__now { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
	:root { --header-h: 62px; }
	body { font-size: 16px; }
	.topbar__date { display: none; }
	.topbar__social { display: none; }
	.site-logo__a { font-size: 16px; }
	.site-logo__b { font-size: 10px; letter-spacing: .32em; }
	.site-logo .logo-mark { width: 36px; height: 36px; }
	.slider, .slider__track { min-height: 400px; }
	.slide__overlay { padding: 80px 18px 34px; }
	.slide__excerpt { display: none; }
	.slider__arrow { display: none; }
	.slider__dots { right: 18px; top: 16px; }
	.grid--2, .grid--3 { grid-template-columns: 1fr; }
	.card--feature { grid-template-columns: 1fr; }
	.card--feature .card__img { min-height: 0; aspect-ratio: 16 / 10; }
	.card--feature .card__body { padding: 18px; }
	.sidebar { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 20px; }
	.entry { border-radius: 18px; }
	.entry-content { font-size: 17px; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__next { grid-column: auto; }
	.contact-form__row { grid-template-columns: 1fr; }
	.wx__day { grid-template-columns: 60px 30px 1fr auto; }
	.wx__day-desc { display: none; }
	.wx__temp { font-size: 44px; }
	.wx__big-icon { font-size: 50px; }
	.share__btn { width: 38px; height: 38px; }
	.band { margin-top: 30px; padding: 24px 0; }
	.cookie { flex-direction: column; align-items: stretch; text-align: center; }
	.scroller { grid-auto-columns: 78%; }
}

@media print {
	.topbar, .site-header, .ticker, .share, .layout__side, .site-footer, .to-top, .cookie, .related, .post-nav { display: none !important; }
	.layout { display: block; }
	.entry { box-shadow: none; padding: 0; }
}

/* ---------- Корекции на оформлението ---------- */
.layout__main, .layout__side, .sidebar > * { min-width: 0; }
.card__body .cat-badge, .row-card__body .cat-badge { align-self: flex-start; }
.wx-strip__item { min-width: 0; }
.sidebar .wx-strip__t { font-size: 20px; }
.sidebar .wx-strip__item { padding: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.widget .wp-block-search__input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
.widget .wp-block-search__button { border: 0; border-radius: 10px; background: var(--amber); padding: 0 14px; font-weight: 800; }
.widget h2, .widget .wp-block-heading { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 10px; }
