/* HOMEPAGE - композиция. Компонентите идват от nkb.css. */

/* HERO ------------------------------------------------------------------ */
.hero { padding-block: clamp(32px, 5vw, 72px) clamp(40px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.hero__copy { grid-column: 1 / span 5; display: flex; flex-direction: column; padding-top: clamp(16px, 4vw, 64px); }
.hero__title { margin-top: clamp(24px, 3vw, 40px); font-size: clamp(2.9rem, 5.6vw, 6.2rem); }
.hero__title .line-mask > span { white-space: nowrap; }
.hero__title .t-serif { display: block; }
.hero__lede { margin-top: 32px; max-width: 40ch; }
/* margin-bottom keeps air above the facts rule even when margin-top:auto on
   .hero__facts has little free space; padding-top is space *below* the line. */
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; margin-bottom: 32px; }
.hero__facts { margin-top: auto; padding-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero__facts > * { padding: 18px 16px 0 0; display: grid; gap: 4px; }
.hero__facts b { font-weight: 500; font-size: 1.0625rem; letter-spacing: -.02em; font-feature-settings: 'tnum'; }
.hero__facts span { font-size: var(--t-xs); color: var(--muted); }
.hero__facts a:hover b { color: var(--red-ink); }

.viz { grid-column: 7 / -1; position: relative; display: grid; grid-template-rows: auto 1fr auto; min-height: min(70vh, 660px); border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line-2); overflow: hidden; box-shadow: var(--sh-1); }
.viz::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 80%); opacity: .7; pointer-events: none; }
.viz__bar { position: relative; display: flex; justify-content: space-between; padding: 18px 22px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.viz__stage { position: relative; display: grid; place-items: center; padding: 8px 18% 24px 22%; }
.viz__heart { position: relative; width: 100%; max-width: 380px; }
.viz__heart .heart { animation: beat 1.05s var(--ease-io) infinite; transform-origin: 55% 60%; }
.viz__ann { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.viz__ann line, .viz__ann polyline { stroke: var(--ink); stroke-width: .8; fill: none; vector-effect: non-scaling-stroke; }
.viz__ann circle { fill: var(--white); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.viz__ann text { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; fill: var(--ink-2); text-transform: uppercase; }
.viz__ann .n { fill: var(--red-ink); }
.viz__more { position: absolute; left: 22px; bottom: 128px; z-index: 3; display: inline-flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: var(--r-pill); background: var(--white); color: var(--ink); box-shadow: var(--sh-2); transition: transform var(--d) var(--ease), box-shadow var(--d); }
.viz__more:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.viz__more-t { display: grid; line-height: 1.2; }
.viz__more-t b { font-weight: 500; font-size: var(--t-sm); }
.viz__more-t span { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.viz__more-go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; transition: transform var(--d) var(--ease); }
.viz__more-go .i { width: 16px; height: 16px; }
.viz__more:hover .viz__more-go { transform: rotate(-45deg); }
.hero--night .viz__more { background: var(--paper); }
.viz__inset { position: absolute; right: 22px; bottom: 132px; width: 20%; min-width: 112px; }
.viz__inset .media { aspect-ratio: 3 / 4; border-radius: var(--r-sm); box-shadow: var(--sh-2); }
.viz__inset .caption { margin-top: 8px; font-size: 9.5px; }
.viz__tag { position: absolute; left: 22px; top: 60px; display: grid; gap: 2px; }
.viz__tag b { font-size: 2rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.viz__tag span { font-size: var(--t-xs); color: var(--muted); max-width: 18ch; line-height: 1.35; }
.monitor { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); border-top: 1px solid var(--line-2); background: var(--white); height: 108px; }
.monitor canvas { width: 100%; height: 100%; min-height: 0; display: block; }
.monitor__read { display: grid; align-content: center; gap: 4px; padding: 0 22px; border-left: 1px solid var(--line-2); min-width: 150px; }
.monitor__bpm { font-family: var(--f-mono); font-size: 1.6rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--ink); font-feature-settings: 'tnum'; }
.monitor__bpm small { font-size: 11px; letter-spacing: .06em; color: var(--muted); margin-left: 4px; }
.monitor__meta { font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.monitor__meta i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 6px; animation: blink 1.05s infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.012); } 22% { transform: scale(.996); } 34% { transform: scale(1.006); } }
@keyframes blink { 0%, 20% { opacity: 1; } 21%, 100% { opacity: .2; } }

@container (max-width: 1080px) {
  .hero__copy { grid-column: 1 / -1; padding-top: 0; }
  .viz { grid-column: 1 / -1; min-height: 560px; margin-top: 40px; }
}
@container (max-width: 560px) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__facts > :last-child { display: none; }
  .viz { min-height: 460px; }
  .viz__stage { padding: 0 8% 16px 26%; }
  .viz__inset { display: none; }
  .viz__more { left: 14px; bottom: 112px; padding-left: 14px; }
  .viz__more-t span { display: none; }
  .viz__tag b { font-size: 1.5rem; }
  .monitor { height: 96px; }
  .monitor__read { min-width: 108px; padding: 0 14px; }
  .monitor__bpm { font-size: 1.5rem; }
  .viz__ann text { font-size: 13px; }
}

/* Превключвател светло / тъмно - само за hero-то */
.hero { position: relative; }
.hero__mode { position: absolute; z-index: 4; right: var(--pad); top: clamp(14px, 1.6vw, 22px); display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: color-mix(in srgb, var(--white) 70%, transparent); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: background var(--d), color var(--d), border-color var(--d); }
.hero__mode:hover { border-color: var(--ink); }
.hero__mode-ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; transition: transform var(--d-slow) var(--ease), background var(--d); --icon-accent: #FFD27A; }
.hero__mode-ico .i { width: 15px; height: 15px; stroke-width: 1.8; }
.hero__mode:hover .hero__mode-ico { transform: rotate(-30deg); }
.hero--night .hero__mode { top: calc(var(--header-h) + clamp(14px, 1.6vw, 22px)); color: var(--night-ink); background: rgba(255, 255, 255, .05); border-color: var(--night-line); }
.hero--night .hero__mode:hover { border-color: var(--night-ink); }
.hero--night .hero__mode-ico { background: var(--paper); color: var(--ink); }
.hero.is-switching, .hero.is-switching * { transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), fill .5s, stroke .5s !important; }
@media (max-width: 560px) { .hero__mode-t { display: none; } .hero__mode { padding: 0 5px; } }

/* HERO · NIGHT - тъмно начало, като специализациите и footer-а */
.hero--night { position: relative; background: var(--hero-night); color: var(--night-ink); margin-top: calc(var(--header-h) * -1); padding-top: calc(var(--header-h) + clamp(32px, 5vw, 72px)); padding-bottom: clamp(56px, 7vw, 112px); overflow: hidden; }
.hero--night::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 45% 55% at 72% 50%, rgba(47, 107, 219, .14), transparent 70%), radial-gradient(ellipse 30% 35% at 74% 62%, rgba(227, 6, 19, .07), transparent 70%); }
.hero--night .hero__grid { position: relative; }
.hero--night .label { color: var(--night-muted); }
.hero--night .hero__lede { color: var(--night-muted); }
.hero--night .hero__facts { border-color: var(--night-line); }
.hero--night .hero__facts span { color: var(--night-muted); }
.hero--night .hero__facts a:hover b { color: #FF5A62; }
.hero--night .viz { background: color-mix(in srgb, var(--night-2) 70%, transparent); border-color: var(--night-line); box-shadow: none; }
.hero--night .viz::before { background-image: linear-gradient(rgba(207, 216, 230, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(207, 216, 230, .06) 1px, transparent 1px); opacity: 1; }
.hero--night .viz__bar, .hero--night .caption { color: var(--night-muted); }
.hero--night .heart { --hs: rgba(207, 216, 230, .62); --heart-fill-hi: #172338; --heart-fill-lo: #0A1220; }
.hero--night .heart .h-contours path { opacity: .12; }
.hero--night .viz__ann line, .hero--night .viz__ann polyline { stroke: rgba(207, 216, 230, .45); }
.hero--night .viz__ann circle { fill: var(--night); stroke: var(--night-ink); }
.hero--night .viz__ann text { fill: var(--night-ink); }
.hero--night .viz__ann .n { fill: #FF5A62; }
.hero--night .monitor { background: transparent; border-color: var(--night-line); }
.hero--night .monitor__read { border-color: var(--night-line); }
.hero--night .monitor__bpm { color: var(--night-ink); }
.hero--night .monitor__bpm small, .hero--night .monitor__meta { color: var(--night-muted); }

/* COMMAND CENTER -------------------------------------------------------- */
.cc { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--sh-2); border: 1px solid var(--line-2); padding: clamp(20px, 3.4vw, 56px); }
.cc__head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: end; margin-bottom: 36px; }
.cc__title { grid-column: 1 / span 7; }
.cc__status { grid-column: 8 / -1; justify-self: end; display: grid; gap: 10px; justify-items: end; text-align: right; }
.cc__status .t-xs { color: var(--muted); }
.cc__status a { font-weight: 500; font-size: 1.25rem; letter-spacing: -.02em; font-feature-settings: 'tnum'; }
.cc__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 40px; }
.cc__chips .label { margin-right: 6px; }
.cc .qa-grid { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.cc .qa { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cc .qa:nth-child(4n) { border-right: 0; }
.cc .qa:nth-last-child(-n + 4) { border-bottom: 0; }
@container (max-width: 980px) {
  .cc .qa:nth-child(4n) { border-right: 1px solid var(--line); }
  .cc .qa:nth-child(2n) { border-right: 0; }
  .cc .qa:nth-last-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .cc .qa:nth-last-child(-n + 2) { border-bottom: 0; }
}
@container (max-width: 760px) {
  .cc__title, .cc__status { grid-column: 1 / -1; justify-self: start; justify-items: start; text-align: left; }
}
@container (max-width: 520px) {
  .cc .qa { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .cc .qa:last-child { border-bottom: 0 !important; }
}

/* SCALE STATEMENT ------------------------------------------------------- */
.scale__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: var(--gap); row-gap: clamp(28px, 3vw, 44px); align-items: start; }
.scale__title { grid-column: 1 / span 6; grid-row: 1; font-size: clamp(2.2rem, 5.6vw, 6rem); }
.scale__title .fade-ink { color: var(--faint); }
.scale__ecg { display: inline-block; width: .9em; height: .5em; vertical-align: .08em; margin: 0 .08em; }
.scale__ecg path { stroke: var(--red); stroke-width: 2.5; fill: none; vector-effect: non-scaling-stroke; }
.scale__copy { grid-column: 1 / span 6; grid-row: 2; display: grid; gap: 20px; align-content: start; }
.scale__copy .t-d3 { max-width: 30ch; }
.scale__copy .t-muted { max-width: 54ch; }
.scale__media { grid-column: 7 / -1; grid-row: 1 / span 2; align-self: stretch; display: flex; flex-direction: column; }
.scale__media .media { flex: 1; min-height: 360px; aspect-ratio: auto; }
.scale__media .media img { position: absolute; inset: 0; }
@container (max-width: 860px) {
  .scale__title, .scale__copy, .scale__media { grid-column: 1 / -1; grid-row: auto; }
  .scale__media .media { aspect-ratio: 4 / 3; min-height: 0; flex: none; }
  .scale__media .media img { position: static; }
}

/* NUMBERS --------------------------------------------------------------- */
.nums { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.nums > * { padding: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 32px) clamp(24px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
.nums__a { grid-column: 1 / span 7; border-right: 1px solid var(--line); display: grid; align-content: space-between; gap: 40px; }
.nums__a .stat__n { font-size: clamp(3.2rem, 6.6vw, 6.8rem); }
.nums__b { grid-column: 8 / -1; padding-left: clamp(16px, 2vw, 32px) !important; padding-right: 0 !important; }
.nums__b .media { height: 100%; min-height: 240px; max-height: 420px; }
.nums__c { grid-column: span 4; border-right: 1px solid var(--line); }
.nums__c + .nums__c { padding-left: clamp(16px, 2vw, 32px); }
.nums__c:nth-of-type(5) { border-right: 0; }
.nums__c .stat__n { font-size: clamp(2.2rem, 3.4vw, 3.4rem); }
.nums__ecg { grid-column: 1 / -1; padding-right: 0 !important; }
@container (max-width: 860px) {
  .nums__a, .nums__b { grid-column: 1 / -1; border-right: 0; padding-left: 0 !important; }
  .nums__c { grid-column: 1 / -1; border-right: 0; padding-left: 0 !important; }
}

/* ECG explainer */
.explain { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.explain__copy { grid-column: 1 / span 4; }
.explain__copy p { margin-top: 14px; color: var(--muted); font-size: var(--t-sm); }
.explain__fig { grid-column: 5 / -1; position: relative; }
.explain__fig svg { width: 100%; height: auto; max-height: 340px; overflow: visible; }
.explain__fig .paper line { stroke: var(--red); opacity: .08; }
.explain__fig .paper line.major { opacity: .16; }
.explain__fig .trace { stroke: var(--ink); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.explain__fig .seg rect { fill: transparent; cursor: pointer; }
.explain__fig .seg path { stroke: var(--red); stroke-width: 3; fill: none; opacity: 0; transition: opacity var(--d); stroke-linejoin: round; stroke-linecap: round; }
.explain__fig .seg text { font-family: var(--f-mono); font-size: 13px; fill: var(--muted); text-anchor: middle; transition: fill var(--d); }
.explain__fig .seg .tick { stroke: var(--line); stroke-width: 1; opacity: 1; }
.explain__fig .seg.is-on path:not(.tick) { opacity: 1; }
.explain__fig .seg.is-on text { fill: var(--red-ink); }
.explain__panel { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); min-height: 92px; }
.explain__panel b { font-family: var(--f-mono); font-weight: 500; color: var(--red-ink); font-size: 1.5rem; line-height: 1; grid-row: span 2; min-width: 64px; }
.explain__panel strong { font-weight: 500; }
.explain__panel span { color: var(--muted); font-size: var(--t-sm); }
@container (max-width: 860px) { .explain__copy, .explain__fig { grid-column: 1 / -1; } }

/* DARK SIGNATURE SECTION ------------------------------------------------ */
.sig { background: var(--night); color: var(--night-ink); height: 480vh; position: relative; }
.sig__sticky { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; }
.sig__sticky::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 40% 50% at 50% 52%, rgba(47, 107, 219, .14), transparent 70%), radial-gradient(ellipse 30% 30% at 52% 60%, rgba(227, 6, 19, .07), transparent 70%); }
.sig__in { position: relative; height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.sig__copy { grid-column: 1 / span 4; position: relative; min-height: 360px; }
.sig__count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; color: var(--night-muted); display: flex; gap: 14px; align-items: center; }
.sig__count b { color: var(--night-ink); font-weight: 500; }
.sig__count i { width: 80px; height: 1px; background: var(--night-line); position: relative; }
.sig__count i::after { content: ''; position: absolute; inset: 0; width: var(--p, 0%); background: var(--red); transition: width var(--d) var(--ease); }
.sig__panes { position: relative; margin-top: 40px; }
.sig__pane { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(16px); transition: opacity var(--d-slow) var(--ease), transform var(--d-slow) var(--ease); pointer-events: none; }
.sig__pane.is-on { opacity: 1; transform: none; pointer-events: auto; }
.sig__pane h3 { font-size: clamp(2rem, 3.2vw, 3.2rem); font-weight: 500; letter-spacing: -.045em; line-height: .98; }
.sig__pane p { margin-top: 24px; color: var(--night-muted); max-width: 36ch; }
.sig__pane .link-arrow { margin-top: 28px; border-color: var(--night-line); color: var(--night-ink); }
.sig__pane .link-arrow:hover { border-color: var(--night-ink); }
.sig__heart { grid-column: 5 / span 5; position: relative; display: grid; place-items: center; }
.sig__heart [data-heart] { width: min(100%, 60vh, 480px); }
.sig__list { grid-column: 10 / -1; display: grid; gap: 2px; justify-self: end; }
.sig__list button { text-align: right; padding: 10px 0; font-size: 1.0625rem; letter-spacing: -.015em; color: rgba(232, 237, 244, .32); transition: color var(--d) var(--ease); display: flex; gap: 14px; justify-content: flex-end; align-items: center; }
.sig__list button span { font-family: var(--f-mono); font-size: 10.5px; }
.sig__list button:hover { color: rgba(232, 237, 244, .7); }
.sig__list button.is-on { color: var(--night-ink); }
.sig__list button.is-on::after { content: ''; width: 24px; height: 1px; background: var(--red); }
.sig__list button:not(.is-on)::after { content: ''; width: 24px; height: 1px; background: transparent; }
.sig__hdr { position: absolute; top: clamp(32px, 6vh, 64px); left: var(--pad); right: var(--pad); }
.sig__hdr .label { color: var(--night-muted); }
.sig__foot { position: absolute; bottom: clamp(24px, 5vh, 48px); left: var(--pad); right: var(--pad); padding-left: 420px; display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--night-muted); }

.sig .heart { --hs: rgba(207, 216, 230, .62); --heart-fill-hi: #172338; --heart-fill-lo: #0A1220; }
.sig .heart .h-contours path { opacity: .12; }
.sig .heart .h-coronary path { opacity: .55; transition: opacity var(--d-slow), stroke-width var(--d-slow); }
.sig .heart > g { transition: opacity var(--d-slow) var(--ease), transform 1s var(--ease); transform-origin: 50% 55%; }
.sig [data-heart] { transition: transform 1.2s var(--ease); }
/* 1 · Кардиология */
.sig[data-active='1'] [data-heart] .heart { animation: beat 1.05s var(--ease-io) infinite; transform-origin: 55% 60%; }
/* 2 · Кардиохирургия - клапи и аорта */
.sig[data-active='2'] .heart .h-valves { opacity: 1; }
.sig[data-active='2'] .heart .h-valves * { stroke: #fff; }
.sig[data-active='2'] .heart .h-aorta { stroke: #fff; stroke-width: 1.6; }
.sig[data-active='2'] .heart .h-coronary { opacity: .2; }
/* 3 · Детска кардиология - по-малкото сърце */
.sig[data-active='3'] [data-heart] { transform: scale(.72); }
.sig[data-active='3'] .heart { --hs: rgba(220, 231, 242, .85); }
.sig[data-active='3'] .heart .h-coronary path { stroke: #E39B6B; }
/* 4 · Инвазивна кардиология - коронарните артерии */
.sig[data-active='4'] .heart .h-coronary path { opacity: 1; stroke-width: 2.6; stroke-dasharray: 6 4; animation: flow 1s linear infinite; }
.sig[data-active='4'] .heart .h-body, .sig[data-active='4'] .heart .h-vessels, .sig[data-active='4'] .heart .h-pulmonary { opacity: .45; }
/* 5 · Електрофизиология - проводна система */
.sig[data-active='5'] .heart .h-conduction { opacity: 1; }
.sig[data-active='5'] .heart .h-conduction path { stroke: #7FA8F0; stroke-width: 2; animation: flow 0.8s linear infinite; }
.sig[data-active='5'] .heart .h-conduction .node { fill: #7FA8F0; filter: drop-shadow(0 0 6px #7FA8F0); }
.sig[data-active='5'] .heart .h-coronary { opacity: .15; }
/* 6 · Образна диагностика - скан */
.sig[data-active='6'] .heart .h-scan { opacity: 1; }
.sig[data-active='6'] .heart .scan-line { animation: scan 2.6s var(--ease-io) infinite alternate; }
.sig[data-active='6'] .heart .h-coronary { opacity: .35; }
.sig[data-active='6'] .heart .h-contours path { opacity: .3; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes scan { from { transform: translateY(20px); } to { transform: translateY(450px); } }

@media (max-width: 900px) {
  .sig { height: auto; }
  .sig__sticky { position: relative; height: auto; min-height: 0; padding-block: 88px; }
  .sig__in { display: block; }
  .sig__hdr, .sig__foot { position: static; margin-bottom: 32px; }
  .sig__foot { display: none; }
  .sig__heart [data-heart] { width: min(78vw, 360px); margin: 0 auto; }
  .sig__list { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; justify-self: stretch; gap: 8px; margin: 28px 0 8px; scrollbar-width: none; }
  .sig__list button { border: 1px solid var(--night-line); border-radius: var(--r-pill); padding: 0 14px; height: 40px; font-size: var(--t-sm); }
  .sig__list button::after { display: none; }
  .sig__list button.is-on { border-color: var(--night-ink); }
  .sig__copy { min-height: 300px; margin-top: 16px; }
  .sig__panes { margin-top: 20px; }
}

/* DOCTORS --------------------------------------------------------------- */
.docs__bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.docs__bar .search { flex: 0 1 420px; }
.docs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.docs__grid .doc[hidden] { display: none; }
@container (max-width: 980px) { .docs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 640px) {
  .docs__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .docs__grid .doc { scroll-snap-align: start; }
}

/* PEDIATRIC - под-идентичност ------------------------------------------- */
.peds { background: var(--peds-bg); color: var(--peds-ink); position: relative; overflow: hidden; }
.peds .label { color: color-mix(in srgb, var(--peds-ink) 70%, transparent); }
.peds .label--tick::before { background: var(--peds-warm); }
.peds__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.peds__copy { grid-column: 1 / span 6; }
.peds__copy .t-d1 { margin-top: 28px; color: var(--ink); }
.peds__copy .t-lead { margin-top: 28px; color: var(--peds-ink); max-width: 44ch; }
.peds__links { margin-top: 48px; border-top: 1px solid rgba(35, 65, 95, .16); }
.peds__links a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(35, 65, 95, .16); font-size: 1.125rem; letter-spacing: -.015em; transition: padding var(--d) var(--ease); }
.peds__links a .i { --icon-accent: var(--peds-warm); color: var(--peds-ink); }
.peds__links a:hover { padding-left: 8px; }
.peds__links a > svg:last-child { width: 18px; height: 18px; opacity: .5; }
.peds__side { grid-column: 8 / -1; display: grid; gap: 24px; align-content: start; }
.peds__media { aspect-ratio: 4 / 4.4; border-radius: 200px 200px var(--r-md) var(--r-md); }
.peds__media img { object-position: 50% 30%; }
.peds__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(35, 65, 95, .14); border-radius: var(--r-md); overflow: hidden; }
.peds__facts > * { background: var(--peds-blue); padding: 20px; }
.peds__facts b { display: block; font-size: 1.85rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.peds__facts span { font-size: var(--t-xs); }
.peds__facts .wide { grid-column: 1 / -1; background: var(--white); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.peds__facts .wide b { font-size: 1.375rem; }
@container (max-width: 980px) { .peds__copy, .peds__side { grid-column: 1 / -1; } .peds__side { grid-template-columns: 1fr 1fr; align-items: end; } }
@container (max-width: 640px) { .peds__side { grid-template-columns: 1fr; } }

/* PATIENT INFO ---------------------------------------------------------- */
.pinfo__journey { --steps: 5; margin-bottom: clamp(48px, 5vw, 80px); }
.pinfo__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.pinfo__docs { grid-column: 1 / span 4; background: var(--white); border-radius: var(--r-md); padding: 28px; border: 1px solid var(--line-2); align-self: start; }
.pinfo__docs ul { display: grid; gap: 14px; margin-top: 20px; }
.pinfo__docs .t-xs { margin-top: 20px; color: var(--muted); }
.pinfo__faq { grid-column: 6 / -1; }
@container (max-width: 860px) { .pinfo__docs, .pinfo__faq { grid-column: 1 / -1; } }

/* SCIENCE + КОНКУРСИ + ОБЯВИ (компактно) ---------------------------- */
.sci2__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 40px); }
.sci2__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sci2__pills span { height: 36px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line-2); font-size: var(--t-xs); color: var(--muted); }
.sci2__pills b { color: var(--ink); font-weight: 500; font-size: var(--t-sm); }
.sci2__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.sci2__box { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; }
.sci2__bh { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.mini { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.mini:last-child { border-bottom: 0; }
.mini__t { font-weight: 500; letter-spacing: -.015em; line-height: 1.3; }
.mini__m { grid-column: 1; font-size: var(--t-xs); color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mini .i { grid-row: 1 / span 2; grid-column: 2; width: 18px; height: 18px; color: var(--muted); transition: transform var(--d) var(--ease), color var(--d); }
.mini:hover .mini__t { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mini:hover .i { transform: translate(2px, -2px); color: var(--ink); }
/* medboard pill (на началната - същият компонент като в Кариери) */
.mb-pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: var(--r-pill); background: var(--white); border: 1px solid var(--line-2); white-space: nowrap; transition: border-color var(--d-fast); }
.mb-pill:hover { border-color: #0090B9; }
.mb-pill__by, .mb-pill__cp { font-size: 11px; color: var(--muted); }
.mb-pill__logo { height: 14px; width: auto; display: block; }
@container (max-width: 860px) { .sci2__cols { grid-template-columns: 1fr; } }
@container (max-width: 520px) { .mb-pill__cp { display: none; } }

/* PEOPLE - един голям кадър ---------------------------------------------- */
.people { position: relative; }
.people .media { aspect-ratio: 21 / 9; border-radius: var(--r-lg); }
.people .media img { object-position: 50% 40%; }
.people__cap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); margin-top: 28px; }
.people__cap p { grid-column: 1 / span 6; }
.people__cap .caption { grid-column: 9 / -1; justify-self: end; margin: 0; }
@container (max-width: 760px) { .people .media { aspect-ratio: 4 / 3; } .people__cap p, .people__cap .caption { grid-column: 1 / -1; justify-self: start; } }

/* NEWS - последни новини -------------------------------------------- */
.newsx__head { justify-self: end; max-width: 100%; }
.newsx { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.newsx__lead { grid-column: 1 / span 7; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--white); border: 1px solid var(--line-2); transition: box-shadow var(--d), transform var(--d) var(--ease); }
.newsx__lead:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.newsx__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.newsx__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--d-slow) var(--ease); }
.newsx__lead:hover .newsx__img img { transform: scale(1.03); }
.newsx__new { position: absolute; left: 16px; top: 16px; background: var(--red); color: #fff; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); }
.newsx__body { padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 14px; align-content: start; }
.newsx__t { font-size: clamp(1.4rem, 2.1vw, 2rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.12; text-wrap: balance; }
.newsx__body .t-muted { font-size: var(--t-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.newsx__list { grid-column: 8 / -1; display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.newsx__card { display: grid; grid-template-columns: 38% 1fr; gap: 18px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--white); border: 1px solid var(--line-2); transition: border-color var(--d-fast), box-shadow var(--d); }
.newsx__card:hover { border-color: var(--ink); box-shadow: var(--sh-1); }
.newsx__thumb { aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--paper-2); }
.newsx__thumb img { width: 100%; height: 100%; object-fit: cover; }
.newsx__ct { margin-top: 8px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.newsx__card:hover .newsx__ct { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.newsx__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; }
@container (max-width: 980px) { .newsx__lead, .newsx__list { grid-column: 1 / -1; } .newsx__list { grid-template-rows: none; } .newsx__head { justify-self: start; } }
@container (max-width: 520px) { .newsx__card { grid-template-columns: 96px 1fr; gap: 14px; } .newsx__ct { font-size: 1rem; } }

/* CONTACT / MAP --------------------------------------------------------- */
.visit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.visit__info { grid-column: 1 / span 5; }
.visit__addr { margin-top: 28px; }
.visit__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 40px; }
.visit__map { grid-column: 7 / -1; }
.visit__map .map { aspect-ratio: 5 / 4; }
.map .street { stroke: #fff; stroke-linecap: round; fill: none; }
.map .street-edge { stroke: #DCDBD3; stroke-linecap: round; fill: none; }
.map .bld { fill: #DEDDD5; }
.map .park { fill: #DCE5D3; }
.map .nkb { fill: var(--white); stroke: var(--ink); stroke-width: 1.2; }
.map .nkb-peds { fill: var(--peds-blue); stroke: var(--ink); stroke-width: 1.2; }
.map .nkb-sos { fill: var(--red-tint); stroke: var(--red); stroke-width: 1.2; }
.map text { font-family: var(--f-mono); font-size: 10px; letter-spacing: .06em; fill: var(--ink-2); text-transform: uppercase; }
.map .street-name { font-family: var(--f-sans); font-size: 11px; letter-spacing: .02em; fill: var(--faint); text-transform: none; font-style: italic; }
.map__legend { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.map__legend button { height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: var(--white); font-size: 12px; box-shadow: var(--sh-1); display: inline-flex; gap: 8px; align-items: center; }
.map__legend button i { width: 8px; height: 8px; border-radius: 2px; }
.map__legend button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.map [data-zone] { transition: opacity var(--d); }
.map.has-focus [data-zone]:not(.is-focus) { opacity: .35; }
.map__note { position: absolute; right: 14px; top: 14px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.8); padding: 4px 8px; border-radius: 4px; }
@container (max-width: 860px) { .visit__info, .visit__map { grid-column: 1 / -1; } }

/* Hero CTA - с 15% по-големи от btn--lg (60px → 69px) */
.hero__cta .btn--lg { height: 69px; padding: 0 37px; font-size: 1.15rem; gap: 12px; }
.hero__cta .btn--lg .i { width: 21px; height: 21px; }
@media (max-width: 560px) { .hero__cta .btn--lg { height: 60px; padding: 0 28px; font-size: 1.05rem; } }

/* Hero - бутон към История */
.hero__hist { display: inline-flex; align-items: center; gap: 14px; margin-top: 22px; padding: 10px 14px 10px 10px; border-radius: var(--r-pill); border: 1px solid var(--line); font-size: var(--t-sm); color: var(--ink-2); align-self: flex-start; transition: border-color var(--d-fast); }
.hero__hist .num { font-family: var(--f-mono); font-size: 12px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--red); color: #fff; }
.hero__hist .i { width: 16px; height: 16px; }
.hero__hist:hover { border-color: currentColor; }
/* Keep the facts line off the pill when the hero has no free height (facts use margin-top: auto) */
.hero__hist { margin-bottom: 28px; }
.hero--night .hero__hist { color: var(--night-ink); border-color: var(--night-line); }
@media (max-width: 560px) { .hero__hist { font-size: 13px; } }
/* Наука */
.sci3 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: center; }
.sci3__copy { grid-column: 1 / span 7; }
.sci3__stats { grid-column: 8 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.sci3__stats .stat { background: var(--white); padding: 24px; }
.sci3__stats .stat__n { font-size: clamp(2.2rem, 3.6vw, 3.4rem); }
@container (max-width: 860px) { .sci3__copy, .sci3__stats { grid-column: 1 / -1; } }
/* Обучение */
.edu3 { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--gap); }
.edu3__box, .edu3__side { background: var(--white); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: clamp(18px, 2vw, 28px); display: flex; flex-direction: column; }
.edu3__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.edu3__chips span { height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line-2); font-size: var(--t-sm); }
@container (max-width: 860px) { .edu3 { grid-template-columns: 1fr; } }

/* Hero - „От първия пулс до най-сложната кардиохирургия.“ (3 реда) */
.hero__title--pulse { font-size: clamp(2.3rem, 4.6vw, 5.2rem); line-height: .98; }
.hero__ecg { display: inline-block; width: .9em; height: .5em; vertical-align: .1em; margin-left: .12em; overflow: visible; }
.hero__ecg path { stroke: var(--red); stroke-width: 2.5; fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- HERO - видео фон (тъмен и светъл вариант), смалена карта „Сърце“ ---------- */
.hero--night .hv { position:absolute; inset:0; z-index:0; overflow:hidden; }
.hv__v { width:100%; height:100%; object-fit:cover; filter:saturate(.7) contrast(1.05) brightness(1.1); }
.hv__shade { position:absolute; inset:0; background:
  linear-gradient(90deg, rgba(15,30,51,.92) 0%, rgba(15,30,51,.72) 38%, rgba(15,30,51,.35) 65%, rgba(15,30,51,.45) 100%),
  linear-gradient(180deg, rgba(15,30,51,.6) 0%, transparent 25%, transparent 75%, var(--hero-night) 100%); }
.hero--night::before { z-index:1; }
.hero--night .hero__grid { z-index:2; }
.hero--night .hero__mode { z-index:3; }
.hero--night .viz { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
/* светъл вариант - видеото под светъл слой */
#hero { overflow:hidden; }
#hero .hv { position:absolute; inset:0; z-index:0; overflow:hidden; }
#hero:not(.hero--night) .hv__v { filter:saturate(1.05) contrast(1.02); }
#hero:not(.hero--night) .hv__shade { background:
  linear-gradient(90deg, rgba(246,245,241,.92) 0%, rgba(246,245,241,.74) 34%, rgba(246,245,241,.22) 60%, rgba(246,245,241,.12) 100%),
  linear-gradient(180deg, rgba(246,245,241,.35) 0%, transparent 20%, transparent 80%, var(--paper) 100%); }
#hero .hero__grid { position:relative; z-index:2; }
#hero .hero__mode { z-index:3; }
#hero:not(.hero--night) .viz { backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); background:rgba(255,255,255,.72); }
/* картата „Сърце, преден изглед“ - 30% по-малка */
#hero .viz { transform:scale(.7) !important; transform-origin:right center; align-self:center; }
@media (max-width:900px) {
  .hv__shade { background: linear-gradient(180deg, rgba(15,30,51,.7) 0%, rgba(15,30,51,.82) 40%, rgba(15,30,51,.9) 80%, var(--hero-night) 100%); }
  #hero:not(.hero--night) .hv__shade { background: linear-gradient(180deg, rgba(246,245,241,.62) 0%, rgba(246,245,241,.78) 40%, rgba(246,245,241,.88) 80%, var(--paper) 100%); }
  #hero .viz { transform-origin:center top; margin-bottom:-30%; }
}
@media (prefers-reduced-motion: reduce) { .hv__v { display:none; } }
body.wf .hv { display: none; }
/* схемата на сградата - на телефон надписът застъпва етикета на входа; под картата има обяснение */
@media (max-width: 760px) { .map__note { display: none; } }

/* Посетете НКБ - картина на интерактивната карта, води към „Контакти“ */
.mapprev { position: relative; display: block; aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: #EEEDE8; }
.mapprev img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease, ease); }
.mapprev:hover img { transform: scale(1.025); }
.mapprev__cta { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: var(--r-pill); background: var(--ink); color: #fff; font-weight: 500; box-shadow: 0 10px 24px -12px rgba(11, 22, 38, .6); transition: background var(--d-fast); }
.mapprev:hover .mapprev__cta { background: var(--red); }
.mapprev__cta .i { width: 18px; height: 18px; }
.mapprev__attr { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: rgba(11, 22, 38, .55); background: rgba(255, 255, 255, .7); padding: 1px 5px; border-radius: 4px; }
.m3mini .mapprev__cta { position: absolute; left: 16px; bottom: 16px; }
.m3mini .m3 { border-radius: var(--r-lg); border: 1px solid var(--line-2); }
.m3mini .mapprev__cta:hover { background: var(--red); }

/* Екипът - снимки на екипите под Пациентския център */
.teamshots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.teamshots__i { margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); grid-column: span 4; aspect-ratio: 3 / 2; }
.teamshots__i img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .8s var(--ease, ease); }
.teamshots__i:hover img { transform: scale(1.03); }
@media (max-width: 900px) { .teamshots__i { grid-column: span 6; } }
@media (max-width: 560px) { .teamshots__i { grid-column: span 12; } }
/* Грижа за най-малките сърца - снимка на екипа под текста */
.peds__team { margin-top: 64px; }
.peds__team .media { aspect-ratio: 2 / 1; border-radius: var(--r-lg); }
.peds__team .media img { object-position: 50% 55%; }
.peds__team .caption { display: block; margin-top: 16px; color: color-mix(in srgb, var(--peds-ink) 70%, transparent); }
@container (max-width: 760px) { .peds__team { margin-top: 40px; } .peds__team .media { aspect-ratio: 3 / 2; } }
