/* =========================================================
   Нотариуси.org — основни стилове
   Тъмносиньо и злато; Spectral (заглавия) + Golos Text (текст)
   Мотив: нотариален печат
   ========================================================= */

:root {
	--navy: #14233f;
	--navy-2: #1d3257;
	--navy-3: #2a4573;
	--ink: #1a2232;
	--slate: #556073;
	--muted: #7a8496;
	--line: #dde2ea;
	--mist: #f4f6f9;
	--paper: #ffffff;
	--gold: #b08a35;
	--gold-2: #c9a24b;
	--gold-ink: #7a5d1d;
	--gold-soft: #f6efdf;
	--ok: #22704f;
	--ok-soft: #e5f3ec;
	--warn: #9a5418;
	--warn-soft: #fbefe3;
	--r-sm: 6px;
	--r: 10px;
	--r-lg: 16px;
	--shadow: 0 1px 2px rgba(20, 35, 63, .06), 0 6px 20px -10px rgba(20, 35, 63, .18);
	--serif: "Spectral", Georgia, "Times New Roman", serif;
	--sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--wrap: 1180px;
	--gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
	margin: 0;
	font: 400 17px/1.6 var(--sans);
	color: var(--ink);
	background: var(--paper);
	text-rendering: optimizeLegibility;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--navy-3); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.22rem; font-weight: 600; }
p { margin: 0 0 1em; }
small { font-size: .85em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 780px; }
.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: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }
.req { color: var(--warn); }

/* ---------- Бутони ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 46px; padding: .6em 1.15em; border-radius: var(--r-sm);
	font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
	border: 1px solid var(--line); background: var(--paper); color: var(--navy);
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--navy-3); color: var(--navy); text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-2); color: #fff; }
.btn--gold { background: var(--gold-2); border-color: var(--gold-2); color: var(--navy); }
.btn--gold:hover { background: #d6b25d; color: var(--navy); }
.btn--sm { min-height: 38px; padding: .4em .85em; font-size: .92rem; }

/* ---------- Хедър ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand svg { height: 58px; width: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover, .nav .current-menu-item > a { background: var(--mist); color: var(--navy); }
.header-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; color: var(--navy); }
.header-search svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }

@media (max-width: 960px) {
	.brand svg { height: 42px; }
	.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); color: var(--navy); }
	.nav { position: fixed; inset: 72px 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; margin: 0; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; padding: 10px var(--gutter) 18px; }
	.nav a { padding: 14px 12px; font-size: 1.05rem; }
	.header-search { margin-left: auto; }
	.brand .brand__tag { display: none; }
}

/* ---------- Търсене (наслагване) ---------- */
.qs { position: fixed; inset: 0; z-index: 90; background: rgba(20, 35, 63, .55); display: none; padding: 9vh var(--gutter) 0; }
.qs.is-open { display: block; }
.qs__box { max-width: 680px; margin: 0 auto; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); overflow: hidden; }
.qs__field { display: flex; align-items: center; gap: 10px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.qs__field svg { width: 22px; height: 22px; color: var(--slate); flex: none; }
.qs__field input { flex: 1; border: 0; font: 400 1.15rem var(--sans); padding: 16px 0; outline: none; min-width: 0; }
.qs__close { border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--slate); cursor: pointer; padding: 8px; }
.qs__results { max-height: 60vh; overflow: auto; padding: 8px; }
.qs__group { padding: 10px 10px 4px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.qs__item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 10px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.qs__item:hover, .qs__item.is-active { background: var(--mist); }
.qs__item small { color: var(--muted); }
.qs__empty { padding: 18px 10px; color: var(--slate); }

/* ---------- Трохи ---------- */
.crumbs { font-size: .9rem; color: var(--slate); padding: 16px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: "/"; margin-right: 4px; color: var(--line); }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Печат (аватар) ---------- */
.seal {
	--s: 64px;
	position: relative; display: inline-grid; place-items: center; flex: none;
	width: var(--s); height: var(--s); border-radius: 50%;
	background: var(--navy); color: var(--gold-2);
	box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 4.5px var(--gold-2);
	font: 600 calc(var(--s) * .34)/1 var(--serif); letter-spacing: .02em;
}
.seal::after { content: ""; position: absolute; inset: 15%; border-radius: 50%; border: 1px dashed rgba(201, 162, 75, .55); }
.seal--sm { --s: 48px; }
.seal--lg { --s: 112px; }
.seal--photo { background: var(--mist); overflow: hidden; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--gold-2); }
.seal--photo::after { display: none; }
.seal--photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Значки ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .84rem; font-weight: 500; background: var(--mist); color: var(--slate); white-space: nowrap; }
.tag--ok { background: var(--ok-soft); color: var(--ok); }
.tag--gold { background: var(--gold-soft); color: var(--gold-ink); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stars { position: relative; display: inline-block; font-size: 1rem; letter-spacing: 2px; color: var(--line); line-height: 1; }
.stars::before { content: "★★★★★"; position: absolute; inset: 0; width: var(--pct); overflow: hidden; color: var(--gold-2); white-space: nowrap; }

/* ---------- Начало: hero ---------- */
.hero { background: var(--navy); color: #e8ecf3; position: relative; overflow: hidden; }
.hero::before {
	content: ""; position: absolute; right: -180px; top: -160px; width: 620px; height: 620px; border-radius: 50%;
	border: 2px solid rgba(201, 162, 75, .22); box-shadow: inset 0 0 0 26px rgba(201, 162, 75, .04), inset 0 0 0 28px rgba(201, 162, 75, .16);
	pointer-events: none;
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding-block: 64px 72px; position: relative; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem); margin-bottom: .35em; }
.hero__lead { font-size: 1.15rem; color: #c5cedd; max-width: 34em; }
.hero-search { margin-top: 26px; display: flex; background: var(--paper); border-radius: var(--r); padding: 6px; box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .5); }
.hero-search input { flex: 1; min-width: 0; border: 0; font: 400 1.08rem var(--sans); padding: 12px 14px; outline: none; color: var(--ink); background: transparent; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-chips a { color: #e8ecf3; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 6px 13px; text-decoration: none; font-size: .93rem; }
.hero-chips a:hover { background: rgba(255, 255, 255, .08); border-color: var(--gold-2); color: #fff; }
.hero-facts { display: flex; gap: 28px; margin-top: 30px; color: #aab5c8; font-size: .95rem; flex-wrap: wrap; }
.hero-facts strong { display: block; font: 600 1.6rem/1.1 var(--serif); color: var(--gold-2); }

/* Документът‑извлечение в hero */
.deed {
	position: relative; background: #fdfcf8; color: var(--ink); border-radius: 4px; padding: 26px 26px 22px;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); transform: rotate(-1.2deg);
	background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(20, 35, 63, .055) 31px 32px);
}
.deed__head { font: 600 .82rem var(--sans); color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 14px; display: flex; justify-content: space-between; }
.deed__name { font: 600 1.45rem/1.2 var(--serif); color: var(--navy); margin-bottom: 12px; }
.deed dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.deed dt { color: var(--muted); }
.deed dd { margin: 0; }
.deed__stamp {
	position: absolute; right: 14px; bottom: -34px; width: 122px; height: 122px; border-radius: 50%;
	border: 3px solid rgba(176, 138, 53, .85); color: rgba(176, 138, 53, .9);
	display: grid; place-items: center; font: 600 .66rem/1.25 var(--sans); text-align: center; transform: rotate(-14deg); letter-spacing: .02em;
	box-shadow: inset 0 0 0 5px #fdfcf8, inset 0 0 0 6.5px rgba(176, 138, 53, .7);
	background: rgba(253, 252, 248, .7);
	animation: stamp .55s cubic-bezier(.2, 1.4, .4, 1) .5s both;
}
.deed__stamp b { display: block; font: 700 1.5rem/1 var(--serif); }
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.8); } to { opacity: 1; transform: rotate(-14deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .deed__stamp { animation: none; } }

@media (max-width: 900px) {
	.hero__in { grid-template-columns: 1fr; gap: 40px; padding-block: 40px 56px; }
	.deed { max-width: 460px; transform: rotate(-.6deg); margin-right: 14px; }
	.deed__stamp { width: 98px; height: 98px; right: 6px; bottom: -30px; font-size: .58rem; }
	.deed__stamp b { font-size: 1.2rem; }
}

/* ---------- Секции ---------- */
.section { padding: 64px 0; }
.section--mist { background: var(--mist); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: 6px 0 0; color: var(--slate); max-width: 46em; }

/* Градове */
.cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.city {
	display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
	padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
	text-decoration: none; color: var(--ink); transition: border-color .15s;
}
.city:hover { border-color: var(--navy-3); }
.city strong { font-weight: 600; color: var(--navy); }
.city span { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.city--big { padding: 20px 18px; }
.city--big strong { font: 600 1.3rem var(--serif); }
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.letters a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; font-weight: 600; color: var(--navy); }
.letters a:hover { border-color: var(--gold-2); background: var(--gold-soft); }
.letter-group { margin-bottom: 28px; }
.letter-group h3 { font-size: 1.5rem; color: var(--gold); margin-bottom: 10px; }

/* Инструменти на началната страница */
.tools { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.tool { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--paper); display: flex; flex-direction: column; }
.tool h3 { margin-bottom: .3em; }
.tool p { color: var(--slate); }
.tool .btn { margin-top: auto; align-self: flex-start; }
.tool--navy { background: var(--navy); border-color: var(--navy); color: #d5dbe6; }
.tool--navy h3 { color: #fff; }
.tool--navy p { color: #b8c2d3; }
@media (max-width: 900px) { .tools { grid-template-columns: 1fr; } }

/* Как работи — стъпки (реална последователност) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 52px; position: relative; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--gold-2); color: var(--gold-ink); display: grid; place-items: center; font: 600 1.1rem var(--serif); }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--slate); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 22px; } }

/* ---------- Списък с нотариуси ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.layout--rev { grid-template-columns: minmax(0, 1fr) 330px; }
@media (max-width: 1020px) { .layout, .layout--rev { grid-template-columns: 1fr; } }

.page-head { padding: 10px 0 26px; }
.page-head h1 { margin: 12px 0 .3em; }
.page-head__lead { color: var(--slate); font-size: 1.08rem; max-width: 46em; }
.summary { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--slate); font-size: .95rem; margin-top: 10px; }
.summary b { color: var(--navy); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--mist); margin-bottom: 16px; position: sticky; top: 80px; z-index: 5; }
.filters input[type="search"], .filters select { min-height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; font: 400 .97rem var(--sans); background: var(--paper); color: var(--ink); }
.filters input[type="search"] { flex: 1 1 200px; min-width: 0; }
.chk { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); cursor: pointer; font-size: .95rem; user-select: none; }
.chk input { accent-color: var(--navy); width: 17px; height: 17px; }
.filters__count { margin-left: auto; color: var(--slate); font-size: .92rem; }
@media (max-width: 700px) { .filters { position: static; } .filters__count { margin-left: 0; width: 100%; } }

.hoods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.hoods a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .93rem; background: var(--paper); }
.hoods a:hover, .hoods a[aria-current] { border-color: var(--navy-3); color: var(--navy); background: var(--mist); }
.hoods a span { color: var(--muted); }

.list { display: grid; gap: 10px; }
.card {
	display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: start;
	padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
	transition: border-color .15s;
}
.card:hover { border-color: #b9c3d3; }
.card__title { font: 600 1.18rem/1.25 var(--serif); margin: 0 0 4px; }
.card__title a { color: var(--navy); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card__no { color: var(--muted); font: 500 .88rem var(--sans); margin-left: 6px; }
.card__addr { color: var(--slate); margin: 0 0 8px; font-size: .97rem; }
.card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; position: relative; z-index: 1; }
.card__phone { font-weight: 600; text-decoration: none; color: var(--navy); white-space: nowrap; }
.card__km { color: var(--muted); font-size: .88rem; }
.card[hidden] { display: none; }
@media (max-width: 640px) {
	.card { grid-template-columns: auto minmax(0, 1fr); }
	.card__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
}

/* Карта */
.map { height: 420px; border-radius: var(--r); border: 1px solid var(--line); background: var(--mist); overflow: hidden; }
.map--sticky { position: sticky; top: 90px; height: calc(100vh - 120px); max-height: 720px; }
.map-load { display: grid; place-items: center; height: 100%; text-align: center; padding: 20px; color: var(--slate); }
.leaflet-popup-content a { font-weight: 600; }
@media (max-width: 1020px) { .map--sticky { position: static; height: 360px; } }

/* ---------- Профил ---------- */
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: center; padding: 18px 0 28px; }
.profile-head h1 { margin: 0 0 6px; }
.profile-head__role { font-size: 1.08rem; color: var(--slate); margin: 0 0 12px; }
.profile-head__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-src { display: block; margin-top: 8px; font-size: .78rem; color: var(--muted); text-align: center; max-width: 112px; }
@media (max-width: 640px) { .profile-head { grid-template-columns: 1fr; gap: 14px; } .seal--lg { --s: 92px; } }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 30px; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 34px; background: var(--paper); }
.facts > div { padding: 16px 18px; border-right: 1px solid var(--line); }
.facts > div:last-child { border-right: 0; }
.facts dt { color: var(--muted); font-size: .86rem; margin-bottom: 4px; }
.facts dd { margin: 0; font: 600 1.15rem/1.25 var(--serif); color: var(--navy); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(2) { border-right: 0; } .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

.prose { max-width: 70ch; }
.prose p { margin-bottom: 1.05em; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0 1.5em; font-size: .96rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; vertical-align: top; }
.block { margin: 0 0 40px; }
.block > h2 { font-size: 1.5rem; }

.panel { border: 1px solid var(--line); border-radius: var(--r); padding: 20px; background: var(--paper); margin-bottom: 18px; }
.panel h2, .panel h3 { font-size: 1.18rem; margin-bottom: .6em; }
.panel--gold { background: var(--gold-soft); border-color: #eadbb8; }
.panel--navy { background: var(--navy); border-color: var(--navy); color: #d5dbe6; }
.panel--navy h2, .panel--navy h3 { color: #fff; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.contact-list svg { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.contact-list a { word-break: break-word; }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 600; color: var(--navy); }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status--open { color: var(--ok); }
.status--open .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.status--closed { color: var(--warn); }
.status--closed .dot { background: var(--warn); }

.map-embed { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--mist) center / cover; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-embed__btn { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(135deg, #eef1f6, #e2e7ef); cursor: pointer; font: 600 1rem var(--sans); color: var(--navy); }
.map-embed__btn span { display: inline-flex; gap: 8px; align-items: center; background: var(--paper); padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow); }

.district { columns: 2; column-gap: 24px; padding: 0; list-style: none; margin: 0; }
.district li { padding: 4px 0; break-inside: avoid; }

.assistants { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.assistants li { display: flex; gap: 12px; align-items: center; }
.assistants small { display: block; color: var(--muted); }

.sources { color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 30px; }

/* Цени */
.prices__table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.prices__table th, .prices__table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prices__table thead th { font-size: .86rem; color: var(--muted); font-weight: 500; }
.prices__table tbody th { font-weight: 500; }
.prices__table tbody th small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.prices__table td { white-space: nowrap; text-align: right; }
.prices__table thead th:not(:first-child) { text-align: right; }
.prices__note { color: var(--slate); font-size: .9rem; margin-top: 12px; }

/* Калкулатор */
.calc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); overflow: hidden; }
.calc__tabs { display: flex; border-bottom: 1px solid var(--line); background: var(--mist); }
.calc__tabs button { flex: 1; border: 0; background: none; padding: 14px 10px; font: 600 .97rem var(--sans); color: var(--slate); cursor: pointer; border-bottom: 3px solid transparent; }
.calc__tabs button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold-2); background: var(--paper); }
.calc__body { padding: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.calc label { display: block; font-weight: 500; margin-bottom: 6px; }
.calc input[type="number"], .calc select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; font: 500 1.1rem var(--sans); color: var(--ink); background: var(--paper); }
.calc__field { margin-bottom: 16px; }
.calc__hint { color: var(--muted); font-size: .86rem; margin-top: 4px; }
.calc__out { background: var(--navy); color: #d5dbe6; border-radius: var(--r); padding: 20px; }
.calc__out dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; }
.calc__out dt { color: #aab5c8; }
.calc__out dd { margin: 0; text-align: right; color: #fff; font-weight: 600; }
.calc__total { border-top: 1px solid rgba(255, 255, 255, .18); margin-top: 12px; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; }
.calc__total strong { font: 600 1.9rem var(--serif); color: var(--gold-2); }
.calc__fine { font-size: .82rem; color: #9fabbf; margin: 12px 0 0; }
@media (max-width: 760px) { .calc__body { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin: 0 0 40px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; font-weight: 600; color: var(--navy); position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.5rem var(--sans); color: var(--gold); }
.faq__item[open] summary::after { content: "−"; }
.faq__a { padding: 0 0 14px; color: var(--ink); }

/* Отзиви */
.reviews-sum { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.reviews-sum__avg { font: 600 2.6rem/1 var(--serif); color: var(--navy); }
.reviews-sum .stars { font-size: 1.3rem; }
.review-list { list-style: none; margin: 0 0 26px; padding: 0; }
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.review--reply { margin-left: 26px; border-left: 3px solid var(--gold-2); padding-left: 14px; border-bottom: 0; }
.review .children { list-style: none; padding: 0; }
.review__head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.review__head time { color: var(--muted); font-size: .88rem; }
.review__svc { margin: 4px 0 0; color: var(--slate); font-size: .9rem; }
.review__pending { color: var(--warn); font-size: .9rem; }
.review__text p { margin: 8px 0 0; }
.comment-respond { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--mist); }
.comment-respond h3 { margin-top: 0; }
.comment-form label { display: block; font-weight: 500; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form textarea, .comment-form select { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; font: 400 1rem var(--sans); background: var(--paper); }
.comment-form-url { display: none; }
.rate { border: 0; padding: 0; margin: 0 0 14px; }
.rate legend { font-weight: 500; margin-bottom: 6px; padding: 0; }
.rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate__stars label { font-size: 2rem; color: var(--line); cursor: pointer; line-height: 1; padding: 0 2px; }
.rate__stars input:checked ~ label, .rate__stars label:hover, .rate__stars label:hover ~ label { color: var(--gold-2); }
.rate__stars input:focus-visible + label { outline: 3px solid var(--gold-2); border-radius: 4px; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* Формуляри */
.form p { margin: 0 0 14px; }
.form label { display: block; font-weight: 500; margin-bottom: 6px; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px; font: 400 1rem var(--sans); background: var(--paper); color: var(--ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__consent label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.notice { padding: 14px 16px; border-radius: var(--r-sm); margin-bottom: 18px; }
.notice--ok { background: var(--ok-soft); color: var(--ok); }
.notice--info { background: var(--gold-soft); color: var(--gold-ink); }

/* Статии */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--paper); }
.post-card__img { aspect-ratio: 16 / 9; background: var(--mist); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 18px; }
.post-card h3 { font-size: 1.15rem; margin-bottom: .4em; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { text-decoration: underline; }
.post-card p { color: var(--slate); font-size: .96rem; margin: 0; }
.post-meta { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.toc { background: var(--mist); border-radius: var(--r); padding: 16px 20px; margin: 0 0 26px; }
.toc strong { display: block; margin-bottom: 6px; color: var(--navy); }
.toc ol { margin: 0; padding-left: 1.2em; }
.answer-box { border-left: 4px solid var(--gold-2); background: var(--gold-soft); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 0 0 24px; }
.answer-box strong { color: var(--gold-ink); }

/* Реклама */
.ad { margin: 26px 0; text-align: center; min-height: 100px; }
.ad__label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 4px; }

/* Футър */
.site-footer { background: var(--navy); color: #aeb8c9; margin-top: 70px; font-size: .95rem; }
.site-footer a { color: #d9dfe9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-block: 54px 30px; }
.footer-grid h2 { color: #fff; font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand svg { height: 46px; width: auto; margin-bottom: 14px; }
.footer-brand svg text:first-of-type { fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; color: #8b97ab; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Помощни */
.mt0 { margin-top: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.empty { padding: 30px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); color: var(--slate); }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; padding: 0 10px; }
.pagination .current { background: var(--navy); color: #fff; border-color: var(--navy); }

@media print {
	.site-header, .site-footer, .ad, .filters, .actions, .comment-respond, .map, .map-embed { display: none !important; }
}

.seal--photo img { font-size: 0; color: transparent; }
.map-embed__btn svg, .map-load svg { width: 20px; height: 20px; }
.faq h2 { font-size: 1.5rem; }
.input { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; font: 400 1rem var(--sans); background: var(--paper); }

/* =========================================================
   Нови модули (етап 4)
   ========================================================= */
.link-btn { border: 0; background: none; padding: 4px 0; font: 500 .9rem var(--sans); color: var(--navy-3); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.link-btn[aria-pressed="true"] { color: var(--ok); text-decoration: none; }
.btn[aria-pressed="true"] { border-color: var(--ok); color: var(--ok); }

/* Банер за празници */
.holiday { background: var(--gold-soft); border-bottom: 1px solid #eadbb8; color: var(--gold-ink); font-size: .95rem; }
.holiday .wrap { padding-block: 10px; }

/* Инструмент „кой нотариус за имота“ */
.imot-strip { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.imot-strip h2 { font-size: 1.55rem; }
.imot-strip p { color: var(--slate); margin: 0; }
.tool__label { display: block; font-weight: 600; color: var(--navy); }
.tool__results { margin-top: 14px; display: grid; gap: 10px; }
.imot-res { border: 1px solid var(--line); border-left: 4px solid var(--gold-2); border-radius: var(--r-sm); padding: 14px 16px; background: var(--paper); }
.imot-res__head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 6px; }
.imot-res__head strong { font: 600 1.15rem var(--serif); color: var(--navy); }
.imot-res p { margin: 0 0 10px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; color: var(--slate); font-size: .95rem; }
.chips-row a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); text-decoration: none; color: var(--ink); }
.chips-row a:hover { border-color: var(--navy-3); }
@media (max-width: 860px) { .imot-strip { grid-template-columns: 1fr; gap: 18px; padding: 20px; } }

/* Чеклисти */
.checklist { display: grid; gap: 16px; }
.checklist__group { border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px 12px; margin: 0; background: var(--paper); }
.checklist__group legend { font: 600 1.05rem var(--serif); color: var(--navy); padding: 0 6px; }
.checklist__item { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--mist); cursor: pointer; }
.checklist__item:last-child { border-bottom: 0; }
.checklist__item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ok); }
.checklist__item input:checked + span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.checklist__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.checklist__progress { margin-right: auto; font-weight: 600; color: var(--ok); }

/* Речник */
.glossary { margin: 0; display: grid; gap: 0; }
.glossary > div { padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.glossary > div:target { background: var(--gold-soft); margin-inline: -12px; padding-inline: 12px; border-radius: var(--r-sm); }
.glossary dt { font: 600 1.1rem var(--serif); color: var(--navy); margin-bottom: 4px; }
.glossary dd { margin: 0; }

/* Хоризонтални ленти (статистика, подоценки) */
.bars { display: grid; gap: 8px; }
.bars__row { display: grid; grid-template-columns: 150px 1fr 48px; gap: 12px; align-items: center; font-size: .95rem; }
.bars__row b { text-align: right; color: var(--navy); }
.bars__bar { height: 12px; border-radius: 6px; background: var(--mist); position: relative; overflow: hidden; }
.bars__bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--navy-3); border-radius: 6px; }
.bars--sub { margin: 0 0 20px; max-width: 460px; }
.bars--sub .bars__bar::before { background: var(--gold-2); }
@media (max-width: 560px) { .bars__row { grid-template-columns: 110px 1fr 40px; } }

/* Транспорт */
.transit { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.transit li { display: flex; gap: 10px; align-items: center; }
.tr { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--navy-3); color: #fff; font: 700 .78rem var(--sans); flex: none; }
.tr--m { background: #c8102e; border-radius: 50%; }
.tr--xs { width: 16px; height: 16px; font-size: .6rem; margin-right: 2px; }

/* Лента „Запазени“ */
.savebar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60; display: flex; gap: 14px; align-items: center; background: var(--navy); color: #fff; padding: 10px 14px 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.savebar .link-btn { color: #c5cedd; }

/* Сравнение */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 16px; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--mist); }
.compare thead th a { display: block; font: 600 1.02rem var(--serif); color: var(--navy); margin: 8px 0 2px; text-decoration: none; }
.compare tbody th { color: var(--slate); font-weight: 500; width: 170px; }

/* Отзиви — подоценки */
.subrate { border: 0; padding: 0; margin: 0 0 14px; }
.subrate legend { font-weight: 500; margin-bottom: 4px; padding: 0; }
.subrate__row { display: flex; align-items: center; justify-content: space-between; max-width: 340px; }
.rate__stars--sm label { font-size: 1.35rem; }
.review__subs { margin: 4px 0 0; font-size: .88rem; color: var(--slate); }

/* Партньори, промени */
.partner { position: relative; }
.partner__label { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 4px; }
.changes { list-style: none; padding: 0; margin: 0; }
.changes li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.changes .tag { margin-right: 6px; }

@media print {
	.checklist__actions, .savebar, .holiday, .crumbs, aside { display: none !important; }
	.layout { display: block; }
	.checklist__group { break-inside: avoid; }
}

/* ---- Статии (v1.2) ---- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1em 0 .4em; }
.table-scroll table { margin: 0; }
.fee-table th[scope="row"] { font-weight: 600; white-space: nowrap; }
.fee-table__note { color: var(--muted); font-size: .88rem; margin-bottom: 1.4em; }
.callout { border-left: 4px solid var(--navy-3); background: var(--mist); padding: 14px 18px; border-radius: 0 var(--r-sm) var(--r-sm) 0; margin: 1.2em 0 1.4em; }
.callout strong:first-child { display: block; color: var(--navy); margin-bottom: 4px; font-family: var(--serif); }
.callout--warn { border-left-color: var(--gold-2); background: var(--gold-soft); }
.callout--warn strong:first-child { color: var(--gold-ink); }
.checkcard { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin: 1.2em 0 1.4em; text-decoration: none; background: var(--paper); color: var(--ink, #1b2333); }
.checkcard:hover { border-color: var(--gold-2); text-decoration: none; }
.checkcard__icon { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; font-weight: 700; }
.checkcard strong { display: block; color: var(--navy); }
.checkcard small { color: var(--muted); }
.link-grid { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 1em 0 1.4em; }
.link-grid li { margin: 0 !important; }
.link-grid a { display: block; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; background: var(--paper); }
.link-grid a:hover { border-color: var(--navy-3); }
.art-sources { margin-top: 28px; }
.art-sources h2 { font-size: 1.15rem; }
.art-sources ul { color: var(--slate); font-size: .94rem; padding-left: 1.2em; }
.art-related { margin-top: 44px; }
.art-links { list-style: none; padding: 0; margin: 0; }
.art-links li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.art-links li:last-child { border-bottom: 0; }
.art-links a { text-decoration: none; }
.art-links a:hover { text-decoration: underline; }
.prose .calc { margin: 1.4em 0; }
.layout > * { min-width: 0; }
.art-cover { margin: 0 0 26px; } .art-cover img { width: 100%; height: auto; border-radius: var(--r); display: block; }
