/* ZA-KOSA Blog 2026 - стилове. Цветовете и шрифтът следват темата на магазина (Journal 3). */

/* ---------- Шрифт ---------- */
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/sofia-sans-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/sofia-sans-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/sofia-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Sofia Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/sofia-sans-latin.woff2) format('woff2'); 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: 'zakosa-icons'; font-style: normal; font-weight: 400; font-display: block; src: url(../fonts/zakosa-icons.woff2?v=2) format('woff2'); }

/* ---------- Променливи ---------- */
:root {
	--navy: #324275;          /* brand_secondary на магазина */
	--navy-dark: #2e3f75;
	--ink: #1c2021;           /* grayscale_90 */
	--text: #2c2b2c;
	--muted: #6e7275;         /* grayscale_60 */
	--line: #edebe9;          /* grayscale_30 */
	--surface: #f4f8fb;       /* brand_primary */
	--white: #fff;
	--blue: #0d52d6;          /* x_accent_3 */
	--pastel-blue: #d7e4fe;   /* x_pastel_3 */
	--pastel-violet: #f6f0fe; /* x_pastel_5 */
	--font: 'Sofia Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--header-h: 124px;        /* височина на залепения хедър */
	--container: 1540px;
	--gutter: 32px;
	--radius: 3px;
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.icon { flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; color: var(--white); }

/* ---------- Икони в header-а (същите глифове като в магазина) ---------- */
.ji { display: flex; align-items: center; justify-content: center; flex: none; font-style: normal; line-height: 1; }
.ji::before { display: block; font-family: 'zakosa-icons'; font-weight: 400; line-height: 1; speak: never; -webkit-font-smoothing: antialiased; }
.ji-arrow::before { content: '\e93f'; }
.ji-flip { transform: scaleX(-1); }
.ji-close::before { content: '\e981'; }
.ji-menu::before { content: '\eb16'; }
.ji-search::before { content: '\e910'; }
.ji-user::before { content: '\ead8'; }
.ji-heart::before { content: '\f08a'; }
.ji-cart::before { content: '\eb3e'; }
.ji-home::before { content: '\ea3c'; }

/* ---------- Горна лента ---------- */
.topbar { position: relative; background: var(--navy); height: 42px; display: flex; align-items: center; justify-content: center; padding: 0 40px 0 32px; }
.topbar[hidden] { display: none; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 500px; padding: 0 16px; }
.topbar__slides { flex: 1; min-width: 0; text-align: center; }
.topbar__slide { display: none; margin: 0; font-size: 16px; font-weight: 400; line-height: 1.25; color: rgba(251, 251, 251, .9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__slide.is-active { display: block; animation: topbar-in .45s ease; }
@keyframes topbar-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.topbar__nav { display: grid; place-items: center; width: 20px; height: 20px; font-size: 20px; color: rgba(251, 251, 251, .6); }
.topbar__nav:hover { color: #fbfbfb; }
.topbar__close { position: absolute; right: 8px; top: 9px; display: grid; place-items: center; width: 24px; height: 24px; font-size: 18px; color: #e9e9e9; }
.topbar .icon { stroke-width: 2; }

/* ---------- Header ---------- */
/* Залепва горе при скролване, както в магазина: редът с логото се свива от 100 на 80px и се появява сянка. */
.site-header { position: sticky; top: 0; z-index: 80; background: var(--white); transition: margin-bottom .25s, box-shadow .25s; }
.site-header.is-stuck { margin-bottom: 20px; box-shadow: 1.3px 1.9px 3.6px rgba(0, 0, 0, .016), 3.5px 5.4px 10px rgba(0, 0, 0, .024), 8.4px 13px 24.1px rgba(0, 0, 0, .03), 28px 43px 80px rgba(0, 0, 0, .05); }
.admin-bar .site-header { top: 32px; }
.header-main { display: flex; align-items: center; height: 100px; max-width: none; transition: height .25s; }
.site-header.is-stuck .header-main { height: 80px; }
.nav-toggle { display: flex; align-items: center; flex: none; width: 38px; height: 100%; margin-right: 20px; font-size: 26px; color: #5a5e60; }
.nav-toggle:hover { color: var(--navy); }
.logo { flex: none; }
.logo img { width: 275px; }

.search-form { position: relative; display: flex; align-items: center; border: 1px solid #5a5e60; border-radius: 4px; background: var(--white); height: 40px; }
.search-form--header { flex: 1 1 auto; margin: 0 48px; }
.search-form input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); padding: 0 12px; height: 38px; -webkit-appearance: none; appearance: none; }
.search-form input::-webkit-search-cancel-button { display: none; }
.search-form input::placeholder { color: #8a8d90; }
.search-form input:focus, .search-form select:focus { outline: none; }
.search-form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 2px var(--pastel-blue); }
.search-form button { display: grid; place-items: center; flex: none; width: 40px; height: 38px; font-size: 16px; color: #5a5e60; }
.search-form button:hover { color: var(--ink); }
.search-form .ji { transform: translateY(-1px); }
.search-form__scope { flex: none; height: 38px; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4' viewBox='0 0 8 4'%3E%3Cpath d='M0 0h8L4 4z' fill='%235a5e60'/%3E%3C/svg%3E") no-repeat right 9px center; font: inherit; font-size: 16px; color: #5a5e60; padding: 0 24px 0 10px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.search-suggest { position: absolute; left: -1px; right: -1px; top: calc(100% + 6px); z-index: 60; max-height: min(70vh, 560px); overflow-y: auto; border: 1px solid #c9cdd2; border-radius: var(--radius); background: var(--white); box-shadow: 0 14px 32px rgba(28, 32, 33, .16); text-align: left; }
.search-suggest[hidden] { display: none; }
.search-suggest__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--ink); }
.search-suggest__item:hover, .search-suggest__item.is-active { background: var(--surface); }
.search-suggest__thumb { flex: none; width: 56px; height: 42px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.search-suggest__thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-suggest__copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-suggest__category { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.search-suggest__title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.search-suggest__empty { margin: 0; padding: 14px 12px; font-size: 15px; color: var(--muted); }
.search-suggest__footer { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 12px; background: var(--white); border-top: 1px solid var(--line); font-size: 14.5px; font-weight: 700; }
.search-suggest__footer a { color: var(--navy); }
.search-suggest__footer a:hover { color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 28px; margin-left: auto; padding-left: 36px; flex: none; }
.header-action { display: flex; align-items: center; gap: 12px; color: #5a5e60; }
.header-action .icon { stroke-width: 1.2; }
.header-action strong { display: block; font-weight: 500; font-size: 16px; line-height: 20.8px; letter-spacing: -.1px; color: var(--ink); }
.header-action small { display: block; font-size: 14px; line-height: 17.5px; letter-spacing: -.1px; margin: 1.4px 0; color: var(--muted); }
.header-action:hover strong, .header-action:hover { color: var(--navy); }
.header-action .ji { font-size: 26px; }
.header-action--cart { margin-left: -12px; gap: 4px; padding-right: 12px; }
.header-action--cart .ji { width: 40px; text-align: center; color: var(--muted); }
.header-action > span { padding-bottom: 1px; }
.header-action--cart > span { padding-bottom: 0; }
.header-action--cart strong { margin-bottom: 2px; }
.header-action--cart small { margin: 0; }
.header-action--search { display: none; }

/* ---------- Главно меню ---------- */
.site-nav { margin: 0 8px; background: var(--surface); }
.menu { display: flex; flex-wrap: wrap; padding-left: 8px; }
.menu > li { position: relative; padding: 0 8px; }
.menu > li:first-child { padding-left: 0; }
.menu > li > a, .menu > li > button { display: flex; align-items: center; height: 44px; padding: 5px 5px 6px; font-size: 16px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text); line-height: 20.8px; }
.menu > li > a:hover, .menu > li > button:hover, .menu > li.is-open > button { color: var(--navy); }
.menu .has-sub > button::after { content: ''; margin-left: 5px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; opacity: .45; transform: translateY(1px); }
.sub { display: none; position: absolute; left: 0; top: 100%; z-index: 30; min-width: 250px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(28, 32, 33, .12); padding: 8px 0; }
.sub a { display: block; padding: 7px 18px; font-size: 16px; }
.sub a:hover { background: var(--surface); }
.has-sub.is-open > .sub { display: block; }
@media (hover: hover) {
	.has-sub:hover > .sub { display: block; }
}

/* ---------- Странично меню ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .8); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer__panel { position: absolute; left: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--white); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .25s ease; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 24px; background: var(--surface); font-size: 17px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--text); }
.drawer__head button { display: grid; place-items: center; width: 36px; height: 36px; }
.drawer__body { overflow-y: auto; padding: 8px 24px 32px; }
.drawer__body h2 { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 22px 0 6px; }
.drawer__body li { border-bottom: 1px solid var(--line); }
.drawer__body a { display: block; padding: 10px 0; font-size: 16.5px; font-weight: 500; }
.has-drawer { overflow: hidden; }

/* ---------- Основно съдържание ---------- */
.site-main { padding: 0 0 72px; }

.breadcrumbs { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 16px; line-height: 20.8px; color: #5a5e60; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; max-width: 100%; min-width: 0; transform: translateY(-2px); }
.breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: '/\00a0'; font-size: 17px; line-height: 17px; color: var(--muted); display: inline-block; padding-left: 4px; width: 19.9px; box-sizing: border-box; }
.breadcrumbs a { display: flex; align-items: center; color: #5a5e60; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .ji { font-size: 16px; margin-right: 7px; color: var(--ink); transform: translateY(-1px); }
.breadcrumbs li[aria-current] { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(60ch, 100%); }

/* ---------- Общи елементи ---------- */
.eyebrow { display: block; margin: 0; font-size: 12px; font-weight: 700; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.eyebrow--muted { color: var(--muted); }
a.eyebrow:hover { color: var(--blue); }
.meta { font-size: 13px; line-height: 1.6; letter-spacing: .02em; color: var(--muted); }
.meta--lg { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.meta--lg span[aria-hidden] { color: #c5c3c1; }

.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 22px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--ink); color: var(--white); font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.button:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.button--ghost { background: var(--white); color: var(--ink); border-color: #c9cdd2; }
.button--ghost:hover { background: var(--white); color: var(--navy); border-color: var(--navy); }

.chips { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 16px; border: 1px solid #dcdfe3; border-radius: 999px; background: var(--white); color: var(--text); font-size: 14.5px; line-height: 1.4; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 600; }

.img-placeholder { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--surface) 0 10px, var(--pastel-blue) 10px 20px); }
.hero__image img, .rail-item__image img, .card__image img, .card-list__image img, .card-compact__image img, .video-card__thumb img, .article__hero img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Начало: водеща статия ---------- */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: 32px; align-items: start; margin-top: 20px; }
.hero__featured { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hero__image { position: relative; display: block; height: 460px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.hero__image img { transition: transform .4s ease; }
.hero__image:hover img { transform: scale(1.02); }
.hero__featured h1 { font-size: 40px; font-weight: 700; line-height: 1.12; letter-spacing: -.015em; margin: 0; max-width: 760px; }
.hero__featured h1 a:hover { color: var(--navy); }
.hero__excerpt { margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 700px; }
.badge { position: absolute; left: 18px; top: 18px; padding: 7px 13px; border-radius: var(--radius-sm); background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }

.hero__rail { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero__rail-title { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rail-item { display: flex; gap: 14px; color: var(--ink); }
.rail-item__image { width: 96px; height: 96px; flex: none; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.rail-item__copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rail-item__title { font-size: 19px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.rail-item:hover .rail-item__title { color: var(--navy); }
.rail-item__read { font-size: 13px; color: var(--muted); }
.cta-card { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.cta-card h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.cta-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.cta-card .button { align-self: flex-start; margin-top: 4px; }

/* ---------- Теми ---------- */
.topics { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }

/* ---------- Мрежа с карти ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
.grid--home { margin-top: 24px; }
.card { min-width: 0; }
.card__link { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.card__image { display: block; height: 250px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card__image img { transition: transform .35s ease; }
.card__link:hover .card__image img { transform: scale(1.03); }
.card__title { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.25; }
.card__link:hover .card__title { color: var(--navy); }
.card__excerpt { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.more-row { display: flex; justify-content: center; margin: 36px 0 0; }

/* ---------- Видео ---------- */
.videos { margin-top: 56px; padding: 48px 40px 52px; border-radius: var(--radius-lg); background: var(--navy); color: #fbfbfb; }
.videos__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.videos .eyebrow { color: var(--pastel-blue); }
.videos h2 { margin: 6px 0 0; font-size: 30px; font-weight: 600; color: var(--white); }
.videos__all { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; color: var(--white); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.videos__all:hover { background: var(--white); color: var(--navy); }
.videos__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.video-card { display: flex; flex-direction: column; gap: 12px; color: var(--white); min-width: 0; }
.video-card__thumb { position: relative; display: block; height: 230px; border-radius: var(--radius); overflow: hidden; background: rgba(255, 255, 255, .08); }
.video-card__thumb .img-placeholder { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 10px, rgba(255, 255, 255, .1) 10px 20px); }
.video-card__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--white); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .15s; }
.video-card__play::after { content: ''; position: absolute; left: 21px; top: 16px; border: 10px solid transparent; border-left: 15px solid var(--navy); border-right: 0; }
.video-card:hover { color: var(--white); }
.video-card:hover .video-card__play { transform: scale(1.08); }
.video-card__title { font-size: 19px; font-weight: 600; line-height: 1.3; }

/* ---------- Съставки ---------- */
.teaser { display: grid; grid-template-columns: .8fr 2fr; gap: 40px; align-items: start; margin-top: 56px; }
.teaser__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.teaser__intro h2 { margin: 0; font-size: 30px; font-weight: 600; line-height: 1.15; }
.teaser__intro p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.teaser__intro .chip { margin-top: 6px; }
.teaser__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--line); overflow: hidden; }
.teaser-item { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; background: var(--surface); color: var(--ink); transition: background .15s; }
.teaser-item:hover { background: var(--white); }
.teaser-item__term { font-size: 19px; font-weight: 600; line-height: 1.25; }
.teaser-item:hover .teaser-item__term { color: var(--navy); }
.teaser-item__def { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Списъци ---------- */
.listing { padding-top: 16px; }
.listing__header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.listing__header > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.listing__header h1 { margin: 0; font-size: 48px; font-weight: 700; line-height: 1.05; letter-spacing: -.015em; overflow-wrap: anywhere; }
.listing__description { max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--muted); }
.listing__description p:last-child { margin-bottom: 0; }
.listing .topics { margin-top: 24px; }
.listing .topics .eyebrow { display: none; }
.listing__shop { margin: 0; font-size: 16px; color: var(--muted); }
.listing__shop a { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.listing__shop a:hover { color: var(--blue); }
mark { padding: 0 2px; border-radius: 2px; background: var(--pastel-blue); color: inherit; }
.near-results { margin-top: 40px; }
.near-results__title { margin: 0; font-size: 27px; font-weight: 700; }
.empty-state + .topics { margin-top: 32px; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.sort label { color: var(--muted); white-space: nowrap; }
.sort select { min-height: 44px; padding: 8px 14px; border: 1px solid #c9cdd2; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 600; }

.result-list { margin-top: 8px; }
.card-list { display: grid; grid-template-columns: 280px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--line); }
.card-list__image { display: block; height: 170px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card-list__copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-wrap: anywhere; }
.card-list h2 { margin: 0; font-size: 27px; font-weight: 600; line-height: 1.2; }
.card-list h2 a:hover { color: var(--navy); }
.card-list__copy > p { margin: 0; max-width: 720px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.card-list__read { font-size: 15px; font-weight: 700; white-space: nowrap; color: var(--navy); }
.card-list__read:hover { color: var(--blue); }

.pager { padding-top: 32px; }
.pager .nav-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.pager .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 6px; border: 1px solid #dcdfe3; border-radius: 50%; color: var(--ink); font-size: 15px; line-height: 1; }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 600; }
.pager .page-numbers.prev, .pager .page-numbers.next { border-radius: 999px; padding: 10px 20px; font-size: 14.5px; font-weight: 600; }
.pager .page-numbers.dots { border-color: transparent; color: var(--muted); }
.pager a.page-numbers:hover { border-color: var(--navy); color: var(--navy); }

.empty-state { display: flex; flex-direction: column; align-items: center; gap: 20px; margin: 40px 0 0; padding: 48px; border: 1px dashed #c9cdd2; border-radius: var(--radius-lg); text-align: center; color: var(--muted); }
.empty-state p { margin: 0; }
.empty-state .search-form { width: 100%; max-width: 460px; }

/* ---------- Статия ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 720px) minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 16px; }
.toc-column { position: sticky; top: calc(var(--header-h) + 24px); min-width: 0; max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-top: 8px; }
.toc summary { cursor: pointer; padding-bottom: 14px; }
.toc ol { display: flex; flex-direction: column; gap: 14px; }
.toc a { display: block; padding-left: 12px; border-left: 2px solid var(--line); font-size: 14.5px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.toc a:hover { color: var(--ink); }
.toc a[aria-current] { border-color: var(--navy); color: var(--navy); font-weight: 600; }

.article { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.article--page { max-width: 720px; margin: 0 auto; padding-top: 16px; }
.article__header { display: flex; flex-direction: column; gap: 18px; }
.article__title { margin: 0; font-size: 44px; font-weight: 700; line-height: 1.1; letter-spacing: -.015em; overflow-wrap: anywhere; }
.article__excerpt { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.byline__avatar { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; background: var(--surface); }
.byline__avatar img { width: 28px; height: 28px; }
.byline__author { flex: 1; min-width: 0; }
.byline__author strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.share { display: flex; gap: 8px; margin-left: auto; }
.share__button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #dcdfe3; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.share__button:hover { border-color: var(--navy); color: var(--navy); }
.share__button.is-done { background: #edf5ea; border-color: #409463; color: #31704b; }
.article__hero { height: 420px; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }

.entry-content { font-size: 18px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 30px; font-weight: 600; margin: 1.6em 0 .6em; }
.entry-content h3 { font-size: 23px; margin: 1.5em 0 .5em; }
.entry-content h4 { font-size: 19px; margin: 1.4em 0 .5em; }
.entry-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--navy); }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--navy); }
.entry-content img { border-radius: var(--radius); margin: 8px auto; }
.entry-content figure { margin: 1.6em 0; max-width: 100%; }
.entry-content figcaption, .entry-content .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content .wp-caption { max-width: 100%; }
.entry-content .alignleft { float: left; margin: 6px 24px 12px 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 6px 0 12px 24px; max-width: 50%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ''; display: table; clear: both; }
.entry-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--navy); font-size: 22px; line-height: 1.45; color: var(--ink); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content iframe, .entry-content video, .entry-content embed, .entry-content object { max-width: 100%; }
.entry-content iframe[src*="youtube"], .entry-content iframe[src*="vimeo"] { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.entry-content .table-wrap { overflow-x: auto; margin: 1em 0 1.5em; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid #ddd; text-align: left; vertical-align: top; }
.entry-content th { background: #f4efe9; font-weight: 600; color: var(--ink); vertical-align: bottom; }
.entry-content td:first-child { font-weight: 600; }
.entry-content td p { margin: 0; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.article__banner { display: block; }
.article__banner img { width: 100%; border-radius: var(--radius); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.tags a { padding: 6px 14px; border: 1px solid #dcdfe3; border-radius: 999px; font-size: 14px; color: var(--muted); }
.tags a:hover { border-color: var(--navy); color: var(--navy); }
.page-links { display: flex; gap: 8px; font-weight: 600; }

.article-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding-top: 8px; }
.side-links { display: flex; flex-direction: column; gap: 14px; }
.article-sidebar > * + .side-links { margin-top: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.side-links ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.side-links a { font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--navy); }
.side-links a:hover { color: var(--blue); text-decoration: underline; }
.card-compact { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.card-compact__image { display: block; height: 150px; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card-compact h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.card-compact:hover h3 { color: var(--navy); }

.read-next { margin-top: 56px; padding: 44px 0 48px; background: var(--surface); border-bottom: 1px solid var(--line); }
.read-next h2 { margin: 0; font-size: 28px; font-weight: 600; }
.read-next__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.read-next .card__image { height: 230px; }
.read-next .card__title { font-size: 20px; }
.is-single .site-main { padding-bottom: 0; }
.is-single.page .site-main { padding-bottom: 72px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.footer-about .logo img { width: 170px; margin-bottom: 16px; }
.footer-about p { color: var(--muted); max-width: 400px; line-height: 1.6; }
.footer-contact li { margin-bottom: 10px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-social { display: flex; gap: 8px; margin-top: 20px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); border-radius: var(--radius-sm); }
.footer-social a:hover { border-color: var(--navy); }
.footer-col h2 { font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.footer-col li { margin-bottom: 9px; line-height: 1.4; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; font-size: 14px; color: var(--muted); }

/* ---------- Адаптивност ---------- */
@media (max-width: 1100px) {
	:root { --gutter: 24px; }
	.search-form--header { margin: 0 28px; }
	.header-action span { display: none; }
	.header-actions { gap: 18px; }
	.article-layout { grid-template-columns: minmax(0, 720px); justify-content: center; gap: 24px; }
	.toc-column { position: static; max-height: none; padding-top: 0; }
	.toc-column:empty, .toc-column:not(:has(.toc)) { display: none; }
	.toc { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
	.toc:not([open]) summary { padding-bottom: 0; }
	.article-sidebar { display: none; }
	.listing__header { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.card-list { grid-template-columns: 240px minmax(0, 1fr) auto; gap: 24px; }
	.teaser { grid-template-columns: 1fr 2fr; gap: 28px; }
	.footer-grid { grid-template-columns: 1fr 1fr 1fr; }
	.footer-about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.topbar { height: 46px; padding: 0 36px 0 0; }
	.topbar__close { top: 11px; }
	.topbar__slide { font-size: 14.5px; letter-spacing: 0; }
	:root { --header-h: 64px; }
	.header-main, .site-header.is-stuck .header-main { height: 64px; flex-wrap: wrap; position: relative; }
	.site-header.is-stuck { margin-bottom: 0; }
	.admin-bar .site-header { top: 46px; }
	.nav-toggle { margin-right: 12px; }
	.logo img { width: 180px; }
	.site-nav { display: none; }
	.header-action--user { display: none; }
	.header-action--search { display: flex; }
	.header-action, .nav-toggle { color: var(--ink); }
	.header-action .ji { font-size: 24px; }
	.header-action--cart { margin-left: 0; padding-right: 0; }
	.header-action--cart .ji { width: auto; color: var(--ink); }
	.nav-toggle { height: 44px; }
	.search-form--header { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; margin: 0; z-index: 20; box-shadow: 0 10px 24px rgba(28, 32, 33, .14); }
	.search-form--header.is-open { display: flex; }

	.hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.grid, .videos__grid, .read-next__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.teaser { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.teaser__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.videos { padding: 40px 28px; }
	.card-list { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
	.card-list__image { grid-row: span 2; height: 150px; }
	.card-list__read { grid-column: 2; justify-self: start; }
	.chip { min-height: 44px; }
	.share__button { width: 44px; height: 44px; }
}

@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
	:root { --gutter: 16px; }
	body { font-size: 16px; }
	.logo img { width: 164px; }
	.nav-toggle { margin-right: 8px; }
	.header-actions { gap: 14px; }
	.site-main { padding-bottom: 48px; }
	.hero { margin-top: 8px; }
	.hero__image { height: auto; aspect-ratio: 1.5; }
	.hero__featured h1 { font-size: 30px; }
	.topics { margin-top: 28px; }
	.grid, .videos__grid, .read-next__grid, .teaser__grid { grid-template-columns: minmax(0, 1fr); }
	.card__image, .read-next .card__image { height: auto; aspect-ratio: 1.6; }
	.videos { margin-top: 40px; padding: 32px 20px; }
	.videos__header { flex-direction: column; align-items: flex-start; gap: 14px; }
	.videos h2, .teaser__intro h2 { font-size: 26px; }
	.video-card__thumb { height: auto; aspect-ratio: 1.6; }
	.teaser { margin-top: 40px; }
	.listing__header h1 { font-size: 34px; }
	.sort { flex-wrap: wrap; }
	.card-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.card-list__image { grid-row: auto; height: auto; aspect-ratio: 1.6; }
	.card-list__read { grid-column: auto; }
	.card-list h2 { font-size: 24px; }
	.article__title { font-size: 32px; }
	.article__excerpt { font-size: 18px; }
	.article__hero { height: auto; aspect-ratio: 1.5; }
	.entry-content { font-size: 17px; }
	.entry-content h2 { font-size: 25px; }
	.entry-content h3 { font-size: 21px; }
	.entry-content blockquote { font-size: 19px; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 12px auto; max-width: 100%; }
	.read-next { margin-top: 36px; padding: 32px 0; }
	.empty-state { padding: 28px 20px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; padding-top: 40px; padding-bottom: 32px; }
	.footer-col:last-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}

/* Плаващата лента за споделяне на плъгина Monarch застъпва съдържанието, когато няма свободно място вляво. */
@media (max-width: 1699px) {
	.et_social_sidebar_networks { display: none !important; }
}

/* Плаващи бутони "Viber чат" и "Обади се" вдясно долу - размери, цветове и анимации като в магазина. */
.contact-float { position: fixed; right: 10px; bottom: 0; z-index: 85; width: 80px; }
.contact-float__item { position: absolute; right: 0; width: 140px; height: 70px; --contact-color: #32cd32; }
.contact-float__item--call { bottom: 40px; }
.contact-float__item--viber { bottom: 160px; --contact-color: #7d51a0; }
.contact-float__button { position: absolute; top: 0; left: 37px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 50%; background: var(--contact-color); color: var(--white); }
.contact-float__button svg { width: 36px; height: 36px; }
.contact-float__item--call svg { fill: currentColor; }
.contact-float__button:hover svg { animation: contact-shake .5s ease; }
.contact-float__label { position: absolute; left: 0; right: 0; bottom: -20px; font-size: 14px; font-weight: 700; line-height: 24px; text-align: center; color: var(--contact-color); pointer-events: none; }
.contact-float__ring { position: absolute; top: 0; left: 37px; width: 70px; height: 70px; border: 1px solid var(--contact-color); border-radius: 50%; pointer-events: none; }
.contact-float__ring--one { animation: contact-ring-one 5s ease-out infinite; }
.contact-float__ring--two { animation: contact-ring-two 5s ease-out infinite; }
.contact-float__ring--two::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--contact-color); opacity: .5; }
@keyframes contact-ring-one { 0% { transform: scale(1); } 80% { transform: scale(2); } 100% { transform: scale(2); opacity: 0; } }
@keyframes contact-ring-two { 30% { transform: scale(1); } 90% { transform: scale(2); } 100% { transform: scale(2); opacity: 0; } }
@keyframes contact-shake {
	0% { transform: translate(1px, 1px) rotate(0deg); } 10% { transform: translate(-1px, -2px) rotate(-1deg); } 20% { transform: translate(-3px, 0) rotate(1deg); }
	30% { transform: translate(3px, 2px) rotate(0deg); } 40% { transform: translate(1px, -1px) rotate(1deg); } 50% { transform: translate(-1px, 2px) rotate(-1deg); }
	60% { transform: translate(-3px, 1px) rotate(0deg); } 70% { transform: translate(3px, 1px) rotate(-1deg); } 80% { transform: translate(-1px, -1px) rotate(1deg); }
	90% { transform: translate(1px, 2px) rotate(0deg); } 100% { transform: translate(1px, -2px) rotate(-1deg); }
}
@media (max-width: 767px) {
	.contact-float__item { right: -30px; }
	.contact-float__item--call { bottom: 120px; }
	.contact-float__item--viber { bottom: 220px; }
}
@media (prefers-reduced-motion: reduce) {
	.contact-float__ring, .contact-float__button:hover svg { animation: none; }
}
@media print {
	.contact-float { display: none; }
}
