/* Училищата.бг: нов облик. Mobile-first: основата е за телефон, @media (min-width) добавя таблет и компютър. */

:root {
  --ink: #0d1530;
  --ink-2: #29324f;
  --muted: #5a6380;
  --faint: #8b93a9;
  --line: #e1e5ef;
  --line-2: #ebeef5;
  --bg: #f3f5fa;
  --surface: #fff;
  --surface-2: #f6f8fc;

  --brand: #2448d8;
  --brand-700: #1a37ad;
  --brand-50: #eef2ff;
  --brand-100: #dce4ff;
  --gold: #f2a516;
  --gold-50: #fff5dd;
  --gold-ink: #8a5300;

  --t1: #2448d8; --t1-50: #eef2ff;
  --t2: #0e9f6e; --t2-50: #e3f6ee;
  --t3: #d9822b; --t3-50: #fdf0e3;
  --t4: #d93f6a; --t4-50: #fdebf0;
  --t5: #7a4fd8; --t5-50: #f1ebfd;
  --t6: #0b8fa3; --t6-50: #e1f4f7;

  --r-xs: 8px; --r-sm: 12px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(13, 21, 48, .05);
  --sh-2: 0 1px 2px rgba(13, 21, 48, .05), 0 12px 30px -16px rgba(13, 21, 48, .25);
  --sh-3: 0 30px 70px -24px rgba(5, 10, 30, .55);

  --f-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-disp: "Unbounded", "Onest", system-ui, sans-serif;

  --hdr-h: 64px;
  --hdr-vis: var(--hdr-h);
  --tabbar-h: 64px;
  --gut: 16px;
}

/* Кирилица: без локализираните (наклонени) форми, иначе „д“ излиза като „g“ */
*, *::before, *::after { box-sizing: border-box; font-feature-settings: "locl" 0 !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }
body {
  margin: 0;
  font: 400 16px/1.55 var(--f-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.sheet-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
:focus-visible { outline: 3px solid rgba(36, 72, 216, .45); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--brand-100); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i--sm { width: 16px; height: 16px; }
.i--lg { width: 24px; height: 24px; }
.i--fill { fill: currentColor; stroke: none; }

/* ---------- Бутони, чипове, значки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1.1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .15s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 10px 20px -12px rgba(36, 72, 216, .9); }
.btn--primary:hover { background: var(--brand-700); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1c2747; }
.btn--soft { background: var(--brand-50); color: var(--brand-700); }
.btn--soft:hover { background: var(--brand-100); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: #c9d0e0; background: var(--surface-2); }
.btn--gold { background: var(--gold); color: #2b1a00; }
.btn--gold:hover { background: #e39806; }
.btn--light { background: #fff; color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .2); }
.btn--glass:hover { background: rgba(255, 255, 255, .18); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn .i { width: 18px; height: 18px; }

.icon-btn {
  width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center;
  border-radius: 999px; border: 0; background: transparent; color: var(--ink); text-decoration: none;
  transition: background-color .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn--line { border: 1px solid var(--line); background: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
a.chip:hover, button.chip:hover { border-color: #c4cbe0; color: var(--ink); }
.chip.is-on, .chip[aria-selected="true"], .chip[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #e4e9ff; }
a.chip--glass:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; }
.chip--sm { min-height: 30px; padding: 0 11px; font-size: 13px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px;
  border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; white-space: nowrap;
}
.badge .i { width: 13px; height: 13px; }
.badge--vip { background: var(--gold-50); color: var(--gold-ink); box-shadow: inset 0 0 0 1px #f6dc9d; }
.badge--vip .i { color: var(--gold); }

.ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--t1-50); color: var(--t1); }
.ico .i { width: 20px; height: 20px; }
.ico--t2 { background: var(--t2-50); color: var(--t2); }
.ico--t3 { background: var(--t3-50); color: var(--t3); }
.ico--t4 { background: var(--t4-50); color: var(--t4); }
.ico--t5 { background: var(--t5-50); color: var(--t5); }
.ico--t6 { background: var(--t6-50); color: var(--t6); }
.ico--lg { width: 48px; height: 48px; border-radius: 14px; }
.ico--lg .i { width: 24px; height: 24px; }

.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-1); }

/* Логата на обектите: винаги цели, на бял фон */
.logo-box { display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.logo-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* ---------- Горна лента ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}
.hdr.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(13, 21, 48, .5); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { display: flex; align-items: center; gap: 8px; height: var(--hdr-h); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; margin-right: auto; }
.brand__mark { width: 42px; height: 44px; flex: none; overflow: hidden; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgba(13, 21, 48, .45); background: #e9e4d8; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.24); filter: sepia(.25) contrast(1.05); }
.brand__txt { display: grid; line-height: 1.1; min-width: 0; }
.brand__txt b { font: 600 17px/1.1 var(--f-disp); letter-spacing: -.01em; white-space: nowrap; }
.brand__txt b span { color: var(--brand); }
.brand__txt small { font-size: 11.5px; font-weight: 500; color: var(--muted); margin-top: 3px; white-space: nowrap; }

.nav { display: none; }
.nav a, .nav button {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 0; background: transparent; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.nav a:hover, .nav button:hover { background: var(--surface-2); color: var(--ink); }
.nav [aria-current="page"], .nav button[aria-expanded="true"] { background: var(--brand-50); color: var(--brand-700); }
.nav .i { width: 16px; height: 16px; }
.nav button[aria-expanded="true"] .i { transform: rotate(180deg); }
.nav .i { transition: transform .2s; }

.hdr__act { display: flex; align-items: center; gap: 4px; }
.hdr__search, .hdr__login { display: none; }

@media (min-width: 768px) {
  :root { --gut: 24px; --hdr-h: 72px; }
  .hdr__search { display: inline-grid; }
  .hdr__login { display: inline-flex; }
  .brand__mark { width: 46px; height: 48px; }
  .brand__txt b { font-size: 19px; }
  .brand__txt small { font-size: 12px; }
}
@media (min-width: 1140px) {
  .nav { display: flex; align-items: center; gap: 2px; margin-right: 8px; }
  .hdr__menu { display: none; }
}
@media (min-width: 1240px) { :root { --gut: 32px; } }

/* ---------- Долна лента (телефон) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -24px rgba(13, 21, 48, .5);
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 0; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tabbar .i { width: 23px; height: 23px; }
.tabbar [aria-current="page"], .tabbar [aria-expanded="true"] { color: var(--brand); }
@media (min-width: 768px) {
  .tabbar { display: none; }
}

/* ---------- Листове (търсене, категории, меню) ---------- */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-end; justify-content: center; }
.sheet__bg { position: absolute; inset: 0; background: rgba(8, 12, 30, .52); animation: fade .22s ease both; }
.sheet__panel {
  position: relative; width: 100%; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 24px 24px 0 0; padding: 0 var(--gut) calc(24px + env(safe-area-inset-bottom));
  animation: sheet-up .32s cubic-bezier(.2, .8, .2, 1) both;
  box-shadow: var(--sh-3);
}
.sheet.is-closing .sheet__bg { animation: fade .18s ease reverse both; }
.sheet.is-closing .sheet__panel { animation: sheet-up .18s ease-in reverse both; }
.sheet__head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0 12px; background: #fff;
}
.sheet__head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line); }
.sheet__title { font: 600 18px/1.2 var(--f-disp); }
.sheet__sub { margin: 18px 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

.sheet--side { justify-content: flex-end; align-items: stretch; }
.sheet--side .sheet__panel { width: min(88vw, 400px); max-height: none; height: 100%; border-radius: 24px 0 0 24px; animation-name: slide-in; }
.sheet--side.is-closing .sheet__panel { animation-name: slide-in; }
.sheet--side .sheet__head::before { display: none; }

@media (min-width: 1024px) {
  .sheet--drop { align-items: flex-start; }
  .sheet--drop .sheet__panel {
    width: calc(100% - 48px); max-width: 780px; max-height: calc(100dvh - var(--hdr-h) - 40px);
    margin-top: calc(var(--hdr-h) + 12px); border-radius: var(--r-xl); padding: 0 28px 28px;
    animation-name: drop;
  }
  .sheet--drop.is-closing .sheet__panel { animation-name: drop; }
  #p-search .sheet__panel { overflow: visible; }
  .sheet--drop .sheet__head::before { display: none; }
  .sheet--mega .sheet__panel { max-width: 1180px; }
}

.mnav { display: grid; gap: 2px; }
.mnav a {
  display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 12px; border-radius: 14px;
  color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none;
}
.mnav a:hover { background: var(--surface-2); }
.mnav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-700); }
.mnav .i { color: var(--muted); }
.mnav a[aria-current="page"] .i { color: var(--brand); }
.mnav__ext { margin-left: auto; width: 16px; height: 16px; }
.mmeta { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border-radius: var(--r); background: var(--surface-2); font-size: 14.5px; }
.mmeta a { color: var(--ink); font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.mmeta .i { color: var(--brand); }

/* ---------- Дървото на категориите ---------- */
.tree { list-style: none; margin: 0; padding: 0; }
.tree__row { display: flex; align-items: center; gap: 2px; }
.tree__a {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 5px 8px;
  border-radius: 14px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; line-height: 1.25;
}
.tree__a:hover { background: var(--surface-2); }
.tree__a .ico { width: 34px; height: 34px; border-radius: 10px; }
.tree__a .ico .i { width: 18px; height: 18px; }
.tree__a[aria-current] { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.tree__tg { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--muted); }
.tree__tg:hover { background: var(--surface-2); }
.tree__tg .i { transition: transform .22s; }
.tree__tg[aria-expanded="true"] .i { transform: rotate(180deg); }
.tree__sub { list-style: none; margin: 0 0 6px 25px; padding: 2px 0 2px 21px; border-left: 2px solid var(--line-2); }
.tree__sub a { display: block; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.tree__sub a:hover { background: var(--surface-2); color: var(--ink); }
.tree__sub a[aria-current] { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }

@media (min-width: 1024px) {
  .sheet--mega .tree { columns: 3; column-gap: 28px; }
  .sheet--mega .tree > li { break-inside: avoid; }
  .sheet--mega .tree__tg { display: none; }
  .sheet--mega .tree__sub[hidden] { display: block !important; }
}

/* ---------- Търсачката ---------- */
.finder { background: #fff; border-radius: var(--r-lg); padding: 8px; box-shadow: var(--sh-3); color: var(--ink); text-align: left; }
.finder--flat { box-shadow: none; padding: 0; background: transparent; }
.finder__q {
  display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.finder__q:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(36, 72, 216, .12); }
.finder__q > .i { color: var(--muted); }
.finder__q input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; font-size: 16px; outline: none; }
.finder__q input::placeholder { color: var(--faint); }
.finder__q .btn { min-height: 46px; padding: 0 18px; border-radius: 14px; }
.finder__f { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
.finder__or { display: none; }
@media (min-width: 640px) {
  .finder { padding: 10px; }
  .finder__f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder__q .btn { padding: 0 26px; }
}

.fsel { position: relative; }
.fsel > label, .fsel > .fsel__label {
  position: absolute; left: 15px; top: 9px; z-index: 1; pointer-events: none;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted);
}
.fsel select, .combo__input {
  width: 100%; height: 58px; padding: 24px 42px 6px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: 16px; font-weight: 500; color: var(--ink);
  appearance: none; -webkit-appearance: none; outline: none; text-overflow: ellipsis;
  transition: border-color .2s, box-shadow .2s;
}
.fsel select:focus, .combo__input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(36, 72, 216, .12); }
.fsel::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.combo { position: relative; }
.combo__input::placeholder { color: var(--ink); opacity: 1; }
.combo__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  max-height: min(320px, 46dvh); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-2);
}
@media (max-width: 1023px) { .sheet .combo__list { position: static; margin-top: 6px; max-height: 38dvh; box-shadow: none; } }
.combo__list li { padding: 11px 12px; border-radius: 10px; font-size: 15px; cursor: pointer; }
.combo__list li[aria-selected="true"], .combo__list li:hover { background: var(--brand-50); color: var(--brand-700); }
.combo__list .combo__empty { color: var(--muted); cursor: default; background: none !important; }
.combo__list mark { background: none; color: inherit; font-weight: 700; }

.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchips__label { width: 100%; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------- Начало: герой ---------- */
/* Светъл фон с фини точки, цветни петна в цветовете на сайта, които бавно се движат, и тънка орбита със златна точка.
   На широк екран встрани стоят карти с още категории (.hcat). Без рисунки, за всички възрасти. */
.hero {
  position: relative; overflow: hidden; color: var(--ink); isolation: isolate;
  background: linear-gradient(180deg, #e8f0ff 0%, #f1f5fd 62%, var(--bg) 100%);
  padding: 62px 0 96px;
}
.hero__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__deco::before { content: ""; position: absolute; inset: 0; background: var(--grid); -webkit-mask-image: radial-gradient(75% 70% at 50% 35%, #000 20%, transparent 80%); mask-image: radial-gradient(75% 70% at 50% 35%, #000 20%, transparent 80%); }
.horb { position: absolute; border-radius: 50%; animation: horb 18s ease-in-out infinite alternate; }
.horb--1 { width: 520px; height: 520px; left: -220px; top: -200px; background: radial-gradient(circle, rgba(92, 130, 255, .34) 0%, rgba(92, 130, 255, 0) 68%); }
.horb--2 { width: 460px; height: 460px; right: -200px; top: -170px; background: radial-gradient(circle, rgba(255, 196, 77, .36) 0%, rgba(255, 196, 77, 0) 68%); animation-duration: 22s; animation-delay: -7s; }
.horb--3 { width: 420px; height: 420px; right: 8%; bottom: -260px; background: radial-gradient(circle, rgba(14, 159, 110, .16) 0%, rgba(14, 159, 110, 0) 68%); animation-duration: 26s; animation-delay: -12s; }
.hring { position: absolute; left: 50%; top: 50%; width: 720px; height: 720px; margin: -400px 0 0 -360px; border-radius: 50%; border: 1px solid rgba(36, 72, 216, .12); animation: hspin 60s linear infinite; }
.hring::before { content: ""; position: absolute; inset: 70px; border-radius: 50%; border: 1px dashed rgba(36, 72, 216, .1); }
.hring::after { content: ""; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(242, 165, 22, .16); }
@keyframes hspin { to { transform: rotate(360deg); } }
@keyframes horb { from { translate: 0 0; } to { translate: 60px 40px; } }
@keyframes hfloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
/* картите с категории встрани */
.hero__cats { display: none; }
@media (min-width: 1280px) {
  .hero__cats { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .hero .hero__lead { max-width: 54ch; }
  .hcat { position: absolute; display: flex; align-items: center; gap: 12px; width: 196px; padding: 12px 14px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 2px 4px rgba(13, 21, 48, .04), 0 22px 40px -24px rgba(36, 72, 216, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--ink); text-decoration: none; pointer-events: auto; animation: hfloat 7s ease-in-out infinite; transition: box-shadow .25s, border-color .25s; }
  .hcat:hover { border-color: var(--brand-100); box-shadow: 0 2px 4px rgba(13, 21, 48, .04), 0 26px 46px -22px rgba(36, 72, 216, .6); }
  .hcat .ico { flex: none; }
  .hcat b { display: block; font-size: 14px; font-weight: 700; line-height: 1.25; }
  .hcat small { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; font-weight: 600; color: var(--brand); }
  .hcat small::after { content: "→"; transition: translate .2s; }
  .hcat:hover small::after { translate: 3px 0; }
  /* горните до заглавието, долните до числата: там текстът е по-тесен от търсачката */
  .hcat--12 { left: max(24px, calc(50% - 616px)); top: 150px; }
  .hcat--25 { left: max(24px, calc(50% - 616px)); top: 466px; animation-delay: -2.5s; }
  .hcat--30 { right: max(24px, calc(50% - 616px)); top: 112px; animation-delay: -1.2s; }
  .hcat--7 { right: max(24px, calc(50% - 616px)); top: 452px; animation-delay: -3.8s; }
}
.hero__in { position: relative; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 6px 16px -10px rgba(36, 72, 216, .35);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #34c77b; box-shadow: 0 0 0 4px rgba(52, 199, 123, .2); }
.hero h1 {
  font: 600 clamp(1.75rem, 1.05rem + 3.3vw, 3.4rem)/1.14 var(--f-disp); letter-spacing: -.025em; color: var(--ink);
  max-width: 21ch; margin: 16px auto 12px; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(90deg, var(--gold), #ffd166) no-repeat 0 96% / 100% .09em; }
.js .hero h1 em { animation: hline 1s cubic-bezier(.6, 0, .2, 1) .4s both; }
@keyframes hline { from { background-size: 0 .09em; } }
.hero__lead { max-width: 60ch; margin: 0 auto 22px; font-size: clamp(15px, 14px + .4vw, 18px); color: var(--ink-2); text-wrap: pretty; }
.hero .finder { max-width: 820px; margin-inline: auto; box-shadow: 0 2px 4px rgba(13, 21, 48, .05), 0 26px 50px -24px rgba(36, 72, 216, .45); border: 3px solid #fff; }
.hero .qchips { justify-content: center; margin-top: 18px; }
.hero .qchips__label { color: var(--muted); text-align: center; }
.hero .qchips .chip { background: #fff; box-shadow: 0 4px 12px -8px rgba(36, 72, 216, .4); }
.stats { list-style: none; margin: 26px auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 640px; }
.stats li { padding: 12px 6px; border-radius: 18px; background: #e6efff; }
.stats li:nth-child(2) { background: #e2f6ec; }
.stats li:nth-child(3) { background: #fff0dc; }
.stats b { display: block; font: 600 clamp(18px, 15px + 1vw, 26px)/1.1 var(--f-disp); color: var(--brand); }
.stats li:nth-child(2) b { color: #0e9f6e; }
.stats li:nth-child(3) b { color: #d9822b; }
.stats span { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-2); line-height: 1.3; }
@media (min-width: 768px) {
  .hero { padding: 46px 0 118px; }
  .stats { gap: 14px; }
  .stats span { font-size: 13.5px; }
  .hring { width: 960px; height: 960px; margin: -520px 0 0 -480px; }
  .hring::before { inset: 110px; }
  .horb--1 { width: 760px; height: 760px; left: -280px; top: -320px; }
  .horb--2 { width: 640px; height: 640px; right: -240px; top: -260px; }
  .horb--3 { width: 600px; height: 600px; bottom: -360px; }
}
/* ---------- Раздели ---------- */
.sec { padding: 36px 0; }
.sec--white { background: #fff; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec__title { font: 600 clamp(1.3rem, 1rem + 1.3vw, 2rem)/1.15 var(--f-disp); letter-spacing: -.015em; margin-top: 6px; }
.sec__sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; max-width: 62ch; }
.sec__more { display: none; }
@media (min-width: 768px) {
  .sec { padding: 64px 0; }
  .sec__head { margin-bottom: 26px; }
  .sec__more { display: inline-flex; }
}

/* ---------- Въртележки (Топ банери, Прием) ---------- */
.promo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 1024px) { .promo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.car { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 14px; min-width: 0; }
.car__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.car__title { display: flex; align-items: center; gap: 10px; font-size: 16.5px; font-weight: 700; }
.car__title small { font-size: 12px; font-weight: 600; color: var(--muted); }
.car__nav { margin-left: auto; display: flex; gap: 6px; }
.car__btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.car__btn:hover { background: var(--surface-2); }
.car__btn .i { width: 18px; height: 18px; }
.car__track {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 0; padding: 0; list-style: none;
}
.car__track::-webkit-scrollbar { display: none; }
.car__slide { scroll-snap-align: start; min-width: 0; position: relative; }
.slide__img { display: block; aspect-ratio: 485 / 170; border-radius: 14px; overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.slide__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.car__slide:hover .slide__img img { transform: scale(1.03); }
.slide__name { display: block; margin: 12px 0 4px; font-size: 15.5px; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; }
.slide__name::after { content: ""; position: absolute; inset: 0; }
.slide__text { margin: 0; font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide__go { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--brand-700); }
.slide__go .i { width: 15px; height: 15px; }
.car__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.car__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line); transition: width .25s, background-color .25s; }
.car__dots button[aria-current="true"] { width: 22px; background: var(--brand); }
@media (min-width: 640px) {
  .car { padding: 18px; }
  .car__track { grid-auto-columns: calc(50% - 6px); }
}
@media (min-width: 1024px) { .car__track { grid-auto-columns: 100%; } }
/* по-сбит вариант в категориите и търсенето */
.car--compact { padding: 12px; }
.car--compact .car__head { margin-bottom: 10px; }
.car--compact .car__title { font-size: 15px; }
.car--compact .car__slide { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 12px; align-items: center; }
.car--compact .slide__img { border-radius: 10px; }
.car--compact .slide__name { margin-top: 0; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.car--compact .slide__text { font-size: 13px; }
.car--compact .slide__go { display: none; }
.car--compact .car__dots { margin-top: 10px; }

/* ---------- Категории на началната страница ---------- */
.cx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.cx__list { list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.cx__item + .cx__item { border-top: 1px solid var(--line-2); }
.cx__row {
  display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 10px; border-radius: 14px;
  color: var(--ink); font-size: 15.5px; font-weight: 600; line-height: 1.25; text-decoration: none;
  -webkit-tap-highlight-color: transparent; transition: background-color .2s, color .2s;
}
.cx__row:hover { background: var(--surface-2); }
.cx__row > .i { margin-left: auto; color: var(--faint); transition: transform .25s; }
.cx__n { font-size: 12.5px; font-weight: 600; color: var(--faint); margin-left: auto; }
.cx__n + .i { margin-left: 4px; }
.cx__item.is-open > .cx__row > .i { transform: rotate(90deg); }
.cx__panel { padding: 4px 10px 18px 60px; }
.cx__stage { display: none; }

.cxp__head { display: none; }
.cxp__label { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.cxp__tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -10px 14px 0; padding: 2px 10px 2px 0; }
.cxp__tabs::-webkit-scrollbar { display: none; }
.cxp__feat { display: grid; gap: 12px; }
.cxp__lead { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); background: var(--surface-2); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.cxp__lead .logo-box { width: 92px; height: 60px; flex: none; padding: 4px; }
.cxp__list { list-style: none; margin: 0; padding: 0; }
.cxp__list a { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: 14.5px; text-decoration: none; line-height: 1.35; }
.cxp__list a:hover { color: var(--brand-700); }
.cxp__list a::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--brand-100); }
.cxp__all { margin-top: 4px; }

@media (min-width: 1024px) {
  .cx { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
  .cx__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; padding: 10px; }
  .cx__item + .cx__item { border-top: 0; }
  .cx__row { min-height: 54px; font-size: 15px; }
  .cx__item.is-active > .cx__row { background: var(--brand-50); color: var(--brand-700); }
  .cx__item.is-active > .cx__row > .i { color: var(--brand); transform: translateX(3px); }
  .cx__list .cx__panel { display: none !important; }
  .cx__stage {
    display: block; position: sticky; top: calc(var(--hdr-vis) + 20px); transition: top .32s;
    min-height: 460px; padding: 26px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-2);
  }
  .cx__stage .cx__panel { padding: 0; animation: fade-up .3s ease both; }
  .cx__stage .cxp__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
  .cx__stage .cxp__tabs { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
  .cxp__head h3 { font: 600 20px/1.2 var(--f-disp); }
  .cx__stage .cxp__feat { grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 20px; }
  .cx__stage .cxp__lead { flex-direction: column; align-items: stretch; text-align: center; padding: 14px; }
  .cx__stage .cxp__lead .logo-box { width: 100%; height: 120px; }
  .cx__stage .cxp__all { grid-column: 1 / -1; justify-self: start; }
  .cx__stage .cxp__list a:first-child { padding-top: 0; }
}

/* ---------- Препоръчани ---------- */
.rgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.rcard {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 12px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh-1);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.rcard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--brand-100); }
.rcard .logo-box { width: 104px; height: 64px; flex: none; padding: 6px; }
.rcard__body { min-width: 0; }
.rcard__name { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); text-decoration: none; }
.rcard__name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rcard__text { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rcard__ext { position: absolute; top: 10px; right: 10px; color: var(--faint); }
@media (min-width: 640px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) {
  .rgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .rcard { flex-direction: column; align-items: stretch; padding: 14px; }
  .rcard .logo-box { width: 100%; height: 108px; }
}

/* ---------- Новини ---------- */
.ngrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.ncard {
  position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--sh-1);
  transition: box-shadow .2s, transform .2s;
}
.ncard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.ncard__img { aspect-ratio: 120 / 82; border-radius: 10px; overflow: hidden; background: var(--brand-50); display: grid; place-items: center; color: var(--brand); }
.ncard__img img { width: 100%; height: 100%; object-fit: cover; grid-area: 1 / 1; }
.ncard__img .i { grid-area: 1 / 1; width: 28px; height: 28px; opacity: .6; }
.ncard:has(.is-empty) { grid-template-columns: 48px minmax(0, 1fr); align-items: start; }
.ncard__img.is-empty { width: 48px; height: 48px; aspect-ratio: auto; border-radius: 14px; }
.ncard__img.is-empty .i { width: 22px; height: 22px; opacity: 1; }
.nlist li:has(.is-empty) { grid-template-columns: 40px minmax(0, 1fr); }
.nlist .ncard__img.is-empty { width: 40px; height: 40px; border-radius: 12px; }
.ncard__src { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.ncard__t { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: .01em; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ncard__t::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
@media (min-width: 640px) { .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) {
  .ngrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .ncard { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 12px; }
  .ncard__body { padding: 2px 4px 4px; }
}

/* ---------- Полезно ---------- */
.useful { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: start; }
.ucard { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 0 16px; box-shadow: var(--sh-1); }
.ucard > summary { display: flex; align-items: center; gap: 12px; min-height: 60px; font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; }
.ucard > summary::-webkit-details-marker { display: none; }
.ucard > summary > .i { margin-left: auto; color: var(--faint); transition: transform .22s; }
.ucard[open] > summary > .i { transform: rotate(180deg); }
.ucard ul { list-style: none; margin: 0 0 12px; padding: 0; }
.ucard a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line-2); color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
.ucard a:hover { color: var(--brand-700); }
.ucard a .i { width: 15px; height: 15px; color: var(--faint); }
.ucard a.ucard__main { color: var(--brand-700); font-weight: 600; }
@media (min-width: 640px) { .useful { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) {
  .useful { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .ucard > summary { pointer-events: none; }
  .ucard > summary > .i { display: none; }
}

/* ---------- Покана към организациите ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 18px; padding: 26px 22px;
  border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(60% 90% at 100% 0%, rgba(52, 92, 255, .6), transparent 60%), linear-gradient(135deg, #111c3d, #0d1530);
}
.cta::after { content: "А Б В"; position: absolute; right: -10px; bottom: -36px; z-index: -1; font: 700 130px/1 var(--f-disp); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .08); white-space: nowrap; }
.cta h2 { font: 600 clamp(1.3rem, 1rem + 1.4vw, 2rem)/1.2 var(--f-disp); }
.cta p { margin: 8px 0 0; color: #c3cbe6; max-width: 56ch; }
.cta__act { display: flex; flex-wrap: wrap; gap: 10px; }
@media (min-width: 900px) {
  .cta { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 44px 48px; }
}

/* ---------- Лента „Препоръчваме“ ---------- */
.strip { padding: 0 0 36px; }
.strip__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.strip__label { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
@media (min-width: 768px) { .strip { padding-bottom: 56px; } .strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }

/* ---------- Долна част ---------- */
.ftr { background: #0b1229; color: rgba(255, 255, 255, .7); font-size: 14.5px; padding: 40px 0 0; }
.ftr a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.ftr a:hover { color: #fff; }
.ftr__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.ftr__brand { grid-column: 1 / -1; }
.ftr .brand { color: #fff; margin: 0 0 14px; }
.ftr .brand__txt small { color: rgba(255, 255, 255, .55); }
.ftr .brand__txt b span { color: #8ea5ff; }
.ftr__about { margin: 0; max-width: 42ch; line-height: 1.6; }
.ftr__social { display: flex; gap: 8px; margin-top: 16px; }
.ftr__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.ftr h3 { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.ftr__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr__links a { display: inline-flex; align-items: center; gap: 6px; }
.ftr__links .i { width: 14px; height: 14px; opacity: .6; }
.ftr__contact { grid-column: 1 / -1; }
.ftr__contact p { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.ftr__contact .i { color: #8ea5ff; width: 18px; height: 18px; }
.ftr__partners { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pgrid a { display: block; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); transition: background-color .2s; }
.pgrid a:hover { background: rgba(255, 255, 255, .08); }
.pgrid b { display: block; color: #fff; font-weight: 600; font-size: 14.5px; }
.pgrid span { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .55); margin-top: 2px; }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; padding: 20px 0 calc(24px + var(--tabbar-h) + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
@media (min-width: 768px) { .ftr__bottom { padding-bottom: 24px; } }
.ftr__copy { margin: 0; }
.ftr__by { display: flex; align-items: center; gap: 14px; }
.ftr__by img { height: 30px; width: auto; filter: brightness(2.2); opacity: .85; }
.totop { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #fff; }
.totop:hover { background: rgba(255, 255, 255, .08); }
@media (min-width: 768px) {
  .ftr { padding-top: 56px; }
  .ftr__top { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); }
  .ftr__brand { grid-column: auto; }
  .ftr__contact { grid-column: 2 / -1; }
  .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .ftr__top { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)) 1.3fr; }
  .ftr__contact { grid-column: auto; }
}

/* ---------- Бисквитки ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 12px); z-index: 70;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 760px; margin-inline: auto; padding: 14px 16px;
  background: var(--ink); color: #dfe4f5; border-radius: 18px; box-shadow: var(--sh-3); font-size: 13.5px; line-height: 1.45;
  animation: fade-up .4s ease both;
}
.cookie p { margin: 0; flex: 1 1 280px; }
.cookie a { color: #fff; font-weight: 600; }
@media (min-width: 768px) { .cookie { bottom: 20px; } }

/* ---------- Вътрешни страници ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; padding: 14px 0 4px; margin: 0; list-style: none; font-size: 13.5px; color: var(--muted); overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.crumbs::-webkit-scrollbar { display: none; }
.crumbs li { display: flex; align-items: center; gap: 6px; flex: none; }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-right: 1.6px solid var(--faint); border-top: 1.6px solid var(--faint); transform: rotate(45deg); margin-right: 4px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand-700); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.crumbs .i { width: 16px; height: 16px; }

.phead { padding: 10px 0 18px; }
.phead h1 { font: 600 clamp(1.45rem, 1.05rem + 1.8vw, 2.4rem)/1.15 var(--f-disp); letter-spacing: -.02em; }
.phead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 10px 0 0; color: var(--muted); font-size: 14.5px; }
.phead__meta b { color: var(--ink); }
.phead__lead { margin: 10px 0 0; color: var(--muted); max-width: 64ch; }

.subnav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px calc(var(--gut) * -1) 0; padding: 2px var(--gut); }
.subnav::-webkit-scrollbar { display: none; }
.subnav .chip { flex: none; }
.subnav .chip .i { width: 16px; height: 16px; }
@media (min-width: 1024px) { .subnav { display: none; } }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; padding: 18px 0 44px; }
.side { min-width: 0; }
.side--cats { display: none; }
.side__label { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.side__box { background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--sh-1); }
@media (min-width: 1024px) {
  .layout { grid-template-columns: 270px minmax(0, 1fr); gap: 24px; padding-top: 22px; }
  .side--cats { display: block; position: sticky; top: calc(var(--hdr-vis) + 16px); transition: top .32s; max-height: calc(100dvh - var(--hdr-vis) - 32px); overflow-y: auto; scrollbar-width: thin; }
  .side--cats .side__label { padding: 6px 8px 0; }
  .layout > .side--ads { grid-column: 2; }
}
@media (min-width: 1280px) {
  .layout--3 { grid-template-columns: 260px minmax(0, 1fr) 240px; }
  .layout--3 > .side--ads { grid-column: auto; position: sticky; top: calc(var(--hdr-vis) + 16px); transition: top .32s; }
}

.results__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.results__bar b { color: var(--ink); }

/* Карта на обект в списък */
.flist { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.fcard {
  position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px 14px; padding: 14px;
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.fcard:hover { box-shadow: var(--sh-2); border-color: var(--brand-100); transform: translateY(-1px); }
.fcard--vip { border-color: #f5e0ad; background: linear-gradient(180deg, #fffcf3, #fff 46%); }
.fcard__logo { width: 92px; height: 62px; padding: 5px; }
.fcard__head { min-width: 0; align-self: center; }
.fcard__name { margin: 0; font-size: 15.5px; font-weight: 700; line-height: 1.32; }
.fcard__name a { color: var(--ink); text-decoration: none; }
.fcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; }
.fcard:hover .fcard__name a { color: var(--brand-700); }
.fcard__head .badge { margin-top: 6px; }
.fcard__meta { grid-column: 1 / -1; display: grid; gap: 7px; font-size: 14px; color: var(--ink-2); }
.fcard__meta p { margin: 0; display: flex; gap: 9px; line-height: 1.45; }
.fcard__meta .i { width: 17px; height: 17px; margin-top: 2px; color: var(--faint); }
.tels { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tels a { position: relative; z-index: 1; color: var(--brand-700); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tels a:hover { text-decoration: underline; }
.fcard__go { display: none; }
@media (min-width: 640px) {
  .fcard { grid-template-columns: 156px minmax(0, 1fr) auto; grid-template-rows: auto 1fr; gap: 6px 20px; padding: 16px; }
  .fcard__logo { width: 156px; height: 100px; grid-row: 1 / span 2; padding: 8px; }
  .fcard__head { align-self: end; }
  .fcard__meta { grid-column: 2; align-self: start; margin-top: 6px; }
  .fcard__go { display: grid; place-items: center; grid-column: 3; grid-row: 1 / span 2; align-self: center; width: 40px; height: 40px; border-radius: 999px; background: var(--surface-2); color: var(--muted); transition: background-color .2s, color .2s, transform .2s; }
  .fcard:hover .fcard__go { background: var(--brand); color: #fff; transform: translateX(2px); }
}

.empty { padding: 40px 20px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--muted); }
.empty h2 { font: 600 18px/1.3 var(--f-disp); color: var(--ink); margin: 12px 0 6px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 10px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); }
.pager__info { padding-left: 6px; font-size: 14px; color: var(--muted); }
.pager__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pager a, .pager span.pg { min-width: 40px; height: 40px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.pager a:hover { background: var(--surface-2); }
.pager .pg[aria-current="page"] { background: var(--ink); color: #fff; }
.pager .is-off { color: var(--line); pointer-events: none; }
.pager .i { width: 18px; height: 18px; }
.pager__far { display: none !important; }
@media (min-width: 640px) { .pager__far { display: grid !important; } }

.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.adcard { position: relative; display: block; padding: 12px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); text-decoration: none; box-shadow: var(--sh-1); transition: box-shadow .2s, transform .2s; }
.adcard:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.adcard .logo-box { aspect-ratio: 190 / 80; border: 0; }
.adcard b { display: block; margin-top: 8px; font-size: 14px; color: var(--ink); line-height: 1.35; }
.adcard small { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; color: var(--brand-700); font-weight: 600; }
.adcard small .i { width: 13px; height: 13px; }
@media (min-width: 1280px) { .layout--3 .ads { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Профил на обект ---------- */
.prof { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "side" "main"; gap: 14px; padding: 12px 0 44px; }
.phero { grid-area: head; position: relative; overflow: hidden; padding: 0 16px 18px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.phero__cover {
  position: relative; overflow: hidden; height: 92px; margin: 0 -16px;
  background: radial-gradient(70% 140% at 100% 0%, rgba(52, 92, 255, .7), transparent 60%), linear-gradient(120deg, #0d1530, #17255a);
}
.phero__cover span { position: absolute; font: 700 120px/1 var(--f-disp); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .1); }
.phero__top { display: flex; align-items: flex-end; gap: 14px; margin-top: -46px; position: relative; }
.phero__logo { width: 128px; height: 92px; flex: none; padding: 8px; border-radius: 18px; box-shadow: var(--sh-2); }
.phero__cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.phero h1 { margin: 10px 0 8px; font: 600 clamp(1.25rem, 1rem + 1.5vw, 2rem)/1.2 var(--f-disp); letter-spacing: -.015em; overflow-wrap: anywhere; }
.phero__addr { display: flex; gap: 8px; margin: 0; color: var(--ink-2); font-size: 15px; }
.phero__addr .i { color: var(--brand); margin-top: 2px; }
.phero__act { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.phero__act .btn { padding: 0 12px; }
@media (min-width: 640px) {
  .phero { padding: 0 28px 26px; }
  .phero__cover { height: 120px; margin: 0 -28px; }
  .phero__top { margin-top: -58px; }
  .phero__logo { width: 190px; height: 124px; }
  .phero__act { display: flex; flex-wrap: wrap; }
}
@media (min-width: 1024px) {
  .prof { grid-template-columns: minmax(0, 1fr) 350px; grid-template-areas: "head head" "main side"; gap: 24px; }
}
.prof__main { grid-area: main; min-width: 0; }
.prof__side { grid-area: side; display: grid; gap: 14px; min-width: 0; align-content: start; }
@media (min-width: 1024px) { .prof__side { position: sticky; top: calc(var(--hdr-vis) + 16px); transition: top .32s; } }

.info { padding: 18px; }
.info h2, .box-t { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.info dl { margin: 0; display: grid; gap: 0; }
.info__row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--line-2); }
.info__row:first-child { border-top: 0; padding-top: 0; }
.info__row .ico { width: 38px; height: 38px; grid-row: span 2; border-radius: 11px; }
.info dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.info dd { margin: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.info dd a { color: var(--brand-700); font-weight: 600; text-decoration: none; }
.info dd a:hover { text-decoration: underline; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.kw .chip { cursor: default; background: var(--surface-2); border-color: transparent; white-space: normal; max-width: 100%; padding-top: 5px; padding-bottom: 5px; line-height: 1.35; overflow-wrap: anywhere; }
.kw.is-cut .chip:nth-child(n+7) { display: none; }
.kw__more { margin-top: 8px; border: 0; background: none; padding: 4px 0; color: var(--brand-700); font-weight: 600; font-size: 14px; }

.mapcard { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px; text-decoration: none; color: var(--ink); }
.mapcard img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; flex: none; }
.mapcard b { display: block; font-size: 15.5px; }
.mapcard span { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; color: var(--brand-700); font-weight: 600; font-size: 14px; }
.mapcard span .i { width: 15px; height: 15px; }
.mapcard:hover b { color: var(--brand-700); }

.ptabs {
  position: sticky; top: calc(var(--hdr-vis) + 8px); z-index: 20; transition: top .32s;
  display: flex; gap: 4px; padding: 5px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--sh-2);
}
.ptabs::-webkit-scrollbar { display: none; }
.ptab {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: 14.5px; font-weight: 600; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.ptab .i { width: 18px; height: 18px; }
@media (max-width: 479px) { .ptab { padding: 0 12px; font-size: 14px; } .ptab .i { display: none; } }
.ptab:hover { background: var(--surface-2); }
.ptab[aria-selected="true"] { background: var(--brand); color: #fff; box-shadow: 0 10px 20px -12px rgba(36, 72, 216, .9); }
.ppanel { margin-top: 12px; padding: 20px 18px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--sh-1); animation: fade-up .3s ease both; }
.ppanel__t { margin: 0 0 16px; font: 600 19px/1.25 var(--f-disp); }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--brand-100); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@media (min-width: 768px) { .ppanel { padding: 32px; } }

.prose { color: var(--ink-2); font-size: 16px; line-height: 1.72; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2 { margin: 1.6em 0 .6em; font: 600 1.3em/1.25 var(--f-disp); color: var(--ink); }
.prose h3 { margin: 1.4em 0 .5em; font-size: 1.12em; font-weight: 700; color: var(--ink); }
.prose u { text-decoration: none; display: inline-block; margin-top: .5em; font: 600 1.15em/1.3 var(--f-disp); color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .4em 0; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--brand-700); font-weight: 500; }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 10px; }
.prose--team { text-align: left; }
.prose--team p { margin: 0 0 .3em; }
.prose--team p:has(> strong:only-child) { margin-top: 1em; }
.lead { font-size: 1.08em; color: var(--ink); }
.prose .float-r { float: right; width: 38%; max-width: 200px; margin: .3em 0 12px 18px; border-radius: 12px; }
.prose::after { content: ""; display: block; clear: both; }
.wrap > .finder { box-shadow: var(--sh-2); border: 1px solid var(--line-2); }
.doc__body .cta { padding: 24px 22px; }

.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.gal a { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal a:hover img { transform: scale(1.06); }
.gal a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(13, 21, 48, .35)); opacity: 0; transition: opacity .3s; }
.gal a:hover::after { opacity: 1; }
@media (min-width: 768px) { .gal { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; } }

/* ---------- Формуляри ---------- */
.form { display: grid; gap: 14px; }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label i { font-style: normal; color: var(--brand); }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-2); font-size: 16px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(36, 72, 216, .12); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field--icon { position: relative; }
.field--icon > .i { position: absolute; left: 14px; bottom: 15px; color: var(--faint); pointer-events: none; }
.field--icon input { padding-left: 44px; }
.field__eye { position: absolute; right: 6px; bottom: 5px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.field__eye:hover { background: var(--line-2); }
.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 14px; background: var(--brand-50); }
.captcha label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.captcha input { width: 92px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--brand-100); border-radius: 12px; background: #fff; font-size: 16px; text-align: center; outline: none; }
.captcha input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(36, 72, 216, .12); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form__note { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 639px) { .form__foot .btn { width: 100%; } }

/* ---------- Статични страници ---------- */
.doc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; padding: 12px 0 44px; }
.doc__body { padding: 22px 18px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--sh-1); min-width: 0; }
@media (min-width: 768px) { .doc__body { padding: 40px 44px; } }
@media (min-width: 1024px) {
  .doc { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding-top: 18px; }
  .doc__aside { position: sticky; top: calc(var(--hdr-vis) + 16px); transition: top .32s; }
}
.nlist { list-style: none; margin: 0; padding: 6px; display: grid; gap: 2px; }
.nlist li { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 14px; transition: background-color .2s; }
.nlist li:hover { background: var(--surface-2); }
.nlist .ncard__img { border-radius: 9px; }
.nlist a { font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nlist a::after { content: ""; position: absolute; inset: 0; }
.aside-card { padding: 16px 10px 10px; }
.aside-card .box-t { padding: 0 10px; margin-bottom: 6px; }

.hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 22px 0 26px; }
.hl div { padding: 14px 10px; border-radius: 16px; background: var(--brand-50); text-align: center; }
.hl b { display: block; font: 600 clamp(18px, 15px + 1vw, 26px)/1.1 var(--f-disp); color: var(--brand-700); }
.hl span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }

.offers { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 18px 0 28px; }
.offer { display: flex; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); }
.offer b { display: block; font-size: 15.5px; color: var(--ink); }
.offer p { margin: 3px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (min-width: 640px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

.contacts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 6px 0 28px; }
.contact { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
a.contact:hover { border-color: var(--brand-100); background: #fff; box-shadow: var(--sh-2); }
.contact small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.contact b { display: block; font-size: 15.5px; overflow-wrap: anywhere; }
@media (min-width: 640px) { .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.divider { height: 1px; background: var(--line-2); margin: 28px 0; border: 0; }

/* Вход */
.auth { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; padding: 16px 0 44px; }
.authcard { padding: 26px 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--sh-2); }
.authcard__ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--brand-50); color: var(--brand); margin-bottom: 16px; }
.authcard__ico .i { width: 26px; height: 26px; }
.authcard h1 { font: 600 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.2 var(--f-disp); }
.authcard > p { margin: 8px 0 22px; color: var(--muted); }
.authnote { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px; border-radius: var(--r); background: var(--surface-2); font-size: 14.5px; color: var(--ink-2); }
.authnote b { color: var(--ink); }
.authnote a { font-weight: 600; }
@media (min-width: 768px) { .authcard { padding: 40px; } }
@media (min-width: 1024px) {
  .auth { grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; padding-top: 24px; }
  .authwrap { max-width: 620px; }
}

/* ---------- Галерия на цял екран ---------- */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(6, 9, 22, .92); animation: fade .2s ease both; }
.lb img { max-width: calc(100vw - 32px); max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: 12px; box-shadow: var(--sh-3); user-select: none; }
.lb__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; }
.lb__btn:hover { background: rgba(255, 255, 255, .22); }
.lb__close { top: 14px; right: 14px; }
.lb__prev { left: 14px; top: 50%; margin-top: -24px; }
.lb__next { right: 14px; top: 50%; margin-top: -24px; }
.lb__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255, 255, 255, .75); font-size: 14px; font-weight: 600; }
@media (max-width: 639px) { .lb__prev, .lb__next { top: auto; bottom: 12px; margin: 0; } .lb__count { bottom: 26px; } }

/* ---------- Движение ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes floaty { 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
@keyframes spin { to { transform: rotate(360deg); } }

.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--rd, 0s); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .horb, .hring, .hcat, .hero h1 em, .phead__art::before { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

@media print {
  .hdr, .tabbar, .ftr, .cookie, .sheet, .ptabs, .promo, .strip, .side--ads { display: none !important; }
  body { background: #fff; padding: 0; }
}

/* ===== Вграждане в системата (views_nov) ===== */

/* Страниците от system/class.pagination.php: „N резултата в M страници“ + ?page=N */
.pager--sys { display: block; }
.pager--sys .paginations_wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.pager--sys .paginations_wrap > div:first-child { color: var(--muted); font-size: 14.5px; padding: 0 6px; }
.pager--sys .paginations_wrap > div:last-child { display: flex; flex-wrap: wrap; gap: 4px; }
.pager--sys .pagination_page_number, .pager--sys .pagination_active_item { min-width: 40px; height: 40px; padding: 0 8px; display: grid; place-items: center; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.pager--sys a.pagination_page_number:hover { background: var(--surface-2); }
.pager--sys div.pagination_page_number { color: var(--line); }
.pager--sys .pagination_active_item { background: var(--ink); color: #fff; }
.pager--sys .pagination_active_item b { font-weight: 600; }
@media (max-width: 479px) {
  .pager--sys .paginations_wrap > div:last-child { gap: 2px; }
  .pager--sys .paginations_wrap > div:last-child > :first-child, .pager--sys .paginations_wrap > div:last-child > :last-child { display: none; }
  .pager--sys .pagination_page_number, .pager--sys .pagination_active_item { min-width: 36px; padding: 0 4px; }
}

/* Съобщенията на системата (class.messages.php: <div class="messages success|error">) */
.msgs { margin: 0 0 16px; }
.messages { position: relative; margin: 0 0 10px; padding: 12px 44px 12px 14px; border-radius: 14px; border: 1px solid; font-size: 15px; line-height: 1.5; }
.messages p { margin: 0; }
.messages.success { background: #e9f8ef; border-color: #b6e3c6; color: #135a30; }
.messages.error { background: #fdecec; border-color: #f2c1c1; color: #8a1f1f; }
.messages.info, .messages.help { background: var(--brand-50); border-color: var(--line); color: var(--ink); }
.messages.warning { background: #fff6e0; border-color: #f0dca6; color: #6b4b00; }
.closeMessage { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 8px; }
.closeMessage::before, .closeMessage::after { content: ""; position: absolute; left: 7px; right: 7px; top: 13px; height: 2px; background: currentColor; transform: rotate(45deg); }
.closeMessage::after { transform: rotate(-45deg); }

/* Съдържание от админ панела: снимки, таблици, вградени видеа */
.prose img { max-width: 100%; height: auto; }
.prose iframe, .prose video, .prose embed, .prose object { max-width: 100%; }
.prose__pic { float: right; display: block; width: 40%; max-width: 220px; margin: .2em 0 12px 18px; border-radius: 12px; overflow: hidden; }
.prose__pic img { width: 100%; margin: 0; }
@media (max-width: 479px) { .prose__pic { float: none; width: 100%; max-width: none; margin: 0 0 14px; } }
.muted { color: var(--muted); }

/* Продукти и партньори в табовете на профила */
.prods { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.prod { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; }
.prod__img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.prod__img img { width: 100%; height: 100%; object-fit: cover; }
.prod h3 { margin: 2px 0 6px; font-size: 16px; line-height: 1.35; }
.prod__text { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.prod:not(:has(.prod__img)) { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.partner { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: 16px; background: #fff; }
.partner__img { height: 96px; }
.partner__name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; }
a.partner__name:hover { color: var(--brand-700); }
.partner__name .i { width: 15px; height: 15px; color: var(--muted); }

/* Категориите на началната: категория без обекти */
.cxp__empty { color: var(--muted); margin: 6px 0 14px; }

/* Всички категории (main/list_cats) */
.catgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; padding-bottom: 44px; }
.catbox { padding: 14px; }
.catbox__head { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); text-decoration: none; }
.catbox__head span:not(.ico) { flex: 1; }
.catbox__head > .i { color: var(--muted); }
.catbox__subs { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 6px; }
.catbox__subs a { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; text-decoration: none; }
.catbox__subs a:hover { background: var(--brand-50); color: var(--brand-700); }

/* Контакти: текстът от админ панела + картата */
.contacts-cms { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 900px) { .contacts-cms { grid-template-columns: minmax(0, 1fr) 280px; } }
.contacts-cms .mapcard .ico { flex: none; }
.cta--doc { margin-top: 28px; }

/* Брандиране на категория (brands): фон зад страницата на големи екрани, кликва се встрани от съдържанието */
.skin { display: none; }
@media (min-width: 1280px) {
  .skin { display: block; position: absolute; left: 0; right: 0; top: var(--hdr-h); height: 1200px; z-index: 0; background: center top no-repeat; }
  main.has-skin { position: relative; z-index: 1; }
  main.has-skin > .wrap { background: var(--bg); border-radius: 28px 28px 0 0; padding-top: 8px; margin-top: 24px; }
  main.has-skin ~ .strip, main.has-skin .strip { position: relative; }
}

/* Справката за заявките (само за IP адресите от config.php) */
.time_query_load { overflow-x: auto; }

/* ===== Светлият стил навсякъде (поправка 4, без детските рисунки от поправка 6): светли ленти, профил, покана и долна част, ефекти и на телефона ===== */
:root {
  --sky: radial-gradient(55% 140% at 100% 0%, rgba(255, 196, 77, .3) 0%, rgba(255, 196, 77, 0) 70%), radial-gradient(45% 140% at 0% 100%, rgba(92, 130, 255, .22) 0%, rgba(92, 130, 255, 0) 70%), linear-gradient(180deg, #e8f0ff 0%, #f4f7fd 100%);
  --grid: radial-gradient(circle at 1px 1px, rgba(36, 72, 216, .13) 1px, transparent 1.6px) 0 0 / 22px 22px;
}
/* заглавията на вътрешните страници: светла лента с фини точки, а вдясно знакът на страницата: иконата на категорията
   (книга за библиотеките, чанта за книжарниците и т.н., layout/phead_art.tpl) в кръг с орбита и златна точка */
.phead { position: relative; overflow: hidden; isolation: isolate; margin: 4px 0 18px; padding: 22px 88px 24px 18px; border-radius: 24px; background: var(--grid), var(--sky); }
.phead::before { content: ""; position: absolute; right: -29px; top: -29px; z-index: -1; width: 150px; height: 150px; border-radius: 50%; border: 1px solid rgba(36, 72, 216, .12); background: radial-gradient(circle, rgba(255, 255, 255, .6) 0%, rgba(255, 255, 255, 0) 70%); }
.phead__art { --c: var(--t1); --c50: var(--t1-50); position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: var(--c); background: radial-gradient(circle at 32% 26%, #fff 0%, #fff 42%, var(--c50) 100%); box-shadow: 0 2px 4px rgba(13, 21, 48, .05), 0 16px 28px -16px rgba(36, 72, 216, .55); }
.phead__art .i { width: 26px; height: 26px; stroke-width: 1.7; }
.phead__art::before { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1.5px dashed var(--c); opacity: .35; animation: hspin 40s linear infinite; }
.phead__art::after { content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 165, 22, .18); }
.phead__art--t2 { --c: var(--t2); --c50: var(--t2-50); }
.phead__art--t3 { --c: var(--t3); --c50: var(--t3-50); }
.phead__art--t4 { --c: var(--t4); --c50: var(--t4-50); }
.phead__art--t5 { --c: var(--t5); --c50: var(--t5-50); }
.phead__art--t6 { --c: var(--t6); --c50: var(--t6-50); }
.doc__body .phead { margin-top: 0; }
/* в статичните страници лентата е ниска: знакът е по-малък и в средата */
.doc__body .phead__art { top: 50%; width: 46px; height: 46px; margin-top: -23px; }
.doc__body .phead__art .i { width: 22px; height: 22px; }
.doc__body .phead__art::before { inset: -7px; }
.doc__body .phead::before { top: 50%; right: -34px; width: 130px; height: 130px; margin-top: -65px; }
@media (min-width: 768px) {
  .phead { padding: 30px 200px 32px 34px; }
  .phead::before { width: 230px; height: 230px; right: -21px; top: 50%; margin-top: -115px; }
  .phead__art { right: 56px; top: 50%; width: 76px; height: 76px; margin-top: -38px; }
  .phead__art .i { width: 34px; height: 34px; stroke-width: 1.6; }
  .phead__art::before { inset: -12px; }
  .phead__art::after { right: -3px; top: -3px; width: 11px; height: 11px; }
  .doc__body .phead { padding-right: 120px; }
  .doc__body .phead__art { right: 32px; width: 60px; height: 60px; margin-top: -30px; }
  .doc__body .phead__art .i { width: 28px; height: 28px; }
  .doc__body .phead__art::before { inset: -9px; }
  .doc__body .phead::before { right: -23px; width: 170px; height: 170px; margin-top: -85px; }
}
/* профилът: същата светла лента над логото */
.phero__cover { isolation: isolate; background: var(--grid), var(--sky); }
.phero__cover::before { content: ""; position: absolute; right: -50px; top: -80px; z-index: -1; width: 200px; height: 200px; border-radius: 50%; border: 1px solid rgba(36, 72, 216, .16); box-shadow: inset 0 0 0 30px rgba(255, 255, 255, .35); }
.phero__cover::after { content: ""; position: absolute; right: 122px; top: 79px; z-index: -1; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(242, 165, 22, .16); }
@media (min-width: 640px) {
  .phero__cover::before { width: 280px; height: 280px; right: -40px; top: -120px; }
  .phero__cover::after { right: 202px; top: 105px; }
}

/* поканата: светла, с малка карта на профил в регистъра (theme/img/cta-profil.svg) */
.cta { color: var(--ink); border: 1px solid #f1e3c4; padding-right: 22px; padding-top: 128px; background: url("../img/cta-profil.svg") no-repeat left 18px top 18px / 136px auto, var(--grid), radial-gradient(70% 100% at 100% 0%, #ffe9b8 0%, rgba(255, 233, 184, 0) 70%), linear-gradient(135deg, #fff8e8 0%, #eef2ff 100%); }
.cta::after { content: none; }
.cta h2 { color: var(--ink); }
.cta p { color: var(--ink-2); }
.doc__body .cta { padding-top: 128px; }
@media (min-width: 768px) {
  .cta { padding: 44px 48px 44px 236px; background-position: left 40px center, 0 0, 0 0, 0 0; background-size: 164px auto, 22px 22px, auto, auto; }
  .doc__body .cta { grid-template-columns: minmax(0, 1fr); align-items: start; padding: 30px 30px 30px 190px; background-position: left 26px center, 0 0, 0 0, 0 0; background-size: 136px auto, 22px 22px, auto, auto; }
}

/* долната част: светла, с фини точки и права линия отгоре */
.ftr { position: relative; margin-top: 30px; padding-top: 52px; color: var(--ink-2); border-top: 1px solid #dde5f2; background: var(--grid), radial-gradient(50% 120% at 100% 0%, rgba(255, 196, 77, .16) 0%, rgba(255, 196, 77, 0) 70%), linear-gradient(180deg, #edf2fb 0%, #e6f3ee 100%); }
.ftr a { color: var(--ink-2); }
.ftr a:hover { color: var(--brand); }
.ftr .brand { color: var(--ink); }
.ftr .brand__txt small { color: var(--muted); }
.ftr .brand__txt b span { color: var(--brand); }
.ftr h3 { color: var(--ink); }
.ftr__social a { background: #fff; box-shadow: var(--sh-1); }
.ftr__contact .i { color: var(--brand); }
.ftr__partners, .ftr__bottom { border-top-color: rgba(13, 21, 48, .1); }
.pgrid a { background: #fff; border-color: var(--line-2); box-shadow: var(--sh-1); }
.pgrid a:hover { background: #fff; border-color: var(--brand-100); }
.pgrid b { color: var(--ink); }
.pgrid span { color: var(--muted); }
.ftr__by img { filter: none; opacity: .8; }
.totop { border-color: rgba(13, 21, 48, .15); color: var(--ink); background: #fff; }
.totop:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (min-width: 768px) { .ftr { padding-top: 68px; } }

/* бисквитките, страниците и избраните елементи: светли и сини, без тъмносиньото от стария вид */
.cookie { background: #fff; color: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(13, 21, 48, .06), 0 24px 50px -24px rgba(36, 72, 216, .45); }
.cookie a { color: var(--brand); }
.cookie .btn--light { background: var(--brand); color: #fff; }
.pager .pg[aria-current="page"], .pager--sys .pagination_active_item { background: var(--brand); color: #fff; }
/* ===== Ефекти (и на телефона) ===== */
/* тънка двуцветна черта под заглавията на разделите: изтегля се, когато разделът се появи */
.sec__head .sec__title::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) 0 62%, var(--gold) 62% 100%); }
.js .sec__head.rv .sec__title::after { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.6, 0, .2, 1) .35s; }
.js .sec__head.rv.in .sec__title::after { clip-path: inset(0 0 0 0); }
/* картите се появяват една след друга */
.js .stg > * { opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .55s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .stg.in > * { opacity: 1; transform: none; }
/* иконите леко се повдигат и картите леко се натискат при докосване */
@keyframes hjump { 0%, 100% { transform: none; } 45% { transform: translateY(-4px); } }
.cx__row:hover .ico, .cx__row:active .ico, .cx__row[aria-expanded="true"] .ico { animation: hjump .6s ease; }
.rcard, .ncard, .fcard, .cx__row, .chip, .pgrid a, .btn { -webkit-tap-highlight-color: transparent; }
.rcard:active, .ncard:active, .fcard:active, .pgrid a:active { transform: scale(.98); transition-duration: .1s; }
.chip:active, .btn:active, .cx__row:active { transform: scale(.96); transition-duration: .1s; }
/* цифрите в началото се отброяват (main.js) */
.stats b { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .js .stg > * { opacity: 1; transform: none; }
  .js .sec__head.rv .sec__title::after { clip-path: none; }
}
/* ===== Платените места по-горе (поправка 5): банерите застъпват началото и се виждат в първия екран,
   „Препоръчваме“ е движеща се лента под тях, препоръчаните са преди категориите ===== */
/* подкана за превъртане */
.hero__cue { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 18px; color: var(--ink-2); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.hero__cue .i { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #fff; color: var(--brand); box-shadow: 0 6px 14px -8px rgba(36, 72, 216, .5); animation: cue-bob 1.6s ease-in-out infinite; }
.hero__cue:hover { color: var(--brand); }
@keyframes cue-bob { 50% { transform: translateY(5px); } }
/* на телефона бързият избор е един ред, който се плъзга */
@media (max-width: 767px) {
  .hero .qchips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 14px calc(var(--gut) * -1) 0; padding: 2px var(--gut) 6px; scrollbar-width: none; }
  .hero .qchips::-webkit-scrollbar { display: none; }
  .hero .qchips__label { display: none; }
  .hero .qchips .chip { flex: none; }
  .hero__lead { font-size: 15px; }
  .stats { margin-top: 18px; }
}
/* банерите „На фокус“ и „Прием“ застъпват долния край на началото */
.sec--lift { position: relative; z-index: 2; margin-top: -58px; padding-top: 0; padding-bottom: 8px; }
.sec--lift .car { box-shadow: 0 2px 6px rgba(13, 21, 48, .05), 0 30px 60px -30px rgba(36, 72, 216, .45); }
.sec--lift .car__title::after { content: "ТОП"; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: #3b2600; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; }
/* слайдовете показват началото на следващия, за да личи, че има още */
.car__track { grid-auto-columns: 86%; }
@media (min-width: 768px) {
  .sec--lift { margin-top: -84px; }
  .car__track { grid-auto-columns: calc(50% - 6px); }
}
@media (min-width: 1024px) { .promo .car__track { grid-auto-columns: 88%; } }
/* „Препоръчваме“: движеща се лента */
.vip { padding: 14px 0 6px; }
.vip__label { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.vip__label .i { width: 15px; height: 15px; color: var(--gold); }
.vip__mq { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.vip__track { display: flex; gap: 12px; width: max-content; padding: 4px 12px 12px 0; animation: vip-mq 48s linear infinite; }
.vip__dup { display: contents; }
.vip__mq:hover .vip__track, .vip__mq:focus-within .vip__track { animation-play-state: paused; }
@keyframes vip-mq { to { transform: translateX(-50%); } }
.vip .rcard { flex: none; flex-direction: row; align-items: center; width: 300px; padding: 10px 14px 10px 10px; }
.vip .rcard .logo-box { width: 96px; height: 60px; }
.vip .rcard__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.layout ~ .vip, .promo + .vip { margin-top: 4px; }
/* препоръчаните от регистъра веднага след тях */
.sec--rec { padding-top: 18px; }
@media (min-width: 768px) { .sec--rec { padding-top: 34px; } .vip .rcard { width: 330px; } }
@media (prefers-reduced-motion: reduce) {
  .hero__cue .i { animation: none; }
  .vip__mq { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .vip__track { animation: none; }
  .vip__dup { display: none; }
}/* по-ниско начало, за да се виждат банерите в първия екран */
.hero .qchips { align-items: center; }
.hero .qchips__label { width: auto; margin-right: 2px; }
@media (max-width: 767px) {
  .hero { padding-top: 54px; padding-bottom: 88px; }
  .hero h1 { margin: 12px auto 10px; }
  .hero__lead { margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero .finder__f { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .fsel select, .hero .combo__input { font-size: 15px; }
  .hero .stats { display: none; }
  .hero__cue { margin-top: 10px; }
}
@media (min-width: 768px) {
  .hero { padding: 30px 0 100px; }
  .hero h1 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3rem); margin: 14px auto 10px; }
  .hero__lead { margin-bottom: 18px; }
  .hero .qchips { margin-top: 14px; }
  .stats { margin-top: 16px; gap: 10px; }
  .stats li { padding: 8px 6px; border-radius: 14px; }
  .stats b { font-size: 22px; }
  .stats span { margin-top: 1px; font-size: 12.5px; }
  .hero__cue { margin-top: 10px; }
}@media (min-width: 768px) {
  /* на компютъра банерите сами се показват в долния край на екрана, затова подканата не е нужна */
  .hero__cue { display: none; }
  .hero__lead { max-width: 78ch; }
  .sec--lift { margin-top: -88px; }
}/* в списъците на телефона и таблета рекламата е лента над резултатите (досега беше под всички обекти) */
@media (max-width: 1023px) {
  .layout > .side--ads { order: -1; }
  .side--ads .ads { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: minmax(150px, 44%); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 8px; scroll-padding-inline: var(--gut); }
  .side--ads .ads::-webkit-scrollbar { display: none; }
  .side--ads .adcard { scroll-snap-align: start; }
}
/* малко препоръчани за непрекъсната лента: стоят на място */
.vip__mq.is-static { -webkit-mask-image: none; mask-image: none; overflow-x: auto; scrollbar-width: none; }
.vip__mq.is-static .vip__track { animation: none; }
.vip__mq.is-static .vip__dup { display: none; }/* Началото: голямата търсачка е единствената; лупата в горната лента се появява, когато тя излезе от екрана */
@media (min-width: 768px) {
  .hdr__search { transition: opacity .3s ease, transform .35s cubic-bezier(.3, 1.4, .5, 1), visibility .3s; }
  .hfind .hdr__search { opacity: 0; transform: scale(.4); visibility: hidden; pointer-events: none; }
  body:not(.hfind).c-main.m-index .hdr__search { background: var(--brand-50); color: var(--brand-700); }
}/* банерите: активната точка се пълни като лента до следващия банер (сменят се сами) */
.car__dots button { position: relative; overflow: hidden; }
.car__dots button[aria-current="true"] { width: 26px; background: var(--brand-100); }
.car__dots button[aria-current="true"]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--brand); transform-origin: left; }
.car.is-run .car__dots button[aria-current="true"]::after { animation: car-fill 4.5s linear both; }
@keyframes car-fill { from { transform: scaleX(0); } }
/* ===== Платените участия с по-голям акцент (поправка 5): значки „Препоръчан“ и „VIP“, цветни раздели, проблясване ===== */
/* значката върху картите */
.rcard--paid { border: 1.5px solid #f3dfae; box-shadow: 0 2px 4px rgba(13, 21, 48, .04), 0 18px 34px -26px rgba(242, 165, 22, .55); overflow: visible; isolation: isolate; }
.rcard--paid:hover { border-color: #f2b632; box-shadow: 0 2px 4px rgba(13, 21, 48, .04), 0 26px 44px -24px rgba(242, 165, 22, .7); transform: translateY(-3px); }
.rcard__badge { position: absolute; left: 12px; top: -11px; z-index: 3; display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 8px; border-radius: 999px; background: linear-gradient(135deg, #ffd166, #f2a516); color: #3b2600; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 6px 12px -6px rgba(242, 165, 22, .9); pointer-events: none; }
.rcard__badge .i { width: 12px; height: 12px; }
/* проблясване при посочване */
.rcard--paid .logo-box { position: relative; overflow: hidden; }
.rcard--paid .logo-box::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-20deg); pointer-events: none; }
.rcard--paid:hover .logo-box::after { animation: paid-shine .9s ease; }
@keyframes paid-shine { from { left: -60%; } to { left: 130%; } }

/* „Препоръчани от регистъра“: цветен раздел веднага след банерите */
.sec--rec { position: relative; margin-top: 10px; padding: 34px 0 40px; background: var(--grid), radial-gradient(60% 80% at 100% 0%, #fff1c9 0%, rgba(255, 241, 201, 0) 70%), radial-gradient(50% 70% at 0% 100%, #e3ecff 0%, rgba(227, 236, 255, 0) 70%), #fbfaf4; border-top: 1px solid #f3e7c6; border-bottom: 1px solid #f3e7c6; }
.sec--rec .kicker { color: #b07400; }
.sec--rec .rgrid { padding-top: 12px; row-gap: 22px; }
@media (min-width: 768px) {
  .sec--rec { padding: 48px 0 56px; }
  .sec--rec .rcard .logo-box { height: 124px; }
}

/* „ВИП обекти“: лента на цяла ширина след категориите */
.vip__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; }
.vip__label { margin: 0; }
.vip__crown { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #ffd166, #f2a516); color: #3b2600; }
.vip__crown .i { width: 13px; height: 13px; color: #3b2600; }
.vip__sub { margin: 0; font-size: 14px; color: var(--muted); }
.vip__track { padding-top: 16px; }
.vip .rcard { width: 310px; }
.vip--band { position: relative; margin: 8px 0; padding: 34px 0 30px; background: var(--grid), linear-gradient(120deg, #fff1c9 0%, #ffe6ee 50%, #e2ebff 100%); }
.vip--band::before, .vip--band::after { content: ""; position: absolute; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ffd166, #f2a516, #ff8fa3, #7cc4ff); }
.vip--band::before { top: 0; } .vip--band::after { bottom: 0; }
.vip--band .vip__label { font: 600 clamp(1.3rem, 1rem + 1.3vw, 2rem)/1.15 var(--f-disp); letter-spacing: -.015em; text-transform: none; color: var(--ink); gap: 12px; }
.vip--band .vip__crown { width: 38px; height: 38px; box-shadow: 0 8px 18px -8px rgba(242, 165, 22, .9); animation: crown-pop 2.6s ease-in-out infinite; }
.vip--band .vip__crown .i { width: 20px; height: 20px; }
@keyframes crown-pop { 50% { transform: scale(1.07); box-shadow: 0 0 0 7px rgba(242, 165, 22, .14), 0 8px 18px -8px rgba(242, 165, 22, .9); } }
.vip--band .vip__mq { -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.vip--band .rcard { width: 330px; background: #fff; }
.vip--band .rcard .logo-box { width: 108px; height: 70px; }
@media (min-width: 768px) {
  .vip--band { padding: 48px 0 40px; }
  .vip--band .rcard { width: 360px; padding: 14px 16px 14px 14px; }
  .vip--band .rcard .logo-box { width: 124px; height: 80px; }
}
/* банерите „На фокус“ и „Прием“: златна линия отгоре */
.sec--lift .car { position: relative; overflow: hidden; border: 1.5px solid #f3dfae; }
.sec--lift .car::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, #ffd166, #f2a516, #ff8fa3); }
@media (prefers-reduced-motion: reduce) { .vip--band .vip__crown { animation: none; } }/* малко ВИП обекти: вместо движеща се лента са подредени на цялата ширина, без празно място */
.vip__mq.is-static { overflow: visible; }
.vip__mq.is-static .vip__track { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); width: auto; gap: 18px 14px; padding-right: 0; }
.vip__mq.is-static .rcard { width: auto; }
.vip--band .vip__mq.is-static .rcard .logo-box { width: 150px; height: 92px; }.vip--band .vip__mq.is-static { -webkit-mask-image: none; mask-image: none; }

/* ===== Редът като в стария сайт: Топ банери и Прием → Категории → Полезно → Препоръчани | Новини → ВИП обекти най-долу ===== */
/* в списъците рекламата отново е след обектите (отдясно на компютъра), както в стария сайт */
@media (max-width: 1023px) { .layout > .side--ads { order: 0; } }
/* Препоръчани (вляво, в оцветен панел) и Новини (вдясно) */
.sec--pair { padding-top: 36px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: start; }
.pair__rec { position: relative; padding: 22px 16px 20px; border-radius: var(--r-xl); border: 1.5px solid #f3e1b4; background: var(--grid), radial-gradient(70% 70% at 100% 0%, #fff1c9 0%, rgba(255, 241, 201, 0) 70%), #fffdf6; box-shadow: 0 30px 60px -44px rgba(242, 165, 22, .7); }
.pair__rec .kicker { color: #b07400; }
.pair__rec .sec__head, .pair__news .sec__head { margin-bottom: 16px; }
.pair .rgrid, .pair .ngrid { grid-template-columns: minmax(0, 1fr); gap: 18px 10px; }
.pair .rgrid { padding-top: 10px; }
.pair .rcard { flex-direction: row; align-items: center; padding: 12px 14px 12px 12px; }
.pair .rcard .logo-box { width: 112px; height: 72px; }
.pair .ncard { grid-template-columns: 104px minmax(0, 1fr); align-items: center; padding: 10px; }
.pair .ncard:has(.is-empty) { grid-template-columns: 48px minmax(0, 1fr); }
@media (min-width: 640px) {
  .pair__rec { padding: 26px 22px 24px; }
  .pair .rcard .logo-box { width: 136px; height: 84px; }
}
@media (min-width: 1024px) {
  .pair { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; }
  .pair__news { padding-top: 22px; }
}
/* ВИП обектите най-долу: лента на цяла ширина над долната част на сайта */
.vip--band { margin-top: 26px; }
.layout + .vip, .wrap + .vip { margin-top: 0; }