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

:root {
  --ink: #0f2e3a;
  --ink-2: #2c4a55;
  --muted: #5d747e;
  --faint: #8ea2aa;
  --line: #d6e5e8;
  --line-2: #e6f0f1;
  --bg: #f6fafa;
  --wash: #eaf5f2;
  --surface: #fff;

  /* цветовете на логото: синьото сърце, зеленият надпис, оранжевата линия на ЕКГ */
  --sky: #1b8fca;
  --sky-700: #116c9c;
  --sky-50: #e8f4fb;
  --green: #2c9a46;
  --green-700: #217736;
  --green-50: #e7f5eb;
  --ecg: #ee8a22;
  --ecg-50: #fff2e3;
  --rose: #d6466b; --rose-50: #fcecf0;
  --violet: #6f5bd3; --violet-50: #efecfc;

  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 26px;
  --sh: 0 1px 2px rgba(15, 46, 58, .06), 0 10px 26px -18px rgba(15, 46, 58, .35);
  --sh-lg: 0 30px 60px -28px rgba(15, 46, 58, .45);

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

  --hdr-row: 64px;  /* ред с логото */
  --hdr-h: 64px;    /* цялата закачена горна част (с реда с категориите на компютъра) */
  --hdr-vis: var(--hdr-h);
  --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.6 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(--sky-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(27, 143, 202, .45); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--sky-50); }

.wrap { width: 100%; max-width: 1220px; 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: 10px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.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: 26px; height: 26px; }

/* ---------- Бутони, етикети ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 12px; border: 1.5px 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, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 18px; height: 18px; }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-700); }
.btn--sky { background: var(--sky); color: #fff; }
.btn--sky:hover { background: var(--sky-700); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--sky); color: var(--sky-700); }
.btn--soft { background: var(--sky-50); color: var(--sky-700); }
.btn--soft:hover { background: #d9edf8; }
.btn--white { background: #fff; color: var(--ink); }
.btn--sm { min-height: 38px; padding: 0 13px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: var(--wash); }

.tag { display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border-radius: 8px; background: var(--wash); color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-decoration: none; }
a.tag:hover { background: #dcefea; }
.tag .i { width: 14px; height: 14px; }
.tag--vip { background: var(--green-50); color: var(--green-700); }
.tag--sky { background: var(--sky-50); color: var(--sky-700); }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sky-700); text-decoration: none; }
.link:hover { text-decoration: underline; }
.link .i { width: 16px; height: 16px; }

.dot { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--sky-50); color: var(--sky-700); }
.dot--green { background: var(--green-50); color: var(--green-700); }
.dot--ecg { background: var(--ecg-50); color: #c96a0c; }
.dot--rose { background: var(--rose-50); color: var(--rose); }
.dot--violet { background: var(--violet-50); color: var(--violet); }
.dot--sm { width: 36px; height: 36px; }
.dot--sm .i { width: 18px; height: 18px; }

.logo-box { display: grid; place-items: center; overflow: hidden; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); }
.logo-box img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }

/* Линията на ЕКГ (мотивът от логото) */
.ecg { display: block; width: 100%; height: auto; overflow: visible; }
.ecg path { fill: none; stroke: var(--ecg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.js .ecg--draw path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ecg-draw 2.6s .3s cubic-bezier(.6, .1, .2, 1) forwards; }
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }

/* ---------- Горна част: лента, заглавна част, навигация ---------- */
.topbar { display: none; background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; }
.topbar a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
.topbar .i { width: 14px; height: 14px; }
.topbar__tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.hdr { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); transition: transform .32s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.hdr.is-scrolled { box-shadow: 0 10px 30px -24px rgba(15, 46, 58, .6); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { display: flex; align-items: center; gap: 10px; height: var(--hdr-row); }
.logo { display: block; margin-right: auto; flex: none; }
.logo img { height: 38px; width: auto; }
.hsearch { display: none; }
.hdr__offer, .hdr__login { display: none; }
.navrow { display: none; }

@media (min-width: 768px) { :root { --gut: 24px; } }
@media (min-width: 1024px) {
  :root { --hdr-row: 76px; --hdr-h: 125px; }
  .topbar { display: block; }
  .logo img { height: 46px; }
  .logo { margin-right: 8px; }
  .hsearch { display: flex; flex: 1; max-width: 560px; margin-right: auto; align-items: center; gap: 6px; padding: 4px 4px 4px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg); transition: border-color .2s, background-color .2s; }
  .hsearch:focus-within { border-color: var(--sky); background: #fff; }
  .hsearch .i { color: var(--faint); }
  .hsearch input { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; outline: none; font-size: 15px; }
  .hsearch .btn { min-height: 40px; }
  .hdr__search, .hdr__menu { display: none; }
  .hdr__offer, .hdr__login { display: inline-flex; }
  .navrow { display: block; border-top: 1px solid var(--line-2); }
  .navrow .wrap { display: flex; align-items: center; gap: 4px; height: 48px; }
  .navrow a, .navrow button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 11px; border: 0; border-radius: 9px; background: none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
  .navrow a:hover, .navrow button:hover { background: var(--wash); color: var(--ink); }
  .navrow [aria-current="page"], .navrow button[aria-expanded="true"] { color: var(--green-700); background: var(--green-50); }
  .navrow__all { font-weight: 700 !important; color: var(--ink) !important; }
  .navrow__all .i { transition: transform .2s; }
  .navrow__all[aria-expanded="true"] .i:last-child { transform: rotate(180deg); }
  .navrow__sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
  .navrow__end { margin-left: auto; }
}
@media (max-width: 1239px) { .navrow__more { display: none !important; } }

/* Долна навигация на телефона: плаваща лента */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 62px; padding: 6px;
  background: rgba(15, 46, 58, .96); border-radius: 20px; box-shadow: 0 18px 40px -16px rgba(15, 46, 58, .7);
}
.dock a, .dock button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-radius: 14px; background: none; color: rgba(255, 255, 255, .66); font-size: 11px; font-weight: 600; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.dock .i { width: 22px; height: 22px; }
.dock [aria-current="page"], .dock [aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
.dock [aria-current="page"]::after { content: ""; position: absolute; top: 5px; right: calc(50% - 16px); width: 6px; height: 6px; border-radius: 50%; background: #4fd07a; }
@media (min-width: 768px) { .dock { display: none; } }

/* ---------- Прозорци: търсене (цял екран на телефона), категории, меню ---------- */
.sheet { position: fixed; inset: 0; z-index: 90; display: flex; }
.sheet__bg { position: absolute; inset: 0; background: rgba(15, 46, 58, .45); animation: fade .2s ease both; }
.sheet__panel { position: relative; background: #fff; overflow-y: auto; overscroll-behavior: contain; box-shadow: var(--sh-lg); }
.sheet__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; background: #fff; }
.sheet__title { font: 600 20px/1.2 var(--f-head); }
.sheet__close { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; }
.sheet.is-closing .sheet__bg { animation: fade .18s ease reverse both; }

.sheet--full .sheet__panel { width: 100%; height: 100%; padding: 0 var(--gut) 40px; animation: fade-up .25s ease both; }
.sheet--full .sheet__bg { display: none; }
.sheet--full.is-closing .sheet__panel { animation: fade .16s ease reverse both; }

.sheet--bottom { align-items: flex-end; }
.sheet--bottom .sheet__panel { width: 100%; max-height: 88dvh; border-radius: 22px 22px 0 0; padding: 0 var(--gut) calc(24px + env(safe-area-inset-bottom)); animation: up .3s cubic-bezier(.2, .8, .2, 1) both; }
.sheet--bottom.is-closing .sheet__panel { animation: up .18s ease-in reverse both; }

.sheet--left .sheet__panel { width: min(86vw, 380px); height: 100%; padding: 0 20px 30px; animation: from-left .3s cubic-bezier(.2, .8, .2, 1) both; }
.sheet--left.is-closing .sheet__panel { animation: from-left .18s ease-in reverse both; }

@media (min-width: 1024px) {
  .sheet--bottom { align-items: flex-start; justify-content: center; }
  .sheet--bottom .sheet__panel { width: calc(100% - 48px); max-width: 1172px; max-height: calc(100dvh - 160px); margin-top: 140px; border-radius: var(--r-lg); padding: 0 28px 28px; animation-name: drop; }
  .sheet--bottom.is-closing .sheet__panel { animation-name: drop; }
}

.ssearch { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border: 2px solid var(--sky); border-radius: 16px; background: #fff; }
.ssearch input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; font-size: 17px; background: none; }
.ssearch .i { color: var(--sky); }
.slabel { margin: 22px 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip:hover { border-color: var(--sky); color: var(--sky-700); }
.chip .i { width: 16px; height: 16px; }
.chip[aria-current], .chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Списък на категориите (лист „Категории“ и менюто горе) */
.mcats { list-style: none; margin: 0; padding: 0; }
.mcat { border-top: 1px solid var(--line-2); }
.mcat:first-child { border-top: 0; }
.mcat__a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 2px; color: var(--ink); font-weight: 600; text-decoration: none; }
.mcat__name { flex: 1; }
.mcat__n { font-size: 13px; color: var(--faint); font-weight: 600; }
.mcat__subs { display: none; }
@media (min-width: 1024px) {
  .mcats { columns: 3; column-gap: 32px; }
  .mcat { break-inside: avoid; border: 0; padding-bottom: 14px; }
  .mcat__a { min-height: 44px; font-family: var(--f-head); font-size: 17px; }
  .mcat__n { display: none; }
  .mcat__subs { display: block; list-style: none; margin: 0 0 0 48px; padding: 0; }
  .mcat__subs a { display: block; padding: 4px 0; color: var(--ink-2); font-size: 14.5px; text-decoration: none; }
  .mcat__subs a:hover { color: var(--sky-700); text-decoration: underline; }
}

.mnav { display: grid; gap: 0; }
.mnav a { display: flex; align-items: center; gap: 14px; min-height: 54px; border-bottom: 1px solid var(--line-2); color: var(--ink); font: 600 19px/1.2 var(--f-head); text-decoration: none; }
.mnav a .i { color: var(--green); }
.mnav a[aria-current="page"] { color: var(--green-700); }
.mmeta { margin-top: 20px; display: grid; gap: 10px; font-size: 15px; }
.mmeta a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.mmeta .i { color: var(--sky); }

/* ---------- Начало: героят ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--wash), var(--bg) 92%); padding: 28px 0 26px; }
.hero__ecg { position: absolute; left: -4%; right: -4%; bottom: 40px; opacity: .55; pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 22px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pill b { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-50); }
.hero h1 { margin: 14px 0 12px; font: 600 clamp(2rem, 1.3rem + 3vw, 3.6rem)/1.08 var(--f-head); letter-spacing: -.015em; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--green-700); }
.hero__lead { margin: 0 0 18px; max-width: 54ch; color: var(--ink-2); font-size: clamp(15.5px, 14.5px + .35vw, 18px); }
.hsearch-big { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--sh); max-width: 620px; }
.hsearch-big:focus-within { border-color: var(--sky); }
.hsearch-big .i { color: var(--sky); }
.hsearch-big input { flex: 1; min-width: 0; height: 48px; border: 0; outline: none; font-size: 16px; background: none; }
.hsearch-big .btn { min-height: 48px; padding: 0 22px; }
.hero .chips { margin-top: 14px; }
.hero .chip { background: rgba(255, 255, 255, .8); }

.quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qtile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.qtile:hover { border-color: var(--sky); transform: translateY(-2px); box-shadow: var(--sh); }
.qtile b { font-size: 15px; line-height: 1.25; }
.qtile small { color: var(--muted); font-size: 12.5px; }
.qtile > .i:last-child { position: absolute; top: 14px; right: 14px; color: var(--faint); width: 18px; height: 18px; }
.quick__t { grid-column: 1 / -1; margin: 0 0 2px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 14px; }
.facts b { font: 600 22px/1 var(--f-head); color: var(--ink); }

@media (min-width: 640px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .hero { padding: 56px 0 54px; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 48px; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .qtile { padding: 18px; }
  .hero__ecg { bottom: 70px; }
}

/* ---------- Раздели ---------- */
.sec { padding: 34px 0; }
.sec--wash { background: var(--wash); }
.sec--white { background: #fff; border-block: 1px solid var(--line-2); }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec__title { font: 600 clamp(1.5rem, 1.15rem + 1.4vw, 2.3rem)/1.15 var(--f-head); letter-spacing: -.01em; }
.sec__title::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--sky)); }
.sec__sub { margin: 10px 0 0; color: var(--muted); max-width: 60ch; }
.sec__more { display: none; }
@media (min-width: 768px) { .sec { padding: 60px 0; } .sec__more { display: inline-flex; } }

/* Банерите (11 широки ленти) */
.car { 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: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.car__nav { margin-left: auto; display: flex; gap: 6px; }
.car__btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.car__btn:hover { border-color: var(--sky); color: var(--sky-700); }
.car__btn .i { width: 18px; height: 18px; }
.car__track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; list-style: none; margin: 0; padding: 0; }
.car__track::-webkit-scrollbar { display: none; }
.car__slide { scroll-snap-align: start; min-width: 0; }
.car__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.car__dots button { width: 7px; height: 7px; 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(--green); }
@media (min-width: 900px) { .car__track { grid-auto-columns: calc(50% - 6px); } }
.strip { display: block; aspect-ratio: 770 / 110; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* Регистърът: направленията като табове */
.dir { display: grid; gap: 14px; }
.dir__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1); padding: 2px var(--gut) 4px; }
.dir__tabs::-webkit-scrollbar { display: none; }
.dtab { flex: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px 6px 8px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14.5px; text-align: left; }
.dtab .dot { width: 34px; height: 34px; }
.dtab .dot .i { width: 18px; height: 18px; }
.dtab__n { font-size: 12.5px; color: var(--faint); font-weight: 600; }
.dtab[aria-selected="true"] { border-color: var(--green); background: var(--green-50); color: var(--green-700); }
.dpanel { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.dpanel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.dpanel__head h3 { font: 600 clamp(1.25rem, 1.1rem + .6vw, 1.6rem)/1.2 var(--f-head); }
.dlinks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.dlinks a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 8px 2px; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.dlinks a:hover { color: var(--sky-700); }
.dlinks .i { width: 16px; height: 16px; color: var(--faint); }
.dempty { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .dlinks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
@media (min-width: 1024px) {
  .dir { grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 20px; }
  .dir__tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 6px; }
  .dtab { width: 100%; }
  .dtab__n { margin-left: auto; }
  .dpanel { padding: 28px 30px; min-height: 100%; }
  .dlinks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Препоръчани */
.recs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rec { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.rec .logo-box { width: 84px; height: 84px; padding: 6px; background: var(--wash); border: 0; }
.rec h3 { margin: 6px 0 4px; font-size: 16px; line-height: 1.3; }
.rec h3 a { color: var(--ink); text-decoration: none; }
.rec h3 a:hover { color: var(--sky-700); text-decoration: underline; }
.rec p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (min-width: 768px) { .recs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .rec { padding: 18px; grid-template-columns: 96px minmax(0, 1fr); } .rec .logo-box { width: 96px; height: 96px; } }
@media (min-width: 1100px) { .recs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Бюлетин (статии) */
.posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.post { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.post__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--wash); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .post__img img { transform: scale(1.04); }
.post__t { display: block; font: 600 17px/1.3 var(--f-head); color: var(--ink); text-decoration: none; }
.post__t::after { content: ""; position: absolute; inset: 0; }
.post:hover .post__t { color: var(--sky-700); }
.post__x { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.posts--cards .post { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .posts--cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
  .posts--cards .post__img { aspect-ratio: 16 / 10; }
  .posts--list .post { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
  .posts--list .post__t { font-size: 20px; }
  .posts--list .post__x { -webkit-line-clamp: 3; }
}

/* Полезно + новини от zdrave.net */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .duo { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; } }
.box { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.box__t { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 600 19px/1.25 var(--f-head); }
.ulist { list-style: none; margin: 0; padding: 0; }
.ulist a { display: flex; align-items: center; gap: 12px; min-height: 52px; border-top: 1px solid var(--line-2); color: var(--ink); font-weight: 600; text-decoration: none; }
.ulist li:first-child a { border-top: 0; }
.ulist a:hover { color: var(--sky-700); }
.ulist a > .i:last-child { margin-left: auto; width: 16px; height: 16px; color: var(--faint); }
.znews { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.znews li { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
.znews img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--wash); }
.znews a { font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.35; }
.znews a::after { content: ""; position: absolute; inset: 0; }
.znews li:hover a { color: var(--sky-700); }
.znews p { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.src { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--sky-700); }
.src .i { width: 13px; height: 13px; }

/* Покана към клиниките (VIP) */
.offer {
  position: relative; overflow: hidden; display: grid; gap: 18px; padding: 26px 22px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, #0f2e3a, #144656); color: #fff;
}
.offer .ecg { position: absolute; left: 0; right: 0; bottom: 18px; opacity: .5; }
.offer h2 { position: relative; font: 600 clamp(1.5rem, 1.15rem + 1.4vw, 2.3rem)/1.15 var(--f-head); }
.offer p { position: relative; margin: 8px 0 0; color: rgba(255, 255, 255, .78); max-width: 56ch; }
.offer__price { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 14px; }
.offer__price b { font: 600 34px/1 var(--f-head); color: #fff; }
.offer__price span { color: rgba(255, 255, 255, .7); font-size: 14px; }
.offer__price s { color: rgba(255, 255, 255, .5); }
.offer__act { position: relative; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
@media (min-width: 900px) { .offer { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 44px 48px; } }

/* ---------- Долна част (светла) ---------- */
.ftr { margin-top: 0; background: #fff; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; padding: 40px 0 calc(100px + env(safe-area-inset-bottom)); }
.ftr a { color: var(--ink-2); text-decoration: none; }
.ftr a:hover { color: var(--sky-700); text-decoration: underline; }
.ftr__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
.ftr__brand { grid-column: 1 / -1; }
.ftr__brand img { height: 46px; width: auto; }
.ftr__brand p { margin: 14px 0 0; max-width: 44ch; color: var(--muted); }
.ftr__fb { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; }
.ftr h3 { margin: 0 0 12px; font: 600 16px/1.3 var(--f-head); color: var(--ink); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr__contact { grid-column: 1 / -1; }
.ftr__contact p { margin: 0 0 8px; display: flex; align-items: center; gap: 10px; }
.ftr__contact .i { color: var(--green); width: 18px; height: 18px; }
.partners { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.partners ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.partners a { display: block; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-2); }
.partners a:hover { text-decoration: none; border-color: var(--sky); }
.partners b { display: block; color: var(--ink); font-size: 14px; }
.partners span { display: block; color: var(--muted); font-size: 12.5px; }
.ftr__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.ftr__bottom p { margin: 0; }
.ftr__by { display: flex; align-items: center; gap: 12px; }
.ftr__by img { height: 34px; width: auto; }
.totop { width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
@media (min-width: 768px) {
  .ftr { padding-bottom: 28px; }
  .ftr__top { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); }
  .ftr__brand { grid-column: auto; }
  .ftr__contact { grid-column: 2 / -1; }
  .partners ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .ftr__top { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)) 1.3fr; }
  .ftr__contact { grid-column: auto; }
  .partners ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Бисквитки */
.cookie { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; max-width: 720px; margin-inline: auto; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-lg); font-size: 13.5px; line-height: 1.45; }
.cookie p { margin: 0; flex: 1 1 260px; }
@media (min-width: 768px) { .cookie { bottom: 20px; } }

/* ---------- Вътрешни страници ---------- */
.crumbs { display: flex; align-items: center; gap: 6px; margin: 0; padding: 14px 0 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: "/"; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--sky-700); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.crumbs .i { width: 16px; height: 16px; }

.ptitle { padding: 14px 0 20px; }
.ptitle h1 { font: 600 clamp(1.7rem, 1.25rem + 1.9vw, 2.8rem)/1.12 var(--f-head); letter-spacing: -.01em; }
.ptitle h1::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--green), var(--sky)); }
.ptitle p { margin: 12px 0 0; color: var(--muted); max-width: 66ch; }
.ptitle__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; padding-bottom: 44px; }
@media (min-width: 1024px) {
  .cols { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .cols--left { grid-template-columns: 280px minmax(0, 1fr); }
  .cols > aside { position: sticky; top: calc(var(--hdr-vis) + 16px); transition: top .32s; }
}
.subs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gut) * -1) 18px; padding: 2px var(--gut); }
.subs::-webkit-scrollbar { display: none; }
.subs .chip { flex: none; }
@media (min-width: 1024px) { .subs { flex-wrap: wrap; overflow: visible; margin: 0 0 22px; padding: 0; } }

.sidecats { padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); display: none; }
.sidecats p { margin: 8px 10px 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sidecats a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border-radius: 12px; color: var(--ink); font-weight: 500; font-size: 14.5px; text-decoration: none; line-height: 1.3; }
.sidecats a:hover { background: var(--wash); }
.sidecats a[aria-current] { background: var(--green-50); color: var(--green-700); font-weight: 700; }
.sidecats .dot { width: 32px; height: 32px; }
.sidecats .dot .i { width: 17px; height: 17px; }
@media (min-width: 1024px) { .sidecats { display: block; } }

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

/* Обект в списък: с бутони за действие */
.provs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.prov { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color .2s, box-shadow .2s; }
.prov:hover { border-color: #b9d8e2; box-shadow: var(--sh); }
.prov--vip { border-left: 4px solid var(--green); }
.prov__logo { width: 64px; height: 64px; padding: 4px; }
.prov__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.prov__name { font-size: 16.5px; line-height: 1.3; }
.prov__name a { color: var(--ink); text-decoration: none; }
.prov__name a:hover { color: var(--sky-700); text-decoration: underline; }
.prov__info { grid-column: 1 / -1; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.prov__info p { margin: 0; display: flex; gap: 8px; line-height: 1.45; }
.prov__info .i { width: 16px; height: 16px; margin-top: 2px; color: var(--faint); }
.tels { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.tels a { color: var(--sky-700); font-weight: 600; text-decoration: none; white-space: nowrap; }
.tels a:hover { text-decoration: underline; }
.prov__act { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 2px; }
.prov__act .btn { min-height: 42px; padding: 0 12px; }
@media (min-width: 768px) {
  .prov { grid-template-columns: 110px minmax(0, 1fr) 190px; grid-template-rows: auto 1fr; gap: 6px 20px; padding: 18px; }
  .prov__logo { width: 110px; height: 84px; grid-row: 1 / span 2; }
  .prov__info { grid-column: 2; }
  .prov__act { grid-column: 3; grid-row: 1 / span 2; grid-template-columns: minmax(0, 1fr); align-content: center; margin: 0; }
}

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pager__info { font-size: 14px; color: var(--muted); }
.pager__list { display: flex; align-items: center; gap: 2px; 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: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.pager a:hover { background: var(--wash); }
.pager .pg[aria-current="page"] { color: var(--green-700); box-shadow: inset 0 -3px 0 var(--green); border-radius: 10px 10px 4px 4px; background: var(--green-50); }
.pager .is-off { color: var(--line); }
.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%, 160px), 1fr)); gap: 10px; }
.ad { display: block; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.ad img { width: 100%; height: auto; border-radius: 8px; }
.ad b { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.35; }
.ad small { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--sky-700); font-weight: 600; font-size: 12.5px; }
.ad small .i { width: 13px; height: 13px; }
.label { margin: 0 0 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
@media (min-width: 1024px) { .ads { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Профил на обект ---------- */
.ohead { position: relative; overflow: hidden; display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); }
.ohead .ecg { position: absolute; right: -20px; bottom: 10px; width: 60%; opacity: .35; }
.ohead__logo { width: 84px; height: 84px; padding: 6px; background: var(--wash); border: 0; }
.ohead__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ohead h1 { position: relative; grid-column: 1 / -1; font: 600 clamp(1.45rem, 1.15rem + 1.5vw, 2.4rem)/1.15 var(--f-head); overflow-wrap: anywhere; }
.ohead__meta { position: relative; grid-column: 1 / -1; display: grid; gap: 6px; margin: 0; color: var(--ink-2); }
.ohead__meta p { margin: 0; display: flex; gap: 8px; }
.ohead__meta .i { color: var(--green); margin-top: 3px; width: 18px; height: 18px; }
@media (min-width: 768px) {
  .ohead { grid-template-columns: 150px minmax(0, 1fr); padding: 26px; gap: 10px 26px; }
  .ohead__logo { width: 150px; height: 130px; grid-row: 1 / span 3; }
  .ohead h1, .ohead__meta { grid-column: 2; }
}
.ogrid { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "contact" "main"; gap: 16px; padding: 16px 0 44px; }
.ogrid__main { grid-area: main; min-width: 0; }
.ogrid__side { grid-area: contact; display: grid; gap: 14px; align-content: start; min-width: 0; }
@media (min-width: 1024px) {
  .ogrid { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "main contact"; gap: 26px; padding-top: 22px; }
  .ogrid__side { position: sticky; top: calc(var(--hdr-vis) + 16px); transition: top .32s; }
}
.contact-box { padding: 18px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--green); border-radius: var(--r-lg); }
.contact-box h2 { margin: 0 0 12px; font: 600 19px/1.25 var(--f-head); }
.calls { display: grid; gap: 8px; }
.calls .btn { justify-content: flex-start; }
.cline { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.cline:first-of-type { margin-top: 12px; }
.cline .i { color: var(--sky); margin-top: 2px; width: 18px; height: 18px; }
.cline small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.cline a { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.mapthumb { position: relative; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; }
.mapthumb img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; }
.mapthumb b { display: block; }
.mapthumb span { color: var(--sky-700); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.mapthumb span .i { width: 14px; height: 14px; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; }
.kw.is-cut .tag:nth-child(n+7) { display: none; }
.kw__more { margin-top: 8px; padding: 4px 0; border: 0; background: none; color: var(--sky-700); font-weight: 600; font-size: 14px; }

.utabs { position: sticky; top: var(--hdr-vis); z-index: 20; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 2px solid var(--line); transition: top .32s; }
.utabs::-webkit-scrollbar { display: none; }
.utab { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 16px; margin-bottom: -2px; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); font-size: 15px; font-weight: 600; white-space: nowrap; }
.utab .i { width: 18px; height: 18px; }
.utab:hover { color: var(--ink); }
.utab[aria-selected="true"] { color: var(--green-700); border-bottom-color: var(--green); }
.upanel { padding: 22px 0 0; animation: fade-up .3s ease both; }
.upanel__t { margin: 0 0 14px; font: 600 22px/1.25 var(--f-head); }
.loading { color: var(--muted); }

.prose { color: var(--ink-2); font-size: 16.5px; line-height: 1.75; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2 { margin: 1.5em 0 .5em; font: 600 1.4em/1.25 var(--f-head); color: var(--ink); }
.prose h3 { margin: 1.3em 0 .4em; font: 600 1.15em/1.3 var(--f-head); color: var(--ink); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--green); }
.prose a { color: var(--sky-700); }
.prose img { border-radius: 14px; margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose::after { content: ""; display: block; clear: both; }
.lead { font-size: 1.1em; color: var(--ink); }

.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.gal a { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--wash); }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal a:hover img { transform: scale(1.06); }
@media (min-width: 768px) { .gal { grid-template-columns: repeat(auto-fill, minmax(130px, 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; position: relative; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label i { font-style: normal; color: var(--green); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field input:focus, .field textarea:focus { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(27, 143, 202, .12); }
.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); }
.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px; border-radius: 12px; background: var(--wash); }
.captcha label { font-weight: 600; font-size: 14.5px; }
.captcha input { width: 90px; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; text-align: center; font-size: 16px; outline: none; }
.captcha input:focus { border-color: var(--sky); }
.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%; } }

/* ---------- Статични страници ---------- */
.page { padding: 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); min-width: 0; }
@media (min-width: 768px) { .page { padding: 40px 46px; } }
.facts-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0 24px; }
.facts-card div { padding: 14px 10px; border-radius: 14px; background: var(--wash); text-align: center; }
.facts-card b { display: block; font: 600 clamp(19px, 16px + 1vw, 26px)/1.1 var(--f-head); color: var(--green-700); }
.facts-card span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.3; }
.cards2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 6px 0 26px; }
@media (min-width: 640px) { .cards2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.ccard { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
a.ccard:hover { border-color: var(--sky); background: #fff; }
.ccard small { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ccard b { display: block; font-size: 15.5px; overflow-wrap: anywhere; }
.divider { height: 1px; border: 0; background: var(--line-2); margin: 28px 0; }

/* Оферта (VIP абонамент) */
.vip-hero { position: relative; overflow: hidden; padding: 28px 22px; border-radius: var(--r-xl); background: linear-gradient(160deg, var(--wash), #fff 70%); border: 1px solid var(--line); }
.vip-hero .ecg { position: absolute; left: 0; right: 0; bottom: 14px; opacity: .45; }
.vip-hero h1 { position: relative; font: 600 clamp(2rem, 1.3rem + 3vw, 3.4rem)/1.08 var(--f-head); color: var(--ink); }
.vip-hero h1 em { font-style: italic; color: var(--green-700); }
.vip-hero p { position: relative; margin: 14px 0 0; max-width: 58ch; color: var(--ink-2); font-size: 17px; }
.vip-hero .chips { position: relative; margin-top: 18px; }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.benefits li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.benefits .dot { width: 40px; height: 40px; }
.benefits b { display: block; font-size: 16px; }
.benefits div > span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.price { display: grid; gap: 16px; padding: 24px; border-radius: var(--r-xl); background: var(--ink); color: #fff; }
.price__tag { display: inline-flex; align-self: start; justify-self: start; padding: 5px 12px; border-radius: 999px; background: rgba(79, 208, 122, .16); color: #7ee09d; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.price__big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; }
.price__big b { font: 600 clamp(40px, 32px + 2.5vw, 56px)/1 var(--f-head); }
.price__big span { color: rgba(255, 255, 255, .75); }
.price p { margin: 0; color: rgba(255, 255, 255, .78); }
.price s { color: rgba(255, 255, 255, .55); }
.price__act { display: flex; flex-wrap: wrap; gap: 10px; }
.price .btn--line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
@media (min-width: 900px) { .price { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 34px 40px; } }

/* Вход */
.login { max-width: 520px; padding: 26px 20px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--sky); border-radius: var(--r-xl); }
.login h1 { font: 600 clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem)/1.2 var(--f-head); }
.login > p { margin: 8px 0 20px; color: var(--muted); }
.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 14px; border-radius: var(--r); background: var(--wash); font-size: 14.5px; color: var(--ink-2); }
@media (min-width: 768px) { .login { padding: 40px; } }

/* Галерия на цял екран */
.lb { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(8, 24, 30, .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; }
.lb__btn { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .14); color: #fff; }
.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 up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes from-left { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::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; }
  .js .ecg--draw path { stroke-dashoffset: 0; }
}
@media print { .topbar, .hdr, .navrow, .dock, .ftr, .cookie, .sheet, .utabs { display: none !important; } body { background: #fff; } }

.cols--left > .side-order { order: 2; }
@media (min-width: 1024px) { .cols--left > .side-order { order: 0; } }
/* Поправки след прегледа */
.logo img { height: 42px; }
@media (min-width: 1024px) { .logo img { height: 48px; } }
.hero__ecg { bottom: 6px !important; opacity: .45; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.facts li { flex-direction: column; gap: 4px; padding: 10px 12px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line-2); border-radius: 14px; font-size: 12.5px; line-height: 1.3; }
@media (min-width: 640px) { .facts { display: flex; gap: 8px 26px; } .facts li { flex-direction: row; align-items: baseline; padding: 0; background: none; border: 0; font-size: 14px; } }
@media (max-width: 639px) {
  .qtile { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; }
  .qtile .dot { width: 36px; height: 36px; }
  .qtile .dot .i { width: 18px; height: 18px; }
  .qtile b { font-size: 14px; }
  .qtile > .i:last-child { display: none; }
}
.posts--cards .post { grid-template-columns: 112px minmax(0, 1fr); }
@media (min-width: 768px) { .posts--cards .post { grid-template-columns: minmax(0, 1fr); } }

.hero__ecg { height: 64px; }
@media (min-width: 1024px) { .hero { padding-bottom: 70px; } }

.ogrid { grid-template-areas: "contact" "main" "kw"; }
.ogrid__kw { grid-area: kw; min-width: 0; }
@media (min-width: 1024px) {
  .ogrid { grid-template-areas: "main contact" "main kw"; grid-template-rows: auto 1fr; }
  .ogrid__side { position: static; }
  .ogrid__kw { align-self: start; }
}

.vip-hero { padding-bottom: 56px; }
.vip-hero .ecg { bottom: 6px; height: 56px; }

@media (max-width: 1279px) { .navrow__x { display: none !important; } }
.navrow .wrap { overflow: hidden; }

/* По-голямо лого: надписът в картинката е около една четвърт от височината ѝ */
:root { --hdr-row: 70px; --hdr-h: 70px; }
.logo img { height: 56px; }
.sheet__head .logo img { height: 50px; }
.ftr__brand img { height: 66px; }
@media (min-width: 1024px) {
  :root { --hdr-row: 92px; --hdr-h: 141px; }
  .logo img { height: 72px; }
  .logo { margin-right: 14px; }
}

/* ===== Вграждане в системата (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; }
.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: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.pager--sys a.pagination_page_number:hover { background: var(--wash); }
.pager--sys div.pagination_page_number { color: var(--line); }
.pager--sys .pagination_active_item { color: var(--green-700); background: var(--green-50); box-shadow: inset 0 -3px 0 var(--green); border-radius: 10px 10px 4px 4px; }
.pager--sys .pagination_active_item b { font-weight: 700; }
@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) */
.msgs { margin: 0 0 16px; }
.messages { position: relative; margin: 0 0 10px; padding: 12px 44px 12px 14px; border-radius: var(--r); border: 1px solid; font-size: 15px; line-height: 1.5; }
.messages p { margin: 0; }
.messages.success { background: var(--green-50); border-color: #b8e0c3; color: var(--green-700); }
.messages.error { background: var(--rose-50); border-color: #f1c1cd; color: #9b2343; }
.messages.info, .messages.help { background: var(--sky-50); border-color: var(--line); color: var(--ink); }
.messages.warning { background: var(--ecg-50); border-color: #f3d3ad; color: #7a4200; }
.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: 14px; 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); }
.kw .tag { white-space: normal; max-width: 100%; padding-top: 4px; padding-bottom: 4px; line-height: 1.35; overflow-wrap: anywhere; }

/* Продукти и партньори в табовете на профила */
.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: var(--r); background: #fff; }
.prod__img { display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--wash); }
.prod__img img { width: 100%; height: 100%; object-fit: cover; }
.prod h3 { margin: 2px 0 6px; font: 600 16px/1.35 var(--f-body); }
.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 вече е на „Още регистри“ долу) */
.fpartners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.fpartner { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.fpartner__img { height: 96px; }
.fpartner__name { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); text-decoration: none; }
a.fpartner__name:hover { color: var(--sky-700); }
.fpartner__name .i { width: 15px; height: 15px; color: var(--muted); }

/* Картата в профила и в „Контакти“ (вградена, без ключ за API) */
.mapembed { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.mapembed iframe { display: block; width: 100%; height: 240px; border: 0; }
.mapembed a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; color: var(--sky-700); text-decoration: none; font-size: 14.5px; }
.mapembed a .i { width: 15px; height: 15px; flex: none; }
.mapthumb--plain { grid-template-columns: auto minmax(0, 1fr); }

/* Брандиране на категория (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; }
}
.time_query_load { overflow-x: auto; }
.ohead__tags { align-items: flex-start; align-content: center; }
